three-base 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +30 -0
- package/lib/threeLoader.ts +1 -1
- package/package.json +5 -5
package/index.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// 基类
|
|
2
|
+
export { default } from "./lib/ThreeBase";
|
|
3
|
+
|
|
4
|
+
// 事件对象
|
|
5
|
+
export { default as EventMesh } from "./lib/EventMesh";
|
|
6
|
+
|
|
7
|
+
// 挤出模型
|
|
8
|
+
export { default as ExtrudeMesh } from "./lib/ExtrudeMesh";
|
|
9
|
+
export type { ExtrudePath } from "./lib/ExtrudeMesh";
|
|
10
|
+
|
|
11
|
+
//点光源
|
|
12
|
+
export { default as PointLight } from "./lib/PointLight";
|
|
13
|
+
|
|
14
|
+
//键盘控制器
|
|
15
|
+
export { default as keyContorls } from "./lib/keyContorls";
|
|
16
|
+
|
|
17
|
+
// 动画过度对象
|
|
18
|
+
export { default as Transition } from "./lib/Transition";
|
|
19
|
+
|
|
20
|
+
// 公共方法
|
|
21
|
+
export { default as threeUtils } from "./lib/threeUtils";
|
|
22
|
+
|
|
23
|
+
// 加载器
|
|
24
|
+
export { default as threeLoader } from "./lib/threeLoader";
|
|
25
|
+
|
|
26
|
+
// 第一人称控制器
|
|
27
|
+
export { default as FPScontrol } from "./lib/FPScontrol";
|
|
28
|
+
|
|
29
|
+
// 2d 文字
|
|
30
|
+
export { default as Text2D } from "./lib/text/Text2D";
|
package/lib/threeLoader.ts
CHANGED
|
@@ -104,7 +104,7 @@ class ThreeLoader extends EventDispatcher {
|
|
|
104
104
|
|
|
105
105
|
}();
|
|
106
106
|
//@ts-ignore
|
|
107
|
-
dracoLoader.setDecoderPath((process.env.NODE_ENV === "development") ? '/node_modules/three/examples/
|
|
107
|
+
dracoLoader.setDecoderPath((process.env.NODE_ENV === "development") ? '/node_modules/three/examples/jsm/libs/draco/' : '');
|
|
108
108
|
loader.setDRACOLoader(dracoLoader);
|
|
109
109
|
return loader;
|
|
110
110
|
})()
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "three-base",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "three 3d three-base",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"three",
|
|
7
7
|
"3d",
|
|
8
8
|
"three-base",
|
|
9
|
-
"three-base",
|
|
10
9
|
"xsh"
|
|
11
10
|
],
|
|
12
|
-
"main": "
|
|
13
|
-
"module": "
|
|
14
|
-
"types": "
|
|
11
|
+
"main": "index.ts",
|
|
12
|
+
"module": "index.ts",
|
|
13
|
+
"types": "index.ts",
|
|
15
14
|
"files": [
|
|
15
|
+
"index.ts",
|
|
16
16
|
"declare.d.ts",
|
|
17
17
|
"lib/*.js",
|
|
18
18
|
"lib/*.ts",
|