@galacean/effects-threejs 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 +5 -12
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +5 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
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.2
|
|
6
|
+
* Version: v2.2.2
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -16608,17 +16608,10 @@ exports.InteractComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
16608
16608
|
];
|
|
16609
16609
|
};
|
|
16610
16610
|
_proto.onStart = function onStart() {
|
|
16611
|
-
var _this = this;
|
|
16612
|
-
var _this_item_composition;
|
|
16613
16611
|
var options = this.item.props.content.options;
|
|
16614
16612
|
var env = this.item.engine.renderer.env;
|
|
16615
16613
|
var composition = this.item.composition;
|
|
16616
16614
|
var _this_interactData_options = this.interactData.options, type = _this_interactData_options.type, showPreview = _this_interactData_options.showPreview;
|
|
16617
|
-
(_this_item_composition = this.item.composition) == null ? void 0 : _this_item_composition.on("goto", function() {
|
|
16618
|
-
if (_this.item.time > 0) {
|
|
16619
|
-
_this.duringPlay = true;
|
|
16620
|
-
}
|
|
16621
|
-
});
|
|
16622
16615
|
if (type === InteractType.CLICK) {
|
|
16623
16616
|
this.clickable = true;
|
|
16624
16617
|
if (showPreview && env === PLAYER_OPTIONS_ENV_EDITOR) {
|
|
@@ -16659,12 +16652,12 @@ exports.InteractComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
16659
16652
|
};
|
|
16660
16653
|
_proto.onUpdate = function onUpdate(dt) {
|
|
16661
16654
|
var _this_previewContent;
|
|
16655
|
+
this.duringPlay = true;
|
|
16662
16656
|
// trigger messageBegin when item enter
|
|
16663
|
-
if (this.item.time > 0 &&
|
|
16657
|
+
if (this.item.time > 0 && this.item.time - dt / 1000 <= 0) {
|
|
16664
16658
|
var _this_item_composition;
|
|
16665
16659
|
var options = this.item.props.content.options;
|
|
16666
16660
|
(_this_item_composition = this.item.composition) == null ? void 0 : _this_item_composition.addInteractiveItem(this.item, options.type);
|
|
16667
|
-
this.duringPlay = true;
|
|
16668
16661
|
}
|
|
16669
16662
|
(_this_previewContent = this.previewContent) == null ? void 0 : _this_previewContent.updateMesh();
|
|
16670
16663
|
if (!this.dragEvent || !this.bouncingArg) {
|
|
@@ -31373,7 +31366,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem, true);
|
|
|
31373
31366
|
registerPlugin("particle", ParticleLoader, exports.VFXItem, true);
|
|
31374
31367
|
registerPlugin("cal", CalculateLoader, exports.VFXItem, true);
|
|
31375
31368
|
registerPlugin("interact", InteractLoader, exports.VFXItem, true);
|
|
31376
|
-
var version$1 = "2.2.2
|
|
31369
|
+
var version$1 = "2.2.2";
|
|
31377
31370
|
logger.info("Core version: " + version$1 + ".");
|
|
31378
31371
|
|
|
31379
31372
|
var _obj;
|
|
@@ -33006,7 +32999,7 @@ setMaxSpriteMeshItemCount(8);
|
|
|
33006
32999
|
*/ Mesh.create = function(engine, props) {
|
|
33007
33000
|
return new ThreeMesh(engine, props);
|
|
33008
33001
|
};
|
|
33009
|
-
var version = "2.2.2
|
|
33002
|
+
var version = "2.2.2";
|
|
33010
33003
|
logger.info("THREEJS plugin version: " + version + ".");
|
|
33011
33004
|
|
|
33012
33005
|
exports.AbstractPlugin = AbstractPlugin;
|