@galacean/effects-core 2.0.0-alpha.19 → 2.0.0-alpha.20
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 +3 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -12
- 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.0.0-alpha.
|
|
6
|
+
* Version: v2.0.0-alpha.20
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -24274,7 +24274,6 @@ var listOrder = 0;
|
|
|
24274
24274
|
});
|
|
24275
24275
|
};
|
|
24276
24276
|
_proto.assembleItems = function assembleItems(composition) {
|
|
24277
|
-
var _this = this;
|
|
24278
24277
|
var items = [];
|
|
24279
24278
|
this.mask++;
|
|
24280
24279
|
var componentMap = {};
|
|
@@ -24289,19 +24288,14 @@ var listOrder = 0;
|
|
|
24289
24288
|
var sourceItemData = this.engine.jsonSceneData[itemDataPath.id];
|
|
24290
24289
|
var itemProps = sourceItemData;
|
|
24291
24290
|
if (passRenderLevel(sourceItemData.renderLevel, this.renderLevel)) {
|
|
24291
|
+
itemProps.listIndex = listOrder++;
|
|
24292
24292
|
if (itemProps.type === ItemType.sprite || itemProps.type === ItemType.particle) {
|
|
24293
24293
|
for(var _iterator2 = _create_for_of_iterator_helper_loose(itemProps.components), _step2; !(_step2 = _iterator2()).done;){
|
|
24294
24294
|
var componentPath = _step2.value;
|
|
24295
24295
|
var componentData = componentMap[componentPath.id];
|
|
24296
24296
|
this.preProcessItemContent(componentData);
|
|
24297
24297
|
}
|
|
24298
|
-
} else {
|
|
24299
|
-
var renderContent = itemProps.content;
|
|
24300
|
-
if (renderContent) {
|
|
24301
|
-
this.preProcessItemContent(renderContent);
|
|
24302
|
-
}
|
|
24303
24298
|
}
|
|
24304
|
-
itemProps.listIndex = listOrder++;
|
|
24305
24299
|
// 处理预合成的渲染顺序
|
|
24306
24300
|
if (itemProps.type === ItemType.composition) {
|
|
24307
24301
|
var refId = sourceItemData.content.options.refId;
|
|
@@ -24312,9 +24306,6 @@ var listOrder = 0;
|
|
|
24312
24306
|
if (!this.refCompositionProps.has(refId)) {
|
|
24313
24307
|
this.refCompositionProps.set(refId, ref);
|
|
24314
24308
|
}
|
|
24315
|
-
ref.items.forEach(function(item) {
|
|
24316
|
-
_this.processMask(item.content);
|
|
24317
|
-
});
|
|
24318
24309
|
itemProps.items = ref.items;
|
|
24319
24310
|
}
|
|
24320
24311
|
items.push(itemProps);
|
|
@@ -25615,7 +25606,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem, true);
|
|
|
25615
25606
|
registerPlugin("particle", ParticleLoader, exports.VFXItem, true);
|
|
25616
25607
|
registerPlugin("cal", CalculateLoader, exports.VFXItem, true);
|
|
25617
25608
|
registerPlugin("interact", InteractLoader, exports.VFXItem, true);
|
|
25618
|
-
var version = "2.0.0-alpha.
|
|
25609
|
+
var version = "2.0.0-alpha.20";
|
|
25619
25610
|
logger.info("Core version: " + version + ".");
|
|
25620
25611
|
|
|
25621
25612
|
exports.AbstractPlugin = AbstractPlugin;
|