three-base 1.129.6 → 1.129.9
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 → index.d.ts} +1 -35
- package/lib/Text3D/Text3D.js +1 -1
- package/package.json +4 -5
package/{index.ts → index.d.ts}
RENAMED
|
@@ -1,56 +1,22 @@
|
|
|
1
|
-
// 基类
|
|
2
1
|
export { default } from "./lib/ThreeBase";
|
|
3
|
-
|
|
4
|
-
// 事件对象
|
|
5
2
|
export { default as EventMesh } from "./lib/EventMesh";
|
|
6
|
-
|
|
7
|
-
// 挤出模型
|
|
8
3
|
export { default as ExtrudeMesh } from "./lib/ExtrudeMesh";
|
|
9
4
|
export type { ExtrudePath } from "./lib/ExtrudeMesh";
|
|
10
5
|
export type { ExtrudeMeshProps } from "./lib/ExtrudeMesh";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
// 关键帧动画对象
|
|
14
6
|
export { default as KeyFrameAnimation } from "./lib/KeyFrameAnimation";
|
|
15
7
|
export type { KeyframeAnimationProps } from "./lib/KeyFrameAnimation";
|
|
16
8
|
export type { Keyframe } from "./lib/KeyFrameAnimation";
|
|
17
|
-
|
|
18
|
-
//实例模型组对象
|
|
19
9
|
export { default as InstancedGroupMesh } from "./lib/InstancedGroupMesh";
|
|
20
|
-
|
|
21
|
-
//点光源
|
|
22
10
|
export { default as PointLight } from "./lib/PointLight";
|
|
23
|
-
|
|
24
|
-
//天空球
|
|
25
11
|
export { default as Sky } from "./lib/Sky/Sky";
|
|
26
|
-
|
|
27
|
-
//键盘控制器
|
|
28
12
|
export { default as keyContorls } from "./lib/keyContorls";
|
|
29
|
-
|
|
30
|
-
// 动画过度对象
|
|
31
13
|
export { default as Transition } from "./lib/Transition";
|
|
32
|
-
|
|
33
|
-
// 公共方法
|
|
34
14
|
export { default as threeUtils } from "./lib/threeUtils";
|
|
35
|
-
|
|
36
|
-
// 加载器
|
|
37
15
|
export { default as threeLoader } from "./lib/threeLoader";
|
|
38
|
-
|
|
39
|
-
// 第一人称控制器
|
|
40
16
|
export { default as FPScontrol } from "./lib/FPScontrol";
|
|
41
|
-
|
|
42
|
-
// 平面文字
|
|
43
17
|
export { default as PlaneText } from "./lib/PlaneText";
|
|
44
|
-
|
|
45
|
-
// 精灵文字
|
|
46
18
|
export { default as SpriteText } from "three-spritetext";
|
|
47
|
-
|
|
48
|
-
//精灵文本框
|
|
49
19
|
export { default as SpriteModal1 } from "./lib/spriteModal1/SpriteModal1";
|
|
50
|
-
|
|
51
|
-
//平面文本框
|
|
52
20
|
export { default as PlaneModal1 } from "./lib/planeModal1/PlaneModal1";
|
|
53
|
-
|
|
54
|
-
// 3D文字
|
|
55
21
|
export { default as Text3D } from "./lib/Text3D/Text3D";
|
|
56
|
-
export type { Text3DProps } from "./lib/Text3D/Text3D";
|
|
22
|
+
export type { Text3DProps } from "./lib/Text3D/Text3D";
|
package/lib/Text3D/Text3D.js
CHANGED
|
@@ -41,7 +41,7 @@ export default class Text3D extends Mesh {
|
|
|
41
41
|
fontType: this._config.fontType,
|
|
42
42
|
callback: THREEFont => {
|
|
43
43
|
this.geometry.dispose();
|
|
44
|
-
this.geometry = new TextGeometry(this._config.text, {
|
|
44
|
+
this.geometry = new TextGeometry(this._config.text || "", {
|
|
45
45
|
font: THREEFont,
|
|
46
46
|
size: this._config.size,
|
|
47
47
|
curveSegments: this._config.curveSegments,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "three-base",
|
|
3
|
-
"version": "1.129.
|
|
3
|
+
"version": "1.129.9",
|
|
4
4
|
"description": "three 3d three-base",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"module": "index.js",
|
|
17
17
|
"types": "",
|
|
18
18
|
"files": [
|
|
19
|
-
"index.ts",
|
|
19
|
+
"index.d.ts",
|
|
20
|
+
"index.js",
|
|
20
21
|
"declare.d.ts",
|
|
21
22
|
"lib/*.js",
|
|
22
23
|
"lib/*.d.ts",
|
|
@@ -43,11 +44,9 @@
|
|
|
43
44
|
"lodash": "^4",
|
|
44
45
|
"dexie": "^3",
|
|
45
46
|
"three": "0.129.0",
|
|
46
|
-
"vite": "^4",
|
|
47
47
|
"three-spritetext": "^1",
|
|
48
48
|
"@types/three": "0.129.0",
|
|
49
49
|
"@types/element-resize-event": "^3",
|
|
50
|
-
"@types/lodash": "^4"
|
|
51
|
-
"@types/node": "^18"
|
|
50
|
+
"@types/lodash": "^4"
|
|
52
51
|
}
|
|
53
52
|
}
|