@galacean/effects-threejs 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 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.0
6
+ * Version: v2.0.2
7
7
  */
8
8
 
9
9
  'use strict';
@@ -14096,6 +14096,9 @@ exports.SpriteComponent = /*#__PURE__*/ function(RendererComponent) {
14096
14096
  };
14097
14097
  _proto.start = function start() {
14098
14098
  this.item.getHitTestParams = this.getHitTestParams;
14099
+ if (this.item.endBehavior === EndBehavior.restart) {
14100
+ this.frameAnimationLoop = true;
14101
+ }
14099
14102
  };
14100
14103
  _proto.update = function update(dt) {
14101
14104
  this.frameAnimationTime += dt / 1000;
@@ -22561,34 +22564,6 @@ function getStandardInteractContent(ui) {
22561
22564
  if (item.type === ItemType.camera && item.content.positionOverLifetime && Object.keys(item.content.positionOverLifetime).length !== 0) {
22562
22565
  item.content.positionOverLifetime.asMovement = true;
22563
22566
  }
22564
- // 动画数据转化 TODO: 动画数据移到 TimelineComponentData
22565
- item.content.tracks = [];
22566
- var tracks = item.content.tracks;
22567
- if (item.type !== ItemType.particle) {
22568
- tracks.push({
22569
- clips: [
22570
- {
22571
- id: generateGUID(),
22572
- dataType: "TransformPlayableAsset",
22573
- sizeOverLifetime: item.content.sizeOverLifetime,
22574
- rotationOverLifetime: item.content.rotationOverLifetime,
22575
- positionOverLifetime: item.content.positionOverLifetime
22576
- }
22577
- ]
22578
- });
22579
- }
22580
- if (item.type === ItemType.sprite) {
22581
- tracks.push({
22582
- clips: [
22583
- {
22584
- id: generateGUID(),
22585
- dataType: "SpriteColorPlayableAsset",
22586
- colorOverLifetime: item.content.colorOverLifetime,
22587
- startColor: item.content.options.startColor
22588
- }
22589
- ]
22590
- });
22591
- }
22592
22567
  // 修正老 json 的 item.pluginName
22593
22568
  if (item.pn !== undefined) {
22594
22569
  var pn = item.pn;
@@ -22777,7 +22752,7 @@ function convertTimelineAsset(composition, guidToItemMap, jsonScene) {
22777
22752
  });
22778
22753
  trackDatas.push(newTrackData);
22779
22754
  }
22780
- if (item.type === ItemType.sprite) {
22755
+ if (item.type === ItemType.sprite || item.type === ItemType.text) {
22781
22756
  var newSpriteColorPlayableAssetData = {
22782
22757
  id: generateGUID(),
22783
22758
  dataType: "SpriteColorPlayableAsset",
@@ -27708,7 +27683,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem, true);
27708
27683
  registerPlugin("particle", ParticleLoader, exports.VFXItem, true);
27709
27684
  registerPlugin("cal", CalculateLoader, exports.VFXItem, true);
27710
27685
  registerPlugin("interact", InteractLoader, exports.VFXItem, true);
27711
- var version$1 = "2.0.0";
27686
+ var version$1 = "2.0.2";
27712
27687
  logger.info("Core version: " + version$1 + ".");
27713
27688
 
27714
27689
  var _obj;
@@ -29389,7 +29364,7 @@ setMaxSpriteMeshItemCount(8);
29389
29364
  */ Mesh.create = function(engine, props) {
29390
29365
  return new ThreeMesh(engine, props);
29391
29366
  };
29392
- var version = "2.0.0";
29367
+ var version = "2.0.2";
29393
29368
  logger.info("THREEJS plugin version: " + version + ".");
29394
29369
 
29395
29370
  exports.AbstractPlugin = AbstractPlugin;