@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.
@@ -84985,8 +84985,8 @@ class Deque {
84985
84985
 
84986
84986
  let new_length = length * 2;
84987
84987
 
84988
- // bigger than Integer.MAX_VALUE
84989
84988
  if (new_length > UINT32_MAX) {
84989
+ // clamp to max uint32 value
84990
84990
  new_length = UINT32_MAX;
84991
84991
  }
84992
84992
 
@@ -85016,7 +85016,7 @@ class Deque {
85016
85016
  * @return {boolean}
85017
85017
  */
85018
85018
  isEmpty() {
85019
- return this.size() === 0;
85019
+ return this.#status === STATUS_EMPTY;
85020
85020
  }
85021
85021
 
85022
85022
  clear() {
@@ -85125,9 +85125,10 @@ class Deque {
85125
85125
 
85126
85126
  const data = this.#data;
85127
85127
  const capacity = data.length;
85128
+ const head = this.#head;
85128
85129
 
85129
85130
  for (let i = 0; i < size; i++) {
85130
- const index = (this.#head + i) % capacity;
85131
+ const index = (head + i) % capacity;
85131
85132
 
85132
85133
  const el = data[index];
85133
85134
 
@@ -85225,13 +85226,15 @@ class Deque {
85225
85226
  return undefined;
85226
85227
  }
85227
85228
 
85229
+ const data = this.#data;
85230
+
85228
85231
  /**
85229
85232
  *
85230
85233
  * @type {number}
85231
85234
  */
85232
- const position = (this.#head + index) % this.#data.length;
85235
+ const position = (this.#head + index) % data.length;
85233
85236
 
85234
- return this.#data[position];
85237
+ return data[position];
85235
85238
  }
85236
85239
 
85237
85240
  /**
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "description": "Fully featured ECS game engine written in JavaScript",
6
6
  "type": "module",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.109.5",
8
+ "version": "2.109.6",
9
9
  "main": "build/meep.module.js",
10
10
  "module": "build/meep.module.js",
11
11
  "exports": {
@@ -1 +1 @@
1
- {"version":3,"file":"Deque.d.ts","sourceRoot":"","sources":["../../../../../src/core/collection/queue/Deque.js"],"names":[],"mappings":"AAcA;;;GAGG;AACH;IA8BI;;;OAGG;IACH,uBAFW,MAAM,EAUhB;IAqFD;;;OAGG;IACH,WAFY,OAAO,CAIlB;IAED,cAeC;IAED;;OAEG;IACH,QAFa,MAAM,CAalB;IA+CD;;;;OAIG;IACH,UAHW,CAAC,GACC,OAAO,CAYnB;IA2BD;;;;OAIG;IACH,WAFa,OAAO,CAInB;IAED;;;OAGG;IACH,YAFW,CAAC,QAOX;IAED;;;OAGG;IACH,eAFa,CAAC,GAAC,SAAS,CAQvB;IAED;;;OAGG;IACH,YAFa,CAAC,GAAC,SAAS,CAIvB;IAED;;;OAGG;IACH,WAFW,CAAC,QAOX;IAED;;;OAGG;IACH,cAFa,CAAC,CASb;IAGD;;;OAGG;IACH,WAFa,CAAC,GAAC,SAAS,CAKvB;IAED;;;;OAIG;IACH,yBAHW,MAAM,GACJ,CAAC,GAAC,SAAS,CAiBvB;IAED;;;;;OAKG;IACH,iBAJW,CAAC,EAAE,kBACH,MAAM,GACJ,CAAC,EAAE,CAUf;IAoBL,gBAAoB;IACpB,uBAAoB;IACpB,eAAmB;IAEnB;;OAEG;IACH,sBAAmB;IAzBf;;;OAGG;IACH,qBAFa,UAAU,CAAC,EAAC,IAAI,CAAC,CAS7B;;CACJ"}
1
+ {"version":3,"file":"Deque.d.ts","sourceRoot":"","sources":["../../../../../src/core/collection/queue/Deque.js"],"names":[],"mappings":"AAcA;;;GAGG;AACH;IA8BI;;;OAGG;IACH,uBAFW,MAAM,EAUhB;IAqFD;;;OAGG;IACH,WAFY,OAAO,CAIlB;IAED,cAeC;IAED;;OAEG;IACH,QAFa,MAAM,CAalB;IA+CD;;;;OAIG;IACH,UAHW,CAAC,GACC,OAAO,CAYnB;IA4BD;;;;OAIG;IACH,WAFa,OAAO,CAInB;IAED;;;OAGG;IACH,YAFW,CAAC,QAOX;IAED;;;OAGG;IACH,eAFa,CAAC,GAAC,SAAS,CAQvB;IAED;;;OAGG;IACH,YAFa,CAAC,GAAC,SAAS,CAIvB;IAED;;;OAGG;IACH,WAFW,CAAC,QAOX;IAED;;;OAGG;IACH,cAFa,CAAC,CASb;IAGD;;;OAGG;IACH,WAFa,CAAC,GAAC,SAAS,CAKvB;IAED;;;;OAIG;IACH,yBAHW,MAAM,GACJ,CAAC,GAAC,SAAS,CAmBvB;IAED;;;;;OAKG;IACH,iBAJW,CAAC,EAAE,kBACH,MAAM,GACJ,CAAC,EAAE,CAUf;IAoBL,gBAAoB;IACpB,uBAAoB;IACpB,eAAmB;IAEnB;;OAEG;IACH,sBAAmB;IAzBf;;;OAGG;IACH,qBAFa,UAAU,CAAC,EAAC,IAAI,CAAC,CAS7B;;CACJ"}
@@ -117,8 +117,8 @@ export class Deque {
117
117
 
118
118
  let new_length = length * 2;
119
119
 
120
- // bigger than Integer.MAX_VALUE
121
120
  if (new_length > UINT32_MAX) {
121
+ // clamp to max uint32 value
122
122
  new_length = UINT32_MAX;
123
123
  }
124
124
 
@@ -148,7 +148,7 @@ export class Deque {
148
148
  * @return {boolean}
149
149
  */
150
150
  isEmpty() {
151
- return this.size() === 0;
151
+ return this.#status === STATUS_EMPTY;
152
152
  }
153
153
 
154
154
  clear() {
@@ -257,9 +257,10 @@ export class Deque {
257
257
 
258
258
  const data = this.#data;
259
259
  const capacity = data.length;
260
+ const head = this.#head;
260
261
 
261
262
  for (let i = 0; i < size; i++) {
262
- const index = (this.#head + i) % capacity;
263
+ const index = (head + i) % capacity;
263
264
 
264
265
  const el = data[index];
265
266
 
@@ -358,13 +359,15 @@ export class Deque {
358
359
  return undefined;
359
360
  }
360
361
 
362
+ const data = this.#data;
363
+
361
364
  /**
362
365
  *
363
366
  * @type {number}
364
367
  */
365
- const position = (this.#head + index) % this.#data.length;
368
+ const position = (this.#head + index) % data.length;
366
369
 
367
- return this.#data[position];
370
+ return data[position];
368
371
  }
369
372
 
370
373
  /**
@@ -84,7 +84,7 @@ function makeMesh(mat) {
84
84
 
85
85
  geo.applyMatrix4(m4);
86
86
 
87
- // mesh.rotation.x = 0.3;
87
+ mesh.rotation.y = Math.PI*0.5;
88
88
 
89
89
  scene.add(mesh);
90
90
 
@@ -259,8 +259,10 @@ async function init() {
259
259
 
260
260
  scene = new Scene();
261
261
 
262
- const gltf = await loadGLTF({ path: "data/models/Scans/green_car_wreck/converted/model.gltf" })
262
+ // const gltf = await loadGLTF({ path: "data/models/Scans/green_car_wreck/converted/model.gltf" })
263
+ // scene.add(gltf);
263
264
 
265
+ flatSample({am});
264
266
 
265
267
  virtual_texture_managers.forEach(vt => {
266
268
  vt.initialize({
@@ -273,7 +275,6 @@ async function init() {
273
275
 
274
276
  const manager = virtual_texture_managers[0];
275
277
 
276
- scene.add(gltf);
277
278
 
278
279
  //
279
280
  // usageDebugView.mip_levels = virtualTextureManager.max_mip_level;