@woosh/meep-engine 2.92.16 → 2.92.18

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/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.92.16",
8
+ "version": "2.92.18",
9
9
  "main": "build/meep.module.js",
10
10
  "module": "build/meep.module.js",
11
11
  "exports": {
@@ -4,16 +4,15 @@ interface IBinarySchema {
4
4
  [k: string]: BinaryDataType
5
5
  }
6
6
 
7
-
8
7
  export class DataViewStructAccessor<T extends IBinarySchema> {
9
8
 
10
9
  constructor(type: T, little_endian?: boolean)
11
10
 
12
11
  readonly $record_byte_size: number
13
12
 
14
- this: { [prop in keyof T]: number }
15
-
16
13
  bind(view: DataView, offset: number): void
17
14
 
18
15
  bind_by_index(view: DataView, index: number): void
16
+
17
+ readonly record: { [prop in keyof T]: number }
19
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DataViewStructAccessor.d.ts","sourceRoot":"","sources":["../../../../../src/core/binary/data_view/DataViewStructAccessor.js"],"names":[],"mappings":"AAOA;IAiBI;;;;OAIG;IACH,yCAFW,OAAO,EAiCjB;IApDD;;OAEG;IACH,OAFU,QAAQ,CAEZ;IAEN;;OAEG;IACH,SAFU,MAAM,CAEJ;IAEZ;;;OAGG;IACH,4BAFU,MAAM,CAEM;IAwCtB;;;;OAIG;IACH,gBAHW,QAAQ,eACR,MAAM,QAKhB;IAED;;;;OAIG;IACH,yBAHW,QAAQ,SACR,MAAM,QAKhB;CACJ"}
1
+ {"version":3,"file":"DataViewStructAccessor.d.ts","sourceRoot":"","sources":["../../../../../src/core/binary/data_view/DataViewStructAccessor.js"],"names":[],"mappings":"AAOA;IAiBI;;;;OAIG;IACH,yCAFW,OAAO,EAiCjB;IApDD;;OAEG;IACH,OAFU,QAAQ,CAEZ;IAEN;;OAEG;IACH,SAFU,MAAM,CAEJ;IAEZ;;;OAGG;IACH,4BAFU,MAAM,CAEM;IAwCtB;;;OAGG;IACH,qCAEC;IAED;;;;OAIG;IACH,gBAHW,QAAQ,eACR,MAAM,QAKhB;IAED;;;;OAIG;IACH,yBAHW,QAAQ,SACR,MAAM,QAKhB;CACJ"}
@@ -41,7 +41,7 @@ export class DataViewStructAccessor {
41
41
 
42
42
  assert.enum(type, BinaryDataType, "type");
43
43
 
44
- assert.arrayHasNo(["bind", "$data", "$offset", "this", "constructor"], property, `Illegal property name ${property}`);
44
+ assert.arrayHasNo(["bind", "$data", "$offset", "this", "constructor", "get", "set"], property, `Illegal property name ${property}`);
45
45
 
46
46
  //
47
47
  Object.defineProperty(this, property, {
@@ -60,6 +60,14 @@ export class DataViewStructAccessor {
60
60
  this.$record_byte_size = offset;
61
61
  }
62
62
 
63
+ /**
64
+ * Mainly here for TS interface's type inference
65
+ * @return {DataViewStructAccessor}
66
+ */
67
+ get record() {
68
+ return this;
69
+ }
70
+
63
71
  /**
64
72
  *
65
73
  * @param {DataView} data_view
@@ -19,10 +19,10 @@ export function aabb3_array_combine(
19
19
  b, b_offset
20
20
  ) {
21
21
  assert.isNonNegativeInteger(a_offset, 'a_offset');
22
- assert.lessThan(a_offset, a.length - 6, 'a_offset array overflow');
22
+ assert.lessThanOrEqual(a_offset, a.length - 6, 'a_offset array overflow');
23
23
 
24
24
  assert.isNonNegativeInteger(b_offset, 'b_offset');
25
- assert.lessThan(b_offset, b.length - 6, 'b_offset array overflow');
25
+ assert.lessThanOrEqual(b_offset, b.length - 6, 'b_offset array overflow');
26
26
 
27
27
  const ax0 = a[a_offset + 0];
28
28
  const ay0 = a[a_offset + 1];
@@ -87,6 +87,11 @@ export class BinaryElementPool {
87
87
  * @return {number}
88
88
  */
89
89
  get byteSize(): number;
90
+ /**
91
+ * Number of records that the pool can currently contain
92
+ * @return {number}
93
+ */
94
+ get capacity(): number;
90
95
  /**
91
96
  *
92
97
  * @return {Uint32Array}
@@ -1 +1 @@
1
- {"version":3,"file":"BinaryElementPool.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/geom/3d/topology/struct/binary/BinaryElementPool.js"],"names":[],"mappings":"AAwBA;;GAEG;AACH;IAwBI;;;;OAIG;IACH,uBAHW,MAAM,qBACN,MAAM,EAiDhB;IA1ED;;;;OAIG;IACH,eAAY;IAEZ;;;;;OAKG;IACH,uBAAmB;IAEnB;;;;OAIG;IACH,eAAW;IAaP;;;;OAIG;IACH,oBAA4B;IAG5B;;;;OAIG;IACH,sBAA2E;IAC3E;;;;OAIG;IACH,qBAAsD;IACtD;;;;OAIG;IACH,sBAAwD;IACxD;;;;OAIG;IACH,uBAA0D;IAC1D,oBAAiD;IAEjD;;;;OAIG;IACH,mBAAkC;IAItC;;;;OAIG;IACH,wBAHW,WAAW,2BACX,MAAM,QAsBhB;IAED,+BAEC;IAED;;;OAGG;IACH,wBAEC;IAED;;;;OAIG;IACH,mBAEC;IAED;;;OAGG;IACH,uBAEC;IAGD;;;OAGG;IACH,+BAEC;IAED;;;OAGG;IACH,iCAEC;IAED;;OAEG;IACH,aAEC;IAED;;;;OAIG;IACH,oBAHW,MAAM,GACL,MAAM,CAMjB;IAED;;;;;OAKG;IACH,iBAHW,MAAM,GACL,MAAM,CAIjB;IAED;;;;OAIG;IACH,iBAHW,MAAM,GACL,OAAO,CAsBlB;IAED;;;;OAIG;IACH,uBAsBC;IAED;;;;OAIG;IACH,wBAQC;IAED;;;OAGG;IACH,0BAFW,MAAM,QAMhB;IAGD;;;OAGG;IACH,YAFY,MAAM,CAqBjB;IAED;;;;OAIG;IACH,2BAHW,MAAM,GACL,MAAM,CAcjB;IAED;;;;OAIG;IACH,YAFW,MAAM,QAYhB;IAED;;OAEG;IACH,cAGC;CACJ"}
1
+ {"version":3,"file":"BinaryElementPool.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/geom/3d/topology/struct/binary/BinaryElementPool.js"],"names":[],"mappings":"AAwBA;;GAEG;AACH;IAwBI;;;;OAIG;IACH,uBAHW,MAAM,qBACN,MAAM,EAiDhB;IA1ED;;;;OAIG;IACH,eAAY;IAEZ;;;;;OAKG;IACH,uBAAmB;IAEnB;;;;OAIG;IACH,eAAW;IAaP;;;;OAIG;IACH,oBAA4B;IAG5B;;;;OAIG;IACH,sBAA2E;IAC3E;;;;OAIG;IACH,qBAAsD;IACtD;;;;OAIG;IACH,sBAAwD;IACxD;;;;OAIG;IACH,uBAA0D;IAC1D,oBAAiD;IAEjD;;;;OAIG;IACH,mBAAkC;IAItC;;;;OAIG;IACH,wBAHW,WAAW,2BACX,MAAM,QAsBhB;IAED,+BAEC;IAED;;;OAGG;IACH,wBAEC;IAED;;;;OAIG;IACH,mBAEC;IAED;;;OAGG;IACH,uBAEC;IAED;;;OAGG;IACH,uBAEC;IAGD;;;OAGG;IACH,+BAEC;IAED;;;OAGG;IACH,iCAEC;IAED;;OAEG;IACH,aAEC;IAED;;;;OAIG;IACH,oBAHW,MAAM,GACL,MAAM,CAMjB;IAED;;;;;OAKG;IACH,iBAHW,MAAM,GACL,MAAM,CAIjB;IAED;;;;OAIG;IACH,iBAHW,MAAM,GACL,OAAO,CAsBlB;IAED;;;;OAIG;IACH,uBAsBC;IAED;;;;OAIG;IACH,wBAQC;IAED;;;OAGG;IACH,0BAFW,MAAM,QAMhB;IAGD;;;OAGG;IACH,YAFY,MAAM,CAqBjB;IAED;;;;OAIG;IACH,2BAHW,MAAM,GACL,MAAM,CAcjB;IAED;;;;OAIG;IACH,YAFW,MAAM,QAYhB;IAED;;OAEG;IACH,cAGC;CACJ"}
@@ -159,6 +159,14 @@ export class BinaryElementPool {
159
159
  return this.__capacity * this.__item_size;
160
160
  }
161
161
 
162
+ /**
163
+ * Number of records that the pool can currently contain
164
+ * @return {number}
165
+ */
166
+ get capacity() {
167
+ return this.__capacity;
168
+ }
169
+
162
170
 
163
171
  /**
164
172
  *