@woosh/meep-engine 2.109.5 → 2.109.6

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
@@ -84987,8 +84987,8 @@ class Deque {
84987
84987
 
84988
84988
  let new_length = length * 2;
84989
84989
 
84990
- // bigger than Integer.MAX_VALUE
84991
84990
  if (new_length > UINT32_MAX) {
84991
+ // clamp to max uint32 value
84992
84992
  new_length = UINT32_MAX;
84993
84993
  }
84994
84994
 
@@ -85018,7 +85018,7 @@ class Deque {
85018
85018
  * @return {boolean}
85019
85019
  */
85020
85020
  isEmpty() {
85021
- return this.size() === 0;
85021
+ return this.#status === STATUS_EMPTY;
85022
85022
  }
85023
85023
 
85024
85024
  clear() {
@@ -85127,9 +85127,10 @@ class Deque {
85127
85127
 
85128
85128
  const data = this.#data;
85129
85129
  const capacity = data.length;
85130
+ const head = this.#head;
85130
85131
 
85131
85132
  for (let i = 0; i < size; i++) {
85132
- const index = (this.#head + i) % capacity;
85133
+ const index = (head + i) % capacity;
85133
85134
 
85134
85135
  const el = data[index];
85135
85136
 
@@ -85227,13 +85228,15 @@ class Deque {
85227
85228
  return undefined;
85228
85229
  }
85229
85230
 
85231
+ const data = this.#data;
85232
+
85230
85233
  /**
85231
85234
  *
85232
85235
  * @type {number}
85233
85236
  */
85234
- const position = (this.#head + index) % this.#data.length;
85237
+ const position = (this.#head + index) % data.length;
85235
85238
 
85236
- return this.#data[position];
85239
+ return data[position];
85237
85240
  }
85238
85241
 
85239
85242
  /**