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/utils/vec3.ts
1
+ // src/utils/vec3.ts
2
2
  /**
3
3
  * Index into a typed/regular array at a position the caller has structurally
4
4
  * guaranteed (WASM ABI fixed-length arrays, post-bounds-check loops, etc.).
@@ -21,8 +21,7 @@ function vec3At(arr, offset = 0) {
21
21
  arr[offset + 2]
22
22
  ];
23
23
  }
24
- //#endregion
25
- //#region src/utils/bug.ts
24
+ // src/utils/bug.ts
26
25
  /**
27
26
  * Bug / panic helper — these throw and should never be caught in normal code.
28
27
  * Lives in utils (Layer 0) so it can be used by all layers including kernel.
@@ -43,7 +42,6 @@ var BrepBugError = class extends Error {
43
42
  function bug(location, message) {
44
43
  throw new BrepBugError(location, message);
45
44
  }
46
- //#endregion
47
45
  Object.defineProperty(exports, "BrepBugError", {
48
46
  enumerable: true,
49
47
  get: function() {
@@ -1,4 +1,4 @@
1
- //#region src/utils/vec3.ts
1
+ // src/utils/vec3.ts
2
2
  /**
3
3
  * Index into a typed/regular array at a position the caller has structurally
4
4
  * guaranteed (WASM ABI fixed-length arrays, post-bounds-check loops, etc.).
@@ -21,8 +21,7 @@ function vec3At(arr, offset = 0) {
21
21
  arr[offset + 2]
22
22
  ];
23
23
  }
24
- //#endregion
25
- //#region src/utils/bug.ts
24
+ // src/utils/bug.ts
26
25
  /**
27
26
  * Bug / panic helper — these throw and should never be caught in normal code.
28
27
  * Lives in utils (Layer 0) so it can be used by all layers including kernel.
@@ -43,5 +42,4 @@ var BrepBugError = class extends Error {
43
42
  function bug(location, message) {
44
43
  throw new BrepBugError(location, message);
45
44
  }
46
- //#endregion
47
45
  export { wasmIndex as i, bug as n, vec3At as r, BrepBugError as t };
@@ -1,9 +1,9 @@
1
- import { G as _usingCtx, n as castResultShape, q as getKernel } from "./shapeTypes-CqNJoSam.js";
2
- import { E as ok, P as unwrap, d as validationError, g as err } from "./errors-Zb3jBa0u.js";
3
- import { s as getEdges } from "./topologyQueryFns-DnfjQgP7.js";
4
- import { c as vecLength, d as vecNormalize, g as vecSub, r as vecCross } from "./vecOps-SKPRvPH-.js";
5
- import { t as clone } from "./shapeFns--1wNlcc_.js";
6
- //#region src/projection/projectionPlanes.ts
1
+ import { G as _usingCtx, n as castResultShape, q as getKernel } from "./shapeTypes-CgbUTASh.js";
2
+ import { E as ok, P as unwrap, d as validationError, g as err } from "./errors-vxP5FT8B.js";
3
+ import { s as getEdges } from "./topologyQueryFns-6M_dbT1R.js";
4
+ import { c as vecLength, d as vecNormalize, g as vecSub, r as vecCross } from "./vecOps-S-m9H_fe.js";
5
+ import { t as clone } from "./shapeFns-DB3l3ULC.js";
6
+ // src/projection/projectionPlanes.ts
7
7
  /** Lookup table mapping each {@link ProjectionPlane} to its camera configuration. */
8
8
  var PROJECTION_PLANES = {
9
9
  XY: {
@@ -155,8 +155,7 @@ var PROJECTION_PLANES = {
155
155
  function isProjectionPlane(plane) {
156
156
  return typeof plane === "string" && plane in PROJECTION_PLANES;
157
157
  }
158
- //#endregion
159
- //#region src/projection/makeProjectedEdges.ts
158
+ // src/projection/makeProjectedEdges.ts
160
159
  var getEdgesFromOc = (shape) => {
161
160
  try {
162
161
  var _usingCtx$1 = _usingCtx();
@@ -199,8 +198,7 @@ function makeProjectedEdges(shape, camera, withHiddenLines = true) {
199
198
  hidden
200
199
  };
201
200
  }
202
- //#endregion
203
- //#region src/projection/cameraFns.ts
201
+ // src/projection/cameraFns.ts
204
202
  /**
205
203
  * Create a camera from position, direction, and an optional X-axis.
206
204
  *
@@ -287,5 +285,4 @@ function cameraFromPlane(planeName) {
287
285
  function projectEdges(shape, camera, withHiddenLines = true) {
288
286
  return makeProjectedEdges(shape, camera, withHiddenLines);
289
287
  }
290
- //#endregion
291
288
  export { makeProjectedEdges as a, projectEdges as i, cameraLookAt as n, PROJECTION_PLANES as o, createCamera as r, isProjectionPlane as s, cameraFromPlane as t };
@@ -1,9 +1,9 @@
1
- const require_shapeTypes = require("./shapeTypes-DH2ShBU_.cjs");
2
- const require_errors = require("./errors-jwhfQJZK.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-q2bGyuEV.cjs");
4
- const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
5
- const require_shapeFns = require("./shapeFns-C2j6oZ2u.cjs");
6
- //#region src/projection/projectionPlanes.ts
1
+ const require_shapeTypes = require("./shapeTypes-D_anqiRe.cjs");
2
+ const require_errors = require("./errors-GVyCnpi0.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-ENxs8uu2.cjs");
4
+ const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
5
+ const require_shapeFns = require("./shapeFns-B54CsPyk.cjs");
6
+ // src/projection/projectionPlanes.ts
7
7
  /** Lookup table mapping each {@link ProjectionPlane} to its camera configuration. */
8
8
  var PROJECTION_PLANES = {
9
9
  XY: {
@@ -155,8 +155,7 @@ var PROJECTION_PLANES = {
155
155
  function isProjectionPlane(plane) {
156
156
  return typeof plane === "string" && plane in PROJECTION_PLANES;
157
157
  }
158
- //#endregion
159
- //#region src/projection/makeProjectedEdges.ts
158
+ // src/projection/makeProjectedEdges.ts
160
159
  var getEdgesFromOc = (shape) => {
161
160
  try {
162
161
  var _usingCtx$1 = require_shapeTypes._usingCtx();
@@ -199,8 +198,7 @@ function makeProjectedEdges(shape, camera, withHiddenLines = true) {
199
198
  hidden
200
199
  };
201
200
  }
202
- //#endregion
203
- //#region src/projection/cameraFns.ts
201
+ // src/projection/cameraFns.ts
204
202
  /**
205
203
  * Create a camera from position, direction, and an optional X-axis.
206
204
  *
@@ -287,7 +285,6 @@ function cameraFromPlane(planeName) {
287
285
  function projectEdges(shape, camera, withHiddenLines = true) {
288
286
  return makeProjectedEdges(shape, camera, withHiddenLines);
289
287
  }
290
- //#endregion
291
288
  Object.defineProperty(exports, "PROJECTION_PLANES", {
292
289
  enumerable: true,
293
290
  get: function() {
@@ -1,9 +1,8 @@
1
- //#region src/core/constants.ts
1
+ // src/core/constants.ts
2
2
  /** Maximum hash code value for kernel shape hashing (2^31 - 1). */
3
3
  var HASH_CODE_MAX = 2147483647;
4
4
  /** Multiply degrees by this constant to convert to radians. */
5
5
  var DEG2RAD = Math.PI / 180;
6
6
  /** Multiply radians by this constant to convert to degrees. */
7
7
  var RAD2DEG = 180 / Math.PI;
8
- //#endregion
9
8
  export { HASH_CODE_MAX as n, RAD2DEG as r, DEG2RAD as t };
@@ -1,11 +1,10 @@
1
- //#region src/core/constants.ts
1
+ // src/core/constants.ts
2
2
  /** Maximum hash code value for kernel shape hashing (2^31 - 1). */
3
3
  var HASH_CODE_MAX = 2147483647;
4
4
  /** Multiply degrees by this constant to convert to radians. */
5
5
  var DEG2RAD = Math.PI / 180;
6
6
  /** Multiply radians by this constant to convert to degrees. */
7
7
  var RAD2DEG = 180 / Math.PI;
8
- //#endregion
9
8
  Object.defineProperty(exports, "DEG2RAD", {
10
9
  enumerable: true,
11
10
  get: function() {
@@ -65,7 +65,10 @@ export declare const BrepErrorCode: {
65
65
  readonly CHAMFER_ANGLE_FAILED: "CHAMFER_ANGLE_FAILED";
66
66
  readonly CSG_NOT_3D: "CSG_NOT_3D";
67
67
  readonly SHELL_NOT_3D: "SHELL_NOT_3D";
68
+ readonly SHELL_NO_EFFECT: "SHELL_NO_EFFECT";
69
+ readonly SHELL_INVALID_RESULT: "SHELL_INVALID_RESULT";
68
70
  readonly OFFSET_NOT_3D: "OFFSET_NOT_3D";
71
+ readonly OFFSET_INVALID_RESULT: "OFFSET_INVALID_RESULT";
69
72
  readonly NULL_SHAPE: "NULL_SHAPE";
70
73
  readonly NO_WRAPPER: "NO_WRAPPER";
71
74
  readonly WELD_NOT_SHELL: "WELD_NOT_SHELL";
package/dist/core.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeTypes = require("./shapeTypes-DH2ShBU_.cjs");
3
- const require_bug = require("./bug-O02CsAmt.cjs");
4
- const require_errors = require("./errors-jwhfQJZK.cjs");
5
- const require_validityTypes = require("./validityTypes-r0A2YdNq.cjs");
6
- const require_constants = require("./constants-BOVyEYGH.cjs");
7
- const require_types = require("./types-KjA8tY4Y.cjs");
8
- const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
9
- const require_planeOps = require("./planeOps-DJuclNxa.cjs");
2
+ const require_shapeTypes = require("./shapeTypes-D_anqiRe.cjs");
3
+ const require_bug = require("./bug-CBcpIPuf.cjs");
4
+ const require_errors = require("./errors-GVyCnpi0.cjs");
5
+ const require_validityTypes = require("./validityTypes-BPamqRZ8.cjs");
6
+ const require_constants = require("./constants-oee0S_x6.cjs");
7
+ const require_types = require("./types-CjF9Rofr.cjs");
8
+ const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
9
+ const require_planeOps = require("./planeOps-C9d2Y56B.cjs");
10
10
  exports.BrepBugError = require_bug.BrepBugError;
11
11
  exports.DEG2RAD = require_constants.DEG2RAD;
12
12
  exports.DisposalScope = require_shapeTypes.DisposalScope;
package/dist/core.js CHANGED
@@ -1,9 +1,9 @@
1
- import { C as isSolid, D as getShapeKind, E as GeometryCleanupError, F as createKernelHandle, H as withScope, L as isLive, M as is3D, N as DisposalScope, P as createHandle, S as isShell, T as isWire, U as withScopeResult, W as withScopeResultAsync, _ as isCompound, b as isShape1D, i as castShape, j as is2D, v as isEdge, w as isVertex, x as isShape3D, y as isFace } from "./shapeTypes-CqNJoSam.js";
2
- import { n as bug, t as BrepBugError } from "./bug-BdOHwn_e.js";
3
- import { E as ok, F as unwrapErr, I as unwrapOr, L as unwrapOrElse, M as tryCatch, N as tryCatchAsync, P as unwrap, S as map, T as match, _ as flatMap, a as moduleInitError, b as isErr, c as sketcherStateError, d as validationError, f as OK, g as err, h as collect, i as kernelError, l as typeCastError, m as andThen, n as computationError, o as queryError, r as ioError, u as unsupportedError, w as mapErr, x as isOk } from "./errors-Zb3jBa0u.js";
4
- import { c as manifoldShell, f as validSolid, i as isOrientedFace, l as orientedFace, n as isClosedWire, r as isManifoldShell, s as isValidSolid, t as closedWire } from "./validityTypes-t7JpS0Ki.js";
5
- import { n as HASH_CODE_MAX, r as RAD2DEG, t as DEG2RAD } from "./constants-ITRzCnCp.js";
6
- import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-D24Y27N0.js";
7
- 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";
8
- import { i as pivotPlane, n as createPlane, o as resolvePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-Cxws4Tiu.js";
1
+ import { C as isSolid, D as getShapeKind, E as GeometryCleanupError, F as createKernelHandle, H as withScope, L as isLive, M as is3D, N as DisposalScope, P as createHandle, S as isShell, T as isWire, U as withScopeResult, W as withScopeResultAsync, _ as isCompound, b as isShape1D, i as castShape, j as is2D, v as isEdge, w as isVertex, x as isShape3D, y as isFace } from "./shapeTypes-CgbUTASh.js";
2
+ import { n as bug, t as BrepBugError } from "./bug-ClMTAJhe.js";
3
+ import { E as ok, F as unwrapErr, I as unwrapOr, L as unwrapOrElse, M as tryCatch, N as tryCatchAsync, P as unwrap, S as map, T as match, _ as flatMap, a as moduleInitError, b as isErr, c as sketcherStateError, d as validationError, f as OK, g as err, h as collect, i as kernelError, l as typeCastError, m as andThen, n as computationError, o as queryError, r as ioError, u as unsupportedError, w as mapErr, x as isOk } from "./errors-vxP5FT8B.js";
4
+ import { c as manifoldShell, f as validSolid, i as isOrientedFace, l as orientedFace, n as isClosedWire, r as isManifoldShell, s as isValidSolid, t as closedWire } from "./validityTypes-BTuI0vcR.js";
5
+ import { n as HASH_CODE_MAX, r as RAD2DEG, t as DEG2RAD } from "./constants-iraOnb2p.js";
6
+ import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-CKXsIm9-.js";
7
+ 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";
8
+ import { i as pivotPlane, n as createPlane, o as resolvePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-Dp0YvuFE.js";
9
9
  export { BrepBugError, DEG2RAD, DisposalScope, GeometryCleanupError, HASH_CODE_MAX, OK, RAD2DEG, andThen, bug, castShape, closedWire, collect, computationError, createHandle, createKernelHandle, createNamedPlane, createPlane, err, flatMap, getShapeKind, ioError, is2D, is3D, isClosedWire, isCompound, isEdge, isErr, isFace, isLive, isManifoldShell, isOk, isOrientedFace, isShape1D, isShape3D, isShell, isSolid, isValidSolid, isVertex, isWire, kernelError, manifoldShell, map, mapErr, match, moduleInitError, ok, orientedFace, pivotPlane, queryError, resolveDirection, resolvePlane, sketcherStateError, toVec2, toVec3, translatePlane, tryCatch, tryCatchAsync, typeCastError, unsupportedError, unwrap, unwrapErr, unwrapOr, unwrapOrElse, validSolid, validationError, vecAdd, vecAngle, vecCross, vecDistance, vecDot, vecEquals, vecIsZero, vecLength, vecLengthSq, vecNegate, vecNormalize, vecProjectToPlane, vecRepr, vecRotate, vecScale, vecSub, withScope, withScopeResult, withScopeResultAsync };
@@ -1,7 +1,7 @@
1
- import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
2
- import { n as getAtOrThrow } from "./arrayAccess-DrUGPADn.js";
3
- import { p as distance2d, u as angle2d, v as samePoint } from "./helpers-BN1mVMuZ.js";
4
- //#region src/query/cornerFinder.ts
1
+ import { t as DEG2RAD } from "./constants-iraOnb2p.js";
2
+ import { n as getAtOrThrow } from "./arrayAccess-BpgouNir.js";
3
+ import { p as distance2d, u as angle2d, v as samePoint } from "./helpers-sDialr0f.js";
4
+ // src/query/cornerFinder.ts
5
5
  var PI_2 = 2 * Math.PI;
6
6
  function positiveHalfAngle(angle) {
7
7
  const limitedAngle = angle % PI_2;
@@ -56,5 +56,4 @@ function buildCornerFinder(filters) {
56
56
  function cornerFinder() {
57
57
  return buildCornerFinder([]);
58
58
  }
59
- //#endregion
60
59
  export { cornerFinder as t };
@@ -1,7 +1,7 @@
1
- const require_constants = require("./constants-BOVyEYGH.cjs");
2
- const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
3
- const require_helpers = require("./helpers-NRZVshPb.cjs");
4
- //#region src/query/cornerFinder.ts
1
+ const require_constants = require("./constants-oee0S_x6.cjs");
2
+ const require_arrayAccess = require("./arrayAccess-DpJYARwv.cjs");
3
+ const require_helpers = require("./helpers-JuPoaP_b.cjs");
4
+ // src/query/cornerFinder.ts
5
5
  var PI_2 = 2 * Math.PI;
6
6
  function positiveHalfAngle(angle) {
7
7
  const limitedAngle = angle % PI_2;
@@ -56,7 +56,6 @@ function buildCornerFinder(filters) {
56
56
  function cornerFinder() {
57
57
  return buildCornerFinder([]);
58
58
  }
59
- //#endregion
60
59
  Object.defineProperty(exports, "cornerFinder", {
61
60
  enumerable: true,
62
61
  get: function() {
@@ -1,6 +1,6 @@
1
- import { T as isWire, h as disposeResultShape, n as castResultShape, q as getKernel, v as isEdge } from "./shapeTypes-CqNJoSam.js";
2
- import { E as ok, g as err, l as typeCastError } from "./errors-Zb3jBa0u.js";
3
- //#region src/topology/curveFns.ts
1
+ import { T as isWire, h as disposeResultShape, n as castResultShape, q as getKernel, v as isEdge } from "./shapeTypes-CgbUTASh.js";
2
+ import { E as ok, g as err, l as typeCastError } from "./errors-vxP5FT8B.js";
3
+ // src/topology/curveFns.ts
4
4
  /**
5
5
  * Curve and 1D shape functions — functional replacements for _1DShape/Curve methods.
6
6
  * All functions accept branded Edge or Wire handles and return plain values.
@@ -187,5 +187,4 @@ function offsetWire2D(wire, offset, kind = "arc") {
187
187
  }
188
188
  return ok(wrapped);
189
189
  }
190
- //#endregion
191
190
  export { curveIsPeriodic as a, curvePointAt as c, flipOrientation as d, getCurveType as f, offsetWire2D as h, curveIsClosed as i, curveStartPoint as l, interpolateCurve as m, curveAxis as n, curveLength as o, getOrientation as p, curveEndPoint as r, curvePeriod as s, approximateCurve as t, curveTangentAt as u };
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-DH2ShBU_.cjs");
2
- const require_errors = require("./errors-jwhfQJZK.cjs");
3
- //#region src/topology/curveFns.ts
1
+ const require_shapeTypes = require("./shapeTypes-D_anqiRe.cjs");
2
+ const require_errors = require("./errors-GVyCnpi0.cjs");
3
+ // src/topology/curveFns.ts
4
4
  /**
5
5
  * Curve and 1D shape functions — functional replacements for _1DShape/Curve methods.
6
6
  * All functions accept branded Edge or Wire handles and return plain values.
@@ -187,7 +187,6 @@ function offsetWire2D(wire, offset, kind = "arc") {
187
187
  }
188
188
  return require_errors.ok(wrapped);
189
189
  }
190
- //#endregion
191
190
  Object.defineProperty(exports, "approximateCurve", {
192
191
  enumerable: true,
193
192
  get: function() {
@@ -1,23 +1,23 @@
1
- import { G as _usingCtx, N as DisposalScope, c as createEdge, l as createFace, p as createWire, q as getKernel } from "./shapeTypes-CqNJoSam.js";
2
- import { i as wasmIndex, n as bug } from "./bug-BdOHwn_e.js";
3
- import { P as unwrap, s as safeIndex } from "./errors-Zb3jBa0u.js";
4
- import { s as getEdges } from "./topologyQueryFns-DnfjQgP7.js";
5
- import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
6
- import { r as toVec3 } from "./types-D24Y27N0.js";
7
- import { d as vecNormalize, g as vecSub, h as vecScale, m as vecRotate, r as vecCross } from "./vecOps-SKPRvPH-.js";
8
- import { a as planeToWorld, o as resolvePlane } from "./planeOps-Cxws4Tiu.js";
9
- import { d as pointOnSurface, l as normalAt, m as uvBounds, r as faceCenter, u as outerWire, v as copyShape, y as downcast } from "./faceFns-CTlJC5IY.js";
10
- import { h as offsetWire2D, i as curveIsClosed, l as curveStartPoint } from "./curveFns-KS1BWGhF.js";
11
- import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
12
- import { c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, m as makeHelix, r as makeFace, s as assembleWire } from "./surfaceBuilders-8nLk2PWk.js";
13
- import { a as Blueprints, c as make2dOffset, i as CompoundBlueprint, l as intersectCurves, n as BaseSketcher2d, o as chamferCurves, s as filletCurves, u as Flatbush } from "./blueprintSketcher-FywUpRiV.js";
14
- import { b as squareDistance2d, l as add2d, s as PRECISION_OFFSET, v as samePoint$1, x as subtract2d } from "./helpers-BN1mVMuZ.js";
15
- import { _ as approximateAsSvgCompatibleCurve, a as edgeToCurve, f as make2dInerpolatedBSplineCurve, i as curvesAsEdgesOnPlane, l as make2dCircle, p as make2dSegmentCurve, s as make2dArcFromCenter, t as Blueprint, u as make2dEllipse, v as Curve2D, x as BoundingBox2d, y as deserializeCurve2D } from "./blueprint-rwJjYPzo.js";
16
- import { t as cornerFinder } from "./cornerFinder-Dlae8IX5.js";
17
- import { c as roundedRectangleBlueprint, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-D8igCYc9.js";
18
- import { _ as wrapSketchDataArray, a as Sketch, g as wrapSketchData, i as Sketches, t as textBlueprints } from "./textBlueprints-C13NAA3C.js";
19
- import { i as projectEdges, t as cameraFromPlane } from "./cameraFns-Cs6v3bWQ.js";
20
- //#region src/2d/lib/stitching.ts
1
+ import { G as _usingCtx, N as DisposalScope, c as createEdge, l as createFace, p as createWire, q as getKernel } from "./shapeTypes-CgbUTASh.js";
2
+ import { i as wasmIndex, n as bug } from "./bug-ClMTAJhe.js";
3
+ import { P as unwrap, s as safeIndex } from "./errors-vxP5FT8B.js";
4
+ import { s as getEdges } from "./topologyQueryFns-6M_dbT1R.js";
5
+ import { t as DEG2RAD } from "./constants-iraOnb2p.js";
6
+ import { r as toVec3 } from "./types-CKXsIm9-.js";
7
+ import { d as vecNormalize, g as vecSub, h as vecScale, m as vecRotate, r as vecCross } from "./vecOps-S-m9H_fe.js";
8
+ import { a as planeToWorld, o as resolvePlane } from "./planeOps-Dp0YvuFE.js";
9
+ import { d as pointOnSurface, l as normalAt, m as uvBounds, r as faceCenter, u as outerWire, v as copyShape, y as downcast } from "./faceFns-BBk6XKJO.js";
10
+ import { h as offsetWire2D, i as curveIsClosed, l as curveStartPoint } from "./curveFns-CkA2WJP2.js";
11
+ import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-BpgouNir.js";
12
+ import { c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, m as makeHelix, r as makeFace, s as assembleWire } from "./surfaceBuilders-wdGNiImD.js";
13
+ import { a as Blueprints, c as make2dOffset, i as CompoundBlueprint, l as intersectCurves, n as BaseSketcher2d, o as chamferCurves, s as filletCurves, u as Flatbush } from "./blueprintSketcher-DNp87aQZ.js";
14
+ import { b as squareDistance2d, l as add2d, s as PRECISION_OFFSET, v as samePoint$1, x as subtract2d } from "./helpers-sDialr0f.js";
15
+ import { _ as approximateAsSvgCompatibleCurve, a as edgeToCurve, f as make2dInerpolatedBSplineCurve, i as curvesAsEdgesOnPlane, l as make2dCircle, p as make2dSegmentCurve, s as make2dArcFromCenter, t as Blueprint, u as make2dEllipse, v as Curve2D, x as BoundingBox2d, y as deserializeCurve2D } from "./blueprint-Bth4EVaO.js";
16
+ import { t as cornerFinder } from "./cornerFinder-Cr_04etw.js";
17
+ import { c as roundedRectangleBlueprint, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-BAb4SnIL.js";
18
+ import { _ as wrapSketchDataArray, a as Sketch, g as wrapSketchData, i as Sketches, t as textBlueprints } from "./textBlueprints-B_jwMuej.js";
19
+ import { i as projectEdges, t as cameraFromPlane } from "./cameraFns-9AGyuZVp.js";
20
+ // src/2d/lib/stitching.ts
21
21
  /**
22
22
  * Group a flat list of curves into connected chains by matching endpoints.
23
23
  *
@@ -68,8 +68,7 @@ var stitchCurves = (curves, precision = 1e-7) => {
68
68
  });
69
69
  return stitchedCurves;
70
70
  };
71
- //#endregion
72
- //#region src/sketching/sketcher.ts
71
+ // src/sketching/sketcher.ts
73
72
  /**
74
73
  * Build 2D wire profiles on a 3D plane using a builder-pen API.
75
74
  *
@@ -173,8 +172,7 @@ var Sketcher = class extends BaseSketcher2d {
173
172
  return this.done();
174
173
  }
175
174
  };
176
- //#endregion
177
- //#region src/sketching/faceSketcher.ts
175
+ // src/sketching/faceSketcher.ts
178
176
  /**
179
177
  * The FaceSketcher allows you to sketch on a face that is not planar, for
180
178
  * instance the sides of a cylinder.
@@ -291,8 +289,7 @@ var FaceSketcher = class extends BaseSketcher2d {
291
289
  return this.done();
292
290
  }
293
291
  };
294
- //#endregion
295
- //#region src/sketching/cannedSketches.ts
292
+ // src/sketching/cannedSketches.ts
296
293
  /**
297
294
  * Create a circular Sketch on a given plane.
298
295
  *
@@ -520,8 +517,7 @@ var sketchHelix = (pitch, height, radius, center = [
520
517
  const dirVec3 = toVec3(dir);
521
518
  return new Sketch(unwrap(assembleWire([makeHelix(pitch, height, radius, centerVec3, dirVec3, lefthand)])));
522
519
  };
523
- //#endregion
524
- //#region src/sketching/shortcuts.ts
520
+ // src/sketching/shortcuts.ts
525
521
  /**
526
522
  * Create a box centered on the XY plane and extruded along Z.
527
523
  *
@@ -538,8 +534,7 @@ var sketchHelix = (pitch, height, radius, center = [
538
534
  var makeBaseBox = (xLength, yLength, zLength) => {
539
535
  return new Sketcher().movePointerTo([-xLength / 2, yLength / 2]).hLine(xLength).vLine(-yLength).hLine(-xLength).close().extrude(zLength);
540
536
  };
541
- //#endregion
542
- //#region src/2d/blueprints/blueprintOffset.ts
537
+ // src/2d/blueprints/blueprintOffset.ts
543
538
  var samePoint = (x, y) => samePoint$1(x, y, PRECISION_OFFSET * 100);
544
539
  var getIntersectionPoint = (line1Start, line1End, line2Start, line2End) => {
545
540
  const dx1 = line1Start[0] - line1End[0];
@@ -805,8 +800,7 @@ function offset(bp, offsetDistance, offsetConfig = {}) {
805
800
  }
806
801
  return null;
807
802
  }
808
- //#endregion
809
- //#region src/2d/blueprints/blueprintApproximations.ts
803
+ // src/2d/blueprints/blueprintApproximations.ts
810
804
  /**
811
805
  * Replace curves that have no native SVG equivalent with polyline/arc approximations.
812
806
  *
@@ -824,8 +818,7 @@ function approximateForSVG(bp, options) {
824
818
  else if (bp instanceof Blueprints) return new Blueprints(bp.blueprints.map((b) => approximateForSVG(b, options)));
825
819
  return bp;
826
820
  }
827
- //#endregion
828
- //#region src/2d/blueprints/blueprintCustomCorners.ts
821
+ // src/2d/blueprints/blueprintCustomCorners.ts
829
822
  function modifyCorners(makeCorner, blueprint, radius, finder) {
830
823
  let modifyCorner = () => true;
831
824
  if (finder) modifyCorner = finder.shouldKeep.bind(finder);
@@ -892,8 +885,7 @@ function fillet2D(shape, radius, finder) {
892
885
  function chamfer2D(shape, radius, finder) {
893
886
  return modifyCorner2D(chamferCurves, shape, radius, finder);
894
887
  }
895
- //#endregion
896
- //#region src/sketching/drawing.ts
888
+ // src/sketching/drawing.ts
897
889
  function wrapBlueprintResult(shape, result) {
898
890
  if (shape instanceof Blueprint) return wrapSketchData(result);
899
891
  else if (shape instanceof CompoundBlueprint) return wrapSketchDataArray(result);
@@ -1113,8 +1105,7 @@ function deserializeDrawing(data) {
1113
1105
  }
1114
1106
  return new Drawing(deserializeHelper(JSON.parse(data)));
1115
1107
  }
1116
- //#endregion
1117
- //#region src/sketching/drawingPen.ts
1108
+ // src/sketching/drawingPen.ts
1118
1109
  /**
1119
1110
  * DrawingPen is a helper class to draw in 2D. It is used to create drawings
1120
1111
  * by exposing a builder interface. It is not a drawing itself, but it can be
@@ -1166,8 +1157,7 @@ function draw(initialPoint) {
1166
1157
  if (initialPoint) pen.movePointerTo(initialPoint);
1167
1158
  return pen;
1168
1159
  }
1169
- //#endregion
1170
- //#region src/sketching/drawingFactories.ts
1160
+ // src/sketching/drawingFactories.ts
1171
1161
  /**
1172
1162
  * Creates the `Drawing` of a rectangle with (optional) rounded corners.
1173
1163
  *
@@ -1276,8 +1266,7 @@ var drawParametricFunction = (func, { pointsCount = 400, start = 0, stop = 1, cl
1276
1266
  return func(start + t * stepSize);
1277
1267
  }), approximationConfig, { closeShape });
1278
1268
  };
1279
- //#endregion
1280
- //#region src/sketching/draw3d.ts
1269
+ // src/sketching/draw3d.ts
1281
1270
  var edgesToDrawing = (edges) => {
1282
1271
  try {
1283
1272
  var _usingCtx$1 = _usingCtx();
@@ -1338,8 +1327,7 @@ function drawFaceOutline(face) {
1338
1327
  _usingCtx3.d();
1339
1328
  }
1340
1329
  }
1341
- //#endregion
1342
- //#region src/sketching/drawFns.ts
1330
+ // src/sketching/drawFns.ts
1343
1331
  /**
1344
1332
  * Sketch a drawing onto a 3D plane, producing a Sketch or Sketches.
1345
1333
  *
@@ -1460,5 +1448,4 @@ function scaleDrawing(drawing, factor, center) {
1460
1448
  function mirrorDrawing(drawing, centerOrDirection, origin, mode) {
1461
1449
  return drawing.mirror(centerOrDirection, origin, mode);
1462
1450
  }
1463
- //#endregion
1464
1451
  export { sketchEllipse as A, DrawingPen as C, makeBaseBox as D, deserializeDrawing as E, sketchRectangle as F, sketchRoundedRectangle as I, FaceSketcher as L, sketchHelix as M, sketchParametricFunction as N, polysideInnerRadius as O, sketchPolysides as P, Sketcher as R, drawText as S, Drawing as T, drawPolysides as _, drawingIntersect as a, drawSingleCircle as b, rotateDrawing as c, drawFaceOutline as d, drawProjection as f, drawPointsInterpolation as g, drawParametricFunction as h, drawingFuse as i, sketchFaceOffset as j, sketchCircle as k, scaleDrawing as l, drawEllipse as m, drawingCut as n, drawingToSketchOnPlane as o, drawCircle as p, drawingFillet as r, mirrorDrawing as s, drawingChamfer as t, translateDrawing as u, drawRectangle as v, draw as w, drawSingleEllipse as x, drawRoundedRectangle as y };
@@ -1,23 +1,23 @@
1
- const require_shapeTypes = require("./shapeTypes-DH2ShBU_.cjs");
2
- const require_bug = require("./bug-O02CsAmt.cjs");
3
- const require_errors = require("./errors-jwhfQJZK.cjs");
4
- const require_topologyQueryFns = require("./topologyQueryFns-q2bGyuEV.cjs");
5
- const require_constants = require("./constants-BOVyEYGH.cjs");
6
- const require_types = require("./types-KjA8tY4Y.cjs");
7
- const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
8
- const require_planeOps = require("./planeOps-DJuclNxa.cjs");
9
- const require_faceFns = require("./faceFns-CZeHWke7.cjs");
10
- const require_curveFns = require("./curveFns-6-ULFrEB.cjs");
11
- const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
12
- const require_surfaceBuilders = require("./surfaceBuilders-vYgSvgI6.cjs");
13
- const require_blueprintSketcher = require("./blueprintSketcher-CzKbxeTk.cjs");
14
- const require_helpers = require("./helpers-NRZVshPb.cjs");
15
- const require_blueprint = require("./blueprint-Yyoiz-U1.cjs");
16
- const require_cornerFinder = require("./cornerFinder-Cji_BK-R.cjs");
17
- const require_boolean2D = require("./boolean2D-BzZ9iBSn.cjs");
18
- const require_textBlueprints = require("./textBlueprints-fa7VHJZz.cjs");
19
- const require_cameraFns = require("./cameraFns-RHCb1F1s.cjs");
20
- //#region src/2d/lib/stitching.ts
1
+ const require_shapeTypes = require("./shapeTypes-D_anqiRe.cjs");
2
+ const require_bug = require("./bug-CBcpIPuf.cjs");
3
+ const require_errors = require("./errors-GVyCnpi0.cjs");
4
+ const require_topologyQueryFns = require("./topologyQueryFns-ENxs8uu2.cjs");
5
+ const require_constants = require("./constants-oee0S_x6.cjs");
6
+ const require_types = require("./types-CjF9Rofr.cjs");
7
+ const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
8
+ const require_planeOps = require("./planeOps-C9d2Y56B.cjs");
9
+ const require_faceFns = require("./faceFns-DSRREV5G.cjs");
10
+ const require_curveFns = require("./curveFns-U7srQ3ZA.cjs");
11
+ const require_arrayAccess = require("./arrayAccess-DpJYARwv.cjs");
12
+ const require_surfaceBuilders = require("./surfaceBuilders-DOn2jWkh.cjs");
13
+ const require_blueprintSketcher = require("./blueprintSketcher-CSDqr27-.cjs");
14
+ const require_helpers = require("./helpers-JuPoaP_b.cjs");
15
+ const require_blueprint = require("./blueprint-wq2TU1XP.cjs");
16
+ const require_cornerFinder = require("./cornerFinder-DJWo6h1Z.cjs");
17
+ const require_boolean2D = require("./boolean2D-BkgOjMRt.cjs");
18
+ const require_textBlueprints = require("./textBlueprints-BQ60Rc96.cjs");
19
+ const require_cameraFns = require("./cameraFns-CKUN90f_.cjs");
20
+ // src/2d/lib/stitching.ts
21
21
  /**
22
22
  * Group a flat list of curves into connected chains by matching endpoints.
23
23
  *
@@ -68,8 +68,7 @@ var stitchCurves = (curves, precision = 1e-7) => {
68
68
  });
69
69
  return stitchedCurves;
70
70
  };
71
- //#endregion
72
- //#region src/sketching/sketcher.ts
71
+ // src/sketching/sketcher.ts
73
72
  /**
74
73
  * Build 2D wire profiles on a 3D plane using a builder-pen API.
75
74
  *
@@ -173,8 +172,7 @@ var Sketcher = class extends require_blueprintSketcher.BaseSketcher2d {
173
172
  return this.done();
174
173
  }
175
174
  };
176
- //#endregion
177
- //#region src/sketching/faceSketcher.ts
175
+ // src/sketching/faceSketcher.ts
178
176
  /**
179
177
  * The FaceSketcher allows you to sketch on a face that is not planar, for
180
178
  * instance the sides of a cylinder.
@@ -291,8 +289,7 @@ var FaceSketcher = class extends require_blueprintSketcher.BaseSketcher2d {
291
289
  return this.done();
292
290
  }
293
291
  };
294
- //#endregion
295
- //#region src/sketching/cannedSketches.ts
292
+ // src/sketching/cannedSketches.ts
296
293
  /**
297
294
  * Create a circular Sketch on a given plane.
298
295
  *
@@ -520,8 +517,7 @@ var sketchHelix = (pitch, height, radius, center = [
520
517
  const dirVec3 = require_types.toVec3(dir);
521
518
  return new require_textBlueprints.Sketch(require_errors.unwrap(require_surfaceBuilders.assembleWire([require_surfaceBuilders.makeHelix(pitch, height, radius, centerVec3, dirVec3, lefthand)])));
522
519
  };
523
- //#endregion
524
- //#region src/sketching/shortcuts.ts
520
+ // src/sketching/shortcuts.ts
525
521
  /**
526
522
  * Create a box centered on the XY plane and extruded along Z.
527
523
  *
@@ -538,8 +534,7 @@ var sketchHelix = (pitch, height, radius, center = [
538
534
  var makeBaseBox = (xLength, yLength, zLength) => {
539
535
  return new Sketcher().movePointerTo([-xLength / 2, yLength / 2]).hLine(xLength).vLine(-yLength).hLine(-xLength).close().extrude(zLength);
540
536
  };
541
- //#endregion
542
- //#region src/2d/blueprints/blueprintOffset.ts
537
+ // src/2d/blueprints/blueprintOffset.ts
543
538
  var samePoint = (x, y) => require_helpers.samePoint(x, y, require_helpers.PRECISION_OFFSET * 100);
544
539
  var getIntersectionPoint = (line1Start, line1End, line2Start, line2End) => {
545
540
  const dx1 = line1Start[0] - line1End[0];
@@ -805,8 +800,7 @@ function offset(bp, offsetDistance, offsetConfig = {}) {
805
800
  }
806
801
  return null;
807
802
  }
808
- //#endregion
809
- //#region src/2d/blueprints/blueprintApproximations.ts
803
+ // src/2d/blueprints/blueprintApproximations.ts
810
804
  /**
811
805
  * Replace curves that have no native SVG equivalent with polyline/arc approximations.
812
806
  *
@@ -824,8 +818,7 @@ function approximateForSVG(bp, options) {
824
818
  else if (bp instanceof require_blueprintSketcher.Blueprints) return new require_blueprintSketcher.Blueprints(bp.blueprints.map((b) => approximateForSVG(b, options)));
825
819
  return bp;
826
820
  }
827
- //#endregion
828
- //#region src/2d/blueprints/blueprintCustomCorners.ts
821
+ // src/2d/blueprints/blueprintCustomCorners.ts
829
822
  function modifyCorners(makeCorner, blueprint, radius, finder) {
830
823
  let modifyCorner = () => true;
831
824
  if (finder) modifyCorner = finder.shouldKeep.bind(finder);
@@ -892,8 +885,7 @@ function fillet2D(shape, radius, finder) {
892
885
  function chamfer2D(shape, radius, finder) {
893
886
  return modifyCorner2D(require_blueprintSketcher.chamferCurves, shape, radius, finder);
894
887
  }
895
- //#endregion
896
- //#region src/sketching/drawing.ts
888
+ // src/sketching/drawing.ts
897
889
  function wrapBlueprintResult(shape, result) {
898
890
  if (shape instanceof require_blueprint.Blueprint) return require_textBlueprints.wrapSketchData(result);
899
891
  else if (shape instanceof require_blueprintSketcher.CompoundBlueprint) return require_textBlueprints.wrapSketchDataArray(result);
@@ -1113,8 +1105,7 @@ function deserializeDrawing(data) {
1113
1105
  }
1114
1106
  return new Drawing(deserializeHelper(JSON.parse(data)));
1115
1107
  }
1116
- //#endregion
1117
- //#region src/sketching/drawingPen.ts
1108
+ // src/sketching/drawingPen.ts
1118
1109
  /**
1119
1110
  * DrawingPen is a helper class to draw in 2D. It is used to create drawings
1120
1111
  * by exposing a builder interface. It is not a drawing itself, but it can be
@@ -1166,8 +1157,7 @@ function draw(initialPoint) {
1166
1157
  if (initialPoint) pen.movePointerTo(initialPoint);
1167
1158
  return pen;
1168
1159
  }
1169
- //#endregion
1170
- //#region src/sketching/drawingFactories.ts
1160
+ // src/sketching/drawingFactories.ts
1171
1161
  /**
1172
1162
  * Creates the `Drawing` of a rectangle with (optional) rounded corners.
1173
1163
  *
@@ -1276,8 +1266,7 @@ var drawParametricFunction = (func, { pointsCount = 400, start = 0, stop = 1, cl
1276
1266
  return func(start + t * stepSize);
1277
1267
  }), approximationConfig, { closeShape });
1278
1268
  };
1279
- //#endregion
1280
- //#region src/sketching/draw3d.ts
1269
+ // src/sketching/draw3d.ts
1281
1270
  var edgesToDrawing = (edges) => {
1282
1271
  try {
1283
1272
  var _usingCtx$1 = require_shapeTypes._usingCtx();
@@ -1338,8 +1327,7 @@ function drawFaceOutline(face) {
1338
1327
  _usingCtx3.d();
1339
1328
  }
1340
1329
  }
1341
- //#endregion
1342
- //#region src/sketching/drawFns.ts
1330
+ // src/sketching/drawFns.ts
1343
1331
  /**
1344
1332
  * Sketch a drawing onto a 3D plane, producing a Sketch or Sketches.
1345
1333
  *
@@ -1460,7 +1448,6 @@ function scaleDrawing(drawing, factor, center) {
1460
1448
  function mirrorDrawing(drawing, centerOrDirection, origin, mode) {
1461
1449
  return drawing.mirror(centerOrDirection, origin, mode);
1462
1450
  }
1463
- //#endregion
1464
1451
  Object.defineProperty(exports, "Drawing", {
1465
1452
  enumerable: true,
1466
1453
  get: function() {