@galacean/effects-core 2.2.4 → 2.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 +4 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -5
- 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.5
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -5765,7 +5765,7 @@ exports.TextureSourceType = void 0;
|
|
|
5765
5765
|
_this.finish(url, xhr.status, xhr.response);
|
|
5766
5766
|
};
|
|
5767
5767
|
var handleLoad = function() {
|
|
5768
|
-
if (xhr.status == 200
|
|
5768
|
+
if (xhr.status == 200) {
|
|
5769
5769
|
_this.finish(url, 200, xhr.response);
|
|
5770
5770
|
} else {
|
|
5771
5771
|
handleError();
|
|
@@ -5791,7 +5791,7 @@ exports.TextureSourceType = void 0;
|
|
|
5791
5791
|
_proto.finish = function finish(url, status, data) {
|
|
5792
5792
|
var callbacks = this.callbacks[url];
|
|
5793
5793
|
delete this.callbacks[url];
|
|
5794
|
-
var args = status == 200
|
|
5794
|
+
var args = status == 200 ? [
|
|
5795
5795
|
data
|
|
5796
5796
|
] : [
|
|
5797
5797
|
status,
|
|
@@ -20748,7 +20748,6 @@ exports.ParticleSystem = /*#__PURE__*/ function(Component) {
|
|
|
20748
20748
|
if (options.removeParticle) {
|
|
20749
20749
|
renderer.removeParticlePoint(pointIndex);
|
|
20750
20750
|
this.clearPointTrail(pointIndex);
|
|
20751
|
-
link.removeNode(node); // TODO: 会多移除一个粒子,为了通过帧对比先保留,等 2.0 合到主分支后移除。
|
|
20752
20751
|
node.content = [
|
|
20753
20752
|
0
|
|
20754
20753
|
];
|
|
@@ -31372,7 +31371,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem, true);
|
|
|
31372
31371
|
registerPlugin("particle", ParticleLoader, exports.VFXItem, true);
|
|
31373
31372
|
registerPlugin("cal", CalculateLoader, exports.VFXItem, true);
|
|
31374
31373
|
registerPlugin("interact", InteractLoader, exports.VFXItem, true);
|
|
31375
|
-
var version = "2.2.
|
|
31374
|
+
var version = "2.2.5";
|
|
31376
31375
|
logger.info("Core version: " + version + ".");
|
|
31377
31376
|
|
|
31378
31377
|
exports.AbstractPlugin = AbstractPlugin;
|