brepjs 20.4.0 → 20.6.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 (113) 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-1rxgJ6Hw.cjs → adjacencyFns-CmNvIFu1.cjs} +5 -6
  5. package/dist/{adjacencyFns-DeyXahej.js → adjacencyFns-DO9_F2YJ.js} +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-Yyoiz-U1.cjs → blueprint-Ci2Mw5v-.cjs} +24 -37
  9. package/dist/{blueprint-rwJjYPzo.js → blueprint-DHKul4EN.js} +24 -37
  10. package/dist/{blueprintFns-Ce6OoPSX.cjs → blueprintFns-CbJPSd5r.cjs} +5 -7
  11. package/dist/{blueprintFns-Q3Sq-Fse.js → blueprintFns-D68_PxRl.js} +5 -7
  12. package/dist/{blueprintSketcher-FywUpRiV.js → blueprintSketcher-j9vJAniE.js} +19 -31
  13. package/dist/{blueprintSketcher-CzKbxeTk.cjs → blueprintSketcher-pVbM0BHf.cjs} +19 -31
  14. package/dist/{boolean2D-D8igCYc9.js → boolean2D-D6Oc8tBx.js} +13 -19
  15. package/dist/{boolean2D-BzZ9iBSn.cjs → boolean2D-Dq29HCr9.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-RHCb1F1s.cjs → cameraFns-BMXugx7m.cjs} +8 -11
  21. package/dist/{cameraFns-Cs6v3bWQ.js → cameraFns-DVZkA2eq.js} +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.cjs +8 -8
  25. package/dist/core.js +8 -8
  26. package/dist/{cornerFinder-Dlae8IX5.js → cornerFinder-DSnn8gRP.js} +4 -5
  27. package/dist/{cornerFinder-Cji_BK-R.cjs → cornerFinder-DshfhGHG.cjs} +4 -5
  28. package/dist/{curveFns-KS1BWGhF.js → curveFns-CEb6TLxC.js} +3 -4
  29. package/dist/{curveFns-6-ULFrEB.cjs → curveFns-Cxq5lFqU.cjs} +3 -4
  30. package/dist/{drawFns-Ddlgp9gQ.cjs → drawFns-CH0q-0JP.cjs} +32 -45
  31. package/dist/{drawFns-3yRVBDgI.js → drawFns-DMhKXGgG.js} +32 -45
  32. package/dist/{errors-Zb3jBa0u.js → errors-B3espUT6.js} +3 -5
  33. package/dist/{errors-jwhfQJZK.cjs → errors-DoMAp7mQ.cjs} +3 -5
  34. package/dist/{faceFns-CZeHWke7.cjs → faceFns-B8ctN5Te.cjs} +6 -8
  35. package/dist/{faceFns-CTlJC5IY.js → faceFns-C-wc4fX-.js} +6 -8
  36. package/dist/{faceRoleFns-CWU1-Pm8.js → faceRoleFns-BPxzQF-n.js} +1 -2
  37. package/dist/{faceRoleFns-CtH_48MO.cjs → faceRoleFns-Db5bYj4Q.cjs} +1 -2
  38. package/dist/{healingFns-Ct3gEMvk.js → healingFns-CJfuZMw2.js} +16 -25
  39. package/dist/{healingFns-DwSpJZfg.cjs → healingFns-D3mNy1rp.cjs} +16 -25
  40. package/dist/{helpers-BN1mVMuZ.js → helpers-BXoAMWe3.js} +15 -21
  41. package/dist/{helpers-NRZVshPb.cjs → helpers-BhHbDu6-.cjs} +15 -21
  42. package/dist/{importFns-BEi-HsSw.cjs → importFns-DHaw1x5R.cjs} +12 -19
  43. package/dist/{importFns-0kHGg-b8.js → importFns-YZyGYu_M.js} +12 -19
  44. package/dist/io.cjs +2 -2
  45. package/dist/io.js +2 -2
  46. package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
  47. package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -2
  48. package/dist/{loftFns-B5mq1WDh.js → loftFns-CTTia_cZ.js} +7 -10
  49. package/dist/{loftFns-DL9UsQhd.cjs → loftFns-DVr6PaTM.cjs} +7 -10
  50. package/dist/{measureFns-CyDVZomf.js → measureFns-BmdVG0_8.js} +6 -8
  51. package/dist/{measureFns-D_GpQw5z.cjs → measureFns-C6wgH_1a.cjs} +6 -8
  52. package/dist/measurement.cjs +2 -2
  53. package/dist/measurement.js +2 -2
  54. package/dist/{meshFns-CAxkaRTm.cjs → meshFns-r_p0RRoO.cjs} +6 -8
  55. package/dist/{meshFns-COlno8TY.js → meshFns-uNRS602U.js} +6 -8
  56. package/dist/{occtWasmAdapter-CA6PmIIj.cjs → occtWasmAdapter-CxSY6Ty2.cjs} +37 -56
  57. package/dist/{occtWasmAdapter-BX10fyla.js → occtWasmAdapter-cnV8J7Y-.js} +37 -56
  58. package/dist/operations.cjs +2 -2
  59. package/dist/operations.js +2 -2
  60. package/dist/{originTrackingFns-DiHy5BZC.js → originTrackingFns-BIa3TdgX.js} +4 -5
  61. package/dist/{originTrackingFns-CWo6NWHK.cjs → originTrackingFns-DgJ-MTtE.cjs} +4 -5
  62. package/dist/{planeOps-DJuclNxa.cjs → planeOps-BDt05NAD.cjs} +5 -6
  63. package/dist/{planeOps-Cxws4Tiu.js → planeOps-BkwaqhUj.js} +5 -6
  64. package/dist/{primitiveFns-ZV3aMbqG.cjs → primitiveFns-CktCbLBo.cjs} +8 -10
  65. package/dist/{primitiveFns-CGJzS4MO.js → primitiveFns-h_zOAbmf.js} +8 -10
  66. package/dist/{principalBoxFns-5FSbxAj-.cjs → principalBoxFns-28BQIeo8.cjs} +7 -8
  67. package/dist/{principalBoxFns-BJgGEoik.js → principalBoxFns-DkP-681E.js} +7 -8
  68. package/dist/projection.cjs +1 -1
  69. package/dist/projection.js +1 -2
  70. package/dist/query.cjs +2 -2
  71. package/dist/query.js +2 -2
  72. package/dist/{refResolveFns-CpVZoeOT.js → refResolveFns-DUDJqfOM.js} +14 -21
  73. package/dist/{refResolveFns-Ct52Uw7R.cjs → refResolveFns-fSzDZ1rx.cjs} +14 -21
  74. package/dist/result.cjs +2 -2
  75. package/dist/result.js +2 -2
  76. package/dist/{rolldown-runtime-C0BPl7ul.cjs → rolldown-runtime-BW-eSwOZ.cjs} +1 -2
  77. package/dist/{shapeFns--1wNlcc_.js → shapeFns-B5hzkmwe.js} +5 -6
  78. package/dist/{shapeFns-C2j6oZ2u.cjs → shapeFns-DKDlt3k2.cjs} +5 -6
  79. package/dist/shapeRef.cjs +1 -1
  80. package/dist/shapeRef.js +1 -2
  81. package/dist/{shapeTypes-CqNJoSam.js → shapeTypes-Bva18qvE.js} +81 -160
  82. package/dist/{shapeTypes-DH2ShBU_.cjs → shapeTypes-CkxvJRpq.cjs} +81 -160
  83. package/dist/sketching.cjs +4 -5
  84. package/dist/sketching.js +4 -5
  85. package/dist/{solidBuilders-CgicU3le.cjs → solidBuilders-BFEnqrU0.cjs} +17 -23
  86. package/dist/{solidBuilders-IstbiWju.js → solidBuilders-BpTN-NfM.js} +17 -23
  87. package/dist/{surfaceBuilders-vYgSvgI6.cjs → surfaceBuilders-CTk2lGlw.cjs} +8 -12
  88. package/dist/{surfaceBuilders-8nLk2PWk.js → surfaceBuilders-DAZCPa5O.js} +8 -12
  89. package/dist/text.cjs +2 -2
  90. package/dist/text.js +2 -2
  91. package/dist/{textBlueprints-fa7VHJZz.cjs → textBlueprints-DbEWBdhF.cjs} +24 -32
  92. package/dist/{textBlueprints-C13NAA3C.js → textBlueprints-DuwP72D6.js} +23 -31
  93. package/dist/{textMetrics--cikHkGX.cjs → textMetrics-CbNBlPsl.cjs} +4 -6
  94. package/dist/{textMetrics-Dcc63qRm.js → textMetrics-q6RSXX9Z.js} +4 -6
  95. package/dist/{threadFns-BUQPg_vI.cjs → threadFns-5FXCN-9R.cjs} +21 -33
  96. package/dist/{threadFns-3U9x4v_M.js → threadFns-BcsScbp4.js} +21 -33
  97. package/dist/topology.cjs +9 -9
  98. package/dist/topology.js +9 -9
  99. package/dist/{topologyQueryFns-q2bGyuEV.cjs → topologyQueryFns-C6HwYYpi.cjs} +6 -9
  100. package/dist/{topologyQueryFns-DnfjQgP7.js → topologyQueryFns-CY6YiGsk.js} +6 -9
  101. package/dist/{types-D24Y27N0.js → types-CKXsIm9-.js} +1 -2
  102. package/dist/{types-KjA8tY4Y.cjs → types-CjF9Rofr.cjs} +1 -2
  103. package/dist/{validityTypes-r0A2YdNq.cjs → validityTypes-D0IDDMbY.cjs} +3 -4
  104. package/dist/{validityTypes-t7JpS0Ki.js → validityTypes-MiXYsBZi.js} +3 -4
  105. package/dist/{vecOps-CCnJt-yH.cjs → vecOps-CrGEPPQM.cjs} +1 -2
  106. package/dist/{vecOps-SKPRvPH-.js → vecOps-S-m9H_fe.js} +1 -2
  107. package/dist/vectors.cjs +4 -4
  108. package/dist/vectors.js +4 -4
  109. package/dist/worker.cjs +1 -1
  110. package/dist/worker.js +1 -2
  111. package/dist/{workerPool-XcYX2UZ0.js → workerPool-Bc5hmJc4.js} +5 -10
  112. package/dist/{workerPool-D30NsiIW.cjs → workerPool-D5tiNXrI.cjs} +5 -10
  113. package/package.json +15 -15
@@ -1,19 +1,18 @@
1
- const require_shapeTypes = require("./shapeTypes-DH2ShBU_.cjs");
2
- const require_errors = require("./errors-jwhfQJZK.cjs");
3
- const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
4
- const require_faceFns = require("./faceFns-CZeHWke7.cjs");
5
- const require_solidBuilders = require("./solidBuilders-CgicU3le.cjs");
6
- const require_primitiveFns = require("./primitiveFns-ZV3aMbqG.cjs");
7
- const require_shapeFns = require("./shapeFns-C2j6oZ2u.cjs");
8
- const require_loftFns = require("./loftFns-DL9UsQhd.cjs");
9
- const require_refResolveFns = require("./refResolveFns-Ct52Uw7R.cjs");
10
- //#region src/utils/uuid.ts
1
+ const require_shapeTypes = require("./shapeTypes-CkxvJRpq.cjs");
2
+ const require_errors = require("./errors-DoMAp7mQ.cjs");
3
+ const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
4
+ const require_faceFns = require("./faceFns-B8ctN5Te.cjs");
5
+ const require_solidBuilders = require("./solidBuilders-BFEnqrU0.cjs");
6
+ const require_primitiveFns = require("./primitiveFns-CktCbLBo.cjs");
7
+ const require_shapeFns = require("./shapeFns-DKDlt3k2.cjs");
8
+ const require_loftFns = require("./loftFns-DVr6PaTM.cjs");
9
+ const require_refResolveFns = require("./refResolveFns-fSzDZ1rx.cjs");
10
+ // src/utils/uuid.ts
11
11
  /** Generate a v4-style UUID string using `crypto.getRandomValues`. */
12
12
  function uuidv() {
13
13
  return (String([1e7]) + String(-1e3) + String(-4e3) + String(-8e3) + String(-1e11)).replace(/[018]/g, (c) => (Number(c) ^ crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(1))[0] & 15 >> Number(c) / 4).toString(16));
14
14
  }
15
- //#endregion
16
- //#region src/operations/exporters.ts
15
+ // src/operations/exporters.ts
17
16
  /**
18
17
  * Create an XCAF assembly document from a list of shape configurations.
19
18
  *
@@ -48,8 +47,7 @@ function createAssembly(shapes = []) {
48
47
  const doc = require_shapeTypes.getKernel().createXCAFDocument(parts);
49
48
  return require_shapeTypes.createKernelHandle(doc);
50
49
  }
51
- //#endregion
52
- //#region src/utils/quaternion.ts
50
+ // src/utils/quaternion.ts
53
51
  function dot(a, b) {
54
52
  return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
55
53
  }
@@ -136,8 +134,7 @@ function quatMultiply(a, b) {
136
134
  aw * bz + ax * by - ay * bx + az * bw
137
135
  ];
138
136
  }
139
- //#endregion
140
- //#region src/operations/patternFns.ts
137
+ // src/operations/patternFns.ts
141
138
  /**
142
139
  * Create a linear pattern of a shape along a direction.
143
140
  *
@@ -226,8 +223,7 @@ function gridPattern(shape, directionX, directionY, countX, countY, spacingX, sp
226
223
  if (row !== shape && !passthrough) row[Symbol.dispose]();
227
224
  return out;
228
225
  }
229
- //#endregion
230
- //#region src/operations/exporterFns.ts
226
+ // src/operations/exporterFns.ts
231
227
  /**
232
228
  * Functional assembly exporter using branded shape types.
233
229
  */
@@ -292,8 +288,7 @@ function exportAssemblySTEP(shapes = [], { unit, modelUnit } = {}) {
292
288
  doc.delete();
293
289
  }
294
290
  }
295
- //#endregion
296
- //#region src/operations/assemblyFns.ts
291
+ // src/operations/assemblyFns.ts
297
292
  /** Create a new assembly node. */
298
293
  function createAssemblyNode(name, options = {}) {
299
294
  return {
@@ -360,8 +355,7 @@ function collectShapes(root) {
360
355
  });
361
356
  return shapes;
362
357
  }
363
- //#endregion
364
- //#region src/operations/jointFns.ts
358
+ // src/operations/jointFns.ts
365
359
  var DEG2RAD$2 = Math.PI / 180;
366
360
  function clamp(value, min, max) {
367
361
  return Math.min(max, Math.max(min, value));
@@ -687,8 +681,7 @@ function forwardKinematics(assembly, jointValues = {}) {
687
681
  function mechanismDOF(assembly) {
688
682
  return collectJoints(assembly).reduce((sum, j) => sum + j.dofs.length, 0);
689
683
  }
690
- //#endregion
691
- //#region src/operations/ikFns.ts
684
+ // src/operations/ikFns.ts
692
685
  var IDENTITY_POSE = {
693
686
  position: [
694
687
  0,
@@ -987,8 +980,7 @@ function jointTrajectory(assembly, from, to, steps) {
987
980
  }
988
981
  return samples;
989
982
  }
990
- //#endregion
991
- //#region src/operations/dhFns.ts
983
+ // src/operations/dhFns.ts
992
984
  /**
993
985
  * Denavit-Hartenberg interchange: build a brepjs joint chain from a standard
994
986
  * (distal) DH parameter table.
@@ -1064,8 +1056,7 @@ function jointsFromDH(rows, options = {}) {
1064
1056
  };
1065
1057
  });
1066
1058
  }
1067
- //#endregion
1068
- //#region src/operations/urdfFns.ts
1059
+ // src/operations/urdfFns.ts
1069
1060
  /**
1070
1061
  * URDF interchange: export a brepjs assembly + its joints to URDF, and import a
1071
1062
  * URDF document back into links and joints.
@@ -1241,8 +1232,7 @@ function importURDF(xml) {
1241
1232
  joints
1242
1233
  });
1243
1234
  }
1244
- //#endregion
1245
- //#region src/operations/historyFns.ts
1235
+ // src/operations/historyFns.ts
1246
1236
  /** Create a new empty history. */
1247
1237
  function createHistory() {
1248
1238
  return {
@@ -1458,8 +1448,7 @@ function deserializeHistory(data) {
1458
1448
  shapes
1459
1449
  });
1460
1450
  }
1461
- //#endregion
1462
- //#region src/operations/threadFns.ts
1451
+ // src/operations/threadFns.ts
1463
1452
  /**
1464
1453
  * Build a helical screw-thread ridge by lofting rotated tooth sections.
1465
1454
  *
@@ -1529,7 +1518,6 @@ function thread(options) {
1529
1518
  _usingCtx$1.d();
1530
1519
  }
1531
1520
  }
1532
- //#endregion
1533
1521
  Object.defineProperty(exports, "addChild", {
1534
1522
  enumerable: true,
1535
1523
  get: function() {
@@ -1,19 +1,18 @@
1
- import { F as createKernelHandle, G as _usingCtx, N as DisposalScope, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-CqNJoSam.js";
2
- import { E as ok, d as validationError, g as err, n as computationError, r as ioError, t as BrepErrorCode, x as isOk } from "./errors-Zb3jBa0u.js";
3
- import { d as vecNormalize, s as vecIsZero } from "./vecOps-SKPRvPH-.js";
4
- import { b as fromBREP } from "./faceFns-CTlJC5IY.js";
5
- import { h as fuseAll } from "./solidBuilders-IstbiWju.js";
6
- import { E as wire, h as line } from "./primitiveFns-CGJzS4MO.js";
7
- import { s as toBREP } from "./shapeFns--1wNlcc_.js";
8
- import { t as loft } from "./loftFns-B5mq1WDh.js";
9
- import { c as resolveRefParams } from "./refResolveFns-CpVZoeOT.js";
10
- //#region src/utils/uuid.ts
1
+ import { F as createKernelHandle, G as _usingCtx, N as DisposalScope, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-Bva18qvE.js";
2
+ import { E as ok, d as validationError, g as err, n as computationError, r as ioError, t as BrepErrorCode, x as isOk } from "./errors-B3espUT6.js";
3
+ import { d as vecNormalize, s as vecIsZero } from "./vecOps-S-m9H_fe.js";
4
+ import { b as fromBREP } from "./faceFns-C-wc4fX-.js";
5
+ import { h as fuseAll } from "./solidBuilders-BpTN-NfM.js";
6
+ import { E as wire, h as line } from "./primitiveFns-h_zOAbmf.js";
7
+ import { s as toBREP } from "./shapeFns-B5hzkmwe.js";
8
+ import { t as loft } from "./loftFns-CTTia_cZ.js";
9
+ import { c as resolveRefParams } from "./refResolveFns-DUDJqfOM.js";
10
+ // src/utils/uuid.ts
11
11
  /** Generate a v4-style UUID string using `crypto.getRandomValues`. */
12
12
  function uuidv() {
13
13
  return (String([1e7]) + String(-1e3) + String(-4e3) + String(-8e3) + String(-1e11)).replace(/[018]/g, (c) => (Number(c) ^ crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(1))[0] & 15 >> Number(c) / 4).toString(16));
14
14
  }
15
- //#endregion
16
- //#region src/operations/exporters.ts
15
+ // src/operations/exporters.ts
17
16
  /**
18
17
  * Create an XCAF assembly document from a list of shape configurations.
19
18
  *
@@ -48,8 +47,7 @@ function createAssembly(shapes = []) {
48
47
  const doc = getKernel().createXCAFDocument(parts);
49
48
  return createKernelHandle(doc);
50
49
  }
51
- //#endregion
52
- //#region src/utils/quaternion.ts
50
+ // src/utils/quaternion.ts
53
51
  function dot(a, b) {
54
52
  return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
55
53
  }
@@ -136,8 +134,7 @@ function quatMultiply(a, b) {
136
134
  aw * bz + ax * by - ay * bx + az * bw
137
135
  ];
138
136
  }
139
- //#endregion
140
- //#region src/operations/patternFns.ts
137
+ // src/operations/patternFns.ts
141
138
  /**
142
139
  * Create a linear pattern of a shape along a direction.
143
140
  *
@@ -226,8 +223,7 @@ function gridPattern(shape, directionX, directionY, countX, countY, spacingX, sp
226
223
  if (row !== shape && !passthrough) row[Symbol.dispose]();
227
224
  return out;
228
225
  }
229
- //#endregion
230
- //#region src/operations/exporterFns.ts
226
+ // src/operations/exporterFns.ts
231
227
  /**
232
228
  * Functional assembly exporter using branded shape types.
233
229
  */
@@ -292,8 +288,7 @@ function exportAssemblySTEP(shapes = [], { unit, modelUnit } = {}) {
292
288
  doc.delete();
293
289
  }
294
290
  }
295
- //#endregion
296
- //#region src/operations/assemblyFns.ts
291
+ // src/operations/assemblyFns.ts
297
292
  /** Create a new assembly node. */
298
293
  function createAssemblyNode(name, options = {}) {
299
294
  return {
@@ -360,8 +355,7 @@ function collectShapes(root) {
360
355
  });
361
356
  return shapes;
362
357
  }
363
- //#endregion
364
- //#region src/operations/jointFns.ts
358
+ // src/operations/jointFns.ts
365
359
  var DEG2RAD$2 = Math.PI / 180;
366
360
  function clamp(value, min, max) {
367
361
  return Math.min(max, Math.max(min, value));
@@ -687,8 +681,7 @@ function forwardKinematics(assembly, jointValues = {}) {
687
681
  function mechanismDOF(assembly) {
688
682
  return collectJoints(assembly).reduce((sum, j) => sum + j.dofs.length, 0);
689
683
  }
690
- //#endregion
691
- //#region src/operations/ikFns.ts
684
+ // src/operations/ikFns.ts
692
685
  var IDENTITY_POSE = {
693
686
  position: [
694
687
  0,
@@ -987,8 +980,7 @@ function jointTrajectory(assembly, from, to, steps) {
987
980
  }
988
981
  return samples;
989
982
  }
990
- //#endregion
991
- //#region src/operations/dhFns.ts
983
+ // src/operations/dhFns.ts
992
984
  /**
993
985
  * Denavit-Hartenberg interchange: build a brepjs joint chain from a standard
994
986
  * (distal) DH parameter table.
@@ -1064,8 +1056,7 @@ function jointsFromDH(rows, options = {}) {
1064
1056
  };
1065
1057
  });
1066
1058
  }
1067
- //#endregion
1068
- //#region src/operations/urdfFns.ts
1059
+ // src/operations/urdfFns.ts
1069
1060
  /**
1070
1061
  * URDF interchange: export a brepjs assembly + its joints to URDF, and import a
1071
1062
  * URDF document back into links and joints.
@@ -1241,8 +1232,7 @@ function importURDF(xml) {
1241
1232
  joints
1242
1233
  });
1243
1234
  }
1244
- //#endregion
1245
- //#region src/operations/historyFns.ts
1235
+ // src/operations/historyFns.ts
1246
1236
  /** Create a new empty history. */
1247
1237
  function createHistory() {
1248
1238
  return {
@@ -1458,8 +1448,7 @@ function deserializeHistory(data) {
1458
1448
  shapes
1459
1449
  });
1460
1450
  }
1461
- //#endregion
1462
- //#region src/operations/threadFns.ts
1451
+ // src/operations/threadFns.ts
1463
1452
  /**
1464
1453
  * Build a helical screw-thread ridge by lofting rotated tooth sections.
1465
1454
  *
@@ -1529,5 +1518,4 @@ function thread(options) {
1529
1518
  _usingCtx$1.d();
1530
1519
  }
1531
1520
  }
1532
- //#endregion
1533
1521
  export { setJointValue as A, walkAssembly as B, cylindricalJoint as C, planarJoint as D, mechanismDOF as E, countNodes as F, quatFromAxisAngle as G, circularPattern as H, createAssemblyNode as I, quatRotate as J, quatFromTo as K, findNode as L, sphericalJoint as M, addChild as N, prismaticJoint as O, collectShapes as P, removeChild as R, addJoint as S, jointTransform as T, gridPattern as U, exportAssemblySTEP as V, linearPattern as W, createAssembly as Y, exportURDF as _, deserializeHistory as a, inverseKinematics as b, modifyStep as c, replayFrom as d, replayHistory as f, undoLast as g, stepsFrom as h, createRegistry as i, setJointValues as j, revoluteJoint as k, registerOperation as l, stepCount as m, addStep as n, findStep as o, serializeHistory as p, quatMultiply as q, createHistory as r, getShape as s, thread as t, registerShape as u, importURDF as v, forwardKinematics as w, jointTrajectory as x, jointsFromDH as y, updateNode as z };
package/dist/topology.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_topologyQueryFns = require("./topologyQueryFns-q2bGyuEV.cjs");
3
- const require_faceFns = require("./faceFns-CZeHWke7.cjs");
4
- const require_solidBuilders = require("./solidBuilders-CgicU3le.cjs");
5
- const require_primitiveFns = require("./primitiveFns-ZV3aMbqG.cjs");
6
- const require_shapeFns = require("./shapeFns-C2j6oZ2u.cjs");
7
- const require_curveFns = require("./curveFns-6-ULFrEB.cjs");
8
- const require_meshFns = require("./meshFns-CAxkaRTm.cjs");
9
- const require_healingFns = require("./healingFns-DwSpJZfg.cjs");
10
- const require_adjacencyFns = require("./adjacencyFns-1rxgJ6Hw.cjs");
2
+ const require_topologyQueryFns = require("./topologyQueryFns-C6HwYYpi.cjs");
3
+ const require_faceFns = require("./faceFns-B8ctN5Te.cjs");
4
+ const require_solidBuilders = require("./solidBuilders-BFEnqrU0.cjs");
5
+ const require_primitiveFns = require("./primitiveFns-CktCbLBo.cjs");
6
+ const require_shapeFns = require("./shapeFns-DKDlt3k2.cjs");
7
+ const require_curveFns = require("./curveFns-Cxq5lFqU.cjs");
8
+ const require_meshFns = require("./meshFns-r_p0RRoO.cjs");
9
+ const require_healingFns = require("./healingFns-D3mNy1rp.cjs");
10
+ const require_adjacencyFns = require("./adjacencyFns-CmNvIFu1.cjs");
11
11
  exports.addHoles = require_primitiveFns.addHoles;
12
12
  exports.adjacentFaces = require_adjacencyFns.adjacentFaces;
13
13
  exports.approximateCurve = require_curveFns.approximateCurve;
package/dist/topology.js CHANGED
@@ -1,10 +1,10 @@
1
- import { _ as iterFaces, b as iterVertices, c as getFaces, f as getVertices, g as iterEdges, m as invalidateShapeCache, n as getBounds, p as getWires, s as getEdges, w as vertexPosition, x as iterWires } from "./topologyQueryFns-DnfjQgP7.js";
2
- import { C as shapeType, S as iterTopo, _ as cast, a as faceOrientation, b as fromBREP, c as innerWires, d as pointOnSurface, f as projectPointOnFace, g as asTopo, h as uvCoordinates, i as faceGeomType, l as normalAt, m as uvBounds, n as faceAxis, o as flipFaceOrientation, r as faceCenter, s as getSurfaceType, t as classifyPointOnFace, u as outerWire, x as isCompSolid, y as downcast } from "./faceFns-CTlJC5IY.js";
3
- import { h as fuseAll, p as cutAll } from "./solidBuilders-IstbiWju.js";
4
- import { C as threePointArc, D as wireLoop, E as wire, S as tangentArc, T as vertex, _ as polygon, a as circle, b as sphere, c as cylinder, d as ellipsoid, f as face, g as offsetFace, h as line, i as bsplineApprox, l as ellipse, m as helix, n as bezier, o as compound, p as filledFace, r as box, s as cone, t as addHoles, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-CGJzS4MO.js";
5
- import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns--1wNlcc_.js";
6
- import { a as curveIsPeriodic, c as curvePointAt, d as flipOrientation, f as getCurveType, h as offsetWire2D, i as curveIsClosed, l as curveStartPoint, m as interpolateCurve, n as curveAxis, o as curveLength, p as getOrientation, r as curveEndPoint, s as curvePeriod, t as approximateCurve, u as curveTangentAt } from "./curveFns-KS1BWGhF.js";
7
- import { d as clearMeshCache, f as createMeshCache, n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-COlno8TY.js";
8
- import { A as toBufferGeometryData, P as toLineGeometryData, S as chamferDistAngle, _ as checkBoolean, a as healFace, b as getNurbsCurveData, d as chamferWithEvolution, f as cutWithEvolution, g as shellWithEvolution, h as intersectWithEvolution, j as toGroupedBufferGeometryData, k as variableFillet, l as solidFromShell, m as fuseWithEvolution, n as fixSelfIntersection, o as healSolid, p as filletWithEvolution, r as fixShape, s as healWire, t as autoHeal, u as positionOnCurve, v as cutAllBisect, x as getNurbsSurfaceData, y as fuseAllBisect } from "./healingFns-Ct3gEMvk.js";
9
- import { i as facesOfEdge, l as wiresOfFace, n as adjacentFaces, o as sharedEdges, r as edgesOfFace, s as verticesOfEdge } from "./adjacencyFns-DeyXahej.js";
1
+ import { _ as iterFaces, b as iterVertices, c as getFaces, f as getVertices, g as iterEdges, m as invalidateShapeCache, n as getBounds, p as getWires, s as getEdges, w as vertexPosition, x as iterWires } from "./topologyQueryFns-CY6YiGsk.js";
2
+ import { C as shapeType, S as iterTopo, _ as cast, a as faceOrientation, b as fromBREP, c as innerWires, d as pointOnSurface, f as projectPointOnFace, g as asTopo, h as uvCoordinates, i as faceGeomType, l as normalAt, m as uvBounds, n as faceAxis, o as flipFaceOrientation, r as faceCenter, s as getSurfaceType, t as classifyPointOnFace, u as outerWire, x as isCompSolid, y as downcast } from "./faceFns-C-wc4fX-.js";
3
+ import { h as fuseAll, p as cutAll } from "./solidBuilders-BpTN-NfM.js";
4
+ import { C as threePointArc, D as wireLoop, E as wire, S as tangentArc, T as vertex, _ as polygon, a as circle, b as sphere, c as cylinder, d as ellipsoid, f as face, g as offsetFace, h as line, i as bsplineApprox, l as ellipse, m as helix, n as bezier, o as compound, p as filledFace, r as box, s as cone, t as addHoles, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-h_zOAbmf.js";
5
+ import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-B5hzkmwe.js";
6
+ import { a as curveIsPeriodic, c as curvePointAt, d as flipOrientation, f as getCurveType, h as offsetWire2D, i as curveIsClosed, l as curveStartPoint, m as interpolateCurve, n as curveAxis, o as curveLength, p as getOrientation, r as curveEndPoint, s as curvePeriod, t as approximateCurve, u as curveTangentAt } from "./curveFns-CEb6TLxC.js";
7
+ import { d as clearMeshCache, f as createMeshCache, n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-uNRS602U.js";
8
+ import { A as toBufferGeometryData, P as toLineGeometryData, S as chamferDistAngle, _ as checkBoolean, a as healFace, b as getNurbsCurveData, d as chamferWithEvolution, f as cutWithEvolution, g as shellWithEvolution, h as intersectWithEvolution, j as toGroupedBufferGeometryData, k as variableFillet, l as solidFromShell, m as fuseWithEvolution, n as fixSelfIntersection, o as healSolid, p as filletWithEvolution, r as fixShape, s as healWire, t as autoHeal, u as positionOnCurve, v as cutAllBisect, x as getNurbsSurfaceData, y as fuseAllBisect } from "./healingFns-CJfuZMw2.js";
9
+ import { i as facesOfEdge, l as wiresOfFace, n as adjacentFaces, o as sharedEdges, r as edgesOfFace, s as verticesOfEdge } from "./adjacencyFns-DO9_F2YJ.js";
10
10
  export { addHoles, adjacentFaces, approximateCurve, asTopo, autoHeal, bezier, box, bsplineApprox, cast, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkBoolean, circle, classifyPointOnFace, clearMeshCache, compound, cone, createMeshCache, curveAxis, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cutAll, cutAllBisect, cutWithEvolution, cylinder, fromBREP as deserializeShape, downcast, edgesOfFace, ellipse, ellipseArc, ellipsoid, exportIGES, exportSTEP, exportSTL, face, faceAxis, faceCenter, faceGeomType, faceOrientation, facesOfEdge, filledFace, filletWithEvolution, fixSelfIntersection, fixShape, flipFaceOrientation, flipOrientation, fuseAll, fuseAllBisect, fuseWithEvolution, getBounds, getCurveType, getEdges, getFaces, getHashCode, getNurbsCurveData, getNurbsSurfaceData, getOrientation, getSurfaceType, getVertices, getWires, healFace, healSolid, healWire, helix, innerWires, interpolateCurve, intersectWithEvolution, invalidateShapeCache, isCompSolid, isEqualShape, isSameShape, iterEdges, iterFaces, iterTopo, iterVertices, iterWires, line, normalAt, offsetFace, offsetWire2D, outerWire, pointOnSurface, polygon, positionOnCurve, projectPointOnFace, sewShells, shapeType, sharedEdges, shellWithEvolution, solid, solidFromShell, sphere, subFace, tangentArc, threePointArc, toBufferGeometryData, toGroupedBufferGeometryData, toLineGeometryData, torus, uvBounds, uvCoordinates, variableFillet, vertex, vertexPosition, verticesOfEdge, wire, wireLoop, wiresOfFace };
@@ -1,7 +1,7 @@
1
- const require_shapeTypes = require("./shapeTypes-DH2ShBU_.cjs");
2
- const require_errors = require("./errors-jwhfQJZK.cjs");
3
- const require_constants = require("./constants-BOVyEYGH.cjs");
4
- //#region src/core/kernelErrorTranslation.ts
1
+ const require_shapeTypes = require("./shapeTypes-CkxvJRpq.cjs");
2
+ const require_errors = require("./errors-DoMAp7mQ.cjs");
3
+ const require_constants = require("./constants-oee0S_x6.cjs");
4
+ // src/core/kernelErrorTranslation.ts
5
5
  /**
6
6
  * Kernel error translation — maps cryptic kernel messages to user-friendly explanations.
7
7
  *
@@ -91,8 +91,7 @@ function translateKernelError(kernelMessage) {
91
91
  for (const { pattern, translation } of kernel_ERROR_PATTERNS) if (pattern.test(kernelMessage)) return `${translation} (kernel: ${kernelMessage})`;
92
92
  return kernelMessage;
93
93
  }
94
- //#endregion
95
- //#region src/core/kernelCall.ts
94
+ // src/core/kernelCall.ts
96
95
  function buildError(kind, code, message, cause, suggestion) {
97
96
  const base = {
98
97
  kind,
@@ -181,8 +180,7 @@ function kernelCallScoped(fn, code, message, kind = "KERNEL_OPERATION") {
181
180
  _usingCtx$1.d();
182
181
  }
183
182
  }
184
- //#endregion
185
- //#region src/topology/topologyQueryFns.ts
183
+ // src/topology/topologyQueryFns.ts
186
184
  /**
187
185
  * Topology query functions — extract sub-shapes, compute bounds, and
188
186
  * describe shape topology. All results are lazily cached per shape.
@@ -428,7 +426,6 @@ function describe(shape) {
428
426
  function vertexPosition(vertex) {
429
427
  return require_shapeTypes.getKernel().vertexPosition(vertex.wrapped);
430
428
  }
431
- //#endregion
432
429
  Object.defineProperty(exports, "describe", {
433
430
  enumerable: true,
434
431
  get: function() {
@@ -1,7 +1,7 @@
1
- import { G as _usingCtx, N as DisposalScope, O as getOrQueryType, n as castResultShape, q as getKernel, r as castResultShapeWithKnownType } from "./shapeTypes-CqNJoSam.js";
2
- import { E as ok, g as err } from "./errors-Zb3jBa0u.js";
3
- import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
4
- //#region src/core/kernelErrorTranslation.ts
1
+ import { G as _usingCtx, N as DisposalScope, O as getOrQueryType, n as castResultShape, q as getKernel, r as castResultShapeWithKnownType } from "./shapeTypes-Bva18qvE.js";
2
+ import { E as ok, g as err } from "./errors-B3espUT6.js";
3
+ import { n as HASH_CODE_MAX } from "./constants-iraOnb2p.js";
4
+ // src/core/kernelErrorTranslation.ts
5
5
  /**
6
6
  * Kernel error translation — maps cryptic kernel messages to user-friendly explanations.
7
7
  *
@@ -91,8 +91,7 @@ function translateKernelError(kernelMessage) {
91
91
  for (const { pattern, translation } of kernel_ERROR_PATTERNS) if (pattern.test(kernelMessage)) return `${translation} (kernel: ${kernelMessage})`;
92
92
  return kernelMessage;
93
93
  }
94
- //#endregion
95
- //#region src/core/kernelCall.ts
94
+ // src/core/kernelCall.ts
96
95
  function buildError(kind, code, message, cause, suggestion) {
97
96
  const base = {
98
97
  kind,
@@ -181,8 +180,7 @@ function kernelCallScoped(fn, code, message, kind = "KERNEL_OPERATION") {
181
180
  _usingCtx$1.d();
182
181
  }
183
182
  }
184
- //#endregion
185
- //#region src/topology/topologyQueryFns.ts
183
+ // src/topology/topologyQueryFns.ts
186
184
  /**
187
185
  * Topology query functions — extract sub-shapes, compute bounds, and
188
186
  * describe shape topology. All results are lazily cached per shape.
@@ -428,5 +426,4 @@ function describe(shape) {
428
426
  function vertexPosition(vertex) {
429
427
  return getKernel().vertexPosition(vertex.wrapped);
430
428
  }
431
- //#endregion
432
429
  export { subShapeHashes as C, kernelCallScoped as D, kernelCallRaw as E, subShapeCount as S, kernelCall as T, iterFaces as _, getCachedSurfaceType as a, iterVertices as b, getFaces as c, getSolids as d, getVertices as f, iterEdges as g, iterCompSolids as h, getCachedIsValid as i, getOrCreateCache as l, invalidateShapeCache as m, getBounds as n, getCompSolids as o, getWires as p, getCacheEntry as r, getEdges as s, describe as t, getShells as u, iterShells as v, vertexPosition as w, iterWires as x, iterSolids as y };
@@ -1,4 +1,4 @@
1
- //#region src/core/types.ts
1
+ // src/core/types.ts
2
2
  /** Normalize any point input to Vec3 */
3
3
  function toVec3(p) {
4
4
  if (p.length === 2) return [
@@ -46,5 +46,4 @@ function resolveDirection(d) {
46
46
  }
47
47
  return d;
48
48
  }
49
- //#endregion
50
49
  export { toVec2 as n, toVec3 as r, resolveDirection as t };
@@ -1,4 +1,4 @@
1
- //#region src/core/types.ts
1
+ // src/core/types.ts
2
2
  /** Normalize any point input to Vec3 */
3
3
  function toVec3(p) {
4
4
  if (p.length === 2) return [
@@ -46,7 +46,6 @@ function resolveDirection(d) {
46
46
  }
47
47
  return d;
48
48
  }
49
- //#endregion
50
49
  Object.defineProperty(exports, "resolveDirection", {
51
50
  enumerable: true,
52
51
  get: function() {
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-DH2ShBU_.cjs");
2
- const require_errors = require("./errors-jwhfQJZK.cjs");
3
- //#region src/core/validityTypes.ts
1
+ const require_shapeTypes = require("./shapeTypes-CkxvJRpq.cjs");
2
+ const require_errors = require("./errors-DoMAp7mQ.cjs");
3
+ // src/core/validityTypes.ts
4
4
  /**
5
5
  * Type guard — check if a wire is closed (forms a loop).
6
6
  * Uses the kernel's `curveIsClosed` to verify at runtime.
@@ -125,7 +125,6 @@ function planarWire(wire) {
125
125
  if (isPlanarWire(wire)) return require_errors.ok(wire);
126
126
  return require_errors.err("Wire is not planar: edges do not lie in a common plane");
127
127
  }
128
- //#endregion
129
128
  Object.defineProperty(exports, "closedWire", {
130
129
  enumerable: true,
131
130
  get: function() {
@@ -1,6 +1,6 @@
1
- import { q as getKernel } from "./shapeTypes-CqNJoSam.js";
2
- import { E as ok, g as err } from "./errors-Zb3jBa0u.js";
3
- //#region src/core/validityTypes.ts
1
+ import { q as getKernel } from "./shapeTypes-Bva18qvE.js";
2
+ import { E as ok, g as err } from "./errors-B3espUT6.js";
3
+ // src/core/validityTypes.ts
4
4
  /**
5
5
  * Type guard — check if a wire is closed (forms a loop).
6
6
  * Uses the kernel's `curveIsClosed` to verify at runtime.
@@ -125,5 +125,4 @@ function planarWire(wire) {
125
125
  if (isPlanarWire(wire)) return ok(wire);
126
126
  return err("Wire is not planar: edges do not lie in a common plane");
127
127
  }
128
- //#endregion
129
128
  export { isPlanarFace as a, manifoldShell as c, planarWire as d, validSolid as f, isOrientedFace as i, orientedFace as l, isClosedWire as n, isPlanarWire as o, isManifoldShell as r, isValidSolid as s, closedWire as t, planarFace as u };
@@ -1,4 +1,4 @@
1
- //#region src/core/vecOps.ts
1
+ // src/core/vecOps.ts
2
2
  /** Add two 3D vectors component-wise. */
3
3
  function vecAdd(a, b) {
4
4
  return [
@@ -125,7 +125,6 @@ var round3 = (v) => Math.round(v * 1e3) / 1e3;
125
125
  function vecRepr(v) {
126
126
  return `x: ${round3(v[0])}, y: ${round3(v[1])}, z: ${round3(v[2])}`;
127
127
  }
128
- //#endregion
129
128
  Object.defineProperty(exports, "vecAdd", {
130
129
  enumerable: true,
131
130
  get: function() {
@@ -1,4 +1,4 @@
1
- //#region src/core/vecOps.ts
1
+ // src/core/vecOps.ts
2
2
  /** Add two 3D vectors component-wise. */
3
3
  function vecAdd(a, b) {
4
4
  return [
@@ -125,5 +125,4 @@ var round3 = (v) => Math.round(v * 1e3) / 1e3;
125
125
  function vecRepr(v) {
126
126
  return `x: ${round3(v[0])}, y: ${round3(v[1])}, z: ${round3(v[2])}`;
127
127
  }
128
- //#endregion
129
128
  export { vecDot as a, vecLength as c, vecNormalize as d, vecProjectToPlane as f, vecSub as g, vecScale as h, vecDistance as i, vecLengthSq as l, vecRotate as m, vecAngle as n, vecEquals as o, vecRepr as p, vecCross as r, vecIsZero as s, vecAdd as t, vecNegate as u };
package/dist/vectors.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_constants = require("./constants-BOVyEYGH.cjs");
3
- const require_types = require("./types-KjA8tY4Y.cjs");
4
- const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
5
- const require_planeOps = require("./planeOps-DJuclNxa.cjs");
2
+ const require_constants = require("./constants-oee0S_x6.cjs");
3
+ const require_types = require("./types-CjF9Rofr.cjs");
4
+ const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
5
+ const require_planeOps = require("./planeOps-BDt05NAD.cjs");
6
6
  exports.DEG2RAD = require_constants.DEG2RAD;
7
7
  exports.RAD2DEG = require_constants.RAD2DEG;
8
8
  exports.createNamedPlane = require_planeOps.createNamedPlane;
package/dist/vectors.js CHANGED
@@ -1,5 +1,5 @@
1
- import { r as RAD2DEG, t as DEG2RAD } from "./constants-ITRzCnCp.js";
2
- import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-D24Y27N0.js";
3
- import { a as vecDot, c as vecLength, d as vecNormalize, f as vecProjectToPlane, g as vecSub, h as vecScale, i as vecDistance, l as vecLengthSq, m as vecRotate, n as vecAngle, o as vecEquals, p as vecRepr, r as vecCross, s as vecIsZero, t as vecAdd, u as vecNegate } from "./vecOps-SKPRvPH-.js";
4
- import { i as pivotPlane, n as createPlane, o as resolvePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-Cxws4Tiu.js";
1
+ import { r as RAD2DEG, t as DEG2RAD } from "./constants-iraOnb2p.js";
2
+ import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-CKXsIm9-.js";
3
+ import { a as vecDot, c as vecLength, d as vecNormalize, f as vecProjectToPlane, g as vecSub, h as vecScale, i as vecDistance, l as vecLengthSq, m as vecRotate, n as vecAngle, o as vecEquals, p as vecRepr, r as vecCross, s as vecIsZero, t as vecAdd, u as vecNegate } from "./vecOps-S-m9H_fe.js";
4
+ import { i as pivotPlane, n as createPlane, o as resolvePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-BkwaqhUj.js";
5
5
  export { DEG2RAD, RAD2DEG, createNamedPlane, createPlane, pivotPlane, resolveDirection, resolvePlane, toVec2, toVec3, translatePlane, vecAdd, vecAngle, vecCross, vecDistance, vecDot, vecEquals, vecIsZero, vecLength, vecLengthSq, vecNegate, vecNormalize, vecProjectToPlane, vecRepr, vecRotate, vecScale, vecSub };
package/dist/worker.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_workerPool = require("./workerPool-D30NsiIW.cjs");
2
+ const require_workerPool = require("./workerPool-D5tiNXrI.cjs");
3
3
  exports.createOperationRegistry = require_workerPool.createOperationRegistry;
4
4
  exports.createTaskQueue = require_workerPool.createTaskQueue;
5
5
  exports.createWorkerClient = require_workerPool.createWorkerClient;
package/dist/worker.js CHANGED
@@ -1,2 +1 @@
1
- import { _ as isSuccessResponse, a as createWorkerClient, c as enqueueTask, d as rejectAll, f as isBatchRequest, g as isOperationRequest, h as isInitRequest, i as registerHandler, l as isEmpty, m as isErrorResponse, n as createOperationRegistry, o as createTaskQueue, p as isDisposeRequest, r as createWorkerHandler, s as dequeueTask, t as createWorkerPool, u as pendingCount } from "./workerPool-XcYX2UZ0.js";
2
- export { createOperationRegistry, createTaskQueue, createWorkerClient, createWorkerHandler, createWorkerPool, dequeueTask, enqueueTask, isBatchRequest, isDisposeRequest, isErrorResponse, isInitRequest, isOperationRequest, isEmpty as isQueueEmpty, isSuccessResponse, pendingCount, registerHandler, rejectAll };
1
+ export { n as createOperationRegistry, o as createTaskQueue, a as createWorkerClient, r as createWorkerHandler, t as createWorkerPool, s as dequeueTask, c as enqueueTask, f as isBatchRequest, p as isDisposeRequest, m as isErrorResponse, h as isInitRequest, g as isOperationRequest, l as isQueueEmpty, _ as isSuccessResponse, u as pendingCount, i as registerHandler, d as rejectAll } from "./workerPool-Bc5hmJc4.js";
@@ -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() {