okgeometry-api 1.1.15 → 1.1.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/dist/mesh-boolean.pool.js +2 -2
- package/dist/mesh-boolean.pool.js.map +1 -1
- package/dist/wasm-base64.d.ts +1 -1
- package/dist/wasm-base64.d.ts.map +1 -1
- package/dist/wasm-base64.js +1 -1
- package/dist/wasm-base64.js.map +1 -1
- package/dist/wasm-bindings.js +1 -1
- package/package.json +5 -5
- package/src/mesh-boolean.pool.ts +2 -2
- package/src/wasm-base64.ts +1 -1
- package/src/wasm-bindings.js +1 -1
package/dist/wasm-base64.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wasm-base64.js","sourceRoot":"","sources":["../src/wasm-base64.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,MAAM,CAAC,MAAM,QAAQ,GAAG,
|
|
1
|
+
{"version":3,"file":"wasm-base64.js","sourceRoot":"","sources":["../src/wasm-base64.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,MAAM,CAAC,MAAM,QAAQ,GAAG,8tz+DAA8tz+D,CAAC"}
|
package/dist/wasm-bindings.js
CHANGED
|
@@ -1688,7 +1688,7 @@ export function version() {
|
|
|
1688
1688
|
function __wbg_get_imports() {
|
|
1689
1689
|
const import0 = {
|
|
1690
1690
|
__proto__: null,
|
|
1691
|
-
|
|
1691
|
+
__wbg___okgeometry_boolean_should_cancel_7b2963b81f3c47c9: function () {
|
|
1692
1692
|
const ret = globalThis.__okgeometry_boolean_should_cancel();
|
|
1693
1693
|
return ret;
|
|
1694
1694
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "okgeometry-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.17",
|
|
4
4
|
"description": "Geometry engine API for AEC applications — NURBS, meshes, booleans, intersections. Powered by Rust/WASM.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"build": "npm run build:wasm && npm run sync:wasm-bindings && npm run inline-wasm && tsc",
|
|
23
23
|
"check:primitive-parity": "npm run build:wasm && npm run sync:wasm-bindings && tsx scripts/check-primitive-parity.ts",
|
|
24
24
|
"bench:boolean-manifold-baseline": "npm run build && tsx scripts/bench-boolean-manifold-baseline.ts",
|
|
25
|
-
"bench:boolean-
|
|
25
|
+
"bench:boolean-kernel-heavy": "npm run build && tsx scripts/bench-boolean-kernel-heavy.ts",
|
|
26
26
|
"bench:boolean-deterministic": "npm run build && tsx scripts/bench-boolean-deterministic.ts",
|
|
27
27
|
"bench:boolean-ab": "npm run build && tsx scripts/bench-boolean-ab.ts",
|
|
28
28
|
"bench:subtraction-bunny-parity": "npm run build && tsx scripts/bench-subtraction-bunny-parity.ts",
|
|
29
|
-
"bench:boolean-
|
|
30
|
-
"gate:boolean-
|
|
31
|
-
"gate:boolean-
|
|
29
|
+
"bench:boolean-kernel": "npm run build && tsx scripts/gate-boolean-kernel.ts",
|
|
30
|
+
"gate:boolean-kernel": "npm run build && tsx scripts/gate-boolean-kernel.ts",
|
|
31
|
+
"gate:boolean-kernel-vs-manifold": "npm run bench:boolean-manifold-baseline && npm run gate:boolean-kernel",
|
|
32
32
|
"prepublishOnly": "npm run build"
|
|
33
33
|
},
|
|
34
34
|
"keywords": [
|
package/src/mesh-boolean.pool.ts
CHANGED
|
@@ -218,10 +218,10 @@ export class MeshBooleanWorkerPool {
|
|
|
218
218
|
slot.worker.removeEventListener("message", slot.onMessage as EventListener);
|
|
219
219
|
slot.worker.removeEventListener("error", slot.onError as EventListener);
|
|
220
220
|
slot.worker.terminate();
|
|
221
|
-
const
|
|
221
|
+
const spawnedWorker = this.spawnWorker(slot.id);
|
|
222
222
|
const index = this.slots.findIndex(s => s.id === slot.id);
|
|
223
223
|
if (index >= 0) {
|
|
224
|
-
this.slots[index] =
|
|
224
|
+
this.slots[index] = spawnedWorker;
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
|