Giter Site home page Giter Site logo

Comments (9)

mirari avatar mirari commented on August 17, 2024

viewer没有提供这样的配置。
可能需要fork项目修改源码实现了

from v-viewer.

idealshan avatar idealshan commented on August 17, 2024

多谢大佬的解答,请问能指导一下修改那些部分嘛?

from v-viewer.

mirari avatar mirari commented on August 17, 2024

https://github.com/fengyuanchen/viewerjs/blob/cf6fb29a6bef0577cecad18a25770403c89a579d/src/js/render.js#L223

应该是在这附近,参考initialCoverage改动

from v-viewer.

idealshan avatar idealshan commented on August 17, 2024

多谢大佬的解答,对initialCoverage改动,是要重新编译吧?

from v-viewer.

mirari avatar mirari commented on August 17, 2024

是的
initialCoverage只是初始比例,要改变位置得自己增加参数

from v-viewer.

idealshan avatar idealshan commented on August 17, 2024

多谢大佬的解答!

from v-viewer.

mirari avatar mirari commented on August 17, 2024

不是大佬,只是套了个壳。这种定制还真帮不上什么忙

from v-viewer.

idealshan avatar idealshan commented on August 17, 2024

研究了一中午也没搞定,我在vscode中打包总是出错。
大佬能否给改一个。

from v-viewer.

mirari avatar mirari commented on August 17, 2024

这个在原基础上改还是很麻烦的,高定制的需求还是找其他工具吧

修改源码涉及的参数也很多,一时半会搞不定。
可以尝试自己覆盖样式和加css动画,以下供参考:
https://codepen.io/mirari/pen/WNmywEw

from v-viewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.