@woosh/meep-engine 2.99.0 → 2.99.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/build/meep.cjs CHANGED
@@ -1150,6 +1150,7 @@ class Signal {
1150
1150
  * Please note that this will remove even all handlers, irrespective of where they were added from. If another script is attaching to the same signal, using this method will potentially break that code.
1151
1151
  * For most use cases, prefer to use {@link remove} method instead, or make use of {@link SignalBinding} if you need to keep track of multiple handlers
1152
1152
  * NOTE: Consider this method to be unsafe, only use it when you understand the implications
1153
+ * @deprecated
1153
1154
  */
1154
1155
  removeAll() {
1155
1156
  const handlers = this.handlers;
@@ -61691,6 +61692,17 @@ class List {
61691
61692
  return new List(this.data);
61692
61693
  }
61693
61694
 
61695
+ /**
61696
+ * Returns a shallow copy array with elements in range from start to end (end not included)
61697
+ * Same as {@link Array.prototype.slice}
61698
+ * @param {number} [start]
61699
+ * @param {number} [end]
61700
+ * @return {T[]}
61701
+ */
61702
+ slice(start, end) {
61703
+ return this.data.slice(start, end);
61704
+ }
61705
+
61694
61706
  /**
61695
61707
  *
61696
61708
  * @param {function(element:T):boolean} condition
@@ -97291,6 +97303,7 @@ ObjectPoolFactory.prototype.release = function (object) {
97291
97303
  };
97292
97304
 
97293
97305
  /**
97306
+ * Will invoke A.equals(B) on members if such exists
97294
97307
  * @template T,R
97295
97308
  * @param {T[]} first
97296
97309
  * @param {R[]} second
@@ -97318,16 +97331,16 @@ function isArrayEqual(first, second) {
97318
97331
 
97319
97332
 
97320
97333
  if (a === undefined) {
97321
- //a is undefined, and B is something else
97334
+ // A is undefined, and B is something else
97322
97335
  return false;
97323
97336
  }
97324
97337
 
97325
97338
  if (a === null) {
97326
- //a is null and B is something else
97339
+ // A is null and B is something else
97327
97340
  return false;
97328
97341
  }
97329
97342
 
97330
- //try "equals" method
97343
+ // try "equals" method
97331
97344
  if (typeof a.equals === "function") {
97332
97345
 
97333
97346
  if (!a.equals(b)) {