brepjs 16.0.0 → 18.0.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 (70) hide show
  1. package/README.md +16 -15
  2. package/dist/2d.cjs +5 -5
  3. package/dist/2d.js +5 -5
  4. package/dist/{blueprint-DvED9rwq.js → blueprint-BWbHrFLP.js} +5 -5
  5. package/dist/{blueprint-D3OHmUKq.cjs → blueprint-DXpRzOQ6.cjs} +5 -5
  6. package/dist/{blueprintFns-Cp93uqxQ.js → blueprintFns-CVxNqXuv.js} +2 -2
  7. package/dist/{blueprintFns-Qok7Q3Hl.cjs → blueprintFns-CqsQQUDE.cjs} +2 -2
  8. package/dist/{boolean2D-CSQDbVdw.cjs → boolean2D-CJp5CiHx.cjs} +7 -7
  9. package/dist/{boolean2D-Bzt9_N65.js → boolean2D-DrRvvcjC.js} +7 -7
  10. package/dist/{booleanFns-CHs5pfa5.js → booleanFns-BWqIlVaW.js} +4 -4
  11. package/dist/{booleanFns-BYPZ71HI.cjs → booleanFns-BnJS6p4-.cjs} +4 -4
  12. package/dist/brepjs.cjs +20 -20
  13. package/dist/brepjs.js +20 -20
  14. package/dist/core.cjs +1 -1
  15. package/dist/core.js +1 -1
  16. package/dist/{cornerFinder-CXX9eFJP.cjs → cornerFinder-BC40RqL3.cjs} +1 -1
  17. package/dist/{cornerFinder-Xipmh8GJ.js → cornerFinder-YP_n3Hug.js} +1 -1
  18. package/dist/{curveFns-CYcOtGk1.cjs → curveFns-u8y-X8mn.cjs} +1 -1
  19. package/dist/{curveFns-DdYnAYRc.js → curveFns-yRtG4rxm.js} +1 -1
  20. package/dist/{drawFns-VUd3vlN8.cjs → drawFns-BbmFEhqG.cjs} +10 -10
  21. package/dist/{drawFns-C57u25JA.js → drawFns-VDGFSOfM.js} +10 -10
  22. package/dist/{extrudeFns-CyJdzOh9.js → extrudeFns-1sJctKf2.js} +1 -1
  23. package/dist/{extrudeFns-B-My0FG_.cjs → extrudeFns-Cf6iW-08.cjs} +1 -1
  24. package/dist/{faceFns-DUb1drNo.cjs → faceFns-DJWeK4dL.cjs} +1 -1
  25. package/dist/{faceFns-Bd_Rxi0i.js → faceFns-dW7m231K.js} +1 -1
  26. package/dist/{helpers-BFceSqJT.cjs → helpers-D6dq9RD2.cjs} +5 -5
  27. package/dist/{helpers-BjAezes0.js → helpers-Dy7SXAos.js} +5 -5
  28. package/dist/{historyFns-DlA4hmXQ.cjs → historyFns-B0xWUs3O.cjs} +4 -4
  29. package/dist/{historyFns-DUoAao5A.js → historyFns-BTnA8L5V.js} +4 -4
  30. package/dist/{importFns-CB87pmgW.js → importFns-DJNwFh8h.js} +2 -2
  31. package/dist/{importFns-BFeTG4CK.cjs → importFns-DguTNJ_N.cjs} +2 -2
  32. package/dist/io.cjs +2 -2
  33. package/dist/io.js +2 -2
  34. package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
  35. package/dist/kernel/occtWasm/occtWasmAdapter.d.ts +3 -3
  36. package/dist/kernel/occtWasm/occtWasmAdapter.d.ts.map +1 -1
  37. package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
  38. package/dist/kernel/occtWasm/occtWasmTypes.d.ts +7 -7
  39. package/dist/kernel/occtWasm/occtWasmTypes.d.ts.map +1 -1
  40. package/dist/{measureFns-BFFXNFGZ.cjs → measureFns-CI9eY2cN.cjs} +2 -2
  41. package/dist/{measureFns-zfD4TZCP.js → measureFns-GZgBrqnh.js} +2 -2
  42. package/dist/measurement.cjs +1 -1
  43. package/dist/measurement.js +1 -1
  44. package/dist/{meshFns-DBuDtUPk.js → meshFns-Bh9j6de9.js} +2 -2
  45. package/dist/{meshFns-DFUoQyPn.cjs → meshFns-DTVZCv6W.cjs} +2 -2
  46. package/dist/{occtWasmAdapter-B2iK9ZtR.cjs → occtWasmAdapter-ByVgi_2u.cjs} +11 -11
  47. package/dist/{occtWasmAdapter-skYyvZkQ.js → occtWasmAdapter-D6hR--A4.js} +11 -11
  48. package/dist/operations.cjs +2 -2
  49. package/dist/operations.js +2 -2
  50. package/dist/{primitiveFns-CLGB5eH8.js → primitiveFns-B5pbJQop.js} +5 -5
  51. package/dist/{primitiveFns-CvONcifl.cjs → primitiveFns-KnENm6Lq.cjs} +5 -5
  52. package/dist/query.cjs +2 -2
  53. package/dist/query.js +2 -2
  54. package/dist/{shapeFns-LuFDe1Zt.js → shapeFns-D0P0pr-T.js} +2 -2
  55. package/dist/{shapeFns-_qjTVOOu.cjs → shapeFns-DDT1aaOB.cjs} +2 -2
  56. package/dist/shapeRef.cjs +1 -1
  57. package/dist/shapeRef.js +1 -1
  58. package/dist/{shapeRefFns-Bst2Q7hu.cjs → shapeRefFns-CiIoI-G1.cjs} +3 -3
  59. package/dist/{shapeRefFns-JAl-dXcQ.js → shapeRefFns-uXvRDDMO.js} +3 -3
  60. package/dist/{shapeTypes-BaqgkZCg.js → shapeTypes-CD7UP20p.js} +1 -1
  61. package/dist/{shapeTypes-BCVe-1bC.cjs → shapeTypes-DsXfDJvg.cjs} +1 -1
  62. package/dist/sketching.cjs +2 -2
  63. package/dist/sketching.js +2 -2
  64. package/dist/{solidBuilders-BEQIXFI7.cjs → solidBuilders-B8sQ2dah.cjs} +2 -2
  65. package/dist/{solidBuilders-BkIjYbQk.js → solidBuilders-BEqdy1Xc.js} +2 -2
  66. package/dist/{surfaceBuilders-C5FAaH5y.js → surfaceBuilders-56nzsw47.js} +2 -2
  67. package/dist/{surfaceBuilders-DY4OJ3xC.cjs → surfaceBuilders-DUMjL8xe.cjs} +2 -2
  68. package/dist/topology.cjs +6 -6
  69. package/dist/topology.js +6 -6
  70. package/package.json +11 -3
package/dist/query.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_helpers = require("./helpers-BFceSqJT.cjs");
3
- const require_cornerFinder = require("./cornerFinder-CXX9eFJP.cjs");
2
+ const require_helpers = require("./helpers-D6dq9RD2.cjs");
3
+ const require_cornerFinder = require("./cornerFinder-BC40RqL3.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-BjAezes0.js";
2
- import { t as cornerFinder } from "./cornerFinder-Xipmh8GJ.js";
1
+ import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-Dy7SXAos.js";
2
+ import { t as cornerFinder } from "./cornerFinder-YP_n3Hug.js";
3
3
  export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
@@ -1,6 +1,6 @@
1
- import { X as getKernel, t as castShape } from "./shapeTypes-BaqgkZCg.js";
1
+ import { X as getKernel, t as castShape } from "./shapeTypes-CD7UP20p.js";
2
2
  import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DboJwVCf.js";
3
- import { R as kernelCall, S as getOrCreateCache, _ as getCacheEntry, x as getFaces, z as kernelCallRaw } from "./faceFns-Bd_Rxi0i.js";
3
+ import { R as kernelCall, S as getOrCreateCache, _ as getCacheEntry, x as getFaces, z as kernelCallRaw } from "./faceFns-dW7m231K.js";
4
4
  import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-csSEYddm.js";
5
5
  //#region src/topology/metadata/originTrackingFns.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-BCVe-1bC.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DsXfDJvg.cjs");
2
2
  const require_errors = require("./errors-CXRNVCec.cjs");
3
- const require_faceFns = require("./faceFns-DUb1drNo.cjs");
3
+ const require_faceFns = require("./faceFns-DJWeK4dL.cjs");
4
4
  const require_constants = require("./constants-BNP_xnBN.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_shapeRefFns = require("./shapeRefFns-Bst2Q7hu.cjs");
2
+ const require_shapeRefFns = require("./shapeRefFns-CiIoI-G1.cjs");
3
3
  exports.assignRoles = require_shapeRefFns.assignRoles;
4
4
  exports.captureHint = require_shapeRefFns.captureHint;
5
5
  exports.createRef = require_shapeRefFns.createRef;
package/dist/shapeRef.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-JAl-dXcQ.js";
1
+ import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-uXvRDDMO.js";
2
2
  export { assignRoles, captureHint, createRef, defaultScorer, resolveRef, updateRoles };
@@ -1,6 +1,6 @@
1
- const require_faceFns = require("./faceFns-DUb1drNo.cjs");
2
- const require_shapeFns = require("./shapeFns-_qjTVOOu.cjs");
3
- const require_measureFns = require("./measureFns-BFFXNFGZ.cjs");
1
+ const require_faceFns = require("./faceFns-DJWeK4dL.cjs");
2
+ const require_shapeFns = require("./shapeFns-DDT1aaOB.cjs");
3
+ const require_measureFns = require("./measureFns-CI9eY2cN.cjs");
4
4
  //#region src/topology/shapeRef/scoring.ts
5
5
  /**
6
6
  * Default face scorer combining surface type, normal alignment, centroid proximity,
@@ -1,6 +1,6 @@
1
- import { c as normalAt, n as faceCenter, r as faceGeomType, x as getFaces } from "./faceFns-Bd_Rxi0i.js";
2
- import { n as getHashCode } from "./shapeFns-LuFDe1Zt.js";
3
- import { n as measureArea } from "./measureFns-zfD4TZCP.js";
1
+ import { c as normalAt, n as faceCenter, r as faceGeomType, x as getFaces } from "./faceFns-dW7m231K.js";
2
+ import { n as getHashCode } from "./shapeFns-D0P0pr-T.js";
3
+ import { n as measureArea } from "./measureFns-GZgBrqnh.js";
4
4
  //#region src/topology/shapeRef/scoring.ts
5
5
  /**
6
6
  * Default face scorer combining surface type, normal alignment, centroid proximity,
@@ -1,4 +1,4 @@
1
- import { _ as serializeCurve2d$2, a as curveTypeName, c as intersectCurves2dFn, d as makeEllipse2d$2, f as makeLine2d$2, g as scaleCurve2d$2, h as rotateCurve2d$2, i as curveBounds, l as makeBezier2d$2, m as mirrorAtPoint, n as addCurveToBBox, o as deserializeCurve2d$2, p as mirrorAcrossAxis, r as createBBox2d, s as evaluateCurve2d$2, u as makeCircle2d$2, v as tangentCurve2d, y as translateCurve2d$2 } from "./occtWasmAdapter-skYyvZkQ.js";
1
+ import { _ as serializeCurve2d$2, a as curveTypeName, c as intersectCurves2dFn, d as makeEllipse2d$2, f as makeLine2d$2, g as scaleCurve2d$2, h as rotateCurve2d$2, i as curveBounds, l as makeBezier2d$2, m as mirrorAtPoint, n as addCurveToBBox, o as deserializeCurve2d$2, p as mirrorAcrossAxis, r as createBBox2d, s as evaluateCurve2d$2, u as makeCircle2d$2, v as tangentCurve2d, y as translateCurve2d$2 } from "./occtWasmAdapter-D6hR--A4.js";
2
2
  import { A as ok, b as err } from "./errors-DboJwVCf.js";
3
3
  //#region src/kernel/kernel2dTypes.ts
4
4
  /** Check if the kernel supports 2D geometry operations. */
@@ -1,4 +1,4 @@
1
- const require_occtWasmAdapter = require("./occtWasmAdapter-B2iK9ZtR.cjs");
1
+ const require_occtWasmAdapter = require("./occtWasmAdapter-ByVgi_2u.cjs");
2
2
  const require_errors = require("./errors-CXRNVCec.cjs");
3
3
  //#region src/kernel/kernel2dTypes.ts
4
4
  /** Check if the kernel supports 2D geometry operations. */
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_drawFns = require("./drawFns-VUd3vlN8.cjs");
3
- const require_boolean2D = require("./boolean2D-CSQDbVdw.cjs");
2
+ const require_drawFns = require("./drawFns-BbmFEhqG.cjs");
3
+ const require_boolean2D = require("./boolean2D-CJp5CiHx.cjs");
4
4
  //#region src/sketching.ts
5
5
  /**
6
6
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
package/dist/sketching.js CHANGED
@@ -1,5 +1,5 @@
1
- import { d as FaceSketcher, f as Sketch, l as BaseSketcher2d, u as BlueprintSketcher } from "./boolean2D-Bzt9_N65.js";
2
- import { $ as sketchFaceOffset, A as DrawingPen, B as drawSingleCircle, F as drawParametricFunction, H as drawText, I as drawPointsInterpolation, L as drawPolysides, M as draw, N as drawCircle, P as drawEllipse, Q as sketchEllipse, R as drawRectangle, S as drawProjection, V as drawSingleEllipse, X as polysideInnerRadius, Y as makeBaseBox, Z as sketchCircle, _ as sketchLoft, a as drawingIntersect, at as Sketcher, b as sketchWires, c as rotateDrawing, d as compoundSketchExtrude, et as sketchHelix, f as compoundSketchFace, g as sketchFace, h as sketchExtrude, i as drawingFuse, it as sketchRoundedRectangle, j as deserializeDrawing, k as Drawing, l as scaleDrawing, m as compoundSketchRevolve, n as drawingCut, nt as sketchPolysides, o as drawingToSketchOnPlane, ot as Sketches, p as compoundSketchLoft, r as drawingFillet, rt as sketchRectangle, s as mirrorDrawing, st as CompoundSketch, t as drawingChamfer, tt as sketchParametricFunction, u as translateDrawing, v as sketchRevolve, x as drawFaceOutline, y as sketchSweep, z as drawRoundedRectangle } from "./drawFns-C57u25JA.js";
1
+ import { d as FaceSketcher, f as Sketch, l as BaseSketcher2d, u as BlueprintSketcher } from "./boolean2D-DrRvvcjC.js";
2
+ import { $ as sketchFaceOffset, A as DrawingPen, B as drawSingleCircle, F as drawParametricFunction, H as drawText, I as drawPointsInterpolation, L as drawPolysides, M as draw, N as drawCircle, P as drawEllipse, Q as sketchEllipse, R as drawRectangle, S as drawProjection, V as drawSingleEllipse, X as polysideInnerRadius, Y as makeBaseBox, Z as sketchCircle, _ as sketchLoft, a as drawingIntersect, at as Sketcher, b as sketchWires, c as rotateDrawing, d as compoundSketchExtrude, et as sketchHelix, f as compoundSketchFace, g as sketchFace, h as sketchExtrude, i as drawingFuse, it as sketchRoundedRectangle, j as deserializeDrawing, k as Drawing, l as scaleDrawing, m as compoundSketchRevolve, n as drawingCut, nt as sketchPolysides, o as drawingToSketchOnPlane, ot as Sketches, p as compoundSketchLoft, r as drawingFillet, rt as sketchRectangle, s as mirrorDrawing, st as CompoundSketch, t as drawingChamfer, tt as sketchParametricFunction, u as translateDrawing, v as sketchRevolve, x as drawFaceOutline, y as sketchSweep, z as drawRoundedRectangle } from "./drawFns-VDGFSOfM.js";
3
3
  //#region src/sketching.ts
4
4
  /**
5
5
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-BCVe-1bC.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DsXfDJvg.cjs");
2
2
  const require_errors = require("./errors-CXRNVCec.cjs");
3
- const require_faceFns = require("./faceFns-DUb1drNo.cjs");
3
+ const require_faceFns = require("./faceFns-DJWeK4dL.cjs");
4
4
  //#region src/topology/shapeUtils.ts
5
5
  /**
6
6
  * Shape assembly utilities — welding and sewing operations.
@@ -1,6 +1,6 @@
1
- import { X as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-BaqgkZCg.js";
1
+ import { X as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-CD7UP20p.js";
2
2
  import { A as ok, R as unwrap, b as err, l as typeCastError, v as andThen } from "./errors-DboJwVCf.js";
3
- import { M as cast, N as downcast } from "./faceFns-Bd_Rxi0i.js";
3
+ import { M as cast, N as downcast } from "./faceFns-dW7m231K.js";
4
4
  //#region src/topology/shapeUtils.ts
5
5
  /**
6
6
  * Shape assembly utilities — welding and sewing operations.
@@ -1,6 +1,6 @@
1
- import { X as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-BaqgkZCg.js";
1
+ import { X as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-CD7UP20p.js";
2
2
  import { A as ok, b as err, d as validationError, i as kernelError, v as andThen } from "./errors-DboJwVCf.js";
3
- import { M as cast, l as outerWire } from "./faceFns-Bd_Rxi0i.js";
3
+ import { M as cast, l as outerWire } from "./faceFns-dW7m231K.js";
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
- const require_shapeTypes = require("./shapeTypes-BCVe-1bC.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DsXfDJvg.cjs");
2
2
  const require_errors = require("./errors-CXRNVCec.cjs");
3
- const require_faceFns = require("./faceFns-DUb1drNo.cjs");
3
+ const require_faceFns = require("./faceFns-DJWeK4dL.cjs");
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/topology.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_faceFns = require("./faceFns-DUb1drNo.cjs");
3
- const require_shapeFns = require("./shapeFns-_qjTVOOu.cjs");
4
- const require_curveFns = require("./curveFns-CYcOtGk1.cjs");
5
- const require_meshFns = require("./meshFns-DFUoQyPn.cjs");
6
- const require_booleanFns = require("./booleanFns-BYPZ71HI.cjs");
7
- const require_primitiveFns = require("./primitiveFns-CvONcifl.cjs");
2
+ const require_faceFns = require("./faceFns-DJWeK4dL.cjs");
3
+ const require_shapeFns = require("./shapeFns-DDT1aaOB.cjs");
4
+ const require_curveFns = require("./curveFns-u8y-X8mn.cjs");
5
+ const require_meshFns = require("./meshFns-DTVZCv6W.cjs");
6
+ const require_booleanFns = require("./booleanFns-BnJS6p4-.cjs");
7
+ const require_primitiveFns = require("./primitiveFns-KnENm6Lq.cjs");
8
8
  exports.addHoles = require_primitiveFns.addHoles;
9
9
  exports.adjacentFaces = require_primitiveFns.adjacentFaces;
10
10
  exports.approximateCurve = require_curveFns.approximateCurve;
package/dist/topology.js CHANGED
@@ -1,7 +1,7 @@
1
- import { A as vertexPosition, C as getVertices, D as iterFaces, E as iterEdges, F as isCompSolid, I as iterTopo, L as shapeType, M as cast, N as downcast, O as iterVertices, P as fromBREP, T as invalidateShapeCache, a as flipFaceOrientation, b as getEdges, c as normalAt, d as projectPointOnFace, g as getBounds, i as faceOrientation, j as asTopo, k as iterWires, l as outerWire, m as uvCoordinates, n as faceCenter, o as getSurfaceType, p as uvBounds, r as faceGeomType, s as innerWires, t as classifyPointOnFace, u as pointOnSurface, w as getWires, x as getFaces } from "./faceFns-Bd_Rxi0i.js";
2
- import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-LuFDe1Zt.js";
3
- import { a as curveLength, c as curveStartPoint, d as getCurveType, f as getOrientation, i as curveIsPeriodic, l as curveTangentAt, m as offsetWire2D, n as curveEndPoint, o as curvePeriod, p as interpolateCurve, r as curveIsClosed, s as curvePointAt, t as approximateCurve, u as flipOrientation } from "./curveFns-DdYnAYRc.js";
4
- import { c as createMeshCache, n as exportSTEP, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-DBuDtUPk.js";
5
- import { a as fuseAll, r as cutAll } from "./booleanFns-CHs5pfa5.js";
6
- import { $ as getNurbsSurfaceData, A as fixShape, C as threePointArc, D as wireLoop, E as wire, G as chamferWithEvolution, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as getNurbsCurveData, S as tangentArc, T as vertex, U as variableFillet, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as wiresOfFace, b as sphere, c as cylinder, ct as toGroupedBufferGeometryData, d as ellipsoid, et as adjacentFaces, f as face, g as offsetFace, h as line, i as bsplineApprox, it as verticesOfEdge, k as fixSelfIntersection, l as ellipse, m as helix, n as bezier, nt as facesOfEdge, o as compound, ot as chamferDistAngle, p as filledFace, q as filletWithEvolution, r as box, rt as sharedEdges, s as cone, st as toBufferGeometryData, t as addHoles, tt as edgesOfFace, u as ellipseArc, ut as toLineGeometryData, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-CLGB5eH8.js";
1
+ import { A as vertexPosition, C as getVertices, D as iterFaces, E as iterEdges, F as isCompSolid, I as iterTopo, L as shapeType, M as cast, N as downcast, O as iterVertices, P as fromBREP, T as invalidateShapeCache, a as flipFaceOrientation, b as getEdges, c as normalAt, d as projectPointOnFace, g as getBounds, i as faceOrientation, j as asTopo, k as iterWires, l as outerWire, m as uvCoordinates, n as faceCenter, o as getSurfaceType, p as uvBounds, r as faceGeomType, s as innerWires, t as classifyPointOnFace, u as pointOnSurface, w as getWires, x as getFaces } from "./faceFns-dW7m231K.js";
2
+ import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-D0P0pr-T.js";
3
+ import { a as curveLength, c as curveStartPoint, d as getCurveType, f as getOrientation, i as curveIsPeriodic, l as curveTangentAt, m as offsetWire2D, n as curveEndPoint, o as curvePeriod, p as interpolateCurve, r as curveIsClosed, s as curvePointAt, t as approximateCurve, u as flipOrientation } from "./curveFns-yRtG4rxm.js";
4
+ import { c as createMeshCache, n as exportSTEP, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-Bh9j6de9.js";
5
+ import { a as fuseAll, r as cutAll } from "./booleanFns-BWqIlVaW.js";
6
+ import { $ as getNurbsSurfaceData, A as fixShape, C as threePointArc, D as wireLoop, E as wire, G as chamferWithEvolution, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as getNurbsCurveData, S as tangentArc, T as vertex, U as variableFillet, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as wiresOfFace, b as sphere, c as cylinder, ct as toGroupedBufferGeometryData, d as ellipsoid, et as adjacentFaces, f as face, g as offsetFace, h as line, i as bsplineApprox, it as verticesOfEdge, k as fixSelfIntersection, l as ellipse, m as helix, n as bezier, nt as facesOfEdge, o as compound, ot as chamferDistAngle, p as filledFace, q as filletWithEvolution, r as box, rt as sharedEdges, s as cone, st as toBufferGeometryData, t as addHoles, tt as edgesOfFace, u as ellipseArc, ut as toLineGeometryData, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-B5pbJQop.js";
7
7
  export { addHoles, adjacentFaces, approximateCurve, asTopo, autoHeal, bezier, box, bsplineApprox, cast, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkBoolean, circle, classifyPointOnFace, clearMeshCache, compound, cone, createMeshCache, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cutAll, cutWithEvolution, cylinder, fromBREP as deserializeShape, downcast, edgesOfFace, ellipse, ellipseArc, ellipsoid, exportIGES, exportSTEP, exportSTL, face, faceCenter, faceGeomType, faceOrientation, facesOfEdge, filledFace, filletWithEvolution, fixSelfIntersection, fixShape, flipFaceOrientation, flipOrientation, fuseAll, 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brepjs",
3
- "version": "16.0.0",
3
+ "version": "18.0.0",
4
4
  "description": "Web CAD library with pluggable geometry kernel",
5
5
  "keywords": [
6
6
  "cad",
@@ -207,6 +207,12 @@
207
207
  "size": "size-limit",
208
208
  "docs:api": "typedoc",
209
209
  "docs:generate-lookup": "npx tsx scripts/generate-function-lookup.ts",
210
+ "docs:dev": "npm -C docs-site run dev",
211
+ "docs:build": "npm -C docs-site run build",
212
+ "docs:preview": "npm -C docs-site run preview",
213
+ "docs:extract-tests": "npx tsx scripts/extract-doc-tests.ts",
214
+ "docs:render-images": "npx tsx scripts/render-doc-images.ts",
215
+ "test:docs": "npm run docs:extract-tests && vitest run --project occt tests/docs",
210
216
  "conformance:generate": "npx tsx scripts/generateConformance.ts",
211
217
  "sync:brepkit-types": "npx tsx scripts/sync-brepkit-types.ts",
212
218
  "prepare": "husky && bash scripts/ensure-wasm.sh"
@@ -225,8 +231,10 @@
225
231
  "husky": "9.1.7",
226
232
  "knip": "6.11.0",
227
233
  "lint-staged": "16.4.0",
228
- "occt-wasm": "2.0.0",
234
+ "lz-string": "1.5.0",
235
+ "occt-wasm": "3.0.0",
229
236
  "prettier": "3.8.3",
237
+ "puppeteer": "24.42.0",
230
238
  "size-limit": "12.1.0",
231
239
  "typedoc": "0.28.19",
232
240
  "typescript": "6.0.3",
@@ -238,7 +246,7 @@
238
246
  "peerDependencies": {
239
247
  "brepjs-opencascade": "^0.5.1 || ^0.6.0 || ^0.7.0 || ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^0.14.0 || ^0.15.0",
240
248
  "brepkit-wasm": "^0.10.1 || ^1.0.0 || ^2.0.0",
241
- "occt-wasm": "^2.0.0"
249
+ "occt-wasm": "^3.0.0"
242
250
  },
243
251
  "peerDependenciesMeta": {
244
252
  "brepjs-opencascade": {