@galacean/effects-core 2.0.0 → 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 +6 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -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';
|
|
@@ -14074,6 +14074,9 @@ exports.SpriteComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
14074
14074
|
};
|
|
14075
14075
|
_proto.start = function start() {
|
|
14076
14076
|
this.item.getHitTestParams = this.getHitTestParams;
|
|
14077
|
+
if (this.item.endBehavior === EndBehavior.restart) {
|
|
14078
|
+
this.frameAnimationLoop = true;
|
|
14079
|
+
}
|
|
14077
14080
|
};
|
|
14078
14081
|
_proto.update = function update(dt) {
|
|
14079
14082
|
this.frameAnimationTime += dt / 1000;
|
|
@@ -22539,34 +22542,6 @@ function getStandardInteractContent(ui) {
|
|
|
22539
22542
|
if (item.type === ItemType.camera && item.content.positionOverLifetime && Object.keys(item.content.positionOverLifetime).length !== 0) {
|
|
22540
22543
|
item.content.positionOverLifetime.asMovement = true;
|
|
22541
22544
|
}
|
|
22542
|
-
// 动画数据转化 TODO: 动画数据移到 TimelineComponentData
|
|
22543
|
-
item.content.tracks = [];
|
|
22544
|
-
var tracks = item.content.tracks;
|
|
22545
|
-
if (item.type !== ItemType.particle) {
|
|
22546
|
-
tracks.push({
|
|
22547
|
-
clips: [
|
|
22548
|
-
{
|
|
22549
|
-
id: generateGUID(),
|
|
22550
|
-
dataType: "TransformPlayableAsset",
|
|
22551
|
-
sizeOverLifetime: item.content.sizeOverLifetime,
|
|
22552
|
-
rotationOverLifetime: item.content.rotationOverLifetime,
|
|
22553
|
-
positionOverLifetime: item.content.positionOverLifetime
|
|
22554
|
-
}
|
|
22555
|
-
]
|
|
22556
|
-
});
|
|
22557
|
-
}
|
|
22558
|
-
if (item.type === ItemType.sprite) {
|
|
22559
|
-
tracks.push({
|
|
22560
|
-
clips: [
|
|
22561
|
-
{
|
|
22562
|
-
id: generateGUID(),
|
|
22563
|
-
dataType: "SpriteColorPlayableAsset",
|
|
22564
|
-
colorOverLifetime: item.content.colorOverLifetime,
|
|
22565
|
-
startColor: item.content.options.startColor
|
|
22566
|
-
}
|
|
22567
|
-
]
|
|
22568
|
-
});
|
|
22569
|
-
}
|
|
22570
22545
|
// 修正老 json 的 item.pluginName
|
|
22571
22546
|
if (item.pn !== undefined) {
|
|
22572
22547
|
var pn = item.pn;
|
|
@@ -22755,7 +22730,7 @@ function convertTimelineAsset(composition, guidToItemMap, jsonScene) {
|
|
|
22755
22730
|
});
|
|
22756
22731
|
trackDatas.push(newTrackData);
|
|
22757
22732
|
}
|
|
22758
|
-
if (item.type === ItemType.sprite) {
|
|
22733
|
+
if (item.type === ItemType.sprite || item.type === ItemType.text) {
|
|
22759
22734
|
var newSpriteColorPlayableAssetData = {
|
|
22760
22735
|
id: generateGUID(),
|
|
22761
22736
|
dataType: "SpriteColorPlayableAsset",
|
|
@@ -27686,7 +27661,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem, true);
|
|
|
27686
27661
|
registerPlugin("particle", ParticleLoader, exports.VFXItem, true);
|
|
27687
27662
|
registerPlugin("cal", CalculateLoader, exports.VFXItem, true);
|
|
27688
27663
|
registerPlugin("interact", InteractLoader, exports.VFXItem, true);
|
|
27689
|
-
var version = "2.0.
|
|
27664
|
+
var version = "2.0.2";
|
|
27690
27665
|
logger.info("Core version: " + version + ".");
|
|
27691
27666
|
|
|
27692
27667
|
exports.AbstractPlugin = AbstractPlugin;
|