Code Monkey home page Code Monkey logo

3d-model-viewer's People

Contributors

chenyong avatar dependabot[bot] avatar tiye avatar xcrazylei avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

3d-model-viewer's Issues

Old3dModelViewer 事件无法 stop 的问题

http://fe.jimu.io/3d-model-viewer/

wheel 上线滚动的, 对应的是的缩放的行为, 但是默认的滚动条行为是需要关闭的. 目前的写法用了 stopPropagation 出现报错:

[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/6662647093133312
preventDefault @ dll_vendors_9807beb6.js:28
onWheel @ main.3c93dd53.js:108

排查下来大致结果需要调整写法, 关闭 passive event, 具体效果有待确认.

facebook/react#6436 (comment)

动态加载的模块的方案

threejs 组件体积较大, 最后做一下异步加载的.

=>> du -ah node_modules/three/build/three.*
1.2M	node_modules/three/build/three.js
596K	node_modules/three/build/three.min.js
1.1M	node_modules/three/build/three.module.js

之前尝试在组件内用 await, 导致卡顿的 bug(没有定位到准确原因). 退一步可以考虑在外面包一层组件用来做内部的组件的异步加载.

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.