three-base 2.0.72 → 2.0.74

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.
Files changed (84) hide show
  1. package/ApngTexture.d.ts +13 -13
  2. package/ApngTexture.js +61 -61
  3. package/ApngTextureManage.d.ts +18 -18
  4. package/ApngTextureManage.js +87 -87
  5. package/EventMesh.d.ts +18 -18
  6. package/EventMesh.js +59 -59
  7. package/ExtrudeMesh.d.ts +111 -111
  8. package/ExtrudeMesh.js +363 -363
  9. package/FPScontrol.d.ts +45 -45
  10. package/FPScontrol.js +171 -171
  11. package/Fire/Fire.d.ts +28 -28
  12. package/Fire/Fire.js +79 -79
  13. package/Fire/FireGromtry.d.ts +9 -9
  14. package/Fire/FireGromtry.js +40 -40
  15. package/Fire/FireMaterial.d.ts +28 -28
  16. package/Fire/FireMaterial.js +32 -32
  17. package/InstancedMeshBase.d.ts +32 -32
  18. package/InstancedMeshBase.js +236 -219
  19. package/InstancedMeshBase.ts +36 -20
  20. package/KeyFrameAnimation.d.ts +25 -25
  21. package/KeyFrameAnimation.js +78 -78
  22. package/MeshBase.d.ts +34 -33
  23. package/MeshBase.js +185 -174
  24. package/MeshBase.ts +16 -5
  25. package/Mirror.d.ts +25 -25
  26. package/Mirror.js +139 -139
  27. package/PlaneModal1/PlaneModal1.d.ts +31 -31
  28. package/PlaneModal1/PlaneModal1.js +105 -105
  29. package/PlaneModal1/index.d.ts +1 -1
  30. package/PlaneModal1/index.js +1 -1
  31. package/PlaneText.d.ts +44 -44
  32. package/PlaneText.js +30 -30
  33. package/PlaneWithHtml.d.ts +11 -11
  34. package/PlaneWithHtml.js +68 -68
  35. package/PointLight/PointLight.d.ts +13 -13
  36. package/PointLight/PointLight.js +64 -64
  37. package/PointLight/index.d.ts +1 -1
  38. package/PointLight/index.js +1 -1
  39. package/Sky/Sky.d.ts +13 -13
  40. package/Sky/Sky.js +28 -28
  41. package/Sky/index.d.ts +1 -1
  42. package/Sky/index.js +1 -1
  43. package/SpriteModal1/SpriteModal1.d.ts +30 -30
  44. package/SpriteModal1/SpriteModal1.js +110 -110
  45. package/SpriteModal1/index.d.ts +1 -1
  46. package/SpriteModal1/index.js +1 -1
  47. package/SpriteText.d.ts +45 -45
  48. package/SpriteText.js +163 -163
  49. package/SpriteText2.d.ts +47 -47
  50. package/SpriteText2.js +198 -198
  51. package/SpriteWithHtml.d.ts +7 -7
  52. package/SpriteWithHtml.js +49 -49
  53. package/Text3D/Text3D.d.ts +20 -20
  54. package/Text3D/Text3D.js +62 -62
  55. package/Text3D/fontController.d.ts +59 -59
  56. package/Text3D/fontController.js +200 -200
  57. package/Text3D/index.d.ts +1 -1
  58. package/Text3D/index.js +1 -1
  59. package/ThreeBase.d.ts +92 -91
  60. package/ThreeBase.js +619 -611
  61. package/ThreeBase.ts +15 -6
  62. package/ThreeMouse.d.ts +39 -39
  63. package/ThreeMouse.js +359 -359
  64. package/Transition.d.ts +40 -40
  65. package/Transition.js +207 -207
  66. package/index.d.ts +1 -1
  67. package/index.js +2 -2
  68. package/keyContorls.d.ts +25 -25
  69. package/keyContorls.js +98 -98
  70. package/package.json +1 -1
  71. package/pass/FullScreenQuad.d.ts +7 -7
  72. package/pass/FullScreenQuad.js +25 -25
  73. package/pass/glow_pass.d.ts +2 -2
  74. package/pass/glow_pass.js +236 -236
  75. package/pass/stroke_pass.d.ts +2 -2
  76. package/pass/stroke_pass.js +202 -202
  77. package/shaders/FXAAShaderMaterial.d.ts +3 -3
  78. package/shaders/FXAAShaderMaterial.js +21 -21
  79. package/shaders.d.ts +17 -17
  80. package/shaders.js +99 -99
  81. package/threeLoader.d.ts +26 -26
  82. package/threeLoader.js +189 -189
  83. package/threeUtils.d.ts +47 -47
  84. package/threeUtils.js +266 -266
package/threeUtils.js CHANGED
@@ -1,266 +1,266 @@
1
- /*
2
- * @Author: xiaosihan
3
- * @Date: 2022-02-24 22:49:42
4
- * @Last Modified by: xiaosihan
5
- * @Last Modified time: 2023-05-03 00:36:18
6
- */
7
- import { Box3, Clock, EventDispatcher, Material, Vector3 } from "three";
8
- import { GLTFExporter } from 'three/examples/jsm/exporters/GLTFExporter';
9
- class ThreeUtils extends EventDispatcher {
10
- constructor() {
11
- super();
12
- this.requestAnimationFrame();
13
- }
14
- isProd = (process.env.NODE_ENV === "production");
15
- isDev = (process.env.NODE_ENV === "development");
16
- _timeTemp = performance.now();
17
- _accumulate = 0; // 事件分发次数
18
- _box3 = new Box3();
19
- _size = new Vector3();
20
- _center = new Vector3();
21
- _clock = new Clock();
22
- requestAnimationFrame() {
23
- this._accumulate += 1;
24
- const timeTemp = this._timeTemp = performance.now();
25
- this.dispatchEvent({
26
- type: "requestAnimationFrame",
27
- timeTemp,
28
- accumulate: this._accumulate
29
- });
30
- this._computerDomZoom();
31
- //执行一个计划任务
32
- let work = this.workList.splice(0, 1)[0];
33
- work && work();
34
- setTimeout(() => {
35
- this.requestAnimationFrame();
36
- }, 30 - this._clock.getDelta());
37
- }
38
- // 需要保持宽高比的元素列表
39
- _keepZoomDoms = [];
40
- /**
41
- *计算需要保持比例的元素
42
- */
43
- _computerDomZoom() {
44
- //1. 踢除没有出现在页面上的 dom 元素
45
- this._keepZoomDoms = this._keepZoomDoms.filter(l => this.inDocument(l.dom));
46
- //2.设置dom的缩放值样式
47
- this._keepZoomDoms.map((item, i) => {
48
- let parentDom = item.dom.parentNode;
49
- let scale = Math.min(parentDom.clientWidth / item.width, parentDom.clientHeight / item.height);
50
- Object.assign(item.dom.style, {
51
- position: "absolute",
52
- top: "50%",
53
- left: "50%",
54
- transform: `translate(-50%, -50%) scale(${scale})`,
55
- width: `${item.width}px`,
56
- height: `${item.height}px`
57
- });
58
- });
59
- }
60
- /**
61
- * dom元素保持比例
62
- */
63
- keepZoom(dom, width = 1920, height = 1080) {
64
- if (dom) {
65
- // 去掉相同的dom存储的信息
66
- this._keepZoomDoms = this._keepZoomDoms.filter(l => l.dom !== dom);
67
- // 把配置加入到列表中
68
- this._keepZoomDoms.push({ dom, width, height });
69
- dom.dataset.a = "这个元素缩放比例由 threeUtils.keepZoom 方法设置";
70
- this._computerDomZoom();
71
- }
72
- }
73
- workList = [];
74
- // 时钟对象
75
- clock = new Clock();
76
- // 按照任务队列依次执行计划任务 性能优化
77
- /**
78
- * @param {() => void} [callback]
79
- * @param {boolean} [first=true] 需要优先执行
80
- */
81
- addWork(work, first = false) {
82
- // 加入任务队列
83
- if (work && !this.workList.includes(work)) {
84
- if (first) {
85
- this.workList.splice(1, 0, work); // 优先执行的任务回调
86
- }
87
- else {
88
- this.workList.push(work);
89
- }
90
- }
91
- }
92
- /**
93
- *判断一个元素是否在页面上
94
- */
95
- inDocument(dom) {
96
- if (dom === null) {
97
- return false;
98
- }
99
- else if (dom.parentNode === null) {
100
- return false;
101
- }
102
- else if (dom.parentNode === document) {
103
- return true;
104
- }
105
- else {
106
- return this.inDocument(dom.parentNode);
107
- }
108
- }
109
- // 获取中心点
110
- getCenter(object3d) {
111
- if (object3d.isObject3D) {
112
- this._box3.setFromObject(object3d);
113
- this._box3.getCenter(this._center);
114
- }
115
- else if (object3d.isBufferGeometry) {
116
- object3d.computeBoundingBox();
117
- object3d.boundingBox.getCenter(this._center);
118
- }
119
- return this._center.clone();
120
- }
121
- // 获取模型大小
122
- getSize(object3d) {
123
- if (object3d.isObject3D) {
124
- this._box3.setFromObject(object3d);
125
- this._box3.getSize(this._size);
126
- }
127
- else if (object3d.isBufferGeometry) {
128
- object3d.computeBoundingBox();
129
- object3d.boundingBox.getSize(this._size);
130
- }
131
- return this._size.clone();
132
- }
133
- // 模型对齐底面
134
- alignBottom(object3d, y = 0) {
135
- if (object3d.isObject3D) {
136
- this._box3.setFromObject(object3d);
137
- this._box3.getCenter(this._center);
138
- this._box3.getSize(this._size);
139
- object3d.position.y -= (this._center.y - (this._size.y * 0.5));
140
- object3d.position.y += y;
141
- object3d.updateMatrixWorld(true);
142
- }
143
- else if (object3d.isBufferGeometry) {
144
- object3d.computeBoundingBox();
145
- object3d.translate(0, -object3d.boundingBox.min.y + y, 0);
146
- }
147
- }
148
- // 居中对象
149
- centerObject3D(object3d) {
150
- if (object3d.isObject3D) {
151
- this._box3.setFromObject(object3d);
152
- this._box3.getCenter(this._center);
153
- object3d.position.sub(this._center);
154
- object3d.updateMatrixWorld(true);
155
- }
156
- else if (object3d.isBufferGeometry) {
157
- object3d.center();
158
- }
159
- }
160
- //居中对象
161
- center(object3d) {
162
- this.centerObject3D(object3d);
163
- }
164
- // 使用指定的维度(xyz)计算, 缩放至指定大小;
165
- scaleTo(object3d, size = 1, key = ["x", "y", "z"]) {
166
- const originSize = this.getSize(object3d);
167
- const scale = size / Math.max(...key.map(k => originSize[k]));
168
- if (object3d.isObject3D) {
169
- object3d.scale.multiplyScalar(scale);
170
- object3d.updateMatrixWorld(true);
171
- }
172
- else if (object3d.isBufferGeometry) {
173
- object3d.scale(scale, scale, scale);
174
- }
175
- }
176
- // 应用全部变化
177
- applyAllTranstion(object3d) {
178
- object3d.updateMatrixWorld(true);
179
- // 应用全部变换
180
- object3d.traverse(obj => {
181
- obj.position.set(0, 0, 0);
182
- obj.rotation.set(0, 0, 0);
183
- obj.scale.set(1, 1, 1);
184
- if (obj.isMesh) {
185
- obj.geometry.applyMatrix4(obj.matrixWorld);
186
- }
187
- });
188
- }
189
- // 导出 glb
190
- exportGLB(input, fileName = "threeUtils.exportGLB") {
191
- const gltfExporter = new GLTFExporter();
192
- gltfExporter.parse(input, (result) => {
193
- if (result instanceof ArrayBuffer) {
194
- const link = document.createElement('a');
195
- link.style.display = 'none';
196
- document.body.appendChild(link); // Firefox workaround, see #6594
197
- link.href = URL.createObjectURL(new Blob([result], { type: 'application/octet-stream' }));
198
- link.download = `${fileName}.glb`;
199
- link.click();
200
- }
201
- }, (error) => { }, {
202
- trs: true,
203
- onlyVisible: true,
204
- binary: true,
205
- maxTextureSize: 4096
206
- });
207
- }
208
- //导出usdz
209
- exportUsdz() {
210
- }
211
- // 计算网格的体积
212
- getVolume(geometry) {
213
- if (!geometry.index)
214
- return;
215
- if (!geometry.isBufferGeometry) {
216
- console.log("'geometry' must be an indexed or non-indexed buffer geometry");
217
- return 0;
218
- }
219
- const isIndexed = geometry.index !== null;
220
- const position = geometry.attributes.position;
221
- let sum = 0;
222
- const p1 = new Vector3(), p2 = new Vector3(), p3 = new Vector3();
223
- if (!isIndexed) {
224
- const faces = position.count / 3;
225
- for (let i = 0; i < faces; i++) {
226
- p1.fromBufferAttribute(position, i * 3 + 0);
227
- p2.fromBufferAttribute(position, i * 3 + 1);
228
- p3.fromBufferAttribute(position, i * 3 + 2);
229
- sum += this.signedVolumeOfTriangle(p1, p2, p3);
230
- }
231
- }
232
- else {
233
- const index = geometry.index;
234
- const faces = index.count / 3;
235
- for (let i = 0; i < faces; i++) {
236
- p1.fromBufferAttribute(position, index.array[i * 3 + 0]);
237
- p2.fromBufferAttribute(position, index.array[i * 3 + 1]);
238
- p3.fromBufferAttribute(position, index.array[i * 3 + 2]);
239
- sum += this.signedVolumeOfTriangle(p1, p2, p3);
240
- }
241
- }
242
- return sum > 0 ? sum : 0;
243
- }
244
- signedVolumeOfTriangle(p1, p2, p3) {
245
- return p1.dot(p2.cross(p3)) / 6.0;
246
- }
247
- //清理对象的网格和材质的缓存
248
- dipose(object3d) {
249
- object3d.traverse(obj => {
250
- const mesh = obj;
251
- if (mesh.isMesh) {
252
- mesh.geometry.dispose();
253
- if (mesh.material instanceof Material) {
254
- mesh.material.dispose();
255
- }
256
- else if (mesh.material instanceof Array) {
257
- mesh.material.map(m => {
258
- m.dispose();
259
- });
260
- }
261
- }
262
- });
263
- }
264
- }
265
- const threeUtils = new ThreeUtils();
266
- export default threeUtils;
1
+ /*
2
+ * @Author: xiaosihan
3
+ * @Date: 2022-02-24 22:49:42
4
+ * @Last Modified by: xiaosihan
5
+ * @Last Modified time: 2023-05-03 00:36:18
6
+ */
7
+ import { Box3, Clock, EventDispatcher, Material, Vector3 } from "three";
8
+ import { GLTFExporter } from 'three/examples/jsm/exporters/GLTFExporter';
9
+ class ThreeUtils extends EventDispatcher {
10
+ constructor() {
11
+ super();
12
+ this.requestAnimationFrame();
13
+ }
14
+ isProd = (process.env.NODE_ENV === "production");
15
+ isDev = (process.env.NODE_ENV === "development");
16
+ _timeTemp = performance.now();
17
+ _accumulate = 0; // 事件分发次数
18
+ _box3 = new Box3();
19
+ _size = new Vector3();
20
+ _center = new Vector3();
21
+ _clock = new Clock();
22
+ requestAnimationFrame() {
23
+ this._accumulate += 1;
24
+ const timeTemp = this._timeTemp = performance.now();
25
+ this.dispatchEvent({
26
+ type: "requestAnimationFrame",
27
+ timeTemp,
28
+ accumulate: this._accumulate
29
+ });
30
+ this._computerDomZoom();
31
+ //执行一个计划任务
32
+ let work = this.workList.splice(0, 1)[0];
33
+ work && work();
34
+ setTimeout(() => {
35
+ this.requestAnimationFrame();
36
+ }, 30 - this._clock.getDelta());
37
+ }
38
+ // 需要保持宽高比的元素列表
39
+ _keepZoomDoms = [];
40
+ /**
41
+ *计算需要保持比例的元素
42
+ */
43
+ _computerDomZoom() {
44
+ //1. 踢除没有出现在页面上的 dom 元素
45
+ this._keepZoomDoms = this._keepZoomDoms.filter(l => this.inDocument(l.dom));
46
+ //2.设置dom的缩放值样式
47
+ this._keepZoomDoms.map((item, i) => {
48
+ let parentDom = item.dom.parentNode;
49
+ let scale = Math.min(parentDom.clientWidth / item.width, parentDom.clientHeight / item.height);
50
+ Object.assign(item.dom.style, {
51
+ position: "absolute",
52
+ top: "50%",
53
+ left: "50%",
54
+ transform: `translate(-50%, -50%) scale(${scale})`,
55
+ width: `${item.width}px`,
56
+ height: `${item.height}px`
57
+ });
58
+ });
59
+ }
60
+ /**
61
+ * dom元素保持比例
62
+ */
63
+ keepZoom(dom, width = 1920, height = 1080) {
64
+ if (dom) {
65
+ // 去掉相同的dom存储的信息
66
+ this._keepZoomDoms = this._keepZoomDoms.filter(l => l.dom !== dom);
67
+ // 把配置加入到列表中
68
+ this._keepZoomDoms.push({ dom, width, height });
69
+ dom.dataset.a = "这个元素缩放比例由 threeUtils.keepZoom 方法设置";
70
+ this._computerDomZoom();
71
+ }
72
+ }
73
+ workList = [];
74
+ // 时钟对象
75
+ clock = new Clock();
76
+ // 按照任务队列依次执行计划任务 性能优化
77
+ /**
78
+ * @param {() => void} [callback]
79
+ * @param {boolean} [first=true] 需要优先执行
80
+ */
81
+ addWork(work, first = false) {
82
+ // 加入任务队列
83
+ if (work && !this.workList.includes(work)) {
84
+ if (first) {
85
+ this.workList.splice(1, 0, work); // 优先执行的任务回调
86
+ }
87
+ else {
88
+ this.workList.push(work);
89
+ }
90
+ }
91
+ }
92
+ /**
93
+ *判断一个元素是否在页面上
94
+ */
95
+ inDocument(dom) {
96
+ if (dom === null) {
97
+ return false;
98
+ }
99
+ else if (dom.parentNode === null) {
100
+ return false;
101
+ }
102
+ else if (dom.parentNode === document) {
103
+ return true;
104
+ }
105
+ else {
106
+ return this.inDocument(dom.parentNode);
107
+ }
108
+ }
109
+ // 获取中心点
110
+ getCenter(object3d) {
111
+ if (object3d.isObject3D) {
112
+ this._box3.setFromObject(object3d);
113
+ this._box3.getCenter(this._center);
114
+ }
115
+ else if (object3d.isBufferGeometry) {
116
+ object3d.computeBoundingBox();
117
+ object3d.boundingBox.getCenter(this._center);
118
+ }
119
+ return this._center.clone();
120
+ }
121
+ // 获取模型大小
122
+ getSize(object3d) {
123
+ if (object3d.isObject3D) {
124
+ this._box3.setFromObject(object3d);
125
+ this._box3.getSize(this._size);
126
+ }
127
+ else if (object3d.isBufferGeometry) {
128
+ object3d.computeBoundingBox();
129
+ object3d.boundingBox.getSize(this._size);
130
+ }
131
+ return this._size.clone();
132
+ }
133
+ // 模型对齐底面
134
+ alignBottom(object3d, y = 0) {
135
+ if (object3d.isObject3D) {
136
+ this._box3.setFromObject(object3d);
137
+ this._box3.getCenter(this._center);
138
+ this._box3.getSize(this._size);
139
+ object3d.position.y -= (this._center.y - (this._size.y * 0.5));
140
+ object3d.position.y += y;
141
+ object3d.updateMatrixWorld(true);
142
+ }
143
+ else if (object3d.isBufferGeometry) {
144
+ object3d.computeBoundingBox();
145
+ object3d.translate(0, -object3d.boundingBox.min.y + y, 0);
146
+ }
147
+ }
148
+ // 居中对象
149
+ centerObject3D(object3d) {
150
+ if (object3d.isObject3D) {
151
+ this._box3.setFromObject(object3d);
152
+ this._box3.getCenter(this._center);
153
+ object3d.position.sub(this._center);
154
+ object3d.updateMatrixWorld(true);
155
+ }
156
+ else if (object3d.isBufferGeometry) {
157
+ object3d.center();
158
+ }
159
+ }
160
+ //居中对象
161
+ center(object3d) {
162
+ this.centerObject3D(object3d);
163
+ }
164
+ // 使用指定的维度(xyz)计算, 缩放至指定大小;
165
+ scaleTo(object3d, size = 1, key = ["x", "y", "z"]) {
166
+ const originSize = this.getSize(object3d);
167
+ const scale = size / Math.max(...key.map(k => originSize[k]));
168
+ if (object3d.isObject3D) {
169
+ object3d.scale.multiplyScalar(scale);
170
+ object3d.updateMatrixWorld(true);
171
+ }
172
+ else if (object3d.isBufferGeometry) {
173
+ object3d.scale(scale, scale, scale);
174
+ }
175
+ }
176
+ // 应用全部变化
177
+ applyAllTranstion(object3d) {
178
+ object3d.updateMatrixWorld(true);
179
+ // 应用全部变换
180
+ object3d.traverse(obj => {
181
+ obj.position.set(0, 0, 0);
182
+ obj.rotation.set(0, 0, 0);
183
+ obj.scale.set(1, 1, 1);
184
+ if (obj.isMesh) {
185
+ obj.geometry.applyMatrix4(obj.matrixWorld);
186
+ }
187
+ });
188
+ }
189
+ // 导出 glb
190
+ exportGLB(input, fileName = "threeUtils.exportGLB") {
191
+ const gltfExporter = new GLTFExporter();
192
+ gltfExporter.parse(input, (result) => {
193
+ if (result instanceof ArrayBuffer) {
194
+ const link = document.createElement('a');
195
+ link.style.display = 'none';
196
+ document.body.appendChild(link); // Firefox workaround, see #6594
197
+ link.href = URL.createObjectURL(new Blob([result], { type: 'application/octet-stream' }));
198
+ link.download = `${fileName}.glb`;
199
+ link.click();
200
+ }
201
+ }, (error) => { }, {
202
+ trs: true,
203
+ onlyVisible: true, // 只导出可见的
204
+ binary: true, // glb
205
+ maxTextureSize: 4096
206
+ });
207
+ }
208
+ //导出usdz
209
+ exportUsdz() {
210
+ }
211
+ // 计算网格的体积
212
+ getVolume(geometry) {
213
+ if (!geometry.index)
214
+ return;
215
+ if (!geometry.isBufferGeometry) {
216
+ console.log("'geometry' must be an indexed or non-indexed buffer geometry");
217
+ return 0;
218
+ }
219
+ const isIndexed = geometry.index !== null;
220
+ const position = geometry.attributes.position;
221
+ let sum = 0;
222
+ const p1 = new Vector3(), p2 = new Vector3(), p3 = new Vector3();
223
+ if (!isIndexed) {
224
+ const faces = position.count / 3;
225
+ for (let i = 0; i < faces; i++) {
226
+ p1.fromBufferAttribute(position, i * 3 + 0);
227
+ p2.fromBufferAttribute(position, i * 3 + 1);
228
+ p3.fromBufferAttribute(position, i * 3 + 2);
229
+ sum += this.signedVolumeOfTriangle(p1, p2, p3);
230
+ }
231
+ }
232
+ else {
233
+ const index = geometry.index;
234
+ const faces = index.count / 3;
235
+ for (let i = 0; i < faces; i++) {
236
+ p1.fromBufferAttribute(position, index.array[i * 3 + 0]);
237
+ p2.fromBufferAttribute(position, index.array[i * 3 + 1]);
238
+ p3.fromBufferAttribute(position, index.array[i * 3 + 2]);
239
+ sum += this.signedVolumeOfTriangle(p1, p2, p3);
240
+ }
241
+ }
242
+ return sum > 0 ? sum : 0;
243
+ }
244
+ signedVolumeOfTriangle(p1, p2, p3) {
245
+ return p1.dot(p2.cross(p3)) / 6.0;
246
+ }
247
+ //清理对象的网格和材质的缓存
248
+ dipose(object3d) {
249
+ object3d.traverse(obj => {
250
+ const mesh = obj;
251
+ if (mesh.isMesh) {
252
+ mesh.geometry.dispose();
253
+ if (mesh.material instanceof Material) {
254
+ mesh.material.dispose();
255
+ }
256
+ else if (mesh.material instanceof Array) {
257
+ mesh.material.map(m => {
258
+ m.dispose();
259
+ });
260
+ }
261
+ }
262
+ });
263
+ }
264
+ }
265
+ const threeUtils = new ThreeUtils();
266
+ export default threeUtils;