three.js 库二次功能封装 + 配置化的 three.js 开发。
由于目前需要解决生存问题,后面的版本展示不开源,详细情况可查看:https://www.bilibili.com/video/BV1Tg411i7Xu
gitee 视频资源会失效
npm i vis-three
// 整体导入
import * as Vis from "vis-three";
// 按需导入
import {
ModelingEngineSupport,
SupportDataGenerator,
generateConfig,
} from "vis-three";
- gitee 仓库为 github 的同步备份仓库
- github 地址:https://github.com/Shiotsukikaedesari/vis-three
src
vis-three 库源码website
主页源码docs
文档源码examples
例子库源码arts
美术资源cypress
e2e 测试用例源码dist
vis-three 库 builddist-website
主页 buildjs-source
tsc 编译 js 版本types
vis-three 的声明文件uitls
项目级别工具库
- 例子或者网页需要添加额外依赖的,请添加到
devDependencies
中:npm i xxxx -D
- 提交更新之后请到
/docs/version
下简写更新功能 - 开发期请使用
jsdoc
进行注释辅助
website 的最终展现是使用的其他模块的 build 版本,如需要更新请先执行相应的:bulid
构建。
- 开发:
npm run dev
- 构建:
npm run build
- 代码格式化:
npm run lint
- 例子开发:
npm run examples:dev
- 例子构建:
npm run examples:build
- 文档开发:
npm run docs:dev
- 文档构建:
npm run docs:build
- 文档服务:
npm run docs:serve
- 主页开发:
npm run website:dev
- 主页构建:
npm run website:build
- 主页代码格式化:
npm run website:lint
- 单元测试:
npm run test:unit
- e2e 测试:
npm run test:e2e
- 自定义测试:
npm run test:open
- 查看测试报告:
npm run test:report