@onerjs/core 8.25.1 → 8.25.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.
@@ -446,6 +446,16 @@ export declare class ThinParticleSystem extends BaseParticleSystem implements ID
446
446
  /** Force the system to rebuild all gradients that need to be resync */
447
447
  forceRefreshGradients(): void;
448
448
  private _syncRampGradientTexture;
449
+ /**
450
+ * Sets the capacity of the object.
451
+ * @param value - The new capacity to be set.
452
+ */
453
+ set capacity(value: number);
454
+ /**
455
+ * Returns the current capacity of the object.
456
+ * @return {number} The capacity value.
457
+ */
458
+ get capacity(): number;
449
459
  /**
450
460
  * Adds a new ramp gradient used to remap particle colors
451
461
  * @param gradient defines the gradient to use (between 0 and 1)
@@ -983,6 +983,21 @@ export class ThinParticleSystem extends BaseParticleSystem {
983
983
  }
984
984
  this._createRampGradientTexture();
985
985
  }
986
+ /**
987
+ * Sets the capacity of the object.
988
+ * @param value - The new capacity to be set.
989
+ */
990
+ set capacity(value) {
991
+ this._capacity = value;
992
+ this._reset();
993
+ }
994
+ /**
995
+ * Returns the current capacity of the object.
996
+ * @return {number} The capacity value.
997
+ */
998
+ get capacity() {
999
+ return this._capacity;
1000
+ }
986
1001
  /**
987
1002
  * Adds a new ramp gradient used to remap particle colors
988
1003
  * @param gradient defines the gradient to use (between 0 and 1)