@galacean/effects-threejs 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 +4 -32
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +4 -32
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Description: Galacean Effects runtime threejs plugin 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';
|
|
@@ -22564,34 +22564,6 @@ function getStandardInteractContent(ui) {
|
|
|
22564
22564
|
if (item.type === ItemType.camera && item.content.positionOverLifetime && Object.keys(item.content.positionOverLifetime).length !== 0) {
|
|
22565
22565
|
item.content.positionOverLifetime.asMovement = true;
|
|
22566
22566
|
}
|
|
22567
|
-
// 动画数据转化 TODO: 动画数据移到 TimelineComponentData
|
|
22568
|
-
item.content.tracks = [];
|
|
22569
|
-
var tracks = item.content.tracks;
|
|
22570
|
-
if (item.type !== ItemType.particle) {
|
|
22571
|
-
tracks.push({
|
|
22572
|
-
clips: [
|
|
22573
|
-
{
|
|
22574
|
-
id: generateGUID(),
|
|
22575
|
-
dataType: "TransformPlayableAsset",
|
|
22576
|
-
sizeOverLifetime: item.content.sizeOverLifetime,
|
|
22577
|
-
rotationOverLifetime: item.content.rotationOverLifetime,
|
|
22578
|
-
positionOverLifetime: item.content.positionOverLifetime
|
|
22579
|
-
}
|
|
22580
|
-
]
|
|
22581
|
-
});
|
|
22582
|
-
}
|
|
22583
|
-
if (item.type === ItemType.sprite) {
|
|
22584
|
-
tracks.push({
|
|
22585
|
-
clips: [
|
|
22586
|
-
{
|
|
22587
|
-
id: generateGUID(),
|
|
22588
|
-
dataType: "SpriteColorPlayableAsset",
|
|
22589
|
-
colorOverLifetime: item.content.colorOverLifetime,
|
|
22590
|
-
startColor: item.content.options.startColor
|
|
22591
|
-
}
|
|
22592
|
-
]
|
|
22593
|
-
});
|
|
22594
|
-
}
|
|
22595
22567
|
// 修正老 json 的 item.pluginName
|
|
22596
22568
|
if (item.pn !== undefined) {
|
|
22597
22569
|
var pn = item.pn;
|
|
@@ -22780,7 +22752,7 @@ function convertTimelineAsset(composition, guidToItemMap, jsonScene) {
|
|
|
22780
22752
|
});
|
|
22781
22753
|
trackDatas.push(newTrackData);
|
|
22782
22754
|
}
|
|
22783
|
-
if (item.type === ItemType.sprite) {
|
|
22755
|
+
if (item.type === ItemType.sprite || item.type === ItemType.text) {
|
|
22784
22756
|
var newSpriteColorPlayableAssetData = {
|
|
22785
22757
|
id: generateGUID(),
|
|
22786
22758
|
dataType: "SpriteColorPlayableAsset",
|
|
@@ -27711,7 +27683,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem, true);
|
|
|
27711
27683
|
registerPlugin("particle", ParticleLoader, exports.VFXItem, true);
|
|
27712
27684
|
registerPlugin("cal", CalculateLoader, exports.VFXItem, true);
|
|
27713
27685
|
registerPlugin("interact", InteractLoader, exports.VFXItem, true);
|
|
27714
|
-
var version$1 = "2.0.
|
|
27686
|
+
var version$1 = "2.0.2";
|
|
27715
27687
|
logger.info("Core version: " + version$1 + ".");
|
|
27716
27688
|
|
|
27717
27689
|
var _obj;
|
|
@@ -29392,7 +29364,7 @@ setMaxSpriteMeshItemCount(8);
|
|
|
29392
29364
|
*/ Mesh.create = function(engine, props) {
|
|
29393
29365
|
return new ThreeMesh(engine, props);
|
|
29394
29366
|
};
|
|
29395
|
-
var version = "2.0.
|
|
29367
|
+
var version = "2.0.2";
|
|
29396
29368
|
logger.info("THREEJS plugin version: " + version + ".");
|
|
29397
29369
|
|
|
29398
29370
|
exports.AbstractPlugin = AbstractPlugin;
|