@galacean/effects-threejs 1.2.4 → 1.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: v1.2.4
6
+ * Version: v1.2.5
7
7
  */
8
8
 
9
9
  'use strict';
@@ -13168,9 +13168,13 @@ var InteractVFXItem = /** @class */ (function (_super) {
13168
13168
  this.handleDragMove(this.dragEvent, this.bouncingArg);
13169
13169
  }
13170
13170
  };
13171
- InteractVFXItem.prototype.onItemRemoved = function (composition) {
13171
+ InteractVFXItem.prototype.onEnd = function () {
13172
+ if (this.composition) {
13173
+ this.composition.removeInteractiveItem(this, this.ui.options.type);
13174
+ }
13175
+ };
13176
+ InteractVFXItem.prototype.onItemRemoved = function () {
13172
13177
  var _a;
13173
- composition.removeInteractiveItem(this, this.ui.options.type);
13174
13178
  this.clickable = false;
13175
13179
  (_a = this.previewContent) === null || _a === void 0 ? void 0 : _a.mesh.dispose();
13176
13180
  this.endDragTarget();
@@ -26942,7 +26946,7 @@ Geometry.create = function (engine, options) {
26942
26946
  Mesh.create = function (engine, props) {
26943
26947
  return new ThreeMesh(engine, props);
26944
26948
  };
26945
- var version = "1.2.4";
26949
+ var version = "1.2.5";
26946
26950
  logger.info('THREEJS plugin version: ' + version);
26947
26951
 
26948
26952
  exports.AbstractPlugin = AbstractPlugin;