three-model-viewer

0.1.14 • Public • Published

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 "

Readme

Keywords

none

Package Sidebar

Install

npm i three-model-viewer

Weekly Downloads

1

Version

0.1.14

License

none

Unpacked Size

130 MB

Total Files

241

Last publish

Collaborators

  • gaga2020