brepjs 20.5.0 → 20.7.0
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/README.md +1 -0
- package/dist/2d.cjs +9 -11
- package/dist/2d.js +9 -11
- package/dist/{adjacencyFns-DeyXahej.js → adjacencyFns-BgJQQjdt.js} +5 -6
- package/dist/{adjacencyFns-1rxgJ6Hw.cjs → adjacencyFns-_RTYhwtD.cjs} +5 -6
- package/dist/{arrayAccess-DrUGPADn.js → arrayAccess-BpgouNir.js} +1 -2
- package/dist/{arrayAccess-e4H9cBfh.cjs → arrayAccess-DpJYARwv.cjs} +1 -2
- package/dist/{blueprint-rwJjYPzo.js → blueprint-Bth4EVaO.js} +24 -37
- package/dist/{blueprint-Yyoiz-U1.cjs → blueprint-wq2TU1XP.cjs} +24 -37
- package/dist/{blueprintFns-Q3Sq-Fse.js → blueprintFns-DQmNe1p6.js} +5 -7
- package/dist/{blueprintFns-Ce6OoPSX.cjs → blueprintFns-Dd0gm1rX.cjs} +5 -7
- package/dist/{blueprintSketcher-CzKbxeTk.cjs → blueprintSketcher-CSDqr27-.cjs} +19 -31
- package/dist/{blueprintSketcher-FywUpRiV.js → blueprintSketcher-DNp87aQZ.js} +19 -31
- package/dist/{boolean2D-D8igCYc9.js → boolean2D-BAb4SnIL.js} +13 -19
- package/dist/{boolean2D-BzZ9iBSn.cjs → boolean2D-BkgOjMRt.cjs} +13 -19
- package/dist/brepjs.cjs +113 -187
- package/dist/brepjs.js +113 -188
- package/dist/{bug-O02CsAmt.cjs → bug-CBcpIPuf.cjs} +2 -4
- package/dist/{bug-BdOHwn_e.js → bug-ClMTAJhe.js} +2 -4
- package/dist/{cameraFns-Cs6v3bWQ.js → cameraFns-9AGyuZVp.js} +8 -11
- package/dist/{cameraFns-RHCb1F1s.cjs → cameraFns-CKUN90f_.cjs} +8 -11
- package/dist/{constants-ITRzCnCp.js → constants-iraOnb2p.js} +1 -2
- package/dist/{constants-BOVyEYGH.cjs → constants-oee0S_x6.cjs} +1 -2
- package/dist/core/errors.d.ts +3 -0
- package/dist/core.cjs +8 -8
- package/dist/core.js +8 -8
- package/dist/{cornerFinder-Dlae8IX5.js → cornerFinder-Cr_04etw.js} +4 -5
- package/dist/{cornerFinder-Cji_BK-R.cjs → cornerFinder-DJWo6h1Z.cjs} +4 -5
- package/dist/{curveFns-KS1BWGhF.js → curveFns-CkA2WJP2.js} +3 -4
- package/dist/{curveFns-6-ULFrEB.cjs → curveFns-U7srQ3ZA.cjs} +3 -4
- package/dist/{drawFns-3yRVBDgI.js → drawFns-C6bmFijD.js} +32 -45
- package/dist/{drawFns-Ddlgp9gQ.cjs → drawFns-DlCxozRP.cjs} +32 -45
- package/dist/{errors-jwhfQJZK.cjs → errors-GVyCnpi0.cjs} +6 -5
- package/dist/{errors-Zb3jBa0u.js → errors-vxP5FT8B.js} +6 -5
- package/dist/{faceFns-CTlJC5IY.js → faceFns-BBk6XKJO.js} +6 -8
- package/dist/{faceFns-CZeHWke7.cjs → faceFns-DSRREV5G.cjs} +6 -8
- package/dist/{faceRoleFns-CWU1-Pm8.js → faceRoleFns-BPxzQF-n.js} +1 -2
- package/dist/{faceRoleFns-CtH_48MO.cjs → faceRoleFns-Db5bYj4Q.cjs} +1 -2
- package/dist/{healingFns-DwSpJZfg.cjs → healingFns-C9G3yjOe.cjs} +148 -51
- package/dist/{healingFns-Ct3gEMvk.js → healingFns-CEr0afli.js} +148 -51
- package/dist/{helpers-NRZVshPb.cjs → helpers-JuPoaP_b.cjs} +15 -21
- package/dist/{helpers-BN1mVMuZ.js → helpers-sDialr0f.js} +15 -21
- package/dist/{importFns-BEi-HsSw.cjs → importFns-ClqPJCFR.cjs} +12 -19
- package/dist/{importFns-0kHGg-b8.js → importFns-DSUfSQn2.js} +12 -19
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/capabilities.d.ts +8 -0
- package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
- package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -2
- package/dist/{loftFns-B5mq1WDh.js → loftFns-B8DSoG-F.js} +7 -10
- package/dist/{loftFns-DL9UsQhd.cjs → loftFns-mkJeOaII.cjs} +7 -10
- package/dist/{measureFns-D_GpQw5z.cjs → measureFns-BvNkzSR6.cjs} +6 -8
- package/dist/{measureFns-CyDVZomf.js → measureFns-PRM3gOjw.js} +6 -8
- package/dist/measurement.cjs +2 -2
- package/dist/measurement.js +2 -2
- package/dist/{meshFns-COlno8TY.js → meshFns-CgbT3uuO.js} +6 -8
- package/dist/{meshFns-CAxkaRTm.cjs → meshFns-W7ZTKqiJ.cjs} +6 -8
- package/dist/{occtWasmAdapter-CA6PmIIj.cjs → occtWasmAdapter-BSQeA69d.cjs} +49 -57
- package/dist/{occtWasmAdapter-BX10fyla.js → occtWasmAdapter-PzZJHUAd.js} +44 -58
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{originTrackingFns-DiHy5BZC.js → originTrackingFns-D8SNCDKj.js} +4 -5
- package/dist/{originTrackingFns-CWo6NWHK.cjs → originTrackingFns-DJDTRJh3.cjs} +4 -5
- package/dist/{planeOps-DJuclNxa.cjs → planeOps-C9d2Y56B.cjs} +5 -6
- package/dist/{planeOps-Cxws4Tiu.js → planeOps-Dp0YvuFE.js} +5 -6
- package/dist/{primitiveFns-ZV3aMbqG.cjs → primitiveFns-EtHyTqhw.cjs} +8 -10
- package/dist/{primitiveFns-CGJzS4MO.js → primitiveFns-W3RYNJcm.js} +8 -10
- package/dist/{principalBoxFns-BJgGEoik.js → principalBoxFns-Cbtty-2_.js} +7 -8
- package/dist/{principalBoxFns-5FSbxAj-.cjs → principalBoxFns-CmZa7qHi.cjs} +7 -8
- package/dist/projection.cjs +1 -1
- package/dist/projection.js +1 -2
- package/dist/query.cjs +2 -2
- package/dist/query.js +2 -2
- package/dist/{refResolveFns-CpVZoeOT.js → refResolveFns-BkciKtNP.js} +14 -21
- package/dist/{refResolveFns-Ct52Uw7R.cjs → refResolveFns-D99Vqe7a.cjs} +14 -21
- package/dist/result.cjs +2 -2
- package/dist/result.js +2 -2
- package/dist/{rolldown-runtime-C0BPl7ul.cjs → rolldown-runtime-BW-eSwOZ.cjs} +1 -2
- package/dist/{shapeFns-C2j6oZ2u.cjs → shapeFns-B54CsPyk.cjs} +5 -6
- package/dist/{shapeFns--1wNlcc_.js → shapeFns-DB3l3ULC.js} +5 -6
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -2
- package/dist/{shapeTypes-CqNJoSam.js → shapeTypes-CgbUTASh.js} +82 -161
- package/dist/{shapeTypes-DH2ShBU_.cjs → shapeTypes-D_anqiRe.cjs} +82 -161
- package/dist/sketching.cjs +4 -5
- package/dist/sketching.js +4 -5
- package/dist/{solidBuilders-CgicU3le.cjs → solidBuilders-CUd-korS.cjs} +17 -23
- package/dist/{solidBuilders-IstbiWju.js → solidBuilders-DE_na4G3.js} +17 -23
- package/dist/{surfaceBuilders-vYgSvgI6.cjs → surfaceBuilders-DOn2jWkh.cjs} +8 -12
- package/dist/{surfaceBuilders-8nLk2PWk.js → surfaceBuilders-wdGNiImD.js} +8 -12
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-fa7VHJZz.cjs → textBlueprints-BQ60Rc96.cjs} +24 -32
- package/dist/{textBlueprints-C13NAA3C.js → textBlueprints-B_jwMuej.js} +23 -31
- package/dist/{textMetrics--cikHkGX.cjs → textMetrics-Bm0a4kh7.cjs} +4 -6
- package/dist/{textMetrics-Dcc63qRm.js → textMetrics-Dj3yfZNQ.js} +4 -6
- package/dist/{threadFns-BUQPg_vI.cjs → threadFns-BuRPVenB.cjs} +21 -33
- package/dist/{threadFns-3U9x4v_M.js → threadFns-DlL5VnMf.js} +21 -33
- package/dist/topology/modifierFns.d.ts +5 -0
- package/dist/topology/thickResultCheck.d.ts +18 -0
- package/dist/topology.cjs +9 -9
- package/dist/topology.js +9 -9
- package/dist/{topologyQueryFns-DnfjQgP7.js → topologyQueryFns-6M_dbT1R.js} +10 -10
- package/dist/{topologyQueryFns-q2bGyuEV.cjs → topologyQueryFns-ENxs8uu2.cjs} +15 -9
- package/dist/{types-D24Y27N0.js → types-CKXsIm9-.js} +1 -2
- package/dist/{types-KjA8tY4Y.cjs → types-CjF9Rofr.cjs} +1 -2
- package/dist/{validityTypes-r0A2YdNq.cjs → validityTypes-BPamqRZ8.cjs} +3 -4
- package/dist/{validityTypes-t7JpS0Ki.js → validityTypes-BTuI0vcR.js} +3 -4
- package/dist/{vecOps-CCnJt-yH.cjs → vecOps-CrGEPPQM.cjs} +1 -2
- package/dist/{vecOps-SKPRvPH-.js → vecOps-S-m9H_fe.js} +1 -2
- package/dist/vectors.cjs +4 -4
- package/dist/vectors.js +4 -4
- package/dist/worker.cjs +1 -1
- package/dist/worker.js +1 -2
- package/dist/{workerPool-XcYX2UZ0.js → workerPool-Bc5hmJc4.js} +5 -10
- package/dist/{workerPool-D30NsiIW.cjs → workerPool-D5tiNXrI.cjs} +5 -10
- package/package.json +10 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/worker/protocol.ts
|
|
2
2
|
/** Narrow a {@link WorkerRequest} to an {@link InitRequest}. */
|
|
3
3
|
function isInitRequest(msg) {
|
|
4
4
|
return msg.type === "init";
|
|
@@ -23,8 +23,7 @@ function isSuccessResponse(msg) {
|
|
|
23
23
|
function isErrorResponse(msg) {
|
|
24
24
|
return !msg.success;
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
//#region src/worker/taskQueue.ts
|
|
26
|
+
// src/worker/taskQueue.ts
|
|
28
27
|
/** Create an empty task queue. */
|
|
29
28
|
function createTaskQueue() {
|
|
30
29
|
return { pending: /* @__PURE__ */ new Map() };
|
|
@@ -62,8 +61,7 @@ function rejectAll(queue, reason) {
|
|
|
62
61
|
for (const task of queue.pending.values()) task.reject(reason);
|
|
63
62
|
return { pending: /* @__PURE__ */ new Map() };
|
|
64
63
|
}
|
|
65
|
-
|
|
66
|
-
//#region src/worker/workerClient.ts
|
|
64
|
+
// src/worker/workerClient.ts
|
|
67
65
|
function handleWorkerMessage(pending, event) {
|
|
68
66
|
const msg = event.data;
|
|
69
67
|
const entry = pending.get(msg.id);
|
|
@@ -140,8 +138,7 @@ function createWorkerClient(options) {
|
|
|
140
138
|
}
|
|
141
139
|
};
|
|
142
140
|
}
|
|
143
|
-
|
|
144
|
-
//#region src/worker/workerHandler.ts
|
|
141
|
+
// src/worker/workerHandler.ts
|
|
145
142
|
/** Create an empty operation registry. */
|
|
146
143
|
function createOperationRegistry() {
|
|
147
144
|
return { operations: /* @__PURE__ */ new Map() };
|
|
@@ -243,8 +240,7 @@ function createWorkerHandler(registry, initFn) {
|
|
|
243
240
|
}
|
|
244
241
|
};
|
|
245
242
|
}
|
|
246
|
-
|
|
247
|
-
//#region src/worker/workerPool.ts
|
|
243
|
+
// src/worker/workerPool.ts
|
|
248
244
|
/**
|
|
249
245
|
* Worker pool for spreading CAD operations across several Web Workers.
|
|
250
246
|
*
|
|
@@ -307,5 +303,4 @@ function createWorkerPool(options) {
|
|
|
307
303
|
dispose
|
|
308
304
|
};
|
|
309
305
|
}
|
|
310
|
-
//#endregion
|
|
311
306
|
export { isSuccessResponse as _, createWorkerClient as a, enqueueTask as c, rejectAll as d, isBatchRequest as f, isOperationRequest as g, isInitRequest as h, registerHandler as i, isEmpty as l, isErrorResponse as m, createOperationRegistry as n, createTaskQueue as o, isDisposeRequest as p, createWorkerHandler as r, dequeueTask as s, createWorkerPool as t, pendingCount as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/worker/protocol.ts
|
|
2
2
|
/** Narrow a {@link WorkerRequest} to an {@link InitRequest}. */
|
|
3
3
|
function isInitRequest(msg) {
|
|
4
4
|
return msg.type === "init";
|
|
@@ -23,8 +23,7 @@ function isSuccessResponse(msg) {
|
|
|
23
23
|
function isErrorResponse(msg) {
|
|
24
24
|
return !msg.success;
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
//#region src/worker/taskQueue.ts
|
|
26
|
+
// src/worker/taskQueue.ts
|
|
28
27
|
/** Create an empty task queue. */
|
|
29
28
|
function createTaskQueue() {
|
|
30
29
|
return { pending: /* @__PURE__ */ new Map() };
|
|
@@ -62,8 +61,7 @@ function rejectAll(queue, reason) {
|
|
|
62
61
|
for (const task of queue.pending.values()) task.reject(reason);
|
|
63
62
|
return { pending: /* @__PURE__ */ new Map() };
|
|
64
63
|
}
|
|
65
|
-
|
|
66
|
-
//#region src/worker/workerClient.ts
|
|
64
|
+
// src/worker/workerClient.ts
|
|
67
65
|
function handleWorkerMessage(pending, event) {
|
|
68
66
|
const msg = event.data;
|
|
69
67
|
const entry = pending.get(msg.id);
|
|
@@ -140,8 +138,7 @@ function createWorkerClient(options) {
|
|
|
140
138
|
}
|
|
141
139
|
};
|
|
142
140
|
}
|
|
143
|
-
|
|
144
|
-
//#region src/worker/workerHandler.ts
|
|
141
|
+
// src/worker/workerHandler.ts
|
|
145
142
|
/** Create an empty operation registry. */
|
|
146
143
|
function createOperationRegistry() {
|
|
147
144
|
return { operations: /* @__PURE__ */ new Map() };
|
|
@@ -243,8 +240,7 @@ function createWorkerHandler(registry, initFn) {
|
|
|
243
240
|
}
|
|
244
241
|
};
|
|
245
242
|
}
|
|
246
|
-
|
|
247
|
-
//#region src/worker/workerPool.ts
|
|
243
|
+
// src/worker/workerPool.ts
|
|
248
244
|
/**
|
|
249
245
|
* Worker pool for spreading CAD operations across several Web Workers.
|
|
250
246
|
*
|
|
@@ -307,7 +303,6 @@ function createWorkerPool(options) {
|
|
|
307
303
|
dispose
|
|
308
304
|
};
|
|
309
305
|
}
|
|
310
|
-
//#endregion
|
|
311
306
|
Object.defineProperty(exports, "createOperationRegistry", {
|
|
312
307
|
enumerable: true,
|
|
313
308
|
get: function() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brepjs",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.7.0",
|
|
4
4
|
"description": "Web CAD library with pluggable geometry kernel",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cad",
|
|
@@ -265,29 +265,29 @@
|
|
|
265
265
|
"@emnapi/core": "1.11.3",
|
|
266
266
|
"@emnapi/runtime": "1.11.3",
|
|
267
267
|
"@eslint/js": "10.0.1",
|
|
268
|
-
"@size-limit/file": "14.
|
|
268
|
+
"@size-limit/file": "14.2.0",
|
|
269
269
|
"@types/opentype.js": "1.3.9",
|
|
270
270
|
"@types/react": "19.3.0",
|
|
271
271
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
272
272
|
"@vitest/coverage-v8": "5.0.3",
|
|
273
273
|
"brepjs-opencascade": "*",
|
|
274
|
-
"brepkit-wasm": "4.
|
|
274
|
+
"brepkit-wasm": "4.1.48",
|
|
275
275
|
"eslint": "10.12.0",
|
|
276
276
|
"fast-check": "4.10.2",
|
|
277
277
|
"husky": "9.1.7",
|
|
278
278
|
"knip": "6.27.0",
|
|
279
279
|
"lint-staged": "17.6.0",
|
|
280
280
|
"lz-string": "1.5.0",
|
|
281
|
-
"occt-wasm": "5.
|
|
282
|
-
"prettier": "3.9.
|
|
283
|
-
"puppeteer": "25.
|
|
284
|
-
"size-limit": "14.
|
|
281
|
+
"occt-wasm": "5.7.0",
|
|
282
|
+
"prettier": "3.9.10",
|
|
283
|
+
"puppeteer": "25.13.0",
|
|
284
|
+
"size-limit": "14.2.0",
|
|
285
285
|
"sucrase": "3.35.1",
|
|
286
286
|
"tsx": "4.23.15",
|
|
287
287
|
"typedoc": "0.28.20",
|
|
288
288
|
"typescript": "6.0.3",
|
|
289
|
-
"typescript-eslint": "8.71.
|
|
290
|
-
"vite": "8.3.
|
|
289
|
+
"typescript-eslint": "8.71.1",
|
|
290
|
+
"vite": "8.3.5",
|
|
291
291
|
"vite-plugin-dts": "5.1.2",
|
|
292
292
|
"vitest": "5.0.3"
|
|
293
293
|
},
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
"esbuild@<0.25.0": "^0.25.0",
|
|
321
321
|
"esbuild@>=0.26.0 <0.28.1": "^0.28.1",
|
|
322
322
|
"js-yaml": "^4.2.0",
|
|
323
|
-
"markdown-it": "^14.3.
|
|
323
|
+
"markdown-it": "^14.3.3",
|
|
324
324
|
"vitepress": {
|
|
325
325
|
"vite": "6.4.3"
|
|
326
326
|
}
|