@galacean/effects-threejs 2.2.3 → 2.2.5

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/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * Description: Galacean Effects runtime threejs plugin for the web
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
6
- * Version: v2.2.3
6
+ * Version: v2.2.5
7
7
  */
8
8
 
9
9
  'use strict';
@@ -5787,7 +5787,7 @@ exports.TextureSourceType = void 0;
5787
5787
  _this.finish(url, xhr.status, xhr.response);
5788
5788
  };
5789
5789
  var handleLoad = function() {
5790
- if (xhr.status == 200 || xhr.status == 0) {
5790
+ if (xhr.status == 200) {
5791
5791
  _this.finish(url, 200, xhr.response);
5792
5792
  } else {
5793
5793
  handleError();
@@ -5813,7 +5813,7 @@ exports.TextureSourceType = void 0;
5813
5813
  _proto.finish = function finish(url, status, data) {
5814
5814
  var callbacks = this.callbacks[url];
5815
5815
  delete this.callbacks[url];
5816
- var args = status == 200 || status == 0 ? [
5816
+ var args = status == 200 ? [
5817
5817
  data
5818
5818
  ] : [
5819
5819
  status,
@@ -20770,7 +20770,6 @@ exports.ParticleSystem = /*#__PURE__*/ function(Component) {
20770
20770
  if (options.removeParticle) {
20771
20771
  renderer.removeParticlePoint(pointIndex);
20772
20772
  this.clearPointTrail(pointIndex);
20773
- link.removeNode(node); // TODO: 会多移除一个粒子,为了通过帧对比先保留,等 2.0 合到主分支后移除。
20774
20773
  node.content = [
20775
20774
  0
20776
20775
  ];
@@ -25254,6 +25253,7 @@ var TextComponentBase = /*#__PURE__*/ function() {
25254
25253
  wrapT: glContext.CLAMP_TO_EDGE
25255
25254
  });
25256
25255
  this.renderer.texture = texture;
25256
+ this.material.setTexture("_MainTex", texture);
25257
25257
  this.isDirty = false;
25258
25258
  };
25259
25259
  _proto.getFontDesc = function getFontDesc() {
@@ -31393,7 +31393,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem, true);
31393
31393
  registerPlugin("particle", ParticleLoader, exports.VFXItem, true);
31394
31394
  registerPlugin("cal", CalculateLoader, exports.VFXItem, true);
31395
31395
  registerPlugin("interact", InteractLoader, exports.VFXItem, true);
31396
- var version$1 = "2.2.3";
31396
+ var version$1 = "2.2.5";
31397
31397
  logger.info("Core version: " + version$1 + ".");
31398
31398
 
31399
31399
  var _obj;
@@ -33026,7 +33026,7 @@ setMaxSpriteMeshItemCount(8);
33026
33026
  */ Mesh.create = function(engine, props) {
33027
33027
  return new ThreeMesh(engine, props);
33028
33028
  };
33029
- var version = "2.2.3";
33029
+ var version = "2.2.5";
33030
33030
  logger.info("THREEJS plugin version: " + version + ".");
33031
33031
 
33032
33032
  exports.AbstractPlugin = AbstractPlugin;