brepjs 18.18.0 → 18.19.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 (102) hide show
  1. package/README.md +24 -14
  2. package/dist/2d.cjs +7 -7
  3. package/dist/2d.js +7 -7
  4. package/dist/{blueprint-Dz0LPfbm.cjs → blueprint-Bl0YQjkk.cjs} +7 -7
  5. package/dist/{blueprint-Dod3Pucj.js → blueprint-Cy5veXS3.js} +7 -7
  6. package/dist/{blueprintFns-BKCwR41V.js → blueprintFns-CSB51aXT.js} +3 -3
  7. package/dist/{blueprintFns-BFFIJd1K.cjs → blueprintFns-Dkccxo6d.cjs} +3 -3
  8. package/dist/{blueprintSketcher-BBWw_BeX.cjs → blueprintSketcher-Cr9A-R8I.cjs} +4 -4
  9. package/dist/{blueprintSketcher-mujcO3uV.js → blueprintSketcher-DeEogKbs.js} +4 -4
  10. package/dist/{boolean2D-Bx0_gvCS.cjs → boolean2D-BZ1UjpjX.cjs} +5 -5
  11. package/dist/{boolean2D-CdSpNYuw.js → boolean2D-lE2uy4Mm.js} +5 -5
  12. package/dist/{booleanFns-CipkzoSX.cjs → booleanFns-CD25YZGm.cjs} +6 -6
  13. package/dist/{booleanFns-D4r10eG8.js → booleanFns-CtvYfQZq.js} +6 -6
  14. package/dist/brepjs.cjs +1721 -34
  15. package/dist/brepjs.js +1735 -54
  16. package/dist/{cameraFns-BbgWV9ea.cjs → cameraFns-CR2inEBU.cjs} +3 -3
  17. package/dist/{cameraFns-DfqWQ17C.js → cameraFns-Dg1lQP0S.js} +3 -3
  18. package/dist/core/errors.d.ts +1 -0
  19. package/dist/core.cjs +3 -3
  20. package/dist/core.js +3 -3
  21. package/dist/{cornerFinder-ATn5SKjb.cjs → cornerFinder-CXN1IxPg.cjs} +1 -1
  22. package/dist/{cornerFinder-KEk4VpTe.js → cornerFinder-tfWhcA2M.js} +1 -1
  23. package/dist/csg/builders.d.ts +36 -0
  24. package/dist/csg/edit.d.ts +5 -0
  25. package/dist/csg/evaluate.d.ts +52 -0
  26. package/dist/csg/evaluators/booleans.d.ts +11 -0
  27. package/dist/csg/evaluators/compound.d.ts +8 -0
  28. package/dist/csg/evaluators/context.d.ts +9 -0
  29. package/dist/csg/evaluators/primitives.d.ts +15 -0
  30. package/dist/csg/evaluators/transforms.d.ts +10 -0
  31. package/dist/csg/expressions.d.ts +72 -0
  32. package/dist/csg/hash.d.ts +9 -0
  33. package/dist/csg/index.d.ts +15 -0
  34. package/dist/csg/optimize.d.ts +4 -0
  35. package/dist/csg/serialize.d.ts +9 -0
  36. package/dist/csg/types.d.ts +128 -0
  37. package/dist/{curveFns-DkpbzRtv.js → curveFns-BEF8t7XY.js} +2 -2
  38. package/dist/{curveFns-DhQVXMK0.cjs → curveFns-CcheHkr4.cjs} +2 -2
  39. package/dist/{drawFns-1JQUg7iu.js → drawFns-CEjshioX.js} +14 -14
  40. package/dist/{drawFns-N-BXk82r.cjs → drawFns-CuzUHFyD.cjs} +14 -14
  41. package/dist/{errors-0fYW_YnO.js → errors-8GZS3vy9.js} +1 -0
  42. package/dist/{errors-Dv6pfNct.cjs → errors-BiY8-q1s.cjs} +1 -0
  43. package/dist/{extrudeFns-DmNzWF1a.cjs → extrudeFns-BwU4ng1V.cjs} +2 -2
  44. package/dist/{extrudeFns-hUNicYgI.js → extrudeFns-gcWJSK9T.js} +2 -2
  45. package/dist/{faceFns-C9tfTZwq.js → faceFns-BNhFoEII.js} +3 -3
  46. package/dist/{faceFns-UQacl82e.cjs → faceFns-BbESdudy.cjs} +3 -3
  47. package/dist/{helpers-D4gm8z-T.cjs → helpers-BU3ANziG.cjs} +7 -7
  48. package/dist/{helpers-D3JzEtZl.js → helpers-D1J5VHbk.js} +7 -7
  49. package/dist/{historyFns-C3iimEbF.cjs → historyFns-DHOoBh6G.cjs} +5 -5
  50. package/dist/{historyFns-B4M2dl-F.js → historyFns-XZp1D_aA.js} +5 -5
  51. package/dist/{importFns-Cu1aMSAb.cjs → importFns-CsRJ9lbm.cjs} +3 -3
  52. package/dist/{importFns-CJd7ltsW.js → importFns-D1oB3yU8.js} +3 -3
  53. package/dist/index.d.ts +1 -0
  54. package/dist/io.cjs +2 -2
  55. package/dist/io.js +2 -2
  56. package/dist/kernel/index.d.ts +6 -0
  57. package/dist/{measureFns-DkNQXgnh.cjs → measureFns-BkoPw5JT.cjs} +4 -4
  58. package/dist/{measureFns-BTip3Aiz.js → measureFns-C3y_WX_E.js} +4 -4
  59. package/dist/measurement.cjs +1 -1
  60. package/dist/measurement.js +1 -1
  61. package/dist/{meshFns-BEGSUUSa.cjs → meshFns-CFMr9FBb.cjs} +3 -3
  62. package/dist/{meshFns-DWsgfwE8.js → meshFns-k0BdoBGR.js} +3 -3
  63. package/dist/ns/csg.d.ts +4 -0
  64. package/dist/operations.cjs +2 -2
  65. package/dist/operations.js +2 -2
  66. package/dist/{planeOps-CH4ruLuj.cjs → planeOps-2EyPq0tU.cjs} +1 -1
  67. package/dist/{planeOps-4i2qEraD.js → planeOps-Bea3T3mc.js} +1 -1
  68. package/dist/{primitiveFns-BLIDnaB4.js → primitiveFns-DF5IAVNP.js} +7 -7
  69. package/dist/{primitiveFns-BLyZbYzv.cjs → primitiveFns-YpYBx4Pd.cjs} +7 -7
  70. package/dist/projection.cjs +1 -1
  71. package/dist/projection.js +1 -1
  72. package/dist/query.cjs +2 -2
  73. package/dist/query.js +2 -2
  74. package/dist/result.cjs +1 -1
  75. package/dist/result.js +1 -1
  76. package/dist/{shapeFns-CsFHf3W8.cjs → shapeFns-CHTLdb_n.cjs} +3 -3
  77. package/dist/{shapeFns-DaqT_8dv.js → shapeFns-x8vqq2fR.js} +3 -3
  78. package/dist/shapeRef.cjs +1 -1
  79. package/dist/shapeRef.js +1 -1
  80. package/dist/{shapeRefFns-WwBIiDUH.cjs → shapeRefFns-CDRLEUik.cjs} +4 -4
  81. package/dist/{shapeRefFns-BEsxgYOo.js → shapeRefFns-CE0yS0EB.js} +4 -4
  82. package/dist/{shapeTypes-BcAUN8Jp.cjs → shapeTypes-BpKhed-9.cjs} +15 -1
  83. package/dist/{shapeTypes-Dqjd8VMv.js → shapeTypes-DGtDTS9s.js} +10 -2
  84. package/dist/sketching.cjs +3 -3
  85. package/dist/sketching.js +3 -3
  86. package/dist/{solidBuilders-C8wxbX4w.cjs → solidBuilders-BlBaFSCS.cjs} +3 -3
  87. package/dist/{solidBuilders-CYtiaHtQ.js → solidBuilders-Cot05qzs.js} +3 -3
  88. package/dist/{surfaceBuilders-D60F6RHs.cjs → surfaceBuilders-frj7YRrD.cjs} +3 -3
  89. package/dist/{surfaceBuilders-CuChXov6.js → surfaceBuilders-zJyikeav.js} +3 -3
  90. package/dist/text.cjs +2 -2
  91. package/dist/text.js +2 -2
  92. package/dist/{textBlueprints-Cm_gPjjQ.js → textBlueprints-Bv6zhEyn.js} +9 -9
  93. package/dist/{textBlueprints-Cg2IOa7K.cjs → textBlueprints-CHh9SChA.cjs} +9 -9
  94. package/dist/{textMetrics-BExS67Zh.cjs → textMetrics-CKNdQX02.cjs} +2 -2
  95. package/dist/{textMetrics-Dbgikkim.js → textMetrics-vUJTTEFi.js} +2 -2
  96. package/dist/topology.cjs +7 -7
  97. package/dist/topology.js +7 -7
  98. package/dist/{topologyQueryFns-C_rxyeER.cjs → topologyQueryFns-CHsPXNbI.cjs} +2 -2
  99. package/dist/{topologyQueryFns-DHbFP_6r.js → topologyQueryFns-CcWaCxeb.js} +2 -2
  100. package/dist/vectors.cjs +1 -1
  101. package/dist/vectors.js +1 -1
  102. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { X as getKernel, t as castShape } from "./shapeTypes-Dqjd8VMv.js";
2
- import { A as ok, R as unwrap, b as err, l as typeCastError } from "./errors-0fYW_YnO.js";
3
- import { a as getCachedSurfaceType } from "./topologyQueryFns-DHbFP_6r.js";
1
+ import { Z as getKernel, t as castShape } from "./shapeTypes-DGtDTS9s.js";
2
+ import { A as ok, R as unwrap, b as err, l as typeCastError } from "./errors-8GZS3vy9.js";
3
+ import { a as getCachedSurfaceType } from "./topologyQueryFns-CcWaCxeb.js";
4
4
  import { r as toVec3 } from "./types-BIdk_GJY.js";
5
5
  //#region src/topology/cast.ts
6
6
  var TOPO_ENUM = {
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-BcAUN8Jp.cjs");
2
- const require_errors = require("./errors-Dv6pfNct.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-C_rxyeER.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BpKhed-9.cjs");
2
+ const require_errors = require("./errors-BiY8-q1s.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-CHsPXNbI.cjs");
4
4
  const require_types = require("./types-CDkxah-M.cjs");
5
5
  //#region src/topology/cast.ts
6
6
  var TOPO_ENUM = {
@@ -1,12 +1,12 @@
1
- const require_shapeTypes = require("./shapeTypes-BcAUN8Jp.cjs");
2
- const require_errors = require("./errors-Dv6pfNct.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-C_rxyeER.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BpKhed-9.cjs");
2
+ const require_errors = require("./errors-BiY8-q1s.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-CHsPXNbI.cjs");
4
4
  const require_constants = require("./constants-DTorLmes.cjs");
5
5
  const require_vecOps = require("./vecOps-D7xplSx8.cjs");
6
- const require_faceFns = require("./faceFns-UQacl82e.cjs");
7
- const require_shapeFns = require("./shapeFns-CsFHf3W8.cjs");
8
- const require_curveFns = require("./curveFns-DhQVXMK0.cjs");
9
- const require_measureFns = require("./measureFns-DkNQXgnh.cjs");
6
+ const require_faceFns = require("./faceFns-BbESdudy.cjs");
7
+ const require_shapeFns = require("./shapeFns-CHTLdb_n.cjs");
8
+ const require_curveFns = require("./curveFns-CcheHkr4.cjs");
9
+ const require_measureFns = require("./measureFns-BkoPw5JT.cjs");
10
10
  //#region src/utils/vec2d.ts
11
11
  /** Precision for curve intersection and parameter operations. */
12
12
  var PRECISION_INTERSECTION = 1e-9;
@@ -1,12 +1,12 @@
1
- import { X as getKernel, p as isFace } from "./shapeTypes-Dqjd8VMv.js";
2
- import { A as ok, T as isOk, b as err, h as bug, o as queryError } from "./errors-0fYW_YnO.js";
3
- import { l as getVertices, o as getEdges, s as getFaces, u as getWires } from "./topologyQueryFns-DHbFP_6r.js";
1
+ import { Z as getKernel, p as isFace } from "./shapeTypes-DGtDTS9s.js";
2
+ import { A as ok, T as isOk, b as err, h as bug, o as queryError } from "./errors-8GZS3vy9.js";
3
+ import { l as getVertices, o as getEdges, s as getFaces, u as getWires } from "./topologyQueryFns-CcWaCxeb.js";
4
4
  import { t as DEG2RAD } from "./constants-Ci5CA3aZ.js";
5
5
  import { a as vecDot, d as vecNormalize } from "./vecOps-DVROrqTV.js";
6
- import { c as normalAt, o as getSurfaceType } from "./faceFns-C9tfTZwq.js";
7
- import { a as isSameShape, n as getHashCode } from "./shapeFns-DaqT_8dv.js";
8
- import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns-DkpbzRtv.js";
9
- import { n as measureArea } from "./measureFns-BTip3Aiz.js";
6
+ import { c as normalAt, o as getSurfaceType } from "./faceFns-BNhFoEII.js";
7
+ import { a as isSameShape, n as getHashCode } from "./shapeFns-x8vqq2fR.js";
8
+ import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns-BEF8t7XY.js";
9
+ import { n as measureArea } from "./measureFns-C3y_WX_E.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,9 +1,9 @@
1
- const require_shapeTypes = require("./shapeTypes-BcAUN8Jp.cjs");
2
- const require_errors = require("./errors-Dv6pfNct.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BpKhed-9.cjs");
2
+ const require_errors = require("./errors-BiY8-q1s.cjs");
3
3
  const require_vecOps = require("./vecOps-D7xplSx8.cjs");
4
- const require_faceFns = require("./faceFns-UQacl82e.cjs");
5
- const require_shapeFns = require("./shapeFns-CsFHf3W8.cjs");
6
- const require_booleanFns = require("./booleanFns-CipkzoSX.cjs");
4
+ const require_faceFns = require("./faceFns-BbESdudy.cjs");
5
+ const require_shapeFns = require("./shapeFns-CHTLdb_n.cjs");
6
+ const require_booleanFns = require("./booleanFns-CD25YZGm.cjs");
7
7
  //#region src/utils/uuid.ts
8
8
  /** Generate a v4-style UUID string using `crypto.getRandomValues`. */
9
9
  function uuidv() {
@@ -1,9 +1,9 @@
1
- import { B as createKernelHandle, X as getKernel, t as castShape } from "./shapeTypes-Dqjd8VMv.js";
2
- import { A as ok, b as err, d as validationError, n as computationError, r as ioError } from "./errors-0fYW_YnO.js";
1
+ import { B as createKernelHandle, Z as getKernel, t as castShape } from "./shapeTypes-DGtDTS9s.js";
2
+ import { A as ok, b as err, d as validationError, n as computationError, r as ioError } from "./errors-8GZS3vy9.js";
3
3
  import { d as vecNormalize, s as vecIsZero } from "./vecOps-DVROrqTV.js";
4
- import { v as fromBREP } from "./faceFns-C9tfTZwq.js";
5
- import { s as toBREP } from "./shapeFns-DaqT_8dv.js";
6
- import { a as fuseAll } from "./booleanFns-D4r10eG8.js";
4
+ import { v as fromBREP } from "./faceFns-BNhFoEII.js";
5
+ import { s as toBREP } from "./shapeFns-x8vqq2fR.js";
6
+ import { a as fuseAll } from "./booleanFns-CtvYfQZq.js";
7
7
  //#region src/utils/uuid.ts
8
8
  /** Generate a v4-style UUID string using `crypto.getRandomValues`. */
9
9
  function uuidv() {
@@ -1,8 +1,8 @@
1
- const require_shapeTypes = require("./shapeTypes-BcAUN8Jp.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BpKhed-9.cjs");
2
2
  const require_vec3 = require("./vec3-S4Oh59IX.cjs");
3
- const require_errors = require("./errors-Dv6pfNct.cjs");
3
+ const require_errors = require("./errors-BiY8-q1s.cjs");
4
4
  const require_arrayAccess = require("./arrayAccess-7pTWqkJu.cjs");
5
- const require_blueprint = require("./blueprint-Dz0LPfbm.cjs");
5
+ const require_blueprint = require("./blueprint-Bl0YQjkk.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) {
@@ -1,8 +1,8 @@
1
- import { X as getKernel, t as castShape } from "./shapeTypes-Dqjd8VMv.js";
1
+ import { Z as getKernel, t as castShape } from "./shapeTypes-DGtDTS9s.js";
2
2
  import { n as wasmIndex, t as vec3At$1 } from "./vec3-BRj3eI54.js";
3
- import { A as ok, b as err, r as ioError, t as BrepErrorCode } from "./errors-0fYW_YnO.js";
3
+ import { A as ok, b as err, r as ioError, t as BrepErrorCode } from "./errors-8GZS3vy9.js";
4
4
  import { n as getAtOrThrow } from "./arrayAccess-C5IWcxs9.js";
5
- import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-Dod3Pucj.js";
5
+ import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-Cy5veXS3.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) {
package/dist/index.d.ts CHANGED
@@ -140,3 +140,4 @@ export * as io from './ns/ioNs.js';
140
140
  export * as query from './ns/query.js';
141
141
  export * as construction from './ns/construction.js';
142
142
  export * as patterns from './ns/patterns.js';
143
+ export * as csg from './ns/csg.js';
package/dist/io.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_meshFns = require("./meshFns-BEGSUUSa.cjs");
3
- const require_importFns = require("./importFns-Cu1aMSAb.cjs");
2
+ const require_meshFns = require("./meshFns-CFMr9FBb.cjs");
3
+ const require_importFns = require("./importFns-CsRJ9lbm.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-DWsgfwE8.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-CJd7ltsW.js";
1
+ import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-k0BdoBGR.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-D1oB3yU8.js";
3
3
  export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
@@ -25,6 +25,12 @@ export declare function getKernel2D(id?: string): KernelAdapter & Kernel2DCapabi
25
25
  * restored synchronously in `finally`, so any `getKernel()` call after
26
26
  * the first `await` inside `fn` would observe the wrong kernel.
27
27
  */
28
+ /**
29
+ * Return the id of the currently active default kernel, or `null` if none is
30
+ * registered yet. Useful for code that needs a stable identifier (e.g.
31
+ * cache keys) but doesn't want to ship the actual adapter.
32
+ */
33
+ export declare function getActiveKernelId(): string | null;
28
34
  export declare function withKernel<T extends Exclude<unknown, Promise<unknown>>>(id: string, fn: () => T): T;
29
35
  /** Initialise the brepjs kernel from a loaded WASM instance. */
30
36
  export declare function initFromOC(oc: KernelInstance): void;
@@ -1,7 +1,7 @@
1
- const require_shapeTypes = require("./shapeTypes-BcAUN8Jp.cjs");
2
- const require_errors = require("./errors-Dv6pfNct.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-C_rxyeER.cjs");
4
- const require_faceFns = require("./faceFns-UQacl82e.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BpKhed-9.cjs");
2
+ const require_errors = require("./errors-BiY8-q1s.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-CHsPXNbI.cjs");
4
+ const require_faceFns = require("./faceFns-BbESdudy.cjs");
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
- import { X as getKernel } from "./shapeTypes-Dqjd8VMv.js";
2
- import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-0fYW_YnO.js";
3
- import { v as kernelCallRaw } from "./topologyQueryFns-DHbFP_6r.js";
4
- import { p as uvBounds } from "./faceFns-C9tfTZwq.js";
1
+ import { Z as getKernel } from "./shapeTypes-DGtDTS9s.js";
2
+ import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-8GZS3vy9.js";
3
+ import { v as kernelCallRaw } from "./topologyQueryFns-CcWaCxeb.js";
4
+ import { p as uvBounds } from "./faceFns-BNhFoEII.js";
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-DkNQXgnh.cjs");
2
+ const require_measureFns = require("./measureFns-BkoPw5JT.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-BTip3Aiz.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-C3y_WX_E.js";
2
2
  export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-BcAUN8Jp.cjs");
2
- const require_errors = require("./errors-Dv6pfNct.cjs");
3
- const require_shapeFns = require("./shapeFns-CsFHf3W8.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BpKhed-9.cjs");
2
+ const require_errors = require("./errors-BiY8-q1s.cjs");
3
+ const require_shapeFns = require("./shapeFns-CHTLdb_n.cjs");
4
4
  //#region src/topology/meshCache.ts
5
5
  /**
6
6
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -1,6 +1,6 @@
1
- import { X as getKernel } from "./shapeTypes-Dqjd8VMv.js";
2
- import { A as ok, b as err, r as ioError } from "./errors-0fYW_YnO.js";
3
- import { O as getFaceOrigins } from "./shapeFns-DaqT_8dv.js";
1
+ import { Z as getKernel } from "./shapeTypes-DGtDTS9s.js";
2
+ import { A as ok, b as err, r as ioError } from "./errors-8GZS3vy9.js";
3
+ import { O as getFaceOrigins } from "./shapeFns-x8vqq2fR.js";
4
4
  //#region src/topology/meshCache.ts
5
5
  /**
6
6
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Namespace: csg — CSG-as-IR builders, evaluator, serialization, optimization.
3
+ */
4
+ export * from '../csg/index.js';
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_historyFns = require("./historyFns-C3iimEbF.cjs");
3
- const require_extrudeFns = require("./extrudeFns-DmNzWF1a.cjs");
2
+ const require_historyFns = require("./historyFns-DHOoBh6G.cjs");
3
+ const require_extrudeFns = require("./extrudeFns-BwU4ng1V.cjs");
4
4
  exports.addChild = require_historyFns.addChild;
5
5
  exports.addStep = require_historyFns.addStep;
6
6
  exports.circularPattern = require_historyFns.circularPattern;
@@ -1,3 +1,3 @@
1
- import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, T as gridPattern, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, g as addChild, h as undoLast, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-B4M2dl-F.js";
2
- import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-hUNicYgI.js";
1
+ import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, T as gridPattern, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, g as addChild, h as undoLast, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-XZp1D_aA.js";
2
+ import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-gcWJSK9T.js";
3
3
  export { addChild, addStep, circularPattern, collectShapes, complexExtrude, countNodes, createAssembly, createAssemblyNode, createHistory, createRegistry, exportAssemblySTEP, findNode, findStep, getShape as getHistoryShape, gridPattern, linearPattern, modifyStep, registerOperation, registerShape, removeChild, replayFrom, replayHistory, stepCount, stepsFrom, supportExtrude, sweep, twistExtrude, undoLast, updateNode, walkAssembly };
@@ -1,4 +1,4 @@
1
- const require_errors = require("./errors-Dv6pfNct.cjs");
1
+ const require_errors = require("./errors-BiY8-q1s.cjs");
2
2
  const require_constants = require("./constants-DTorLmes.cjs");
3
3
  const require_types = require("./types-CDkxah-M.cjs");
4
4
  const require_vecOps = require("./vecOps-D7xplSx8.cjs");
@@ -1,4 +1,4 @@
1
- import { A as ok, R as unwrap, b as err, d as validationError } from "./errors-0fYW_YnO.js";
1
+ import { A as ok, R as unwrap, b as err, d as validationError } from "./errors-8GZS3vy9.js";
2
2
  import { t as DEG2RAD } from "./constants-Ci5CA3aZ.js";
3
3
  import { r as toVec3 } from "./types-BIdk_GJY.js";
4
4
  import { d as vecNormalize, h as vecScale, m as vecRotate, r as vecCross, s as vecIsZero, t as vecAdd } from "./vecOps-DVROrqTV.js";
@@ -1,11 +1,11 @@
1
- import { X as getKernel, _ as isSolid, c as createSolid, h as isShape3D, p as isFace, r as castShapeWithKnownType, t as castShape, x as isClosedWire, y as isWire } from "./shapeTypes-Dqjd8VMv.js";
2
- import { A as ok, T as isOk, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, v as andThen, w as isErr } from "./errors-0fYW_YnO.js";
3
- import { c as getOrCreateCache, d as invalidateShapeCache, i as getCachedIsValid, o as getEdges, s as getFaces, u as getWires } from "./topologyQueryFns-DHbFP_6r.js";
1
+ import { Z as getKernel, _ as isSolid, c as createSolid, h as isShape3D, p as isFace, r as castShapeWithKnownType, t as castShape, x as isClosedWire, y as isWire } from "./shapeTypes-DGtDTS9s.js";
2
+ import { A as ok, T as isOk, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, v as andThen, w as isErr } from "./errors-8GZS3vy9.js";
3
+ import { c as getOrCreateCache, d as invalidateShapeCache, i as getCachedIsValid, o as getEdges, s as getFaces, u as getWires } from "./topologyQueryFns-CcWaCxeb.js";
4
4
  import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-Ci5CA3aZ.js";
5
- import { _ as downcast } from "./faceFns-C9tfTZwq.js";
6
- import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-DaqT_8dv.js";
7
- 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-CuChXov6.js";
8
- 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-CYtiaHtQ.js";
5
+ import { _ as downcast } from "./faceFns-BNhFoEII.js";
6
+ import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-x8vqq2fR.js";
7
+ 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-zJyikeav.js";
8
+ 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-Cot05qzs.js";
9
9
  //#region src/topology/threeHelpers.ts
10
10
  /**
11
11
  * Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
@@ -1,11 +1,11 @@
1
- const require_shapeTypes = require("./shapeTypes-BcAUN8Jp.cjs");
2
- const require_errors = require("./errors-Dv6pfNct.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-C_rxyeER.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BpKhed-9.cjs");
2
+ const require_errors = require("./errors-BiY8-q1s.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-CHsPXNbI.cjs");
4
4
  const require_constants = require("./constants-DTorLmes.cjs");
5
- const require_faceFns = require("./faceFns-UQacl82e.cjs");
6
- const require_shapeFns = require("./shapeFns-CsFHf3W8.cjs");
7
- const require_surfaceBuilders = require("./surfaceBuilders-D60F6RHs.cjs");
8
- const require_solidBuilders = require("./solidBuilders-C8wxbX4w.cjs");
5
+ const require_faceFns = require("./faceFns-BbESdudy.cjs");
6
+ const require_shapeFns = require("./shapeFns-CHTLdb_n.cjs");
7
+ const require_surfaceBuilders = require("./surfaceBuilders-frj7YRrD.cjs");
8
+ const require_solidBuilders = require("./solidBuilders-BlBaFSCS.cjs");
9
9
  //#region src/topology/threeHelpers.ts
10
10
  /**
11
11
  * Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_cameraFns = require("./cameraFns-BbgWV9ea.cjs");
2
+ const require_cameraFns = require("./cameraFns-CR2inEBU.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-DfqWQ17C.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-Dg1lQP0S.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-D4gm8z-T.cjs");
3
- const require_cornerFinder = require("./cornerFinder-ATn5SKjb.cjs");
2
+ const require_helpers = require("./helpers-BU3ANziG.cjs");
3
+ const require_cornerFinder = require("./cornerFinder-CXN1IxPg.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-D3JzEtZl.js";
2
- import { t as cornerFinder } from "./cornerFinder-KEk4VpTe.js";
1
+ import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-D1J5VHbk.js";
2
+ import { t as cornerFinder } from "./cornerFinder-tfWhcA2M.js";
3
3
  export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
package/dist/result.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_errors = require("./errors-Dv6pfNct.cjs");
2
+ const require_errors = require("./errors-BiY8-q1s.cjs");
3
3
  exports.BrepBugError = require_errors.BrepBugError;
4
4
  exports.BrepErrorCode = require_errors.BrepErrorCode;
5
5
  exports.OK = require_errors.OK;
package/dist/result.js CHANGED
@@ -1,2 +1,2 @@
1
- import { A as ok, B as unwrapOr, E as map, I as tryCatch, L as tryCatchAsync, N as pipeline, O as mapErr, R as unwrap, T as isOk, V as unwrapOrElse, a as moduleInitError, b as err, c as sketcherStateError, d as validationError, g as OK, h as bug, i as kernelError, k as match, l as typeCastError, m as BrepBugError, n as computationError, o as queryError, r as ioError, t as BrepErrorCode, v as andThen, w as isErr, x as flatMap, y as collect, z as unwrapErr } from "./errors-0fYW_YnO.js";
1
+ import { A as ok, B as unwrapOr, E as map, I as tryCatch, L as tryCatchAsync, N as pipeline, O as mapErr, R as unwrap, T as isOk, V as unwrapOrElse, a as moduleInitError, b as err, c as sketcherStateError, d as validationError, g as OK, h as bug, i as kernelError, k as match, l as typeCastError, m as BrepBugError, n as computationError, o as queryError, r as ioError, t as BrepErrorCode, v as andThen, w as isErr, x as flatMap, y as collect, z as unwrapErr } from "./errors-8GZS3vy9.js";
2
2
  export { BrepBugError, BrepErrorCode, OK, andThen, bug, collect, computationError, err, flatMap, ioError, isErr, isOk, kernelError, map, mapErr, match, moduleInitError, ok, pipeline, queryError, sketcherStateError, tryCatch, tryCatchAsync, typeCastError, unwrap, unwrapErr, unwrapOr, unwrapOrElse, validationError };
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-BcAUN8Jp.cjs");
2
- const require_errors = require("./errors-Dv6pfNct.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-C_rxyeER.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BpKhed-9.cjs");
2
+ const require_errors = require("./errors-BiY8-q1s.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-CHsPXNbI.cjs");
4
4
  const require_constants = require("./constants-DTorLmes.cjs");
5
5
  //#region src/topology/metadata/originTrackingFns.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
- import { X as getKernel, t as castShape } from "./shapeTypes-Dqjd8VMv.js";
2
- import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-0fYW_YnO.js";
3
- import { _ as kernelCall, c as getOrCreateCache, r as getCacheEntry, s as getFaces, v as kernelCallRaw } from "./topologyQueryFns-DHbFP_6r.js";
1
+ import { Z as getKernel, t as castShape } from "./shapeTypes-DGtDTS9s.js";
2
+ import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-8GZS3vy9.js";
3
+ import { _ as kernelCall, c as getOrCreateCache, r as getCacheEntry, s as getFaces, v as kernelCallRaw } from "./topologyQueryFns-CcWaCxeb.js";
4
4
  import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-Ci5CA3aZ.js";
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-WwBIiDUH.cjs");
2
+ const require_shapeRefFns = require("./shapeRefFns-CDRLEUik.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-BEsxgYOo.js";
1
+ import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-CE0yS0EB.js";
2
2
  export { assignRoles, captureHint, createRef, defaultScorer, resolveRef, updateRoles };
@@ -1,8 +1,8 @@
1
1
  const require_vec3 = require("./vec3-S4Oh59IX.cjs");
2
- const require_topologyQueryFns = require("./topologyQueryFns-C_rxyeER.cjs");
3
- const require_faceFns = require("./faceFns-UQacl82e.cjs");
4
- const require_shapeFns = require("./shapeFns-CsFHf3W8.cjs");
5
- const require_measureFns = require("./measureFns-DkNQXgnh.cjs");
2
+ const require_topologyQueryFns = require("./topologyQueryFns-CHsPXNbI.cjs");
3
+ const require_faceFns = require("./faceFns-BbESdudy.cjs");
4
+ const require_shapeFns = require("./shapeFns-CHTLdb_n.cjs");
5
+ const require_measureFns = require("./measureFns-BkoPw5JT.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
1
  import { n as wasmIndex } from "./vec3-BRj3eI54.js";
2
- import { s as getFaces } from "./topologyQueryFns-DHbFP_6r.js";
3
- import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-C9tfTZwq.js";
4
- import { n as getHashCode } from "./shapeFns-DaqT_8dv.js";
5
- import { n as measureArea } from "./measureFns-BTip3Aiz.js";
2
+ import { s as getFaces } from "./topologyQueryFns-CcWaCxeb.js";
3
+ import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-BNhFoEII.js";
4
+ import { n as getHashCode } from "./shapeFns-x8vqq2fR.js";
5
+ import { n as measureArea } from "./measureFns-C3y_WX_E.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
1
  const require_vec3 = require("./vec3-S4Oh59IX.cjs");
2
2
  const require_occtWasmAdapter = require("./occtWasmAdapter-C2VW-uYg.cjs");
3
- const require_errors = require("./errors-Dv6pfNct.cjs");
3
+ const require_errors = require("./errors-BiY8-q1s.cjs");
4
4
  //#region src/kernel/kernel2dTypes.ts
5
5
  /** Check if the kernel supports 2D geometry operations. */
6
6
  function supportsKernel2D(kernel) {
@@ -9859,6 +9859,14 @@ function getKernel2D(id) {
9859
9859
  * restored synchronously in `finally`, so any `getKernel()` call after
9860
9860
  * the first `await` inside `fn` would observe the wrong kernel.
9861
9861
  */
9862
+ /**
9863
+ * Return the id of the currently active default kernel, or `null` if none is
9864
+ * registered yet. Useful for code that needs a stable identifier (e.g.
9865
+ * cache keys) but doesn't want to ship the actual adapter.
9866
+ */
9867
+ function getActiveKernelId() {
9868
+ return _defaultKernelId;
9869
+ }
9862
9870
  function withKernel(id, fn) {
9863
9871
  const prev = _defaultKernelId;
9864
9872
  _defaultKernelId = id;
@@ -10629,6 +10637,12 @@ Object.defineProperty(exports, "createWire", {
10629
10637
  return createWire;
10630
10638
  }
10631
10639
  });
10640
+ Object.defineProperty(exports, "getActiveKernelId", {
10641
+ enumerable: true,
10642
+ get: function() {
10643
+ return getActiveKernelId;
10644
+ }
10645
+ });
10632
10646
  Object.defineProperty(exports, "getDisposalStats", {
10633
10647
  enumerable: true,
10634
10648
  get: function() {
@@ -1,6 +1,6 @@
1
1
  import { n as wasmIndex, t as vec3At } from "./vec3-BRj3eI54.js";
2
2
  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--TZGP9DX.js";
3
- import { A as ok, b as err } from "./errors-0fYW_YnO.js";
3
+ import { A as ok, b as err } from "./errors-8GZS3vy9.js";
4
4
  //#region src/kernel/kernel2dTypes.ts
5
5
  /** Check if the kernel supports 2D geometry operations. */
6
6
  function supportsKernel2D(kernel) {
@@ -9851,6 +9851,14 @@ function getKernel2D(id) {
9851
9851
  * restored synchronously in `finally`, so any `getKernel()` call after
9852
9852
  * the first `await` inside `fn` would observe the wrong kernel.
9853
9853
  */
9854
+ /**
9855
+ * Return the id of the currently active default kernel, or `null` if none is
9856
+ * registered yet. Useful for code that needs a stable identifier (e.g.
9857
+ * cache keys) but doesn't want to ship the actual adapter.
9858
+ */
9859
+ function getActiveKernelId() {
9860
+ return _defaultKernelId;
9861
+ }
9854
9862
  function withKernel(id, fn) {
9855
9863
  const prev = _defaultKernelId;
9856
9864
  _defaultKernelId = id;
@@ -10513,4 +10521,4 @@ function castShapeWithKnownType(ocShape, knownType, dim) {
10513
10521
  return createCompound(dc, dim);
10514
10522
  }
10515
10523
  //#endregion
10516
- export { initFromOC as $, planarWire as A, createKernelHandle as B, isOrientedFace as C, manifoldShell as D, isValidSolid as E, as3D as F, unregisterFromCleanup as G, isLive as H, is2D as I, withScopeResultAsync as J, withScope as K, is3D as L, getShapeKind as M, getOrQueryType as N, orientedFace as O, as2D as P, init as Q, DisposalScope as R, isManifoldShell as S, isPlanarWire as T, registerForCleanup as U, getDisposalStats as V, resetDisposalStats as W, getKernel as X, _usingCtx as Y, getKernel2D as Z, isSolid as _, createEdge as a, BrepkitAdapter as at, closedWire as b, createSolid as c, isCompound as d, prewarm as et, isEdge as f, isShell as g, isShape3D as h, createCompound as i, supportsProjection as it, validSolid as j, planarFace as k, createVertex as l, isShape1D as m, castShape3D as n, withKernel as nt, createFace as o, getPerformanceStats as ot, isFace as p, withScopeResult as q, castShapeWithKnownType as r, supportsConstraintSketch as rt, createShell as s, resetPerformanceStats as st, castShape as t, registerKernel as tt, createWire as u, isVertex as v, isPlanarFace as w, isClosedWire as x, isWire as y, createHandle as z };
10524
+ export { init as $, planarWire as A, createKernelHandle as B, isOrientedFace as C, manifoldShell as D, isValidSolid as E, as3D as F, unregisterFromCleanup as G, isLive as H, is2D as I, withScopeResultAsync as J, withScope as K, is3D as L, getShapeKind as M, getOrQueryType as N, orientedFace as O, as2D as P, getKernel2D as Q, DisposalScope as R, isManifoldShell as S, isPlanarWire as T, registerForCleanup as U, getDisposalStats as V, resetDisposalStats as W, getActiveKernelId as X, _usingCtx as Y, getKernel as Z, isSolid as _, createEdge as a, supportsProjection as at, closedWire as b, createSolid as c, resetPerformanceStats as ct, isCompound as d, initFromOC as et, isEdge as f, isShell as g, isShape3D as h, createCompound as i, supportsConstraintSketch as it, validSolid as j, planarFace as k, createVertex as l, isShape1D as m, castShape3D as n, registerKernel as nt, createFace as o, BrepkitAdapter as ot, isFace as p, withScopeResult as q, castShapeWithKnownType as r, withKernel as rt, createShell as s, getPerformanceStats as st, castShape as t, prewarm as tt, createWire as u, isVertex as v, isPlanarFace as w, isClosedWire as x, isWire as y, createHandle as z };
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_textBlueprints = require("./textBlueprints-Cg2IOa7K.cjs");
3
- const require_blueprintSketcher = require("./blueprintSketcher-BBWw_BeX.cjs");
4
- const require_drawFns = require("./drawFns-N-BXk82r.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-CHh9SChA.cjs");
3
+ const require_blueprintSketcher = require("./blueprintSketcher-Cr9A-R8I.cjs");
4
+ const require_drawFns = require("./drawFns-CuzUHFyD.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-mujcO3uV.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-1JQUg7iu.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-Cm_gPjjQ.js";
1
+ import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-DeEogKbs.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-CEjshioX.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-Bv6zhEyn.js";
4
4
  //#region src/sketching.ts
5
5
  /**
6
6
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-BcAUN8Jp.cjs");
2
- const require_errors = require("./errors-Dv6pfNct.cjs");
3
- const require_faceFns = require("./faceFns-UQacl82e.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BpKhed-9.cjs");
2
+ const require_errors = require("./errors-BiY8-q1s.cjs");
3
+ const require_faceFns = require("./faceFns-BbESdudy.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-Dqjd8VMv.js";
2
- import { A as ok, R as unwrap, b as err, l as typeCastError, v as andThen } from "./errors-0fYW_YnO.js";
3
- import { _ as downcast, g as cast } from "./faceFns-C9tfTZwq.js";
1
+ import { Z as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-DGtDTS9s.js";
2
+ import { A as ok, R as unwrap, b as err, l as typeCastError, v as andThen } from "./errors-8GZS3vy9.js";
3
+ import { _ as downcast, g as cast } from "./faceFns-BNhFoEII.js";
4
4
  //#region src/topology/shapeUtils.ts
5
5
  /**
6
6
  * Shape assembly utilities — welding and sewing operations.
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-BcAUN8Jp.cjs");
2
- const require_errors = require("./errors-Dv6pfNct.cjs");
3
- const require_faceFns = require("./faceFns-UQacl82e.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BpKhed-9.cjs");
2
+ const require_errors = require("./errors-BiY8-q1s.cjs");
3
+ const require_faceFns = require("./faceFns-BbESdudy.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 { X as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-Dqjd8VMv.js";
2
- import { A as ok, b as err, d as validationError, i as kernelError, v as andThen } from "./errors-0fYW_YnO.js";
3
- import { g as cast, l as outerWire } from "./faceFns-C9tfTZwq.js";
1
+ import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-DGtDTS9s.js";
2
+ import { A as ok, b as err, d as validationError, i as kernelError, v as andThen } from "./errors-8GZS3vy9.js";
3
+ import { g as cast, l as outerWire } from "./faceFns-BNhFoEII.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-Cg2IOa7K.cjs");
3
- const require_textMetrics = require("./textMetrics-BExS67Zh.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-CHh9SChA.cjs");
3
+ const require_textMetrics = require("./textMetrics-CKNdQX02.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-Cm_gPjjQ.js";
2
- import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-Dbgikkim.js";
1
+ import { n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-Bv6zhEyn.js";
2
+ import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-vUJTTEFi.js";
3
3
  export { fontMetrics, getFont, loadFont, sketchText, textBlueprints, textMetrics };