jimengio / 3d-model-viewer Goto Github PK
View Code? Open in Web Editor NEWThree-js based 3d modal viewer
Home Page: http://fe.jimu.io/3d-model-viewer/
Three-js based 3d modal viewer
Home Page: http://fe.jimu.io/3d-model-viewer/
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, 具体效果有待确认.
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(没有定位到准确原因). 退一步可以考虑在外面包一层组件用来做内部的组件的异步加载.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.