@galacean/effects-core 2.0.1 → 2.0.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 +3 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -31
- 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.
|
|
6
|
+
* Version: v2.0.2
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -22542,34 +22542,6 @@ function getStandardInteractContent(ui) {
|
|
|
22542
22542
|
if (item.type === ItemType.camera && item.content.positionOverLifetime && Object.keys(item.content.positionOverLifetime).length !== 0) {
|
|
22543
22543
|
item.content.positionOverLifetime.asMovement = true;
|
|
22544
22544
|
}
|
|
22545
|
-
// 动画数据转化 TODO: 动画数据移到 TimelineComponentData
|
|
22546
|
-
item.content.tracks = [];
|
|
22547
|
-
var tracks = item.content.tracks;
|
|
22548
|
-
if (item.type !== ItemType.particle) {
|
|
22549
|
-
tracks.push({
|
|
22550
|
-
clips: [
|
|
22551
|
-
{
|
|
22552
|
-
id: generateGUID(),
|
|
22553
|
-
dataType: "TransformPlayableAsset",
|
|
22554
|
-
sizeOverLifetime: item.content.sizeOverLifetime,
|
|
22555
|
-
rotationOverLifetime: item.content.rotationOverLifetime,
|
|
22556
|
-
positionOverLifetime: item.content.positionOverLifetime
|
|
22557
|
-
}
|
|
22558
|
-
]
|
|
22559
|
-
});
|
|
22560
|
-
}
|
|
22561
|
-
if (item.type === ItemType.sprite) {
|
|
22562
|
-
tracks.push({
|
|
22563
|
-
clips: [
|
|
22564
|
-
{
|
|
22565
|
-
id: generateGUID(),
|
|
22566
|
-
dataType: "SpriteColorPlayableAsset",
|
|
22567
|
-
colorOverLifetime: item.content.colorOverLifetime,
|
|
22568
|
-
startColor: item.content.options.startColor
|
|
22569
|
-
}
|
|
22570
|
-
]
|
|
22571
|
-
});
|
|
22572
|
-
}
|
|
22573
22545
|
// 修正老 json 的 item.pluginName
|
|
22574
22546
|
if (item.pn !== undefined) {
|
|
22575
22547
|
var pn = item.pn;
|
|
@@ -22758,7 +22730,7 @@ function convertTimelineAsset(composition, guidToItemMap, jsonScene) {
|
|
|
22758
22730
|
});
|
|
22759
22731
|
trackDatas.push(newTrackData);
|
|
22760
22732
|
}
|
|
22761
|
-
if (item.type === ItemType.sprite) {
|
|
22733
|
+
if (item.type === ItemType.sprite || item.type === ItemType.text) {
|
|
22762
22734
|
var newSpriteColorPlayableAssetData = {
|
|
22763
22735
|
id: generateGUID(),
|
|
22764
22736
|
dataType: "SpriteColorPlayableAsset",
|
|
@@ -27689,7 +27661,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem, true);
|
|
|
27689
27661
|
registerPlugin("particle", ParticleLoader, exports.VFXItem, true);
|
|
27690
27662
|
registerPlugin("cal", CalculateLoader, exports.VFXItem, true);
|
|
27691
27663
|
registerPlugin("interact", InteractLoader, exports.VFXItem, true);
|
|
27692
|
-
var version = "2.0.
|
|
27664
|
+
var version = "2.0.2";
|
|
27693
27665
|
logger.info("Core version: " + version + ".");
|
|
27694
27666
|
|
|
27695
27667
|
exports.AbstractPlugin = AbstractPlugin;
|