@galacean/effects-core 2.2.2-alpha.0 → 2.2.2

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: v2.2.2-alpha.0
6
+ * Version: v2.2.2
7
7
  */
8
8
 
9
9
  'use strict';
@@ -16586,17 +16586,10 @@ exports.InteractComponent = /*#__PURE__*/ function(RendererComponent) {
16586
16586
  ];
16587
16587
  };
16588
16588
  _proto.onStart = function onStart() {
16589
- var _this = this;
16590
- var _this_item_composition;
16591
16589
  var options = this.item.props.content.options;
16592
16590
  var env = this.item.engine.renderer.env;
16593
16591
  var composition = this.item.composition;
16594
16592
  var _this_interactData_options = this.interactData.options, type = _this_interactData_options.type, showPreview = _this_interactData_options.showPreview;
16595
- (_this_item_composition = this.item.composition) == null ? void 0 : _this_item_composition.on("goto", function() {
16596
- if (_this.item.time > 0) {
16597
- _this.duringPlay = true;
16598
- }
16599
- });
16600
16593
  if (type === InteractType.CLICK) {
16601
16594
  this.clickable = true;
16602
16595
  if (showPreview && env === PLAYER_OPTIONS_ENV_EDITOR) {
@@ -16637,12 +16630,12 @@ exports.InteractComponent = /*#__PURE__*/ function(RendererComponent) {
16637
16630
  };
16638
16631
  _proto.onUpdate = function onUpdate(dt) {
16639
16632
  var _this_previewContent;
16633
+ this.duringPlay = true;
16640
16634
  // trigger messageBegin when item enter
16641
- if (this.item.time > 0 && !this.duringPlay) {
16635
+ if (this.item.time > 0 && this.item.time - dt / 1000 <= 0) {
16642
16636
  var _this_item_composition;
16643
16637
  var options = this.item.props.content.options;
16644
16638
  (_this_item_composition = this.item.composition) == null ? void 0 : _this_item_composition.addInteractiveItem(this.item, options.type);
16645
- this.duringPlay = true;
16646
16639
  }
16647
16640
  (_this_previewContent = this.previewContent) == null ? void 0 : _this_previewContent.updateMesh();
16648
16641
  if (!this.dragEvent || !this.bouncingArg) {
@@ -31351,7 +31344,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem, true);
31351
31344
  registerPlugin("particle", ParticleLoader, exports.VFXItem, true);
31352
31345
  registerPlugin("cal", CalculateLoader, exports.VFXItem, true);
31353
31346
  registerPlugin("interact", InteractLoader, exports.VFXItem, true);
31354
- var version = "2.2.2-alpha.0";
31347
+ var version = "2.2.2";
31355
31348
  logger.info("Core version: " + version + ".");
31356
31349
 
31357
31350
  exports.AbstractPlugin = AbstractPlugin;