brepjs 20.13.1 → 20.13.3

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 (96) hide show
  1. package/dist/2d.cjs +6 -6
  2. package/dist/2d.js +6 -6
  3. package/dist/{adjacencyFns-BA9xrrmS.cjs → adjacencyFns-BBugwmvl.cjs} +2 -2
  4. package/dist/{adjacencyFns-C4Tui11_.js → adjacencyFns-V29Gvfs9.js} +2 -2
  5. package/dist/{blueprint-D193PMxX.cjs → blueprint-BO8zuqoy.cjs} +5 -5
  6. package/dist/{blueprint-DH0H9OWv.js → blueprint-CDmOJybf.js} +5 -5
  7. package/dist/{blueprintFns-Bfiqbmtc.js → blueprintFns-CEKZsu4N.js} +2 -2
  8. package/dist/{blueprintFns-DYIKTIvJ.cjs → blueprintFns-Cki-iwEl.cjs} +2 -2
  9. package/dist/{blueprintSketcher-B1UrnhFt.cjs → blueprintSketcher-Bxkp-vjK.cjs} +3 -3
  10. package/dist/{blueprintSketcher-RA8ti2Xp.js → blueprintSketcher-DG_2zJg7.js} +3 -3
  11. package/dist/{boolean2D-XIehGONX.cjs → boolean2D-C_sEMz0u.cjs} +4 -4
  12. package/dist/{boolean2D-CCKUmway.js → boolean2D-DqCcYA2X.js} +4 -4
  13. package/dist/{booleanFns-zRlNDHQY.cjs → booleanFns-CA9tvtqr.cjs} +5 -5
  14. package/dist/{booleanFns-CyxmW1pL.js → booleanFns-CopMFBLS.js} +5 -5
  15. package/dist/brepjs.cjs +32 -30
  16. package/dist/brepjs.js +32 -30
  17. package/dist/{cameraFns-CtpBKmwD.js → cameraFns-BIIpsfds.js} +3 -3
  18. package/dist/{cameraFns-BDjt94fY.cjs → cameraFns-BJ35ht2H.cjs} +3 -3
  19. package/dist/core.cjs +2 -2
  20. package/dist/core.js +2 -2
  21. package/dist/{cornerFinder-CIryesVI.js → cornerFinder-C8VCstc3.js} +1 -1
  22. package/dist/{cornerFinder-DWN1Vkea.cjs → cornerFinder-D83OLL_I.cjs} +1 -1
  23. package/dist/{curveFns-b_C6tBeU.js → curveFns--TqXOi8f.js} +1 -1
  24. package/dist/{curveFns-0vAErrs9.cjs → curveFns-B29Eot3K.cjs} +1 -1
  25. package/dist/{drawFns-vcRf5KKV.cjs → drawFns-Bqs4HPzo.cjs} +12 -12
  26. package/dist/{drawFns--_Bd7ONO.js → drawFns-g9FrZ_P4.js} +12 -12
  27. package/dist/{faceFns-DzNcnzS5.cjs → faceFns-BeSpw0Dz.cjs} +2 -2
  28. package/dist/{faceFns-WtnWpVQl.js → faceFns-BzHfvPea.js} +2 -2
  29. package/dist/{healingFns-D26gj7M5.cjs → healingFns-BtZg6i3J.cjs} +30 -13
  30. package/dist/{healingFns-B82dNj9P.js → healingFns-DtefNa-x.js} +30 -13
  31. package/dist/{helpers-BO5NktbN.cjs → helpers-CFEuQ0ok.cjs} +6 -6
  32. package/dist/{helpers-C5I0ZqYC.js → helpers-CHUowMmV.js} +6 -6
  33. package/dist/{importFns-sxpO2z86.js → importFns-BLaneR8r.js} +5 -5
  34. package/dist/{importFns-Ceb2VgcK.cjs → importFns-BX0866c6.cjs} +5 -5
  35. package/dist/index.d.ts +1 -1
  36. package/dist/io.cjs +2 -2
  37. package/dist/io.js +2 -2
  38. package/dist/kernel/brepkit/brepkitWasmTypes.d.ts +0 -4
  39. package/dist/kernel/brepkit/helpers.d.ts +15 -0
  40. package/dist/kernel/brepkit/measureOps.d.ts +7 -0
  41. package/dist/kernel/brepkit/modifierOps.d.ts +11 -1
  42. package/dist/kernel/index.d.ts +1 -1
  43. package/dist/kernel/interfaces/index.d.ts +1 -1
  44. package/dist/{loftFns-KXrP3aat.cjs → loftFns-Byjbneme.cjs} +31 -16
  45. package/dist/{loftFns-Y-aBF_f7.js → loftFns-Cth8Le9X.js} +32 -17
  46. package/dist/{measureFns-C8UjdHpB.cjs → measureFns-BlS2xJcn.cjs} +53 -9
  47. package/dist/{measureFns-B0PhQ5dY.js → measureFns-CLsSuByu.js} +49 -11
  48. package/dist/measurement/measureFns.d.ts +16 -1
  49. package/dist/measurement.cjs +2 -2
  50. package/dist/measurement.js +2 -2
  51. package/dist/{meshFns-BazHDlpY.js → meshFns-CzpP9SBf.js} +3 -3
  52. package/dist/{meshFns-BnkXZ0Xm.cjs → meshFns-ECQqx-8Q.cjs} +3 -3
  53. package/dist/operations/sweepFns.d.ts +7 -3
  54. package/dist/operations.cjs +2 -2
  55. package/dist/operations.js +2 -2
  56. package/dist/{primitiveFns-BM709SMs.cjs → primitiveFns-CzhQz02F.cjs} +5 -5
  57. package/dist/{primitiveFns-BZALpT35.js → primitiveFns-Kph3YP3A.js} +5 -5
  58. package/dist/{principalBoxFns-DLOoxmZB.js → principalBoxFns-C8ZmZNxJ.js} +3 -3
  59. package/dist/{principalBoxFns-C_hSxRc7.cjs → principalBoxFns-Ck9rR3Op.cjs} +3 -3
  60. package/dist/projection.cjs +1 -1
  61. package/dist/projection.js +1 -1
  62. package/dist/query.cjs +2 -2
  63. package/dist/query.js +2 -2
  64. package/dist/{refResolveFns-BkSLmvyY.cjs → refResolveFns-CVUSuVee.cjs} +6 -6
  65. package/dist/{refResolveFns-BA1ES0sL.js → refResolveFns-Cf16q6AH.js} +6 -6
  66. package/dist/{shapeFns-Bgql2_E6.cjs → shapeFns-BEwoFgq2.cjs} +2 -2
  67. package/dist/{shapeFns-CSWOXGx9.js → shapeFns-Bepwarf3.js} +2 -2
  68. package/dist/shapeRef.cjs +1 -1
  69. package/dist/shapeRef.js +1 -1
  70. package/dist/{shapeTypes-BFfnNmzj.cjs → shapeTypes-CIw6-GFy.cjs} +685 -175
  71. package/dist/{shapeTypes-C7hqbMwl.js → shapeTypes-hLHmANUz.js} +685 -175
  72. package/dist/sketching.cjs +3 -3
  73. package/dist/sketching.js +3 -3
  74. package/dist/{solidBuilders-CWw3yasa.cjs → solidBuilders-BVHK-era.cjs} +3 -3
  75. package/dist/{solidBuilders-B01dFnd7.js → solidBuilders-IA8xNuxJ.js} +3 -3
  76. package/dist/{surfaceBuilders-Cn7GIsyR.js → surfaceBuilders-BYwkPzfM.js} +3 -3
  77. package/dist/{surfaceBuilders-DL7UTpW2.cjs → surfaceBuilders-DIM5GSAT.cjs} +3 -3
  78. package/dist/text.cjs +2 -2
  79. package/dist/text.js +2 -2
  80. package/dist/{textBlueprints-B7gDC-aP.js → textBlueprints-B4w-_4_D.js} +8 -8
  81. package/dist/{textBlueprints-dOnCv38X.cjs → textBlueprints-CPJ6sBZZ.cjs} +8 -8
  82. package/dist/{textMetrics-Cqc0xzHC.cjs → textMetrics-Dfr_9G6g.cjs} +1 -1
  83. package/dist/{textMetrics-BFzj8Zvn.js → textMetrics-na1BYw65.js} +1 -1
  84. package/dist/{threadFns-M8pqF4TW.js → threadFns-BEO0-PP6.js} +7 -7
  85. package/dist/{threadFns-DwTPnV_1.cjs → threadFns-CAsRIX6c.cjs} +7 -7
  86. package/dist/topology/apiTypes.d.ts +7 -3
  87. package/dist/topology/chamferAngleFns.d.ts +2 -2
  88. package/dist/topology/evolutionFns.d.ts +1 -1
  89. package/dist/topology/modifierFns.d.ts +11 -4
  90. package/dist/topology.cjs +9 -9
  91. package/dist/topology.js +9 -9
  92. package/dist/{topologyQueryFns-95FptXtu.cjs → topologyQueryFns-BNDmjz7x.cjs} +1 -1
  93. package/dist/{topologyQueryFns-C3-_9dFM.js → topologyQueryFns-BYqsNs6q.js} +1 -1
  94. package/dist/{validityTypes-C6qOP241.js → validityTypes-BYhzdgTM.js} +1 -1
  95. package/dist/{validityTypes--tgDeAF8.cjs → validityTypes-Gd5B_HcL.cjs} +1 -1
  96. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_blueprintSketcher = require("./blueprintSketcher-B1UrnhFt.cjs");
3
- const require_drawFns = require("./drawFns-vcRf5KKV.cjs");
4
- const require_textBlueprints = require("./textBlueprints-dOnCv38X.cjs");
2
+ const require_blueprintSketcher = require("./blueprintSketcher-Bxkp-vjK.cjs");
3
+ const require_drawFns = require("./drawFns-Bqs4HPzo.cjs");
4
+ const require_textBlueprints = require("./textBlueprints-CPJ6sBZZ.cjs");
5
5
  // 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-RA8ti2Xp.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--_Bd7ONO.js";
3
- import { a as Sketches, c as compoundSketchFace, d as sketchExtrude, f as sketchFace, g as sketchWires, h as sketchSweep, l as compoundSketchLoft, m as sketchRevolve, o as Sketch, p as sketchLoft, s as compoundSketchExtrude, u as compoundSketchRevolve, y as CompoundSketch } from "./textBlueprints-B7gDC-aP.js";
1
+ import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-DG_2zJg7.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-g9FrZ_P4.js";
3
+ import { a as Sketches, c as compoundSketchFace, d as sketchExtrude, f as sketchFace, g as sketchWires, h as sketchSweep, l as compoundSketchLoft, m as sketchRevolve, o as Sketch, p as sketchLoft, s as compoundSketchExtrude, u as compoundSketchRevolve, y as CompoundSketch } from "./textBlueprints-B4w-_4_D.js";
4
4
  // src/sketching.ts
5
5
  /**
6
6
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
@@ -1,8 +1,8 @@
1
- const require_shapeTypes = require("./shapeTypes-BFfnNmzj.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-CIw6-GFy.cjs");
2
2
  const require_errors = require("./errors-O_blYTWT.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-95FptXtu.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-BNDmjz7x.cjs");
4
4
  const require_constants = require("./constants-oee0S_x6.cjs");
5
- const require_faceFns = require("./faceFns-DzNcnzS5.cjs");
5
+ const require_faceFns = require("./faceFns-BeSpw0Dz.cjs");
6
6
  // src/topology/metadata/originTrackingFns.ts
7
7
  /**
8
8
  * Face origin tracking — tag faces with integer origins and propagate
@@ -1,8 +1,8 @@
1
- import { C as isSolid, G as _usingCtx, S as isShell, d as createSolid, f as createVertex, h as disposeResultShape, n as castResultShape, q as getKernel, s as createCompound, x as isShape3D } from "./shapeTypes-C7hqbMwl.js";
1
+ import { C as isSolid, G as _usingCtx, S as isShell, d as createSolid, f as createVertex, h as disposeResultShape, n as castResultShape, q as getKernel, s as createCompound, x as isShape3D } from "./shapeTypes-hLHmANUz.js";
2
2
  import { E as ok, g as err, l as typeCastError, m as andThen } from "./errors-BTccWbtE.js";
3
- import { C as subShapeHashes, c as getFaces, l as getOrCreateCache, r as getCacheEntry } from "./topologyQueryFns-C3-_9dFM.js";
3
+ import { C as subShapeHashes, c as getFaces, l as getOrCreateCache, r as getCacheEntry } from "./topologyQueryFns-BYqsNs6q.js";
4
4
  import { n as HASH_CODE_MAX } from "./constants-iraOnb2p.js";
5
- import { _ as cast, y as downcast } from "./faceFns-WtnWpVQl.js";
5
+ import { _ as cast, y as downcast } from "./faceFns-BzHfvPea.js";
6
6
  // src/topology/metadata/originTrackingFns.ts
7
7
  /**
8
8
  * Face origin tracking — tag faces with integer origins and propagate
@@ -1,7 +1,7 @@
1
- import { G as _usingCtx, N as DisposalScope, c as createEdge, l as createFace, p as createWire, q as getKernel, y as isFace } from "./shapeTypes-C7hqbMwl.js";
1
+ import { G as _usingCtx, N as DisposalScope, c as createEdge, l as createFace, p as createWire, q as getKernel, y as isFace } from "./shapeTypes-hLHmANUz.js";
2
2
  import { E as ok, d as validationError, g as err, i as kernelError, m as andThen } from "./errors-BTccWbtE.js";
3
- import { a as isPlanarFace } from "./validityTypes-C6qOP241.js";
4
- import { _ as cast, u as outerWire } from "./faceFns-WtnWpVQl.js";
3
+ import { a as isPlanarFace } from "./validityTypes-BYhzdgTM.js";
4
+ import { _ as cast, u as outerWire } from "./faceFns-BzHfvPea.js";
5
5
  // src/utils/range.ts
6
6
  /** Generate an array of integers `[0, 1, …, len - 1]`. */
7
7
  function range(len) {
@@ -1,7 +1,7 @@
1
- const require_shapeTypes = require("./shapeTypes-BFfnNmzj.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-CIw6-GFy.cjs");
2
2
  const require_errors = require("./errors-O_blYTWT.cjs");
3
- const require_validityTypes = require("./validityTypes--tgDeAF8.cjs");
4
- const require_faceFns = require("./faceFns-DzNcnzS5.cjs");
3
+ const require_validityTypes = require("./validityTypes-Gd5B_HcL.cjs");
4
+ const require_faceFns = require("./faceFns-BeSpw0Dz.cjs");
5
5
  // src/utils/range.ts
6
6
  /** Generate an array of integers `[0, 1, …, len - 1]`. */
7
7
  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-dOnCv38X.cjs");
3
- const require_textMetrics = require("./textMetrics-Cqc0xzHC.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-CPJ6sBZZ.cjs");
3
+ const require_textMetrics = require("./textMetrics-Dfr_9G6g.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 { i as setFallbackFont, n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-B7gDC-aP.js";
2
- import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-BFzj8Zvn.js";
1
+ import { i as setFallbackFont, n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-B4w-_4_D.js";
2
+ import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-na1BYw65.js";
3
3
  export { fontMetrics, getFont, loadFont, setFallbackFont, sketchText, textBlueprints, textMetrics };
@@ -1,19 +1,19 @@
1
- import { d as createSolid, h as disposeResultShape, l as createFace, m as disposeDowncastSource, n as castResultShape, p as createWire, q as getKernel, x as isShape3D } from "./shapeTypes-C7hqbMwl.js";
1
+ import { d as createSolid, h as disposeResultShape, l as createFace, m as disposeDowncastSource, n as castResultShape, p as createWire, q as getKernel, x as isShape3D } from "./shapeTypes-hLHmANUz.js";
2
2
  import { n as bug } from "./bug-ClMTAJhe.js";
3
3
  import { E as ok, P as unwrap, d as validationError, g as err, i as kernelError, l as typeCastError, r as ioError, t as BrepErrorCode } from "./errors-BTccWbtE.js";
4
4
  import { n as HASH_CODE_MAX } from "./constants-iraOnb2p.js";
5
5
  import { r as toVec3 } from "./types-CKXsIm9-.js";
6
6
  import { c as vecLength, d as vecNormalize, h as vecScale, i as vecDistance, r as vecCross, t as vecAdd } from "./vecOps-S-m9H_fe.js";
7
7
  import { n as createPlane } from "./planeOps-D3yDuMux.js";
8
- import { v as copyShape } from "./faceFns-WtnWpVQl.js";
9
- import { o as makeSolid, t as makeCompound } from "./solidBuilders-B01dFnd7.js";
10
- import { i as cutAll } from "./booleanFns-CyxmW1pL.js";
8
+ import { v as copyShape } from "./faceFns-BzHfvPea.js";
9
+ import { o as makeSolid, t as makeCompound } from "./solidBuilders-IA8xNuxJ.js";
10
+ import { i as cutAll } from "./booleanFns-CopMFBLS.js";
11
11
  import { i as setFaceRoles } from "./faceRoleFns-BPxzQF-n.js";
12
- import { l as curveStartPoint, u as curveTangentAt } from "./curveFns-b_C6tBeU.js";
12
+ import { l as curveStartPoint, u as curveTangentAt } from "./curveFns--TqXOi8f.js";
13
13
  import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-BpgouNir.js";
14
- import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-Cn7GIsyR.js";
15
- import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-RA8ti2Xp.js";
16
- import { c as twistExtrude, r as complexExtrude, s as sweep, t as loft } from "./loftFns-Y-aBF_f7.js";
14
+ import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-BYwkPzfM.js";
15
+ import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-DG_2zJg7.js";
16
+ import { c as twistExtrude, r as complexExtrude, s as sweep, t as loft } from "./loftFns-Cth8Le9X.js";
17
17
  import opentype from "opentype.js";
18
18
  // src/topology/shapeRef/extrudeRoleFns.ts
19
19
  /** Match tolerance as a fraction of the extrusion's size. */
@@ -1,20 +1,20 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-BW-eSwOZ.cjs");
2
- const require_shapeTypes = require("./shapeTypes-BFfnNmzj.cjs");
2
+ const require_shapeTypes = require("./shapeTypes-CIw6-GFy.cjs");
3
3
  const require_bug = require("./bug-CBcpIPuf.cjs");
4
4
  const require_errors = require("./errors-O_blYTWT.cjs");
5
5
  const require_constants = require("./constants-oee0S_x6.cjs");
6
6
  const require_types = require("./types-CjF9Rofr.cjs");
7
7
  const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
8
8
  const require_planeOps = require("./planeOps-DZfLToKZ.cjs");
9
- const require_faceFns = require("./faceFns-DzNcnzS5.cjs");
10
- const require_solidBuilders = require("./solidBuilders-CWw3yasa.cjs");
11
- const require_booleanFns = require("./booleanFns-zRlNDHQY.cjs");
9
+ const require_faceFns = require("./faceFns-BeSpw0Dz.cjs");
10
+ const require_solidBuilders = require("./solidBuilders-BVHK-era.cjs");
11
+ const require_booleanFns = require("./booleanFns-CA9tvtqr.cjs");
12
12
  const require_faceRoleFns = require("./faceRoleFns-Db5bYj4Q.cjs");
13
- const require_curveFns = require("./curveFns-0vAErrs9.cjs");
13
+ const require_curveFns = require("./curveFns-B29Eot3K.cjs");
14
14
  const require_arrayAccess = require("./arrayAccess-DpJYARwv.cjs");
15
- const require_surfaceBuilders = require("./surfaceBuilders-DL7UTpW2.cjs");
16
- const require_blueprintSketcher = require("./blueprintSketcher-B1UrnhFt.cjs");
17
- const require_loftFns = require("./loftFns-KXrP3aat.cjs");
15
+ const require_surfaceBuilders = require("./surfaceBuilders-DIM5GSAT.cjs");
16
+ const require_blueprintSketcher = require("./blueprintSketcher-Bxkp-vjK.cjs");
17
+ const require_loftFns = require("./loftFns-Byjbneme.cjs");
18
18
  let opentype_js = require("opentype.js");
19
19
  opentype_js = require_rolldown_runtime.__toESM(opentype_js, 1);
20
20
  // src/topology/shapeRef/extrudeRoleFns.ts
@@ -1,5 +1,5 @@
1
1
  const require_errors = require("./errors-O_blYTWT.cjs");
2
- const require_textBlueprints = require("./textBlueprints-dOnCv38X.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-CPJ6sBZZ.cjs");
3
3
  // src/text/sketchText.ts
4
4
  /**
5
5
  * Render text as 3D sketch outlines on a plane.
@@ -1,5 +1,5 @@
1
1
  import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-BTccWbtE.js";
2
- import { _ as wrapSketchData, a as Sketches, n as getFont, t as textBlueprints, y as CompoundSketch } from "./textBlueprints-B7gDC-aP.js";
2
+ import { _ as wrapSketchData, a as Sketches, n as getFont, t as textBlueprints, y as CompoundSketch } from "./textBlueprints-B4w-_4_D.js";
3
3
  // src/text/sketchText.ts
4
4
  /**
5
5
  * Render text as 3D sketch outlines on a plane.
@@ -1,12 +1,12 @@
1
- import { F as createKernelHandle, G as _usingCtx, N as DisposalScope, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-C7hqbMwl.js";
1
+ import { F as createKernelHandle, G as _usingCtx, N as DisposalScope, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-hLHmANUz.js";
2
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-BTccWbtE.js";
3
3
  import { d as vecNormalize, s as vecIsZero } from "./vecOps-S-m9H_fe.js";
4
- import { b as fromBREP } from "./faceFns-WtnWpVQl.js";
5
- import { o as fuseAll } from "./booleanFns-CyxmW1pL.js";
6
- import { E as wire, h as line } from "./primitiveFns-BZALpT35.js";
7
- import { s as toBREP, t as clone } from "./shapeFns-CSWOXGx9.js";
8
- import { t as loft } from "./loftFns-Y-aBF_f7.js";
9
- import { c as resolveRefParams } from "./refResolveFns-BA1ES0sL.js";
4
+ import { b as fromBREP } from "./faceFns-BzHfvPea.js";
5
+ import { o as fuseAll } from "./booleanFns-CopMFBLS.js";
6
+ import { E as wire, h as line } from "./primitiveFns-Kph3YP3A.js";
7
+ import { s as toBREP, t as clone } from "./shapeFns-Bepwarf3.js";
8
+ import { t as loft } from "./loftFns-Cth8Le9X.js";
9
+ import { c as resolveRefParams } from "./refResolveFns-Cf16q6AH.js";
10
10
  // src/utils/uuid.ts
11
11
  /** Generate a v4-style UUID string using `crypto.getRandomValues`. */
12
12
  function uuidv() {
@@ -1,12 +1,12 @@
1
- const require_shapeTypes = require("./shapeTypes-BFfnNmzj.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-CIw6-GFy.cjs");
2
2
  const require_errors = require("./errors-O_blYTWT.cjs");
3
3
  const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
4
- const require_faceFns = require("./faceFns-DzNcnzS5.cjs");
5
- const require_booleanFns = require("./booleanFns-zRlNDHQY.cjs");
6
- const require_primitiveFns = require("./primitiveFns-BM709SMs.cjs");
7
- const require_shapeFns = require("./shapeFns-Bgql2_E6.cjs");
8
- const require_loftFns = require("./loftFns-KXrP3aat.cjs");
9
- const require_refResolveFns = require("./refResolveFns-BkSLmvyY.cjs");
4
+ const require_faceFns = require("./faceFns-BeSpw0Dz.cjs");
5
+ const require_booleanFns = require("./booleanFns-CA9tvtqr.cjs");
6
+ const require_primitiveFns = require("./primitiveFns-CzhQz02F.cjs");
7
+ const require_shapeFns = require("./shapeFns-BEwoFgq2.cjs");
8
+ const require_loftFns = require("./loftFns-Byjbneme.cjs");
9
+ const require_refResolveFns = require("./refResolveFns-CVUSuVee.cjs");
10
10
  // src/utils/uuid.ts
11
11
  /** Generate a v4-style UUID string using `crypto.getRandomValues`. */
12
12
  function uuidv() {
@@ -21,16 +21,20 @@ export type FinderFn<T extends AnyShape<Dimension>> = (finder: FinderFor<T>) =>
21
21
  * - `number` — constant radius on all selected edges
22
22
  * - `[number, number]` — variable radius (start, end)
23
23
  * - callback — per-edge radius; return `null` to skip an edge
24
+ *
25
+ * brepkit builds one constant radius per call: a radius that varies, or different
26
+ * radii on different edges, is an `UNSUPPORTED_CAPABILITY` error there.
24
27
  */
25
28
  export type FilletRadius = number | [number, number] | ((edge: Edge) => number | [number, number] | null);
26
29
  /**
27
30
  * Chamfer distance specification.
28
31
  *
29
32
  * - `number` — equal distance
30
- * - `[number, number]` — asymmetric distances (dist1, dist2). brepkit has no asymmetric
31
- * chamfer and returns an `UNSUPPORTED_CAPABILITY` error for two different distances.
33
+ * - `[number, number]` — asymmetric distances (dist1, dist2). The kernel picks which of the
34
+ * edge's two faces takes dist1, and kernels can pick differently: occt-wasm and brepkit
35
+ * set a box edge's dist1 back on opposite faces.
32
36
  * - `{ distance, angle }` — distance-angle mode (replaces chamferDistAngleShape); angle in degrees.
33
- * brepkit has no distance-angle chamfer and returns an `UNSUPPORTED_CAPABILITY` error.
37
+ * The kernel picks the face the distance runs along, as for dist1.
34
38
  * - callback — per-edge value of any of the above; return `null` (or a non-positive
35
39
  * distance) to skip an edge. The edges it keeps must all get plain distances or all
36
40
  * get `{ distance, angle }`: mixing the two is an `INVALID_CHAMFER_DISTANCE` error.
@@ -11,7 +11,7 @@ import { Result } from '../core/result.js';
11
11
  * @param distance - Chamfer distance along the face (must be positive).
12
12
  * @param angleDeg - Chamfer angle in degrees (must be in range (0, 90)).
13
13
  * @returns Ok with the chamfered shape, or Err on invalid input or kernel
14
- * failure. A kernel without a distance-angle chamfer (brepkit) returns
14
+ * failure. A kernel without a distance-angle chamfer returns
15
15
  * `UNSUPPORTED_CAPABILITY`.
16
16
  *
17
17
  * @remarks Uses `BRepFilletAPI_MakeChamfer.AddDA(dist, angle, edge, face)` internally.
@@ -34,7 +34,7 @@ export interface EdgeDistAngle {
34
34
  * Chamfer each edge by its own distance and angle, in one operation.
35
35
  *
36
36
  * Edges that all share one distance and angle, with no reference face given,
37
- * go through {@link chamferDistAngle}, which every kernel but brepkit provides.
37
+ * go through {@link chamferDistAngle}, which every kernel provides.
38
38
  * Different values, or any `face`, need a kernel with a per-edge distance-angle
39
39
  * chamfer (occt-wasm 5.9.0 or later); on any other kernel the result is an
40
40
  * `UNSUPPORTED_CAPABILITY` error. On occt-wasm the edges of one
@@ -57,7 +57,7 @@ export declare function filletWithEvolution(shape: ValidSolid, edges: ReadonlyAr
57
57
  * @param edges - Edges to chamfer. Pass `undefined` to chamfer all edges.
58
58
  * @param distance - Symmetric distance, asymmetric `[d1, d2]`, or per-edge callback.
59
59
  * @returns Err `UNSUPPORTED_CAPABILITY` when the kernel cannot build the
60
- * distances asked for (brepkit has no asymmetric chamfer).
60
+ * distances asked for.
61
61
  */
62
62
  export declare function chamferWithEvolution(shape: ValidSolid, edges: ReadonlyArray<Edge> | undefined, distance: number | [number, number] | ((edge: Edge) => number | [number, number] | null)): Result<EvolutionResult<ValidSolid>>;
63
63
  /**
@@ -22,6 +22,12 @@ export declare function thicken(shape: Face | Shell, thickness: number): Result<
22
22
  export declare function fillet(shape: ValidSolid, edges: ReadonlyArray<Edge> | undefined, radius: number | [number, number] | ((edge: Edge) => number | [number, number] | null), { trackEvolution }?: {
23
23
  trackEvolution?: boolean | undefined;
24
24
  }): Result<ValidSolid>;
25
+ /**
26
+ * `UNSUPPORTED_CAPABILITY` for a fillet the kernel cannot build as asked (a
27
+ * radius that varies along an edge on brepkit), from its
28
+ * `UnsupportedKernelOperationError`.
29
+ */
30
+ export declare function filletUnsupportedError(e: unknown): BrepError;
25
31
  /**
26
32
  * `UNSUPPORTED_CAPABILITY` for a chamfer the kernel cannot build as asked
27
33
  * (asymmetric or per-edge distances), from its `UnsupportedKernelOperationError`.
@@ -34,7 +40,7 @@ export declare function chamferUnsupportedError(e: unknown): BrepError;
34
40
  * @param edges - Edges to chamfer. Pass `undefined` to chamfer all edges.
35
41
  * @param distance - Symmetric distance, asymmetric `[d1, d2]`, or per-edge callback.
36
42
  * @returns Err `UNSUPPORTED_CAPABILITY` when the kernel cannot build the
37
- * distances asked for (brepkit has no asymmetric chamfer).
43
+ * distances asked for.
38
44
  */
39
45
  export declare function chamfer(shape: ValidSolid, edges: ReadonlyArray<Edge> | undefined, distance: number | [number, number] | ((edge: Edge) => number | [number, number] | null)): Result<ValidSolid>;
40
46
  /**
@@ -86,9 +92,10 @@ export interface VariableFilletRadius {
86
92
  * The radius varies along the edge according to the provided spec points.
87
93
  * Each point specifies a normalized parameter (0 = start, 1 = end) and radius.
88
94
  *
89
- * **Cross-kernel note:** brepkit supports arbitrary multi-point radius profiles.
90
- * occt-wasm supports a linear (start/end, <=2-point) profile and returns
91
- * UNSUPPORTED for multi-point; the opencascade.js kernel does not implement it.
95
+ * **Cross-kernel note:** occt-wasm supports a linear (start/end, <=2-point)
96
+ * profile; brepkit supports only a constant radius. Either returns
97
+ * `UNSUPPORTED_CAPABILITY` for a profile it cannot build. The opencascade.js
98
+ * kernel does not implement it.
92
99
  */
93
100
  export declare function variableFillet(shape: ValidSolid, edge: Edge, radii: ReadonlyArray<VariableFilletRadius>): Result<ValidSolid>;
94
101
  /**
package/dist/topology.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_topologyQueryFns = require("./topologyQueryFns-95FptXtu.cjs");
3
- const require_faceFns = require("./faceFns-DzNcnzS5.cjs");
4
- const require_booleanFns = require("./booleanFns-zRlNDHQY.cjs");
5
- const require_primitiveFns = require("./primitiveFns-BM709SMs.cjs");
6
- const require_shapeFns = require("./shapeFns-Bgql2_E6.cjs");
7
- const require_curveFns = require("./curveFns-0vAErrs9.cjs");
8
- const require_meshFns = require("./meshFns-BnkXZ0Xm.cjs");
9
- const require_healingFns = require("./healingFns-D26gj7M5.cjs");
10
- const require_adjacencyFns = require("./adjacencyFns-BA9xrrmS.cjs");
2
+ const require_topologyQueryFns = require("./topologyQueryFns-BNDmjz7x.cjs");
3
+ const require_faceFns = require("./faceFns-BeSpw0Dz.cjs");
4
+ const require_booleanFns = require("./booleanFns-CA9tvtqr.cjs");
5
+ const require_primitiveFns = require("./primitiveFns-CzhQz02F.cjs");
6
+ const require_shapeFns = require("./shapeFns-BEwoFgq2.cjs");
7
+ const require_curveFns = require("./curveFns-B29Eot3K.cjs");
8
+ const require_meshFns = require("./meshFns-ECQqx-8Q.cjs");
9
+ const require_healingFns = require("./healingFns-BtZg6i3J.cjs");
10
+ const require_adjacencyFns = require("./adjacencyFns-BBugwmvl.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-C3-_9dFM.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-WtnWpVQl.js";
3
- import { i as cutAll, o as fuseAll } from "./booleanFns-CyxmW1pL.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-BZALpT35.js";
5
- import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-CSWOXGx9.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-b_C6tBeU.js";
7
- import { f as clearMeshCache, n as exportSTEP, p as createMeshCache, r as exportSTL, t as exportIGES } from "./meshFns-BazHDlpY.js";
8
- import { I as toLineGeometryData, M as toBufferGeometryData, N as toGroupedBufferGeometryData, 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 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-B82dNj9P.js";
9
- import { i as facesOfEdge, l as wiresOfFace, n as adjacentFaces, o as sharedEdges, r as edgesOfFace, s as verticesOfEdge } from "./adjacencyFns-C4Tui11_.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-BYqsNs6q.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-BzHfvPea.js";
3
+ import { i as cutAll, o as fuseAll } from "./booleanFns-CopMFBLS.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-Kph3YP3A.js";
5
+ import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-Bepwarf3.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--TqXOi8f.js";
7
+ import { f as clearMeshCache, n as exportSTEP, p as createMeshCache, r as exportSTL, t as exportIGES } from "./meshFns-CzpP9SBf.js";
8
+ import { I as toLineGeometryData, M as toBufferGeometryData, N as toGroupedBufferGeometryData, 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 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-DtefNa-x.js";
9
+ import { i as facesOfEdge, l as wiresOfFace, n as adjacentFaces, o as sharedEdges, r as edgesOfFace, s as verticesOfEdge } from "./adjacencyFns-V29Gvfs9.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,4 +1,4 @@
1
- const require_shapeTypes = require("./shapeTypes-BFfnNmzj.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-CIw6-GFy.cjs");
2
2
  const require_errors = require("./errors-O_blYTWT.cjs");
3
3
  const require_constants = require("./constants-oee0S_x6.cjs");
4
4
  // src/core/kernelErrorTranslation.ts
@@ -1,4 +1,4 @@
1
- import { G as _usingCtx, N as DisposalScope, O as getOrQueryType, n as castResultShape, q as getKernel, r as castResultShapeWithKnownType } from "./shapeTypes-C7hqbMwl.js";
1
+ import { G as _usingCtx, N as DisposalScope, O as getOrQueryType, n as castResultShape, q as getKernel, r as castResultShapeWithKnownType } from "./shapeTypes-hLHmANUz.js";
2
2
  import { E as ok, g as err } from "./errors-BTccWbtE.js";
3
3
  import { n as HASH_CODE_MAX } from "./constants-iraOnb2p.js";
4
4
  // src/core/kernelErrorTranslation.ts
@@ -1,4 +1,4 @@
1
- import { q as getKernel } from "./shapeTypes-C7hqbMwl.js";
1
+ import { q as getKernel } from "./shapeTypes-hLHmANUz.js";
2
2
  import { E as ok, g as err } from "./errors-BTccWbtE.js";
3
3
  // src/core/validityTypes.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- const require_shapeTypes = require("./shapeTypes-BFfnNmzj.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-CIw6-GFy.cjs");
2
2
  const require_errors = require("./errors-O_blYTWT.cjs");
3
3
  // src/core/validityTypes.ts
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brepjs",
3
- "version": "20.13.1",
3
+ "version": "20.13.3",
4
4
  "description": "Exact B-Rep CAD in TypeScript on OpenCascade WebAssembly, with a pluggable geometry kernel",
5
5
  "keywords": [
6
6
  "cad",
@@ -274,7 +274,7 @@
274
274
  "@typescript/native-preview": "7.0.0-dev.20260707.2",
275
275
  "@vitest/coverage-v8": "5.0.5",
276
276
  "brepjs-opencascade": "*",
277
- "brepkit-wasm": "4.2.2",
277
+ "brepkit-wasm": "4.5.9",
278
278
  "eslint": "10.13.0",
279
279
  "fast-check": "4.10.2",
280
280
  "husky": "9.1.7",