brepjs 18.118.1 → 18.118.2

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 (79) hide show
  1. package/dist/2d.cjs +6 -6
  2. package/dist/2d.js +6 -6
  3. package/dist/{adjacencyFns-BCBxn5fI.cjs → adjacencyFns-COWMJ1OX.cjs} +2 -2
  4. package/dist/{adjacencyFns-B6LgGNt5.js → adjacencyFns-D026zKM3.js} +2 -2
  5. package/dist/{blueprint-C08UoSjN.js → blueprint-BeCL-AAl.js} +5 -5
  6. package/dist/{blueprint-Bf5G2J-D.cjs → blueprint-xcDMSkia.cjs} +5 -5
  7. package/dist/{blueprintFns-D8UfbJ7P.js → blueprintFns-BkSFPipn.js} +2 -2
  8. package/dist/{blueprintFns-DimPFaTL.cjs → blueprintFns-DIMiD67q.cjs} +2 -2
  9. package/dist/{blueprintSketcher-CCKCEADO.cjs → blueprintSketcher-DGcCDQq2.cjs} +3 -3
  10. package/dist/{blueprintSketcher-BYeTILZK.js → blueprintSketcher-DKfkNg71.js} +3 -3
  11. package/dist/{boolean2D-CwiND6NG.js → boolean2D-BCTOcf19.js} +4 -4
  12. package/dist/{boolean2D-BxU1RmyX.cjs → boolean2D-Dh4IPW_X.cjs} +4 -4
  13. package/dist/brepjs.cjs +25 -25
  14. package/dist/brepjs.js +25 -25
  15. package/dist/{cameraFns-zRSasMz9.cjs → cameraFns-BAm-2Clq.cjs} +2 -2
  16. package/dist/{cameraFns-CcPjRKGj.js → cameraFns-CRln-7RT.js} +2 -2
  17. package/dist/core.cjs +1 -1
  18. package/dist/core.js +1 -1
  19. package/dist/{cornerFinder-DXsCe6hW.js → cornerFinder-Bu482P3S.js} +1 -1
  20. package/dist/{cornerFinder-AsmKTFPN.cjs → cornerFinder-DMJBP4I2.cjs} +1 -1
  21. package/dist/{curveFns-BxnvFB23.cjs → curveFns-CpaxYpa4.cjs} +1 -1
  22. package/dist/{curveFns-DwIe8GZy.js → curveFns-pGQFlJG-.js} +1 -1
  23. package/dist/{drawFns-CwyVApwp.js → drawFns-BAETgRWM.js} +12 -12
  24. package/dist/{drawFns-BZEbW2zC.cjs → drawFns-D-PqWuBQ.cjs} +12 -12
  25. package/dist/{faceFns-TRIg5br4.js → faceFns-Bc6sBrBV.js} +2 -2
  26. package/dist/{faceFns-BLSzVAYl.cjs → faceFns-rbWcdpvj.cjs} +2 -2
  27. package/dist/{healingFns-B0LgUrq5.js → healingFns-DHxzmeCt.js} +5 -5
  28. package/dist/{healingFns-R5ADfh-0.cjs → healingFns-DfshoSeQ.cjs} +5 -5
  29. package/dist/{helpers-COiTc4_Y.cjs → helpers-CKbgoPDr.cjs} +6 -6
  30. package/dist/{helpers-BnIUjlaU.js → helpers-YD71h41H.js} +6 -6
  31. package/dist/{importFns-DhQLyPlO.js → importFns-A437Sgj6.js} +2 -2
  32. package/dist/{importFns-lTAr_GsL.cjs → importFns-CQ16LqPQ.cjs} +2 -2
  33. package/dist/io.cjs +2 -2
  34. package/dist/io.js +2 -2
  35. package/dist/kernel/optionalBackend.d.ts +15 -0
  36. package/dist/{loftFns-DaTo1-RY.cjs → loftFns-BQktV4u4.cjs} +1 -1
  37. package/dist/{loftFns-BJZVDHc8.js → loftFns-CXc9tRv6.js} +1 -1
  38. package/dist/{measureFns-BYTMfzr_.js → measureFns-B_vJqwDc.js} +3 -3
  39. package/dist/{measureFns-BpsPuZB8.cjs → measureFns-I5KcAgSb.cjs} +3 -3
  40. package/dist/measurement.cjs +1 -1
  41. package/dist/measurement.js +1 -1
  42. package/dist/{meshFns-nqU2Movr.js → meshFns-COdN1kVO.js} +3 -3
  43. package/dist/{meshFns-_1joEZ-4.cjs → meshFns-fPnPGEPl.cjs} +3 -3
  44. package/dist/operations.cjs +2 -2
  45. package/dist/operations.js +2 -2
  46. package/dist/{primitiveFns-BHnZEs_k.cjs → primitiveFns-Cohp602Q.cjs} +4 -4
  47. package/dist/{primitiveFns-LPYKSZBG.js → primitiveFns-DxP7GVQh.js} +4 -4
  48. package/dist/projection.cjs +1 -1
  49. package/dist/projection.js +1 -1
  50. package/dist/query.cjs +2 -2
  51. package/dist/query.js +2 -2
  52. package/dist/quick.js +7 -2
  53. package/dist/{refResolveFns-CJJka2Mh.cjs → refResolveFns-Du0v4e3Y.cjs} +5 -5
  54. package/dist/{refResolveFns-BccjAW94.js → refResolveFns-NGXXyTBa.js} +5 -5
  55. package/dist/{shapeFns-DNSBgjUO.js → shapeFns-DqGDtCsE.js} +2 -2
  56. package/dist/{shapeFns-BrTfsWJn.cjs → shapeFns-DvmBIZaX.cjs} +2 -2
  57. package/dist/shapeRef.cjs +1 -1
  58. package/dist/shapeRef.js +1 -1
  59. package/dist/{shapeTypes-BhYxXYb2.cjs → shapeTypes-BLREi6xB.cjs} +25 -12
  60. package/dist/{shapeTypes-CaEfw1Eg.js → shapeTypes-EI4Uxlsb.js} +25 -12
  61. package/dist/sketching.cjs +3 -3
  62. package/dist/sketching.js +3 -3
  63. package/dist/{solidBuilders-o9zolEOg.cjs → solidBuilders-B6DBRdRc.cjs} +5 -5
  64. package/dist/{solidBuilders-WzTJyb9Y.js → solidBuilders-Oq-hxTvJ.js} +5 -5
  65. package/dist/{surfaceBuilders-t14F6N55.cjs → surfaceBuilders-C-UhFlpS.cjs} +2 -2
  66. package/dist/{surfaceBuilders-DFwryByV.js → surfaceBuilders-C0pJwtCO.js} +2 -2
  67. package/dist/text.cjs +2 -2
  68. package/dist/text.js +2 -2
  69. package/dist/{textBlueprints-D4kbdi05.js → textBlueprints-fBpuvT3m.js} +7 -7
  70. package/dist/{textBlueprints-DMDC2cTp.cjs → textBlueprints-lSKzw-nT.cjs} +7 -7
  71. package/dist/{textMetrics-D2Ql48ch.cjs → textMetrics-BkTdFBwC.cjs} +1 -1
  72. package/dist/{textMetrics-DLvQucTf.js → textMetrics-CnrAQwLI.js} +1 -1
  73. package/dist/{threadFns-D6b6Edd7.cjs → threadFns-DJt3EStH.cjs} +7 -7
  74. package/dist/{threadFns-EkvfYJTh.js → threadFns-Dlts4xFy.js} +7 -7
  75. package/dist/topology.cjs +9 -9
  76. package/dist/topology.js +9 -9
  77. package/dist/{topologyQueryFns-CgapZiGe.cjs → topologyQueryFns-1PqfeHrV.cjs} +1 -1
  78. package/dist/{topologyQueryFns-DCItb0s7.js → topologyQueryFns-BjgBf2t-.js} +1 -1
  79. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
- import { Z as getKernel, p as isFace } from "./shapeTypes-CaEfw1Eg.js";
1
+ import { Z as getKernel, p as isFace } from "./shapeTypes-EI4Uxlsb.js";
2
2
  import { A as ok, T as isOk, b as err, h as bug, o as queryError } from "./errors-DNWJsfVU.js";
3
- import { c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-DCItb0s7.js";
3
+ import { c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-BjgBf2t-.js";
4
4
  import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
5
  import { a as vecDot, d as vecNormalize } from "./vecOps-SKPRvPH-.js";
6
- import { l as normalAt, s as getSurfaceType } from "./faceFns-TRIg5br4.js";
7
- import { a as isSameShape, n as getHashCode } from "./shapeFns-DNSBgjUO.js";
8
- import { f as getCurveType, i as curveIsClosed, o as curveLength } from "./curveFns-DwIe8GZy.js";
9
- import { n as measureArea } from "./measureFns-BYTMfzr_.js";
6
+ import { l as normalAt, s as getSurfaceType } from "./faceFns-Bc6sBrBV.js";
7
+ import { a as isSameShape, n as getHashCode } from "./shapeFns-DqGDtCsE.js";
8
+ import { f as getCurveType, i as curveIsClosed, o as curveLength } from "./curveFns-pGQFlJG-.js";
9
+ import { n as measureArea } from "./measureFns-B_vJqwDc.js";
10
10
  //#region src/utils/vec2d.ts
11
11
  /** Precision for curve intersection and parameter operations. */
12
12
  var PRECISION_INTERSECTION = 1e-9;
@@ -1,8 +1,8 @@
1
- import { Z as getKernel, t as castShape } from "./shapeTypes-CaEfw1Eg.js";
1
+ import { Z as getKernel, t as castShape } from "./shapeTypes-EI4Uxlsb.js";
2
2
  import { n as wasmIndex, t as vec3At$1 } from "./vec3-Dpha8d5k.js";
3
3
  import { A as ok, b as err, r as ioError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
4
4
  import { n as getAtOrThrow } from "./arrayAccess-DrUGPADn.js";
5
- import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-C08UoSjN.js";
5
+ import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-BeCL-AAl.js";
6
6
  //#region src/io/objExportFns.ts
7
7
  /** Read a vec3 from a typed array at the given vertex index. */
8
8
  function vec3At(arr, i) {
@@ -1,8 +1,8 @@
1
- const require_shapeTypes = require("./shapeTypes-BhYxXYb2.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BLREi6xB.cjs");
2
2
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
3
3
  const require_errors = require("./errors-CXJtc4I7.cjs");
4
4
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
5
- const require_blueprint = require("./blueprint-Bf5G2J-D.cjs");
5
+ const require_blueprint = require("./blueprint-xcDMSkia.cjs");
6
6
  //#region src/io/objExportFns.ts
7
7
  /** Read a vec3 from a typed array at the given vertex index. */
8
8
  function vec3At(arr, i) {
package/dist/io.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_meshFns = require("./meshFns-_1joEZ-4.cjs");
3
- const require_importFns = require("./importFns-lTAr_GsL.cjs");
2
+ const require_meshFns = require("./meshFns-fPnPGEPl.cjs");
3
+ const require_importFns = require("./importFns-CQ16LqPQ.cjs");
4
4
  exports.blueprintToDXF = require_importFns.blueprintToDXF;
5
5
  exports.exportDXF = require_importFns.exportDXF;
6
6
  exports.exportGlb = require_importFns.exportGlb;
package/dist/io.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-nqU2Movr.js";
2
- import { a as importSVG, c as blueprintToDXF, d as exportGltf, f as exportOBJ, i as exportSTEPConfigured, l as exportDXF, n as importSTEP, o as importSVGPathD, r as importSTL, s as exportThreeMF, t as importIGES, u as exportGlb } from "./importFns-DhQLyPlO.js";
1
+ import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-COdN1kVO.js";
2
+ import { a as importSVG, c as blueprintToDXF, d as exportGltf, f as exportOBJ, i as exportSTEPConfigured, l as exportDXF, n as importSTEP, o as importSVGPathD, r as importSTL, s as exportThreeMF, t as importIGES, u as exportGlb } from "./importFns-A437Sgj6.js";
3
3
  export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Dynamically import an optional kernel backend (`occt-wasm`,
3
+ * `brepjs-opencascade`, `brepkit-wasm`) at runtime.
4
+ *
5
+ * The specifier is passed through a parameter so the `import()` argument is a
6
+ * variable, never a string literal. A computed dynamic import is unanalyzable
7
+ * to every bundler (esbuild dep pre-bundling, Rollup, Vite import-analysis), so
8
+ * an uninstalled optional peer is always left as a runtime import instead of
9
+ * hard-failing a build. A string literal guarded only by a `@vite-ignore`
10
+ * comment regresses the moment a consumer's Vite pre-bundles brepjs and reflows
11
+ * the comment off the specifier (#1726); the `@vite-ignore` here only suppresses
12
+ * Vite's "cannot be analyzed" dev warning and its placement no longer affects
13
+ * correctness.
14
+ */
15
+ export declare function importOptionalBackend(specifier: string): Promise<unknown>;
@@ -1,4 +1,4 @@
1
- const require_shapeTypes = require("./shapeTypes-BhYxXYb2.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BLREi6xB.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
3
  const require_types = require("./types-KjA8tY4Y.cjs");
4
4
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
@@ -1,4 +1,4 @@
1
- import { Z as getKernel, c as createSolid, h as isShape3D, t as castShape, y as isWire } from "./shapeTypes-CaEfw1Eg.js";
1
+ import { Z as getKernel, c as createSolid, h as isShape3D, t as castShape, y as isWire } from "./shapeTypes-EI4Uxlsb.js";
2
2
  import { A as ok, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, w as isErr } from "./errors-DNWJsfVU.js";
3
3
  import { r as toVec3 } from "./types-D24Y27N0.js";
4
4
  import { c as vecLength, d as vecNormalize, t as vecAdd } from "./vecOps-SKPRvPH-.js";
@@ -1,7 +1,7 @@
1
- import { Z as getKernel } from "./shapeTypes-CaEfw1Eg.js";
1
+ import { Z as getKernel } from "./shapeTypes-EI4Uxlsb.js";
2
2
  import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
3
- import { w as kernelCallRaw } from "./topologyQueryFns-DCItb0s7.js";
4
- import { m as uvBounds } from "./faceFns-TRIg5br4.js";
3
+ import { w as kernelCallRaw } from "./topologyQueryFns-BjgBf2t-.js";
4
+ import { m as uvBounds } from "./faceFns-Bc6sBrBV.js";
5
5
  //#region src/measurement/measureCache.ts
6
6
  var cache = /* @__PURE__ */ new WeakMap();
7
7
  function getCachedMeasurement(shape, key) {
@@ -1,7 +1,7 @@
1
- const require_shapeTypes = require("./shapeTypes-BhYxXYb2.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BLREi6xB.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-CgapZiGe.cjs");
4
- const require_faceFns = require("./faceFns-BLSzVAYl.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-1PqfeHrV.cjs");
4
+ const require_faceFns = require("./faceFns-rbWcdpvj.cjs");
5
5
  //#region src/measurement/measureCache.ts
6
6
  var cache = /* @__PURE__ */ new WeakMap();
7
7
  function getCachedMeasurement(shape, key) {
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_measureFns = require("./measureFns-BpsPuZB8.cjs");
2
+ const require_measureFns = require("./measureFns-I5KcAgSb.cjs");
3
3
  exports.createDistanceQuery = require_measureFns.createDistanceQuery;
4
4
  exports.measureArea = require_measureFns.measureArea;
5
5
  exports.measureDistance = require_measureFns.measureDistance;
@@ -1,2 +1,2 @@
1
- import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-BYTMfzr_.js";
1
+ import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-B_vJqwDc.js";
2
2
  export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
@@ -1,7 +1,7 @@
1
- import { Z as getKernel, gt as qualityDeflection } from "./shapeTypes-CaEfw1Eg.js";
1
+ import { Z as getKernel, gt as qualityDeflection } from "./shapeTypes-EI4Uxlsb.js";
2
2
  import { A as ok, b as err, r as ioError } from "./errors-DNWJsfVU.js";
3
- import { d as getSolids, n as getBounds } from "./topologyQueryFns-DCItb0s7.js";
4
- import { j as getFaceOrigins } from "./shapeFns-DNSBgjUO.js";
3
+ import { d as getSolids, n as getBounds } from "./topologyQueryFns-BjgBf2t-.js";
4
+ import { j as getFaceOrigins } from "./shapeFns-DqGDtCsE.js";
5
5
  //#region src/topology/meshCache.ts
6
6
  /**
7
7
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -1,7 +1,7 @@
1
- const require_shapeTypes = require("./shapeTypes-BhYxXYb2.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BLREi6xB.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-CgapZiGe.cjs");
4
- const require_shapeFns = require("./shapeFns-BrTfsWJn.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-1PqfeHrV.cjs");
4
+ const require_shapeFns = require("./shapeFns-DvmBIZaX.cjs");
5
5
  //#region src/topology/meshCache.ts
6
6
  /**
7
7
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_threadFns = require("./threadFns-D6b6Edd7.cjs");
3
- const require_loftFns = require("./loftFns-DaTo1-RY.cjs");
2
+ const require_threadFns = require("./threadFns-DJt3EStH.cjs");
3
+ const require_loftFns = require("./loftFns-BQktV4u4.cjs");
4
4
  exports.addChild = require_threadFns.addChild;
5
5
  exports.addJoint = require_threadFns.addJoint;
6
6
  exports.addStep = require_threadFns.addStep;
@@ -1,3 +1,3 @@
1
- import { A as setJointValue, B as createAssemblyNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, G as circularPattern, H as removeChild, J as exportAssemblySTEP, K as gridPattern, L as addChild, M as sphericalJoint, O as prismaticJoint, R as collectShapes, S as addJoint, T as jointTransform, U as updateNode, V as findNode, W as walkAssembly, Y as createAssembly, _ as exportURDF, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, q as linearPattern, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as countNodes } from "./threadFns-EkvfYJTh.js";
2
- import { d as twistExtrude, l as supportExtrude, o as complexExtrude, u as sweep } from "./loftFns-BJZVDHc8.js";
1
+ import { A as setJointValue, B as createAssemblyNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, G as circularPattern, H as removeChild, J as exportAssemblySTEP, K as gridPattern, L as addChild, M as sphericalJoint, O as prismaticJoint, R as collectShapes, S as addJoint, T as jointTransform, U as updateNode, V as findNode, W as walkAssembly, Y as createAssembly, _ as exportURDF, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, q as linearPattern, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as countNodes } from "./threadFns-Dlts4xFy.js";
2
+ import { d as twistExtrude, l as supportExtrude, o as complexExtrude, u as sweep } from "./loftFns-CXc9tRv6.js";
3
3
  export { addChild, addJoint, addStep, circularPattern, collectShapes, complexExtrude, countNodes, createAssembly, createAssemblyNode, createHistory, createRegistry, cylindricalJoint, exportAssemblySTEP, exportURDF, findNode, findStep, forwardKinematics, getShape as getHistoryShape, gridPattern, importURDF, inverseKinematics, jointTrajectory, jointTransform, jointsFromDH, linearPattern, mechanismDOF, modifyStep, planarJoint, prismaticJoint, registerOperation, registerShape, removeChild, replayFrom, replayHistory, revoluteJoint, setJointValue, setJointValues, sphericalJoint, stepCount, stepsFrom, supportExtrude, sweep, thread, twistExtrude, undoLast, updateNode, walkAssembly };
@@ -1,9 +1,9 @@
1
- const require_shapeTypes = require("./shapeTypes-BhYxXYb2.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BLREi6xB.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
3
  const require_constants = require("./constants-BOVyEYGH.cjs");
4
- const require_shapeFns = require("./shapeFns-BrTfsWJn.cjs");
5
- const require_surfaceBuilders = require("./surfaceBuilders-t14F6N55.cjs");
6
- const require_solidBuilders = require("./solidBuilders-o9zolEOg.cjs");
4
+ const require_shapeFns = require("./shapeFns-DvmBIZaX.cjs");
5
+ const require_surfaceBuilders = require("./surfaceBuilders-C-UhFlpS.cjs");
6
+ const require_solidBuilders = require("./solidBuilders-B6DBRdRc.cjs");
7
7
  //#region src/topology/primitiveFns.ts
8
8
  /**
9
9
  * Create a box with the given dimensions.
@@ -1,9 +1,9 @@
1
- import { Z as getKernel, c as createSolid, x as isClosedWire } from "./shapeTypes-CaEfw1Eg.js";
1
+ import { Z as getKernel, c as createSolid, x as isClosedWire } from "./shapeTypes-EI4Uxlsb.js";
2
2
  import { A as ok, b as err, d as validationError, v as andThen } from "./errors-DNWJsfVU.js";
3
3
  import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
4
- import { g as translate } from "./shapeFns-DNSBgjUO.js";
5
- import { _ as makeThreePointArc, a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, g as makeTangentArc, h as makeLine, i as makeNewFaceWithinFace, m as makeHelix, o as makePolygon, p as makeEllipseArc, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeBezierCurve } from "./surfaceBuilders-DFwryByV.js";
6
- import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-WzTJyb9Y.js";
4
+ import { g as translate } from "./shapeFns-DqGDtCsE.js";
5
+ import { _ as makeThreePointArc, a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, g as makeTangentArc, h as makeLine, i as makeNewFaceWithinFace, m as makeHelix, o as makePolygon, p as makeEllipseArc, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeBezierCurve } from "./surfaceBuilders-C0pJwtCO.js";
6
+ import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-Oq-hxTvJ.js";
7
7
  //#region src/topology/primitiveFns.ts
8
8
  /**
9
9
  * Create a box with the given dimensions.
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_cameraFns = require("./cameraFns-zRSasMz9.cjs");
2
+ const require_cameraFns = require("./cameraFns-BAm-2Clq.cjs");
3
3
  exports.PROJECTION_PLANES = require_cameraFns.PROJECTION_PLANES;
4
4
  exports.cameraFromPlane = require_cameraFns.cameraFromPlane;
5
5
  exports.cameraLookAt = require_cameraFns.cameraLookAt;
@@ -1,2 +1,2 @@
1
- import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, o as PROJECTION_PLANES, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-CcPjRKGj.js";
1
+ import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, o as PROJECTION_PLANES, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-CRln-7RT.js";
2
2
  export { PROJECTION_PLANES, cameraFromPlane, cameraLookAt, createCamera, isProjectionPlane, makeProjectedEdges, projectEdges };
package/dist/query.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_helpers = require("./helpers-COiTc4_Y.cjs");
3
- const require_cornerFinder = require("./cornerFinder-AsmKTFPN.cjs");
2
+ const require_helpers = require("./helpers-CKbgoPDr.cjs");
3
+ const require_cornerFinder = require("./cornerFinder-DMJBP4I2.cjs");
4
4
  exports.cornerFinder = require_cornerFinder.cornerFinder;
5
5
  exports.edgeFinder = require_helpers.edgeFinder;
6
6
  exports.faceFinder = require_helpers.faceFinder;
package/dist/query.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-BnIUjlaU.js";
2
- import { t as cornerFinder } from "./cornerFinder-DXsCe6hW.js";
1
+ import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-YD71h41H.js";
2
+ import { t as cornerFinder } from "./cornerFinder-Bu482P3S.js";
3
3
  export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
package/dist/quick.js CHANGED
@@ -1,12 +1,17 @@
1
1
  import { initFromOC, registerKernel, OcctWasmAdapter } from './brepjs.js';
2
2
  // occt-wasm first (the default kernel); fall back to brepjs-opencascade.
3
3
  // Dynamic imports so an install with only one of the two packages still loads.
4
+ // The specifier is passed through a variable so the import() argument is never a
5
+ // string literal: a computed dynamic import is unanalyzable to every bundler, so
6
+ // an uninstalled optional peer is left as a runtime import instead of breaking a
7
+ // consumer's Vite dep pre-bundling (#1726).
8
+ const importBackend = (specifier) => import(/* @vite-ignore */ specifier);
4
9
  try {
5
- const { OcctKernel } = await import('occt-wasm');
10
+ const { OcctKernel } = await importBackend('occt-wasm');
6
11
  const kernel = await OcctKernel.init();
7
12
  registerKernel('occt-wasm', OcctWasmAdapter.fromKernel(kernel));
8
13
  } catch {
9
- const { default: opencascade } = await import('brepjs-opencascade');
14
+ const { default: opencascade } = await importBackend('brepjs-opencascade');
10
15
  const oc = await opencascade();
11
16
  initFromOC(oc);
12
17
  }
@@ -1,8 +1,8 @@
1
- const require_topologyQueryFns = require("./topologyQueryFns-CgapZiGe.cjs");
2
- const require_faceFns = require("./faceFns-BLSzVAYl.cjs");
3
- const require_shapeFns = require("./shapeFns-BrTfsWJn.cjs");
4
- const require_measureFns = require("./measureFns-BpsPuZB8.cjs");
5
- const require_adjacencyFns = require("./adjacencyFns-BCBxn5fI.cjs");
1
+ const require_topologyQueryFns = require("./topologyQueryFns-1PqfeHrV.cjs");
2
+ const require_faceFns = require("./faceFns-rbWcdpvj.cjs");
3
+ const require_shapeFns = require("./shapeFns-DvmBIZaX.cjs");
4
+ const require_measureFns = require("./measureFns-I5KcAgSb.cjs");
5
+ const require_adjacencyFns = require("./adjacencyFns-COWMJ1OX.cjs");
6
6
  //#region src/topology/shapeRef/scoring.ts
7
7
  /**
8
8
  * Default face scorer combining surface type, normal alignment, centroid proximity,
@@ -1,8 +1,8 @@
1
- import { S as vertexPosition, c as getFaces } from "./topologyQueryFns-DCItb0s7.js";
2
- import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-TRIg5br4.js";
3
- import { n as getHashCode } from "./shapeFns-DNSBgjUO.js";
4
- import { n as measureArea, s as measureLength } from "./measureFns-BYTMfzr_.js";
5
- import { a as sharedEdges, i as facesOfVertex, o as verticesOfEdge, r as facesOfEdge, s as verticesOfFace, t as adjacentFaces } from "./adjacencyFns-B6LgGNt5.js";
1
+ import { S as vertexPosition, c as getFaces } from "./topologyQueryFns-BjgBf2t-.js";
2
+ import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-Bc6sBrBV.js";
3
+ import { n as getHashCode } from "./shapeFns-DqGDtCsE.js";
4
+ import { n as measureArea, s as measureLength } from "./measureFns-B_vJqwDc.js";
5
+ import { a as sharedEdges, i as facesOfVertex, o as verticesOfEdge, r as facesOfEdge, s as verticesOfFace, t as adjacentFaces } from "./adjacencyFns-D026zKM3.js";
6
6
  //#region src/topology/shapeRef/scoring.ts
7
7
  /**
8
8
  * Default face scorer combining surface type, normal alignment, centroid proximity,
@@ -1,6 +1,6 @@
1
- import { Z as getKernel, t as castShape } from "./shapeTypes-CaEfw1Eg.js";
1
+ import { Z as getKernel, t as castShape } from "./shapeTypes-EI4Uxlsb.js";
2
2
  import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
3
- import { C as kernelCall, c as getFaces, l as getOrCreateCache, r as getCacheEntry, w as kernelCallRaw } from "./topologyQueryFns-DCItb0s7.js";
3
+ import { C as kernelCall, c as getFaces, l as getOrCreateCache, r as getCacheEntry, w as kernelCallRaw } from "./topologyQueryFns-BjgBf2t-.js";
4
4
  import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
5
  //#region src/topology/metadata/originTrackingFns.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-BhYxXYb2.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BLREi6xB.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-CgapZiGe.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-1PqfeHrV.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  //#region src/topology/metadata/originTrackingFns.ts
6
6
  /**
package/dist/shapeRef.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_refResolveFns = require("./refResolveFns-CJJka2Mh.cjs");
2
+ const require_refResolveFns = require("./refResolveFns-Du0v4e3Y.cjs");
3
3
  exports.assignRoles = require_refResolveFns.assignRoles;
4
4
  exports.captureHint = require_refResolveFns.captureHint;
5
5
  exports.createDerivedFaceRef = require_refResolveFns.createDerivedFaceRef;
package/dist/shapeRef.js CHANGED
@@ -1,2 +1,2 @@
1
- import { _ as createRef, a as isVertexRef, b as defaultScorer, c as resolveRefParams, d as createVertexRef, f as resolveVertexRef, g as captureHint, h as assignRoles, i as isLineageRef, l as createDerivedFaceRef, m as resolveEdgeRef, n as isEdgeRef, o as resolveLineageRef, p as createEdgeRef, r as isFaceRef, s as resolveRefIn, t as isDerivedFaceRef, u as resolveDerivedFaceRef, v as resolveRef, y as updateRoles } from "./refResolveFns-BccjAW94.js";
1
+ import { _ as createRef, a as isVertexRef, b as defaultScorer, c as resolveRefParams, d as createVertexRef, f as resolveVertexRef, g as captureHint, h as assignRoles, i as isLineageRef, l as createDerivedFaceRef, m as resolveEdgeRef, n as isEdgeRef, o as resolveLineageRef, p as createEdgeRef, r as isFaceRef, s as resolveRefIn, t as isDerivedFaceRef, u as resolveDerivedFaceRef, v as resolveRef, y as updateRoles } from "./refResolveFns-NGXXyTBa.js";
2
2
  export { assignRoles, captureHint, createDerivedFaceRef, createEdgeRef, createRef, createVertexRef, defaultScorer, isDerivedFaceRef, isEdgeRef, isFaceRef, isLineageRef, isVertexRef, resolveDerivedFaceRef, resolveEdgeRef, resolveLineageRef, resolveRef, resolveRefIn, resolveRefParams, resolveVertexRef, updateRoles };
@@ -15298,6 +15298,28 @@ var ManifoldAdapter = class {
15298
15298
  }
15299
15299
  };
15300
15300
  //#endregion
15301
+ //#region src/kernel/optionalBackend.ts
15302
+ /**
15303
+ * Dynamically import an optional kernel backend (`occt-wasm`,
15304
+ * `brepjs-opencascade`, `brepkit-wasm`) at runtime.
15305
+ *
15306
+ * The specifier is passed through a parameter so the `import()` argument is a
15307
+ * variable, never a string literal. A computed dynamic import is unanalyzable
15308
+ * to every bundler (esbuild dep pre-bundling, Rollup, Vite import-analysis), so
15309
+ * an uninstalled optional peer is always left as a runtime import instead of
15310
+ * hard-failing a build. A string literal guarded only by a `@vite-ignore`
15311
+ * comment regresses the moment a consumer's Vite pre-bundles brepjs and reflows
15312
+ * the comment off the specifier (#1726); the `@vite-ignore` here only suppresses
15313
+ * Vite's "cannot be analyzed" dev warning and its placement no longer affects
15314
+ * correctness.
15315
+ */
15316
+ function importOptionalBackend(specifier) {
15317
+ return import(
15318
+ /* @vite-ignore */
15319
+ specifier
15320
+ );
15321
+ }
15322
+ //#endregion
15301
15323
  //#region src/kernel/types.ts
15302
15324
  /** Check if the kernel supports hidden-line-removal projection. */
15303
15325
  function supportsProjection(kernel) {
@@ -15480,26 +15502,17 @@ function prewarm() {
15480
15502
  async function init() {
15481
15503
  if (_defaultKernelId) return _defaultKernelId;
15482
15504
  try {
15483
- const { OcctKernel } = await import(
15484
- /* @vite-ignore */
15485
- "occt-wasm"
15486
- );
15505
+ const { OcctKernel } = await importOptionalBackend("occt-wasm");
15487
15506
  const kernel = await OcctKernel.init();
15488
15507
  registerKernel("occt-wasm", require_occtWasmAdapter.OcctWasmAdapter.fromKernel(kernel));
15489
15508
  return "occt-wasm";
15490
15509
  } catch {}
15491
15510
  try {
15492
- initFromOC(await (await import(
15493
- /* @vite-ignore */
15494
- "brepjs-opencascade"
15495
- )).default());
15511
+ initFromOC(await (await importOptionalBackend("brepjs-opencascade")).default());
15496
15512
  return "occt";
15497
15513
  } catch {}
15498
15514
  try {
15499
- const bk = await import(
15500
- /* @vite-ignore */
15501
- "brepkit-wasm"
15502
- );
15515
+ const bk = await importOptionalBackend("brepkit-wasm");
15503
15516
  if (typeof bk.default === "function") await bk.default();
15504
15517
  registerKernel("brepkit", new BrepkitAdapter(new bk.BrepKernel()));
15505
15518
  return "brepkit";
@@ -15290,6 +15290,28 @@ var ManifoldAdapter = class {
15290
15290
  }
15291
15291
  };
15292
15292
  //#endregion
15293
+ //#region src/kernel/optionalBackend.ts
15294
+ /**
15295
+ * Dynamically import an optional kernel backend (`occt-wasm`,
15296
+ * `brepjs-opencascade`, `brepkit-wasm`) at runtime.
15297
+ *
15298
+ * The specifier is passed through a parameter so the `import()` argument is a
15299
+ * variable, never a string literal. A computed dynamic import is unanalyzable
15300
+ * to every bundler (esbuild dep pre-bundling, Rollup, Vite import-analysis), so
15301
+ * an uninstalled optional peer is always left as a runtime import instead of
15302
+ * hard-failing a build. A string literal guarded only by a `@vite-ignore`
15303
+ * comment regresses the moment a consumer's Vite pre-bundles brepjs and reflows
15304
+ * the comment off the specifier (#1726); the `@vite-ignore` here only suppresses
15305
+ * Vite's "cannot be analyzed" dev warning and its placement no longer affects
15306
+ * correctness.
15307
+ */
15308
+ function importOptionalBackend(specifier) {
15309
+ return import(
15310
+ /* @vite-ignore */
15311
+ specifier
15312
+ );
15313
+ }
15314
+ //#endregion
15293
15315
  //#region src/kernel/types.ts
15294
15316
  /** Check if the kernel supports hidden-line-removal projection. */
15295
15317
  function supportsProjection(kernel) {
@@ -15472,26 +15494,17 @@ function prewarm() {
15472
15494
  async function init() {
15473
15495
  if (_defaultKernelId) return _defaultKernelId;
15474
15496
  try {
15475
- const { OcctKernel } = await import(
15476
- /* @vite-ignore */
15477
- "occt-wasm"
15478
- );
15497
+ const { OcctKernel } = await importOptionalBackend("occt-wasm");
15479
15498
  const kernel = await OcctKernel.init();
15480
15499
  registerKernel("occt-wasm", OcctWasmAdapter.fromKernel(kernel));
15481
15500
  return "occt-wasm";
15482
15501
  } catch {}
15483
15502
  try {
15484
- initFromOC(await (await import(
15485
- /* @vite-ignore */
15486
- "brepjs-opencascade"
15487
- )).default());
15503
+ initFromOC(await (await importOptionalBackend("brepjs-opencascade")).default());
15488
15504
  return "occt";
15489
15505
  } catch {}
15490
15506
  try {
15491
- const bk = await import(
15492
- /* @vite-ignore */
15493
- "brepkit-wasm"
15494
- );
15507
+ const bk = await importOptionalBackend("brepkit-wasm");
15495
15508
  if (typeof bk.default === "function") await bk.default();
15496
15509
  registerKernel("brepkit", new BrepkitAdapter(new bk.BrepKernel()));
15497
15510
  return "brepkit";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_textBlueprints = require("./textBlueprints-DMDC2cTp.cjs");
3
- const require_blueprintSketcher = require("./blueprintSketcher-CCKCEADO.cjs");
4
- const require_drawFns = require("./drawFns-BZEbW2zC.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-lSKzw-nT.cjs");
3
+ const require_blueprintSketcher = require("./blueprintSketcher-DGcCDQq2.cjs");
4
+ const require_drawFns = require("./drawFns-D-PqWuBQ.cjs");
5
5
  //#region src/sketching.ts
6
6
  /**
7
7
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
package/dist/sketching.js CHANGED
@@ -1,6 +1,6 @@
1
- import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-BYeTILZK.js";
2
- import { A as sketchEllipse, C as DrawingPen, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, T as Drawing, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-CwyVApwp.js";
3
- import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, o as compoundSketchExtrude, p as sketchRevolve, s as compoundSketchFace, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-D4kbdi05.js";
1
+ import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-DKfkNg71.js";
2
+ import { A as sketchEllipse, C as DrawingPen, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, T as Drawing, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-BAETgRWM.js";
3
+ import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, o as compoundSketchExtrude, p as sketchRevolve, s as compoundSketchFace, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-fBpuvT3m.js";
4
4
  //#region src/sketching.ts
5
5
  /**
6
6
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
@@ -1,13 +1,13 @@
1
- const require_shapeTypes = require("./shapeTypes-BhYxXYb2.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BLREi6xB.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-CgapZiGe.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-1PqfeHrV.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
6
6
  const require_planeOps = require("./planeOps-BA4HfgQu.cjs");
7
- const require_faceFns = require("./faceFns-BLSzVAYl.cjs");
8
- const require_shapeFns = require("./shapeFns-BrTfsWJn.cjs");
7
+ const require_faceFns = require("./faceFns-rbWcdpvj.cjs");
8
+ const require_shapeFns = require("./shapeFns-DvmBIZaX.cjs");
9
9
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
10
- const require_surfaceBuilders = require("./surfaceBuilders-t14F6N55.cjs");
10
+ const require_surfaceBuilders = require("./surfaceBuilders-C-UhFlpS.cjs");
11
11
  //#region src/topology/booleanFns.ts
12
12
  /**
13
13
  * Boolean and compound operations — functional replacements for _3DShape boolean methods.
@@ -1,13 +1,13 @@
1
- import { Z as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex, t as castShape } from "./shapeTypes-CaEfw1Eg.js";
1
+ import { Z as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex, t as castShape } from "./shapeTypes-EI4Uxlsb.js";
2
2
  import { A as ok, R as unwrap, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, v as andThen, w as isErr } from "./errors-DNWJsfVU.js";
3
- import { f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-DCItb0s7.js";
3
+ import { f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-BjgBf2t-.js";
4
4
  import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
5
5
  import { h as vecScale, t as vecAdd } from "./vecOps-SKPRvPH-.js";
6
6
  import { o as resolvePlane } from "./planeOps-DSjjtrjg.js";
7
- import { _ as cast, v as downcast } from "./faceFns-TRIg5br4.js";
8
- import { _ as collectInputFaceHashes, b as propagateMetadataByHash, y as propagateAllMetadata } from "./shapeFns-DNSBgjUO.js";
7
+ import { _ as cast, v as downcast } from "./faceFns-Bc6sBrBV.js";
8
+ import { _ as collectInputFaceHashes, b as propagateMetadataByHash, y as propagateAllMetadata } from "./shapeFns-DqGDtCsE.js";
9
9
  import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
10
- import { r as makeFace } from "./surfaceBuilders-DFwryByV.js";
10
+ import { r as makeFace } from "./surfaceBuilders-C0pJwtCO.js";
11
11
  //#region src/topology/booleanFns.ts
12
12
  /**
13
13
  * Boolean and compound operations — functional replacements for _3DShape boolean methods.
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-BhYxXYb2.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BLREi6xB.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_faceFns = require("./faceFns-BLSzVAYl.cjs");
3
+ const require_faceFns = require("./faceFns-rbWcdpvj.cjs");
4
4
  //#region src/utils/range.ts
5
5
  /** Generate an array of integers `[0, 1, …, len - 1]`. */
6
6
  function range(len) {
@@ -1,6 +1,6 @@
1
- import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-CaEfw1Eg.js";
1
+ import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-EI4Uxlsb.js";
2
2
  import { A as ok, b as err, d as validationError, i as kernelError, v as andThen } from "./errors-DNWJsfVU.js";
3
- import { _ as cast, u as outerWire } from "./faceFns-TRIg5br4.js";
3
+ import { _ as cast, u as outerWire } from "./faceFns-Bc6sBrBV.js";
4
4
  //#region src/utils/range.ts
5
5
  /** Generate an array of integers `[0, 1, …, len - 1]`. */
6
6
  function range(len) {
package/dist/text.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_textBlueprints = require("./textBlueprints-DMDC2cTp.cjs");
3
- const require_textMetrics = require("./textMetrics-D2Ql48ch.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-lSKzw-nT.cjs");
3
+ const require_textMetrics = require("./textMetrics-BkTdFBwC.cjs");
4
4
  exports.fontMetrics = require_textMetrics.fontMetrics;
5
5
  exports.getFont = require_textBlueprints.getFont;
6
6
  exports.loadFont = require_textBlueprints.loadFont;
package/dist/text.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-D4kbdi05.js";
2
- import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-DLvQucTf.js";
1
+ import { n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-fBpuvT3m.js";
2
+ import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-CnrAQwLI.js";
3
3
  export { fontMetrics, getFont, loadFont, sketchText, textBlueprints, textMetrics };
@@ -1,15 +1,15 @@
1
- import { o as createFace, u as createWire } from "./shapeTypes-CaEfw1Eg.js";
1
+ import { o as createFace, u as createWire } from "./shapeTypes-EI4Uxlsb.js";
2
2
  import { A as ok, R as unwrap, b as err, h as bug, r as ioError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
3
3
  import { r as toVec3 } from "./types-D24Y27N0.js";
4
4
  import { d as vecNormalize, h as vecScale, r as vecCross } from "./vecOps-SKPRvPH-.js";
5
5
  import { n as createPlane } from "./planeOps-DSjjtrjg.js";
6
- import { v as downcast } from "./faceFns-TRIg5br4.js";
7
- import { l as curveStartPoint, u as curveTangentAt } from "./curveFns-DwIe8GZy.js";
6
+ import { v as downcast } from "./faceFns-Bc6sBrBV.js";
7
+ import { l as curveStartPoint, u as curveTangentAt } from "./curveFns-pGQFlJG-.js";
8
8
  import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
9
- import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-DFwryByV.js";
10
- import { o as makeSolid, p as cutAll, t as makeCompound } from "./solidBuilders-WzTJyb9Y.js";
11
- import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-BYeTILZK.js";
12
- import { a as revolve, d as twistExtrude, o as complexExtrude, r as extrude, t as loft, u as sweep } from "./loftFns-BJZVDHc8.js";
9
+ import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-C0pJwtCO.js";
10
+ import { o as makeSolid, p as cutAll, t as makeCompound } from "./solidBuilders-Oq-hxTvJ.js";
11
+ import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-DKfkNg71.js";
12
+ import { a as revolve, d as twistExtrude, o as complexExtrude, r as extrude, t as loft, u as sweep } from "./loftFns-CXc9tRv6.js";
13
13
  import opentype from "opentype.js";
14
14
  //#region src/sketching/compoundSketch.ts
15
15
  /**