@galacean/effects-core 0.0.1-alpha.2 → 1.0.0

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.mjs 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: v0.0.1-alpha.2
6
+ * Version: v1.0.0
7
7
  */
8
8
 
9
9
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -15256,7 +15256,7 @@ var SpriteGroup = /** @class */ (function () {
15256
15256
  for (var i = startIndex; i <= endIndex; i++) {
15257
15257
  var item = items[i];
15258
15258
  // 不可见的元素跳过 不参与合并
15259
- if (!init && (!item.contentVisible || item.lifetime < 0)) {
15259
+ if (!init && (!item.started || item.lifetime < 0)) {
15260
15260
  continue;
15261
15261
  }
15262
15262
  if (!isSprite(item)) {
@@ -19461,6 +19461,10 @@ var CalculateVFXItem = /** @class */ (function (_super) {
19461
19461
  CalculateVFXItem.prototype.setScale = function (x, y, z) {
19462
19462
  this.content.startSize = [x, y, z];
19463
19463
  };
19464
+ CalculateVFXItem.prototype.scale = function (x, y, z) {
19465
+ var startSize = this.content.startSize.slice();
19466
+ this.content.startSize = [x * startSize[0], y * startSize[1], z * startSize[2]];
19467
+ };
19464
19468
  CalculateVFXItem.prototype.getHitTestParams = function (force) {
19465
19469
  };
19466
19470
  CalculateVFXItem.prototype.getRenderData = function () {
@@ -25201,12 +25205,6 @@ var Composition = /** @class */ (function () {
25201
25205
  enumerable: false,
25202
25206
  configurable: true
25203
25207
  });
25204
- /**
25205
- * 获取合成的时长
25206
- */
25207
- Composition.prototype.getDuration = function () {
25208
- return this.content.duration;
25209
- };
25210
25208
  Object.defineProperty(Composition.prototype, "isDestroyed", {
25211
25209
  /**
25212
25210
  * 获取销毁状态
@@ -25217,6 +25215,12 @@ var Composition = /** @class */ (function () {
25217
25215
  enumerable: false,
25218
25216
  configurable: true
25219
25217
  });
25218
+ /**
25219
+ * 获取合成的时长
25220
+ */
25221
+ Composition.prototype.getDuration = function () {
25222
+ return this.content.duration;
25223
+ };
25220
25224
  /**
25221
25225
  * 重新开始合成
25222
25226
  */