@woosh/meep-engine 2.92.15 → 2.92.17
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 +1 -1
- package/src/core/geom/3d/aabb/aabb3_array_combine.js +2 -2
- package/src/core/geom/3d/topology/struct/binary/BinaryElementPool.d.ts +1 -0
- package/src/core/geom/3d/topology/struct/binary/BinaryElementPool.d.ts.map +1 -1
- package/src/core/geom/3d/topology/struct/binary/BinaryElementPool.js +5 -0
package/package.json
CHANGED
|
@@ -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.
|
|
22
|
+
assert.lessThanOrEqual(a_offset, a.length - 6, 'a_offset array overflow');
|
|
23
23
|
|
|
24
24
|
assert.isNonNegativeInteger(b_offset, 'b_offset');
|
|
25
|
-
assert.
|
|
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];
|
|
@@ -70,6 +70,7 @@ export class BinaryElementPool {
|
|
|
70
70
|
* @param {number} allocated_record_count
|
|
71
71
|
*/
|
|
72
72
|
fromArrayBuffer(buffer: ArrayBuffer, allocated_record_count?: number): void;
|
|
73
|
+
get arrayBuffer(): ArrayBuffer;
|
|
73
74
|
/**
|
|
74
75
|
* Size of a single record in bytes
|
|
75
76
|
* @return {number}
|
|
@@ -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;;;OAGG;IACH,wBAEC;IAED;;;;OAIG;IACH,mBAEC;IAED;;;OAGG;IACH,uBAEC;
|
|
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"}
|
|
@@ -130,6 +130,10 @@ export class BinaryElementPool {
|
|
|
130
130
|
this.__size = allocated_record_count;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
+
get arrayBuffer() {
|
|
134
|
+
return this.__data_buffer;
|
|
135
|
+
}
|
|
136
|
+
|
|
133
137
|
/**
|
|
134
138
|
* Size of a single record in bytes
|
|
135
139
|
* @return {number}
|
|
@@ -155,6 +159,7 @@ export class BinaryElementPool {
|
|
|
155
159
|
return this.__capacity * this.__item_size;
|
|
156
160
|
}
|
|
157
161
|
|
|
162
|
+
|
|
158
163
|
/**
|
|
159
164
|
*
|
|
160
165
|
* @return {Uint32Array}
|