Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

three-model-viewer

Package Overview
Dependencies
7
Maintainers
1
Versions
12
Issues
File Explorer

Advanced tools

three-model-viewer

``` npm install ```

    0.1.14latest
    npm

Version published
Maintainers
1
Weekly downloads
32
decreased by-21.95%

Weekly downloads

Readme

Source

three-model-engine

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your unit tests

npm run test:unit

Customize configuration

See Configuration Reference.

发包方式1

https://zhuanlan.zhihu.com/p/487550005 https://blog.csdn.net/u010059669/article/details/109715342

版本管理

https://blog.csdn.net/qq_41887214/article/details/120471739

按需引入

// presets: [ // '@vue/cli-plugin-babel/preset' // ] npm install babel-plugin-component -D https://blog.csdn.net/Z_Y_Chen/article/details/125551758

rem

https://blog.csdn.net/lwx931449660/article/details/107962493 https://www.jb51.net/article/257500.htm https://www.jianshu.com/p/8293b4957699 https://blog.csdn.net/weixin_59519449/article/details/123978984

TODO

  1. rem 布局 2.loader增加
  2. 设计成组件

px to rem

https://www.cnblogs.com/m1754171640/p/13712218.html

px2rem 设置 rootfontsize

安装使用sass

https://cli.vuejs.org/zh/guide/css.html#%E9%A2%84%E5%A4%84%E7%90%86%E5%99%A8 npm install -D sass-loader sass

#安装less npm install -D less-loader less

https://juejin.cn/post/6844904190506958856

打包后的模型文件夹路径下 可以访问

http://localhost:8080/#model=static/models/solids.obj,static/models/solids.mtl

http://localhost:8080/127new#model= //模型url地址

画展移动重置 有问题

发包

https://blog.csdn.net/weixin_45032067/article/details/125434872

构建目标

https://cli.vuejs.org/zh/guide/build-targets.html#%E5%BA%93 https://blog.csdn.net/cenkangmu/article/details/125060984

"build:dom": "vue-cli-service build --target lib --name index packages/index.js "

FAQs

Last updated on 09 Feb 2023

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc