@woosh/meep-engine 2.121.2 → 2.121.4
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/cache/Cache.d.ts.map +1 -1
- package/src/core/cache/Cache.js +3 -0
- package/src/core/geom/3d/aabb/aabb3_array_size.d.ts +11 -0
- package/src/core/geom/3d/aabb/aabb3_array_size.d.ts.map +1 -0
- package/src/core/geom/3d/aabb/aabb3_array_size.js +18 -0
- package/src/core/science/units/memory/GIGABYTE.d.ts +10 -0
- package/src/core/science/units/memory/GIGABYTE.d.ts.map +1 -0
- package/src/core/science/units/memory/GIGABYTE.js +9 -0
- package/src/core/science/units/memory/KILOBYTE.d.ts +8 -0
- package/src/core/science/units/memory/KILOBYTE.d.ts.map +1 -0
- package/src/core/science/units/memory/KILOBYTE.js +7 -0
- package/src/core/science/units/memory/MEGABYTE.d.ts +8 -0
- package/src/core/science/units/memory/MEGABYTE.d.ts.map +1 -0
- package/src/core/science/units/memory/MEGABYTE.js +7 -0
- package/src/core/science/units/memory/TERABYTE.d.ts +10 -0
- package/src/core/science/units/memory/TERABYTE.d.ts.map +1 -0
- package/src/core/science/units/memory/TERABYTE.js +9 -0
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cache.d.ts","sourceRoot":"","sources":["../../../../src/core/cache/Cache.js"],"names":[],"mappings":"AAUA;;;;;GAKG;AACH,mBAHa,GAAG,EAAE,KAAK;IAYnB;;;;;;;;OAQG;IACH,sGARW,MAAM,
|
|
1
|
+
{"version":3,"file":"Cache.d.ts","sourceRoot":"","sources":["../../../../src/core/cache/Cache.js"],"names":[],"mappings":"AAUA;;;;;GAKG;AACH,mBAHa,GAAG,EAAE,KAAK;IAYnB;;;;;;;;OAQG;IACH,sGARW,MAAM,EA0FhB;IAxDG;;;;OAIG;IACH,mBAA4B;IAE5B;;;;OAIG;IACH,qBAAgC;IAEhC;;;;OAIG;IACH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AGL;;;OAGG;IACH,6CAAmB;IAEnB;;;OAGG;IACH,+BA5FiB,OAAO,CA4FF;IAEtB;;;OAGG;IACH,4BA9KiB,OAAO,CA8KL;;CAlBlB;mBA1iBkB,4BAA4B;6BAKlB,mBAAmB"}
|
package/src/core/cache/Cache.js
CHANGED
|
@@ -42,6 +42,9 @@ export class Cache {
|
|
|
42
42
|
} = {}) {
|
|
43
43
|
|
|
44
44
|
assert.isNumber(maxWeight, 'maxWeight');
|
|
45
|
+
assert.notNaN(maxWeight, 'maxWeight');
|
|
46
|
+
assert.greaterThanOrEqual(maxWeight, 0, 'maxWeight < 0');
|
|
47
|
+
|
|
45
48
|
assert.isFunction(keyWeigher, 'keyWeigher');
|
|
46
49
|
assert.isFunction(valueWeigher, 'valueWeigher');
|
|
47
50
|
assert.isFunction(keyHashFunction, 'keyHashFunction');
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calculates the size of an axis-aligned bounding box (AABB) in 3D space and stores the result in the output array.
|
|
3
|
+
*
|
|
4
|
+
* @param {Float32Array} output - The array where the computed size values will be stored.
|
|
5
|
+
* @param {number} output_offset - The starting index in the output array where the size values will be written.
|
|
6
|
+
* @param {Float32Array} data - The array containing the AABB coordinates. Must contain six consecutive values: [minX, minY, minZ, maxX, maxY, maxZ].
|
|
7
|
+
* @param {number} offset - The starting index in the data array where the AABB coordinates begin.
|
|
8
|
+
* @return {void} This function does not return a value; it writes the calculated size values directly into the output array.
|
|
9
|
+
*/
|
|
10
|
+
export function aabb3_array_size(output: Float32Array, output_offset: number, data: Float32Array, offset: number): void;
|
|
11
|
+
//# sourceMappingURL=aabb3_array_size.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aabb3_array_size.d.ts","sourceRoot":"","sources":["../../../../../../src/core/geom/3d/aabb/aabb3_array_size.js"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,yCANW,YAAY,iBACZ,MAAM,QACN,YAAY,UACZ,MAAM,GACL,IAAI,CAUf"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calculates the size of an axis-aligned bounding box (AABB) in 3D space and stores the result in the output array.
|
|
3
|
+
*
|
|
4
|
+
* @param {Float32Array} output - The array where the computed size values will be stored.
|
|
5
|
+
* @param {number} output_offset - The starting index in the output array where the size values will be written.
|
|
6
|
+
* @param {Float32Array} data - The array containing the AABB coordinates. Must contain six consecutive values: [minX, minY, minZ, maxX, maxY, maxZ].
|
|
7
|
+
* @param {number} offset - The starting index in the data array where the AABB coordinates begin.
|
|
8
|
+
* @return {void} This function does not return a value; it writes the calculated size values directly into the output array.
|
|
9
|
+
*/
|
|
10
|
+
export function aabb3_array_size(output, output_offset, data, offset) {
|
|
11
|
+
const x_size = data[offset + 3] - data[offset];
|
|
12
|
+
const y_size = data[offset + 4] - data[offset + 1];
|
|
13
|
+
const z_size = data[offset + 5] - data[offset + 2];
|
|
14
|
+
|
|
15
|
+
output[output_offset] = x_size;
|
|
16
|
+
output[output_offset + 1] = y_size;
|
|
17
|
+
output[output_offset + 2] = z_size;
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Number of bytes in a single Gigabyte
|
|
3
|
+
*
|
|
4
|
+
* NOTE: Single gigabyte value takes up 30 bits, maximum addressable 32 bit value is 4Gb(-1)
|
|
5
|
+
* @type {number}
|
|
6
|
+
* @example
|
|
7
|
+
* 100 * GIGABYTE // 100 Gb
|
|
8
|
+
*/
|
|
9
|
+
export const GIGABYTE: number;
|
|
10
|
+
//# sourceMappingURL=GIGABYTE.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GIGABYTE.d.ts","sourceRoot":"","sources":["../../../../../../src/core/science/units/memory/GIGABYTE.js"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,uBAJU,MAAM,CAI2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KILOBYTE.d.ts","sourceRoot":"","sources":["../../../../../../src/core/science/units/memory/KILOBYTE.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,uBAJU,MAAM,CAIa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MEGABYTE.d.ts","sourceRoot":"","sources":["../../../../../../src/core/science/units/memory/MEGABYTE.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,uBAJU,MAAM,CAIoB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Number of bytes in a single Terabyte.
|
|
3
|
+
*
|
|
4
|
+
* NOTE: this number does not fit in a 32bit integer. A single Tb requires 40 bits to express
|
|
5
|
+
* @type {number}
|
|
6
|
+
* @example
|
|
7
|
+
* 100 * TERABYTE // 100 Tb
|
|
8
|
+
*/
|
|
9
|
+
export const TERABYTE: number;
|
|
10
|
+
//# sourceMappingURL=TERABYTE.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TERABYTE.d.ts","sourceRoot":"","sources":["../../../../../../src/core/science/units/memory/TERABYTE.js"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,uBAJU,MAAM,CAIkC"}
|