@galacean/effects-core 2.0.0-alpha.22 → 2.0.0-alpha.24
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.0.0-alpha.
|
|
6
|
+
* Version: v2.0.0-alpha.24
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -16391,6 +16391,9 @@ exports.ParticleSystem = /*#__PURE__*/ function(Component) {
|
|
|
16391
16391
|
return _this;
|
|
16392
16392
|
}
|
|
16393
16393
|
var _proto = ParticleSystem.prototype;
|
|
16394
|
+
_proto.isFrozen = function isFrozen() {
|
|
16395
|
+
return this.frozen;
|
|
16396
|
+
};
|
|
16394
16397
|
_proto.initEmitterTransform = function initEmitterTransform() {
|
|
16395
16398
|
var position = this.item.transform.position.clone();
|
|
16396
16399
|
var rotation = this.item.transform.rotation.clone();
|
|
@@ -16524,6 +16527,7 @@ exports.ParticleSystem = /*#__PURE__*/ function(Component) {
|
|
|
16524
16527
|
return b.reset();
|
|
16525
16528
|
});
|
|
16526
16529
|
this.frozen = false;
|
|
16530
|
+
this.ended = false;
|
|
16527
16531
|
};
|
|
16528
16532
|
_proto.onUpdate = function onUpdate(delta) {
|
|
16529
16533
|
var _this = this;
|
|
@@ -17307,10 +17311,7 @@ function randomArrItem(arr, keepArr) {
|
|
|
17307
17311
|
*/ var ParticleBehaviourPlayable = /*#__PURE__*/ function(Playable) {
|
|
17308
17312
|
_inherits(ParticleBehaviourPlayable, Playable);
|
|
17309
17313
|
function ParticleBehaviourPlayable() {
|
|
17310
|
-
|
|
17311
|
-
_this = Playable.apply(this, arguments) || this;
|
|
17312
|
-
_this.lastTime = 0;
|
|
17313
|
-
return _this;
|
|
17314
|
+
return Playable.apply(this, arguments);
|
|
17314
17315
|
}
|
|
17315
17316
|
var _proto = ParticleBehaviourPlayable.prototype;
|
|
17316
17317
|
_proto.start = function start(context) {
|
|
@@ -17335,13 +17336,11 @@ function randomArrItem(arr, keepArr) {
|
|
|
17335
17336
|
// particleSystem.setParentTransform(parentItem.transform);
|
|
17336
17337
|
particleSystem.setVisible(true);
|
|
17337
17338
|
var deltaTime = context.deltaTime;
|
|
17338
|
-
|
|
17339
|
-
|
|
17340
|
-
deltaTime = 0;
|
|
17339
|
+
if (this.time < particleSystem.item.duration && particleSystem.isFrozen()) {
|
|
17340
|
+
particleSystem.reset();
|
|
17341
17341
|
}
|
|
17342
17342
|
particleSystem.onUpdate(deltaTime);
|
|
17343
17343
|
}
|
|
17344
|
-
this.lastTime = this.time;
|
|
17345
17344
|
};
|
|
17346
17345
|
return ParticleBehaviourPlayable;
|
|
17347
17346
|
}(Playable);
|
|
@@ -25717,7 +25716,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem, true);
|
|
|
25717
25716
|
registerPlugin("particle", ParticleLoader, exports.VFXItem, true);
|
|
25718
25717
|
registerPlugin("cal", CalculateLoader, exports.VFXItem, true);
|
|
25719
25718
|
registerPlugin("interact", InteractLoader, exports.VFXItem, true);
|
|
25720
|
-
var version = "2.0.0-alpha.
|
|
25719
|
+
var version = "2.0.0-alpha.24";
|
|
25721
25720
|
logger.info("Core version: " + version + ".");
|
|
25722
25721
|
|
|
25723
25722
|
exports.AbstractPlugin = AbstractPlugin;
|