Files
workinf_Blender_Wasm/docs/web/three-vendor.md
2026-08-12 04:47:48 -04:00

20 lines
826 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Three.js 本地资源
当前使用 Three.js `0.185.1`。运行时模块已从锁定的 npm 包复制到项目源码:
- `web/app/src/vendor/three/three.module.js`
- `web/app/src/vendor/three/three.core.js`
- `web/app/src/vendor/three/addons/controls/OrbitControls.js`
视口适配器只引用上述相对路径OrbitControls 的裸 `three` 导入也已改为
本地相对导入。构建产物把代码打进本地 `index` chunk不从 CDN 或网页运行时
网络加载 Three.js。`@types/three` 仅作为开发期类型依赖。
## 校验
```text
three.module.js bbf5ed13fe4373f5bd38b14ea8e62e9f157327da5638edc6d3863e08b167c9c7
three.core.js 3718df126d69c125362a03340913204470d8c50238605150e57f808840fb7759
OrbitControls.js 1e08bf297c9062aa5055a9d649d8a8458c3871aa31c7d600f535a06f567e7cad
```