@galacean/effects-core 2.6.8 → 2.6.9

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 core for the web
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
6
- * Version: v2.6.8
6
+ * Version: v2.6.9
7
7
  */
8
8
 
9
9
  'use strict';
@@ -25013,7 +25013,7 @@ exports.VFXItem = /*#__PURE__*/ function(EffectsObject) {
25013
25013
  };
25014
25014
  _proto.fromData = function fromData(data) {
25015
25015
  EffectsObject.prototype.fromData.call(this, data);
25016
- var id = data.id, name = data.name, delay = data.delay, parentId = data.parentId, endBehavior = data.endBehavior, transform = data.transform, _data_duration = data.duration, duration = _data_duration === void 0 ? 0 : _data_duration;
25016
+ var id = data.id, name = data.name, delay = data.delay, parentId = data.parentId, endBehavior = data.endBehavior, transform = data.transform, _data_duration = data.duration, duration = _data_duration === void 0 ? 0 : _data_duration, _data_visible = data.visible, visible = _data_visible === void 0 ? true : _data_visible;
25017
25017
  this.props = data;
25018
25018
  this.type = data.type;
25019
25019
  this.id = id.toString(); // TODO 老数据 id 是 number,需要转换
@@ -25052,6 +25052,7 @@ exports.VFXItem = /*#__PURE__*/ function(EffectsObject) {
25052
25052
  if (VFXItem.isComposition(this)) {
25053
25053
  this.instantiatePreComposition();
25054
25054
  }
25055
+ this.setVisible(visible);
25055
25056
  };
25056
25057
  _proto.toData = function toData() {
25057
25058
  var _this_parent;
@@ -31147,7 +31148,7 @@ function getStandardSpriteContent(sprite, transform) {
31147
31148
  return ret;
31148
31149
  }
31149
31150
 
31150
- var version$1 = "2.6.8";
31151
+ var version$1 = "2.6.9";
31151
31152
  var v0 = /^(\d+)\.(\d+)\.(\d+)(-(\w+)\.\d+)?$/;
31152
31153
  var standardVersion = /^(\d+)\.(\d+)$/;
31153
31154
  var reverseParticle = false;
@@ -34401,7 +34402,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem);
34401
34402
  registerPlugin("particle", ParticleLoader, exports.VFXItem);
34402
34403
  registerPlugin("cal", CalculateLoader, exports.VFXItem);
34403
34404
  registerPlugin("interact", InteractLoader, exports.VFXItem);
34404
- var version = "2.6.8";
34405
+ var version = "2.6.9";
34405
34406
  logger.info("Core version: " + version + ".");
34406
34407
 
34407
34408
  exports.AbstractPlugin = AbstractPlugin;