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.
Files changed (117) hide show
  1. package/README.md +1 -0
  2. package/dist/2d.cjs +9 -11
  3. package/dist/2d.js +9 -11
  4. package/dist/{adjacencyFns-DeyXahej.js → adjacencyFns-BgJQQjdt.js} +5 -6
  5. package/dist/{adjacencyFns-1rxgJ6Hw.cjs → adjacencyFns-_RTYhwtD.cjs} +5 -6
  6. package/dist/{arrayAccess-DrUGPADn.js → arrayAccess-BpgouNir.js} +1 -2
  7. package/dist/{arrayAccess-e4H9cBfh.cjs → arrayAccess-DpJYARwv.cjs} +1 -2
  8. package/dist/{blueprint-rwJjYPzo.js → blueprint-Bth4EVaO.js} +24 -37
  9. package/dist/{blueprint-Yyoiz-U1.cjs → blueprint-wq2TU1XP.cjs} +24 -37
  10. package/dist/{blueprintFns-Q3Sq-Fse.js → blueprintFns-DQmNe1p6.js} +5 -7
  11. package/dist/{blueprintFns-Ce6OoPSX.cjs → blueprintFns-Dd0gm1rX.cjs} +5 -7
  12. package/dist/{blueprintSketcher-CzKbxeTk.cjs → blueprintSketcher-CSDqr27-.cjs} +19 -31
  13. package/dist/{blueprintSketcher-FywUpRiV.js → blueprintSketcher-DNp87aQZ.js} +19 -31
  14. package/dist/{boolean2D-D8igCYc9.js → boolean2D-BAb4SnIL.js} +13 -19
  15. package/dist/{boolean2D-BzZ9iBSn.cjs → boolean2D-BkgOjMRt.cjs} +13 -19
  16. package/dist/brepjs.cjs +113 -187
  17. package/dist/brepjs.js +113 -188
  18. package/dist/{bug-O02CsAmt.cjs → bug-CBcpIPuf.cjs} +2 -4
  19. package/dist/{bug-BdOHwn_e.js → bug-ClMTAJhe.js} +2 -4
  20. package/dist/{cameraFns-Cs6v3bWQ.js → cameraFns-9AGyuZVp.js} +8 -11
  21. package/dist/{cameraFns-RHCb1F1s.cjs → cameraFns-CKUN90f_.cjs} +8 -11
  22. package/dist/{constants-ITRzCnCp.js → constants-iraOnb2p.js} +1 -2
  23. package/dist/{constants-BOVyEYGH.cjs → constants-oee0S_x6.cjs} +1 -2
  24. package/dist/core/errors.d.ts +3 -0
  25. package/dist/core.cjs +8 -8
  26. package/dist/core.js +8 -8
  27. package/dist/{cornerFinder-Dlae8IX5.js → cornerFinder-Cr_04etw.js} +4 -5
  28. package/dist/{cornerFinder-Cji_BK-R.cjs → cornerFinder-DJWo6h1Z.cjs} +4 -5
  29. package/dist/{curveFns-KS1BWGhF.js → curveFns-CkA2WJP2.js} +3 -4
  30. package/dist/{curveFns-6-ULFrEB.cjs → curveFns-U7srQ3ZA.cjs} +3 -4
  31. package/dist/{drawFns-3yRVBDgI.js → drawFns-C6bmFijD.js} +32 -45
  32. package/dist/{drawFns-Ddlgp9gQ.cjs → drawFns-DlCxozRP.cjs} +32 -45
  33. package/dist/{errors-jwhfQJZK.cjs → errors-GVyCnpi0.cjs} +6 -5
  34. package/dist/{errors-Zb3jBa0u.js → errors-vxP5FT8B.js} +6 -5
  35. package/dist/{faceFns-CTlJC5IY.js → faceFns-BBk6XKJO.js} +6 -8
  36. package/dist/{faceFns-CZeHWke7.cjs → faceFns-DSRREV5G.cjs} +6 -8
  37. package/dist/{faceRoleFns-CWU1-Pm8.js → faceRoleFns-BPxzQF-n.js} +1 -2
  38. package/dist/{faceRoleFns-CtH_48MO.cjs → faceRoleFns-Db5bYj4Q.cjs} +1 -2
  39. package/dist/{healingFns-DwSpJZfg.cjs → healingFns-C9G3yjOe.cjs} +148 -51
  40. package/dist/{healingFns-Ct3gEMvk.js → healingFns-CEr0afli.js} +148 -51
  41. package/dist/{helpers-NRZVshPb.cjs → helpers-JuPoaP_b.cjs} +15 -21
  42. package/dist/{helpers-BN1mVMuZ.js → helpers-sDialr0f.js} +15 -21
  43. package/dist/{importFns-BEi-HsSw.cjs → importFns-ClqPJCFR.cjs} +12 -19
  44. package/dist/{importFns-0kHGg-b8.js → importFns-DSUfSQn2.js} +12 -19
  45. package/dist/io.cjs +2 -2
  46. package/dist/io.js +2 -2
  47. package/dist/kernel/capabilities.d.ts +8 -0
  48. package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
  49. package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -2
  50. package/dist/{loftFns-B5mq1WDh.js → loftFns-B8DSoG-F.js} +7 -10
  51. package/dist/{loftFns-DL9UsQhd.cjs → loftFns-mkJeOaII.cjs} +7 -10
  52. package/dist/{measureFns-D_GpQw5z.cjs → measureFns-BvNkzSR6.cjs} +6 -8
  53. package/dist/{measureFns-CyDVZomf.js → measureFns-PRM3gOjw.js} +6 -8
  54. package/dist/measurement.cjs +2 -2
  55. package/dist/measurement.js +2 -2
  56. package/dist/{meshFns-COlno8TY.js → meshFns-CgbT3uuO.js} +6 -8
  57. package/dist/{meshFns-CAxkaRTm.cjs → meshFns-W7ZTKqiJ.cjs} +6 -8
  58. package/dist/{occtWasmAdapter-CA6PmIIj.cjs → occtWasmAdapter-BSQeA69d.cjs} +49 -57
  59. package/dist/{occtWasmAdapter-BX10fyla.js → occtWasmAdapter-PzZJHUAd.js} +44 -58
  60. package/dist/operations.cjs +2 -2
  61. package/dist/operations.js +2 -2
  62. package/dist/{originTrackingFns-DiHy5BZC.js → originTrackingFns-D8SNCDKj.js} +4 -5
  63. package/dist/{originTrackingFns-CWo6NWHK.cjs → originTrackingFns-DJDTRJh3.cjs} +4 -5
  64. package/dist/{planeOps-DJuclNxa.cjs → planeOps-C9d2Y56B.cjs} +5 -6
  65. package/dist/{planeOps-Cxws4Tiu.js → planeOps-Dp0YvuFE.js} +5 -6
  66. package/dist/{primitiveFns-ZV3aMbqG.cjs → primitiveFns-EtHyTqhw.cjs} +8 -10
  67. package/dist/{primitiveFns-CGJzS4MO.js → primitiveFns-W3RYNJcm.js} +8 -10
  68. package/dist/{principalBoxFns-BJgGEoik.js → principalBoxFns-Cbtty-2_.js} +7 -8
  69. package/dist/{principalBoxFns-5FSbxAj-.cjs → principalBoxFns-CmZa7qHi.cjs} +7 -8
  70. package/dist/projection.cjs +1 -1
  71. package/dist/projection.js +1 -2
  72. package/dist/query.cjs +2 -2
  73. package/dist/query.js +2 -2
  74. package/dist/{refResolveFns-CpVZoeOT.js → refResolveFns-BkciKtNP.js} +14 -21
  75. package/dist/{refResolveFns-Ct52Uw7R.cjs → refResolveFns-D99Vqe7a.cjs} +14 -21
  76. package/dist/result.cjs +2 -2
  77. package/dist/result.js +2 -2
  78. package/dist/{rolldown-runtime-C0BPl7ul.cjs → rolldown-runtime-BW-eSwOZ.cjs} +1 -2
  79. package/dist/{shapeFns-C2j6oZ2u.cjs → shapeFns-B54CsPyk.cjs} +5 -6
  80. package/dist/{shapeFns--1wNlcc_.js → shapeFns-DB3l3ULC.js} +5 -6
  81. package/dist/shapeRef.cjs +1 -1
  82. package/dist/shapeRef.js +1 -2
  83. package/dist/{shapeTypes-CqNJoSam.js → shapeTypes-CgbUTASh.js} +82 -161
  84. package/dist/{shapeTypes-DH2ShBU_.cjs → shapeTypes-D_anqiRe.cjs} +82 -161
  85. package/dist/sketching.cjs +4 -5
  86. package/dist/sketching.js +4 -5
  87. package/dist/{solidBuilders-CgicU3le.cjs → solidBuilders-CUd-korS.cjs} +17 -23
  88. package/dist/{solidBuilders-IstbiWju.js → solidBuilders-DE_na4G3.js} +17 -23
  89. package/dist/{surfaceBuilders-vYgSvgI6.cjs → surfaceBuilders-DOn2jWkh.cjs} +8 -12
  90. package/dist/{surfaceBuilders-8nLk2PWk.js → surfaceBuilders-wdGNiImD.js} +8 -12
  91. package/dist/text.cjs +2 -2
  92. package/dist/text.js +2 -2
  93. package/dist/{textBlueprints-fa7VHJZz.cjs → textBlueprints-BQ60Rc96.cjs} +24 -32
  94. package/dist/{textBlueprints-C13NAA3C.js → textBlueprints-B_jwMuej.js} +23 -31
  95. package/dist/{textMetrics--cikHkGX.cjs → textMetrics-Bm0a4kh7.cjs} +4 -6
  96. package/dist/{textMetrics-Dcc63qRm.js → textMetrics-Dj3yfZNQ.js} +4 -6
  97. package/dist/{threadFns-BUQPg_vI.cjs → threadFns-BuRPVenB.cjs} +21 -33
  98. package/dist/{threadFns-3U9x4v_M.js → threadFns-DlL5VnMf.js} +21 -33
  99. package/dist/topology/modifierFns.d.ts +5 -0
  100. package/dist/topology/thickResultCheck.d.ts +18 -0
  101. package/dist/topology.cjs +9 -9
  102. package/dist/topology.js +9 -9
  103. package/dist/{topologyQueryFns-DnfjQgP7.js → topologyQueryFns-6M_dbT1R.js} +10 -10
  104. package/dist/{topologyQueryFns-q2bGyuEV.cjs → topologyQueryFns-ENxs8uu2.cjs} +15 -9
  105. package/dist/{types-D24Y27N0.js → types-CKXsIm9-.js} +1 -2
  106. package/dist/{types-KjA8tY4Y.cjs → types-CjF9Rofr.cjs} +1 -2
  107. package/dist/{validityTypes-r0A2YdNq.cjs → validityTypes-BPamqRZ8.cjs} +3 -4
  108. package/dist/{validityTypes-t7JpS0Ki.js → validityTypes-BTuI0vcR.js} +3 -4
  109. package/dist/{vecOps-CCnJt-yH.cjs → vecOps-CrGEPPQM.cjs} +1 -2
  110. package/dist/{vecOps-SKPRvPH-.js → vecOps-S-m9H_fe.js} +1 -2
  111. package/dist/vectors.cjs +4 -4
  112. package/dist/vectors.js +4 -4
  113. package/dist/worker.cjs +1 -1
  114. package/dist/worker.js +1 -2
  115. package/dist/{workerPool-XcYX2UZ0.js → workerPool-Bc5hmJc4.js} +5 -10
  116. package/dist/{workerPool-D30NsiIW.cjs → workerPool-D5tiNXrI.cjs} +5 -10
  117. package/package.json +10 -10
@@ -1,4 +1,4 @@
1
- //#region src/worker/protocol.ts
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#region src/worker/protocol.ts
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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.5.0",
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.1.0",
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.0.62",
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.6.0",
282
- "prettier": "3.9.9",
283
- "puppeteer": "25.12.0",
284
- "size-limit": "14.1.0",
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.0",
290
- "vite": "8.3.2",
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.2",
323
+ "markdown-it": "^14.3.3",
324
324
  "vitepress": {
325
325
  "vite": "6.4.3"
326
326
  }