@galacean/effects-core 1.2.4 → 1.2.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/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * Description: Galacean Effects runtime core for the web
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
6
- * Version: v1.2.4
6
+ * Version: v1.2.6
7
7
  */
8
8
 
9
9
  'use strict';
@@ -13146,9 +13146,13 @@ var InteractVFXItem = /** @class */ (function (_super) {
13146
13146
  this.handleDragMove(this.dragEvent, this.bouncingArg);
13147
13147
  }
13148
13148
  };
13149
- InteractVFXItem.prototype.onItemRemoved = function (composition) {
13149
+ InteractVFXItem.prototype.onEnd = function () {
13150
+ if (this.composition) {
13151
+ this.composition.removeInteractiveItem(this, this.ui.options.type);
13152
+ }
13153
+ };
13154
+ InteractVFXItem.prototype.onItemRemoved = function () {
13150
13155
  var _a;
13151
- composition.removeInteractiveItem(this, this.ui.options.type);
13152
13156
  this.clickable = false;
13153
13157
  (_a = this.previewContent) === null || _a === void 0 ? void 0 : _a.mesh.dispose();
13154
13158
  this.endDragTarget();
@@ -14940,7 +14944,6 @@ var SpriteItem = /** @class */ (function (_super) {
14940
14944
  ret.texOffset = [0, 0, 1, 1];
14941
14945
  }
14942
14946
  ret.visible = this.vfxItem.contentVisible;
14943
- // 图层元素作为父节点时,除了k的大小变换,自身的尺寸也需要传递给子元素,子元素可以通过startSize读取
14944
14947
  ret.startSize = this.startSize;
14945
14948
  return ret;
14946
14949
  };
@@ -15038,7 +15041,9 @@ var SpriteVFXItem = /** @class */ (function (_super) {
15038
15041
  };
15039
15042
  SpriteVFXItem.prototype.doCreateContent = function (composition) {
15040
15043
  var emptyTexture = composition.getRendererOptions().emptyTexture;
15041
- return new SpriteItem(this.sprite, { emptyTexture: emptyTexture }, this);
15044
+ var content = new SpriteItem(this.sprite, { emptyTexture: emptyTexture }, this);
15045
+ content.getRenderData(0, true);
15046
+ return content;
15042
15047
  };
15043
15048
  SpriteVFXItem.prototype.createWireframeMesh = function (item, color) {
15044
15049
  var spMesh = new SpriteMesh(this.composition.getEngine(), __assign$1({ wireframe: true }, item.renderInfo), this.composition);