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