three-base 1.0.78 → 1.0.79

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.
@@ -358,5 +358,6 @@ export default class ExtrudeMesh extends Mesh {
358
358
  geometry.computeVertexNormals();
359
359
  this.geometry.dispose();
360
360
  this.geometry = geometry;
361
+ this.dispatchEvent({ type: "loaded" });
361
362
  }
362
363
  }
@@ -563,6 +563,8 @@ export default class ExtrudeMesh extends Mesh<BufferGeometry, Material> {
563
563
 
564
564
  this.geometry.dispose();
565
565
  this.geometry = geometry;
566
+
567
+ this.dispatchEvent({ type: "loaded" });
566
568
  }
567
569
 
568
570
 
@@ -62,5 +62,6 @@ export default class PlaneWithHtml extends Mesh {
62
62
  resolve();
63
63
  });
64
64
  });
65
+ this.dispatchEvent({ type: "loaded" });
65
66
  }
66
67
  }
@@ -77,7 +77,7 @@ export default class PlaneWithHtml extends Mesh {
77
77
 
78
78
  });
79
79
 
80
-
80
+ this.dispatchEvent({ type: "loaded" });
81
81
  }
82
82
 
83
83
 
@@ -54,6 +54,7 @@ export default class Text3D extends Mesh {
54
54
  bevelSegments: this._config.bevelSegments, //斜角分段
55
55
  });
56
56
  this.geometry.center();
57
+ this.dispatchEvent({ type: "loaded" });
57
58
  }
58
59
  });
59
60
  }
@@ -81,6 +81,7 @@ export default class Text3D extends Mesh {
81
81
  bevelSegments: this._config.bevelSegments,//斜角分段
82
82
  });
83
83
  this.geometry.center();
84
+ this.dispatchEvent({ type: "loaded" });
84
85
  }
85
86
  })
86
87
 
@@ -99,5 +99,6 @@ export default class PlaneModal1 extends Mesh {
99
99
  textPos.y += size;
100
100
  });
101
101
  this.texture.needsUpdate = true;
102
+ this.dispatchEvent({ type: "loaded" });
102
103
  }
103
104
  }
@@ -143,6 +143,7 @@ export default class PlaneModal1 extends Mesh {
143
143
 
144
144
  this.texture.needsUpdate = true;
145
145
 
146
+ this.dispatchEvent({ type: "loaded" });
146
147
  }
147
148
 
148
149
 
@@ -95,6 +95,7 @@ export default class SpritModal1 extends Sprite {
95
95
  textPos.y += size;
96
96
  });
97
97
  this.texture.needsUpdate = true;
98
+ this.dispatchEvent({ type: "loaded" });
98
99
  }
99
100
  //鼠标拾取计算
100
101
  raycast(raycaster, intersects) {
@@ -140,6 +140,7 @@ export default class SpritModal1 extends Sprite {
140
140
 
141
141
  this.texture.needsUpdate = true;
142
142
 
143
+ this.dispatchEvent({ type: "loaded" });
143
144
  }
144
145
 
145
146
  //鼠标拾取计算
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "three-base",
3
- "version": "1.0.78",
3
+ "version": "1.0.79",
4
4
  "description": "three 3d three-base",
5
5
  "repository": {
6
6
  "type": "git",