brepjs 18.46.0 → 18.48.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 (79) hide show
  1. package/README.md +6 -6
  2. package/dist/2d.cjs +6 -6
  3. package/dist/2d.js +6 -6
  4. package/dist/{blueprint-CPjjsgrR.js → blueprint-U7q8mCkd.js} +5 -5
  5. package/dist/{blueprint-BA5Bfdwz.cjs → blueprint-oAHtiBNZ.cjs} +5 -5
  6. package/dist/{blueprintFns-CWilXQm6.js → blueprintFns-B430IS5G.js} +2 -2
  7. package/dist/{blueprintFns-B8vAsHVO.cjs → blueprintFns-BXIg6yIJ.cjs} +2 -2
  8. package/dist/{blueprintSketcher-hwftYMwR.cjs → blueprintSketcher-BMy4GYLb.cjs} +3 -3
  9. package/dist/{blueprintSketcher-C8vZPCQt.js → blueprintSketcher-CpYK3eMF.js} +3 -3
  10. package/dist/{boolean2D-CmDZHSeZ.js → boolean2D-BVGfOj7k.js} +4 -4
  11. package/dist/{boolean2D-EA3hhJKM.cjs → boolean2D-CalRrd7P.cjs} +4 -4
  12. package/dist/{booleanFns-leH_QfYn.js → booleanFns-BF1OlY3H.js} +4 -4
  13. package/dist/{booleanFns-DnzEDMX6.cjs → booleanFns-CejWQwHg.cjs} +4 -4
  14. package/dist/brepjs.cjs +24 -24
  15. package/dist/brepjs.js +24 -24
  16. package/dist/{cameraFns-rx6kB6-O.js → cameraFns-CDmeZqa_.js} +2 -2
  17. package/dist/{cameraFns-3on_JnkF.cjs → cameraFns-DkasWoY3.cjs} +2 -2
  18. package/dist/core.cjs +1 -1
  19. package/dist/core.js +1 -1
  20. package/dist/{cornerFinder-CKXVZtKb.cjs → cornerFinder-mHD8eDmo.cjs} +1 -1
  21. package/dist/{cornerFinder-CamWi9tL.js → cornerFinder-mUvhWdNG.js} +1 -1
  22. package/dist/{curveFns-DzHot_xI.cjs → curveFns-Ba1IEqn_.cjs} +1 -1
  23. package/dist/{curveFns-D7GtayS2.js → curveFns-C_va_3Js.js} +1 -1
  24. package/dist/{drawFns-BJQqMKaJ.cjs → drawFns-DGENZIVf.cjs} +12 -12
  25. package/dist/{drawFns-BHxjaznK.js → drawFns-zcgjasyw.js} +12 -12
  26. package/dist/{extrudeFns-ksXYM5j_.js → extrudeFns-BkOhPexa.js} +1 -1
  27. package/dist/{extrudeFns-C1GR7C0X.cjs → extrudeFns-DiIGGA5r.cjs} +1 -1
  28. package/dist/{faceFns-BkSM4Oeu.js → faceFns-DUmTMdax.js} +2 -2
  29. package/dist/{faceFns-Bk3zpto6.cjs → faceFns-eCr0tWic.cjs} +2 -2
  30. package/dist/{helpers-Bjw3hpKP.js → helpers-C7WpHbhO.js} +6 -6
  31. package/dist/{helpers-DspOVTTu.cjs → helpers-Cpw0iU4L.cjs} +6 -6
  32. package/dist/{historyFns-D-1AQYNQ.cjs → historyFns-B5zXm33l.cjs} +4 -4
  33. package/dist/{historyFns-DsGymyxt.js → historyFns-BVNMHteL.js} +4 -4
  34. package/dist/{importFns-vl1e1mW_.cjs → importFns-BQEVbZwt.cjs} +2 -2
  35. package/dist/{importFns-BC7mp-Tz.js → importFns-DcUisQj3.js} +2 -2
  36. package/dist/io.cjs +2 -2
  37. package/dist/io.js +2 -2
  38. package/dist/kernel/index.d.ts +7 -4
  39. package/dist/kernel/occtWasm/occtWasmAdapter.d.ts +9 -2
  40. package/dist/{measureFns-D_UQTGi5.js → measureFns-BdYuCuf9.js} +3 -3
  41. package/dist/{measureFns-DH64vdR2.cjs → measureFns-Bve7WG1g.cjs} +3 -3
  42. package/dist/measurement.cjs +1 -1
  43. package/dist/measurement.js +1 -1
  44. package/dist/{meshFns-B_kQjXw5.js → meshFns-BtjQFcwe.js} +3 -3
  45. package/dist/{meshFns-CRvJBgJz.cjs → meshFns-Hxj3Vngd.cjs} +3 -3
  46. package/dist/operations.cjs +2 -2
  47. package/dist/operations.js +2 -2
  48. package/dist/{primitiveFns-Bj_KzMbk.js → primitiveFns-ODt9feUB.js} +7 -7
  49. package/dist/{primitiveFns-BZPeg8x9.cjs → primitiveFns-n-OA8SFM.cjs} +7 -7
  50. package/dist/projection.cjs +1 -1
  51. package/dist/projection.js +1 -1
  52. package/dist/query.cjs +2 -2
  53. package/dist/query.js +2 -2
  54. package/dist/quick.js +12 -4
  55. package/dist/{shapeFns-CKAdGsFC.js → shapeFns-CGiJTWpD.js} +2 -2
  56. package/dist/{shapeFns-C1H15_5H.cjs → shapeFns-Dl7cAveQ.cjs} +2 -2
  57. package/dist/shapeRef.cjs +1 -1
  58. package/dist/shapeRef.js +1 -1
  59. package/dist/{shapeRefFns-DKojnj8j.js → shapeRefFns-CqLB7rA2.js} +4 -4
  60. package/dist/{shapeRefFns-B0KzT-Gm.cjs → shapeRefFns-DppFONN_.cjs} +4 -4
  61. package/dist/{shapeTypes-JIeiAk3d.js → shapeTypes-BGeihZZ2.js} +16 -5
  62. package/dist/{shapeTypes-BPtEbp0M.cjs → shapeTypes-DgN4lV-c.cjs} +15 -4
  63. package/dist/sketching.cjs +3 -3
  64. package/dist/sketching.js +3 -3
  65. package/dist/{solidBuilders-BVS8G3cD.cjs → solidBuilders-C8x5hl-i.cjs} +2 -2
  66. package/dist/{solidBuilders-C9qNi_0P.js → solidBuilders-C_i7lfl1.js} +2 -2
  67. package/dist/{surfaceBuilders-DCRn8Srd.cjs → surfaceBuilders-8Q5NVxkT.cjs} +2 -2
  68. package/dist/{surfaceBuilders-CY8jJP-F.js → surfaceBuilders-OuKORf6n.js} +2 -2
  69. package/dist/text.cjs +2 -2
  70. package/dist/text.js +2 -2
  71. package/dist/{textBlueprints-DZ6z07kv.cjs → textBlueprints-CMszuH5i.cjs} +7 -7
  72. package/dist/{textBlueprints-DcEAdnAc.js → textBlueprints-CjWzCUDy.js} +7 -7
  73. package/dist/{textMetrics-DVZWsWQu.js → textMetrics-nDL3MTCV.js} +1 -1
  74. package/dist/{textMetrics-B3OdFcVn.cjs → textMetrics-ogNOndAW.cjs} +1 -1
  75. package/dist/topology.cjs +7 -7
  76. package/dist/topology.js +7 -7
  77. package/dist/{topologyQueryFns-CL_taAVv.js → topologyQueryFns-B_zXrMDh.js} +1 -1
  78. package/dist/{topologyQueryFns-CHVjpF39.cjs → topologyQueryFns-CTq8qOKc.cjs} +1 -1
  79. package/package.json +7 -6
@@ -1,12 +1,12 @@
1
- import { Z as getKernel, p as isFace } from "./shapeTypes-JIeiAk3d.js";
1
+ import { Z as getKernel, p as isFace } from "./shapeTypes-BGeihZZ2.js";
2
2
  import { A as ok, T as isOk, b as err, h as bug, o as queryError } from "./errors-DNWJsfVU.js";
3
- import { c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-CL_taAVv.js";
3
+ import { c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-B_zXrMDh.js";
4
4
  import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
5
  import { a as vecDot, d as vecNormalize } from "./vecOps-SKPRvPH-.js";
6
- import { c as normalAt, o as getSurfaceType } from "./faceFns-BkSM4Oeu.js";
7
- import { a as isSameShape, n as getHashCode } from "./shapeFns-CKAdGsFC.js";
8
- import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns-D7GtayS2.js";
9
- import { n as measureArea } from "./measureFns-D_UQTGi5.js";
6
+ import { c as normalAt, o as getSurfaceType } from "./faceFns-DUmTMdax.js";
7
+ import { a as isSameShape, n as getHashCode } from "./shapeFns-CGiJTWpD.js";
8
+ import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns-C_va_3Js.js";
9
+ import { n as measureArea } from "./measureFns-BdYuCuf9.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,12 +1,12 @@
1
- const require_shapeTypes = require("./shapeTypes-BPtEbp0M.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DgN4lV-c.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-CHVjpF39.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-CTq8qOKc.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
6
- const require_faceFns = require("./faceFns-Bk3zpto6.cjs");
7
- const require_shapeFns = require("./shapeFns-C1H15_5H.cjs");
8
- const require_curveFns = require("./curveFns-DzHot_xI.cjs");
9
- const require_measureFns = require("./measureFns-DH64vdR2.cjs");
6
+ const require_faceFns = require("./faceFns-eCr0tWic.cjs");
7
+ const require_shapeFns = require("./shapeFns-Dl7cAveQ.cjs");
8
+ const require_curveFns = require("./curveFns-Ba1IEqn_.cjs");
9
+ const require_measureFns = require("./measureFns-Bve7WG1g.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,9 +1,9 @@
1
- const require_shapeTypes = require("./shapeTypes-BPtEbp0M.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DgN4lV-c.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
3
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
4
- const require_faceFns = require("./faceFns-Bk3zpto6.cjs");
5
- const require_shapeFns = require("./shapeFns-C1H15_5H.cjs");
6
- const require_booleanFns = require("./booleanFns-DnzEDMX6.cjs");
4
+ const require_faceFns = require("./faceFns-eCr0tWic.cjs");
5
+ const require_shapeFns = require("./shapeFns-Dl7cAveQ.cjs");
6
+ const require_booleanFns = require("./booleanFns-CejWQwHg.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, Z as getKernel, t as castShape } from "./shapeTypes-JIeiAk3d.js";
1
+ import { B as createKernelHandle, Z as getKernel, t as castShape } from "./shapeTypes-BGeihZZ2.js";
2
2
  import { A as ok, b as err, d as validationError, n as computationError, r as ioError } from "./errors-DNWJsfVU.js";
3
3
  import { d as vecNormalize, s as vecIsZero } from "./vecOps-SKPRvPH-.js";
4
- import { v as fromBREP } from "./faceFns-BkSM4Oeu.js";
5
- import { s as toBREP } from "./shapeFns-CKAdGsFC.js";
6
- import { a as fuseAll } from "./booleanFns-leH_QfYn.js";
4
+ import { v as fromBREP } from "./faceFns-DUmTMdax.js";
5
+ import { s as toBREP } from "./shapeFns-CGiJTWpD.js";
6
+ import { a as fuseAll } from "./booleanFns-BF1OlY3H.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-BPtEbp0M.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DgN4lV-c.cjs");
2
2
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
3
3
  const require_errors = require("./errors-CXJtc4I7.cjs");
4
4
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
5
- const require_blueprint = require("./blueprint-BA5Bfdwz.cjs");
5
+ const require_blueprint = require("./blueprint-oAHtiBNZ.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 { Z as getKernel, t as castShape } from "./shapeTypes-JIeiAk3d.js";
1
+ import { Z as getKernel, t as castShape } from "./shapeTypes-BGeihZZ2.js";
2
2
  import { n as wasmIndex, t as vec3At$1 } from "./vec3-Dpha8d5k.js";
3
3
  import { A as ok, b as err, r as ioError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
4
4
  import { n as getAtOrThrow } from "./arrayAccess-DrUGPADn.js";
5
- import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-CPjjsgrR.js";
5
+ import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-U7q8mCkd.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/io.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_meshFns = require("./meshFns-CRvJBgJz.cjs");
3
- const require_importFns = require("./importFns-vl1e1mW_.cjs");
2
+ const require_meshFns = require("./meshFns-Hxj3Vngd.cjs");
3
+ const require_importFns = require("./importFns-BQEVbZwt.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-B_kQjXw5.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-BC7mp-Tz.js";
1
+ import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-BtjQFcwe.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-DcUisQj3.js";
3
3
  export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
@@ -1,5 +1,6 @@
1
1
  import { KernelAdapter, KernelInstance } from './types.js';
2
2
  import { Kernel2DCapability } from './kernel2dTypes.js';
3
+ import { OcctWasmAdapter } from './occtWasm/occtWasmAdapter.js';
3
4
  type ManifoldModule = any;
4
5
  /** Initialise and register the manifold kernel from a loaded manifold-3d module. */
5
6
  export declare function initFromManifold(module: ManifoldModule): void;
@@ -51,13 +52,15 @@ export declare function prewarm(): void;
51
52
  /**
52
53
  * Auto-detect and initialise the best available kernel.
53
54
  *
54
- * Tries `brepjs-opencascade` (OCCT) first, then falls back to `brepkit-wasm`.
55
- * For `occt-wasm`, use {@link registerKernel} directly (see tests/helpers/kernelInit.ts).
55
+ * Tries `occt-wasm` (the default kernel) first, then falls back to
56
+ * `brepjs-opencascade`, then `brepkit-wasm`. `occt-wasm` loads via its
57
+ * browser-safe `OcctKernel.init()` (auto-locates the `.wasm` via
58
+ * `import.meta.url`), so no manual registration is required.
56
59
  *
57
60
  * Idempotent — calling it again after a kernel is registered is a no-op that
58
61
  * returns the current kernel ID immediately.
59
62
  *
60
- * @returns The kernel ID that was initialised (`'occt'` or `'brepkit'`).
63
+ * @returns The kernel ID that was initialised (`'occt-wasm'`, `'occt'`, or `'brepkit'`).
61
64
  * @throws If no kernel package can be imported.
62
65
  *
63
66
  * @example
@@ -77,7 +80,7 @@ export { supportsKernel2D } from './kernel2dTypes.js';
77
80
  export type { Kernel2DCapability, Curve2dHandle, BBox2dHandle } from './kernel2dTypes.js';
78
81
  export { BrepkitAdapter } from './brepkit/brepkitAdapter.js';
79
82
  export type { BrepkitHandle } from './brepkit/helpers.js';
80
- export { OcctWasmAdapter } from './occtWasm/occtWasmAdapter.js';
83
+ export { OcctWasmAdapter };
81
84
  export type { OcctWasmHandle } from './occtWasm/occtWasmTypes.js';
82
85
  export type { OcctWasmModule, OcctKernelWasm } from './occtWasm/occtWasmTypes.js';
83
86
  export { getPerformanceStats, resetPerformanceStats, perfTimer } from './perfStats.js';
@@ -6,10 +6,17 @@ import { OcctWasmModule, OcctKernelWasm } from './occtWasmTypes.js';
6
6
  /**
7
7
  * Minimal view of occt-wasm's `OcctKernel` wrapper — anything exposing the raw
8
8
  * Embind module and kernel. Accepted by {@link OcctWasmAdapter.fromKernel}.
9
+ *
10
+ * Accessors are typed `unknown` on purpose: occt-wasm's published `OcctKernel`
11
+ * exposes a *curated* raw surface (`OcctRawKernel` and a trimmed module type)
12
+ * that is narrower than the full Embind API this adapter drives — the runtime
13
+ * objects have every method, but the package `.d.ts` under-declares them. So the
14
+ * wrapper is accepted structurally and bridged to the rich internal types once
15
+ * inside {@link OcctWasmAdapter.fromKernel} (a WASM type gap, not a real one).
9
16
  */
10
17
  export interface OcctKernelOwner {
11
- getRawModule(): OcctWasmModule;
12
- getRawKernel(): OcctKernelWasm;
18
+ getRawModule(): unknown;
19
+ getRawKernel(): unknown;
13
20
  }
14
21
  export declare class OcctWasmAdapter implements KernelAdapter {
15
22
  readonly oc: KernelInstance;
@@ -1,7 +1,7 @@
1
- import { Z as getKernel } from "./shapeTypes-JIeiAk3d.js";
1
+ import { Z as getKernel } from "./shapeTypes-BGeihZZ2.js";
2
2
  import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
3
- import { w as kernelCallRaw } from "./topologyQueryFns-CL_taAVv.js";
4
- import { p as uvBounds } from "./faceFns-BkSM4Oeu.js";
3
+ import { w as kernelCallRaw } from "./topologyQueryFns-B_zXrMDh.js";
4
+ import { p as uvBounds } from "./faceFns-DUmTMdax.js";
5
5
  //#region src/measurement/measureCache.ts
6
6
  var cache = /* @__PURE__ */ new WeakMap();
7
7
  function getCachedMeasurement(shape, key) {
@@ -1,7 +1,7 @@
1
- const require_shapeTypes = require("./shapeTypes-BPtEbp0M.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DgN4lV-c.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-CHVjpF39.cjs");
4
- const require_faceFns = require("./faceFns-Bk3zpto6.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-CTq8qOKc.cjs");
4
+ const require_faceFns = require("./faceFns-eCr0tWic.cjs");
5
5
  //#region src/measurement/measureCache.ts
6
6
  var cache = /* @__PURE__ */ new WeakMap();
7
7
  function getCachedMeasurement(shape, key) {
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_measureFns = require("./measureFns-DH64vdR2.cjs");
2
+ const require_measureFns = require("./measureFns-Bve7WG1g.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-D_UQTGi5.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-BdYuCuf9.js";
2
2
  export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
@@ -1,7 +1,7 @@
1
- import { Z as getKernel } from "./shapeTypes-JIeiAk3d.js";
1
+ import { Z as getKernel } from "./shapeTypes-BGeihZZ2.js";
2
2
  import { A as ok, b as err, r as ioError } from "./errors-DNWJsfVU.js";
3
- import { d as getSolids, n as getBounds } from "./topologyQueryFns-CL_taAVv.js";
4
- import { O as getFaceOrigins } from "./shapeFns-CKAdGsFC.js";
3
+ import { d as getSolids, n as getBounds } from "./topologyQueryFns-B_zXrMDh.js";
4
+ import { O as getFaceOrigins } from "./shapeFns-CGiJTWpD.js";
5
5
  //#region src/topology/meshCache.ts
6
6
  /**
7
7
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -1,7 +1,7 @@
1
- const require_shapeTypes = require("./shapeTypes-BPtEbp0M.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DgN4lV-c.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-CHVjpF39.cjs");
4
- const require_shapeFns = require("./shapeFns-C1H15_5H.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-CTq8qOKc.cjs");
4
+ const require_shapeFns = require("./shapeFns-Dl7cAveQ.cjs");
5
5
  //#region src/topology/meshCache.ts
6
6
  /**
7
7
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_historyFns = require("./historyFns-D-1AQYNQ.cjs");
3
- const require_extrudeFns = require("./extrudeFns-C1GR7C0X.cjs");
2
+ const require_historyFns = require("./historyFns-B5zXm33l.cjs");
3
+ const require_extrudeFns = require("./extrudeFns-DiIGGA5r.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-DsGymyxt.js";
2
- import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-ksXYM5j_.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-BVNMHteL.js";
2
+ import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-BkOhPexa.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,13 +1,13 @@
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-JIeiAk3d.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-BGeihZZ2.js";
2
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-DNWJsfVU.js";
3
- import { c as getFaces, i as getCachedIsValid, l as getOrCreateCache, m as invalidateShapeCache, p as getWires, s as getEdges } from "./topologyQueryFns-CL_taAVv.js";
3
+ import { c as getFaces, i as getCachedIsValid, l as getOrCreateCache, m as invalidateShapeCache, p as getWires, s as getEdges } from "./topologyQueryFns-B_zXrMDh.js";
4
4
  import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
- import { _ as downcast } from "./faceFns-BkSM4Oeu.js";
6
- import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-CKAdGsFC.js";
5
+ import { _ as downcast } from "./faceFns-DUmTMdax.js";
6
+ import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-CGiJTWpD.js";
7
7
  import { t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
8
- 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-CY8jJP-F.js";
9
- import { a as fuseAll, i as fuse, n as cut, r as cutAll } from "./booleanFns-leH_QfYn.js";
10
- 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-C9qNi_0P.js";
8
+ 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-OuKORf6n.js";
9
+ import { a as fuseAll, i as fuse, n as cut, r as cutAll } from "./booleanFns-BF1OlY3H.js";
10
+ 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-C_i7lfl1.js";
11
11
  //#region src/topology/threeHelpers.ts
12
12
  /**
13
13
  * Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
@@ -1,13 +1,13 @@
1
- const require_shapeTypes = require("./shapeTypes-BPtEbp0M.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DgN4lV-c.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-CHVjpF39.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-CTq8qOKc.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
- const require_faceFns = require("./faceFns-Bk3zpto6.cjs");
6
- const require_shapeFns = require("./shapeFns-C1H15_5H.cjs");
5
+ const require_faceFns = require("./faceFns-eCr0tWic.cjs");
6
+ const require_shapeFns = require("./shapeFns-Dl7cAveQ.cjs");
7
7
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
8
- const require_surfaceBuilders = require("./surfaceBuilders-DCRn8Srd.cjs");
9
- const require_booleanFns = require("./booleanFns-DnzEDMX6.cjs");
10
- const require_solidBuilders = require("./solidBuilders-BVS8G3cD.cjs");
8
+ const require_surfaceBuilders = require("./surfaceBuilders-8Q5NVxkT.cjs");
9
+ const require_booleanFns = require("./booleanFns-CejWQwHg.cjs");
10
+ const require_solidBuilders = require("./solidBuilders-C8x5hl-i.cjs");
11
11
  //#region src/topology/threeHelpers.ts
12
12
  /**
13
13
  * 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-3on_JnkF.cjs");
2
+ const require_cameraFns = require("./cameraFns-DkasWoY3.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-rx6kB6-O.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-CDmeZqa_.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-DspOVTTu.cjs");
3
- const require_cornerFinder = require("./cornerFinder-CKXVZtKb.cjs");
2
+ const require_helpers = require("./helpers-Cpw0iU4L.cjs");
3
+ const require_cornerFinder = require("./cornerFinder-mHD8eDmo.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-Bjw3hpKP.js";
2
- import { t as cornerFinder } from "./cornerFinder-CamWi9tL.js";
1
+ import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-C7WpHbhO.js";
2
+ import { t as cornerFinder } from "./cornerFinder-mUvhWdNG.js";
3
3
  export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
package/dist/quick.js CHANGED
@@ -1,5 +1,13 @@
1
- import opencascade from 'brepjs-opencascade';
2
- import { initFromOC } from './brepjs.js';
3
- const oc = await opencascade();
4
- initFromOC(oc);
1
+ import { initFromOC, registerKernel, OcctWasmAdapter } from './brepjs.js';
2
+ // occt-wasm first (the default kernel); fall back to brepjs-opencascade.
3
+ // Dynamic imports so an install with only one of the two packages still loads.
4
+ try {
5
+ const { OcctKernel } = await import('occt-wasm');
6
+ const kernel = await OcctKernel.init();
7
+ registerKernel('occt-wasm', OcctWasmAdapter.fromKernel(kernel));
8
+ } catch {
9
+ const { default: opencascade } = await import('brepjs-opencascade');
10
+ const oc = await opencascade();
11
+ initFromOC(oc);
12
+ }
5
13
  export * from './brepjs.js';
@@ -1,6 +1,6 @@
1
- import { Z as getKernel, t as castShape } from "./shapeTypes-JIeiAk3d.js";
1
+ import { Z as getKernel, t as castShape } from "./shapeTypes-BGeihZZ2.js";
2
2
  import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
3
- import { C as kernelCall, c as getFaces, l as getOrCreateCache, r as getCacheEntry, w as kernelCallRaw } from "./topologyQueryFns-CL_taAVv.js";
3
+ import { C as kernelCall, c as getFaces, l as getOrCreateCache, r as getCacheEntry, w as kernelCallRaw } from "./topologyQueryFns-B_zXrMDh.js";
4
4
  import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
5
  //#region src/topology/metadata/originTrackingFns.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-BPtEbp0M.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DgN4lV-c.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-CHVjpF39.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-CTq8qOKc.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  //#region src/topology/metadata/originTrackingFns.ts
6
6
  /**
package/dist/shapeRef.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeRefFns = require("./shapeRefFns-B0KzT-Gm.cjs");
2
+ const require_shapeRefFns = require("./shapeRefFns-DppFONN_.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-DKojnj8j.js";
1
+ import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-CqLB7rA2.js";
2
2
  export { assignRoles, captureHint, createRef, defaultScorer, resolveRef, updateRoles };
@@ -1,8 +1,8 @@
1
1
  import { n as wasmIndex } from "./vec3-Dpha8d5k.js";
2
- import { c as getFaces } from "./topologyQueryFns-CL_taAVv.js";
3
- import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-BkSM4Oeu.js";
4
- import { n as getHashCode } from "./shapeFns-CKAdGsFC.js";
5
- import { n as measureArea } from "./measureFns-D_UQTGi5.js";
2
+ import { c as getFaces } from "./topologyQueryFns-B_zXrMDh.js";
3
+ import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-DUmTMdax.js";
4
+ import { n as getHashCode } from "./shapeFns-CGiJTWpD.js";
5
+ import { n as measureArea } from "./measureFns-BdYuCuf9.js";
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
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
2
- const require_topologyQueryFns = require("./topologyQueryFns-CHVjpF39.cjs");
3
- const require_faceFns = require("./faceFns-Bk3zpto6.cjs");
4
- const require_shapeFns = require("./shapeFns-C1H15_5H.cjs");
5
- const require_measureFns = require("./measureFns-DH64vdR2.cjs");
2
+ const require_topologyQueryFns = require("./topologyQueryFns-CTq8qOKc.cjs");
3
+ const require_faceFns = require("./faceFns-eCr0tWic.cjs");
4
+ const require_shapeFns = require("./shapeFns-Dl7cAveQ.cjs");
5
+ const require_measureFns = require("./measureFns-Bve7WG1g.cjs");
6
6
  //#region src/topology/shapeRef/scoring.ts
7
7
  /**
8
8
  * Default face scorer combining surface type, normal alignment, centroid proximity,
@@ -1,5 +1,5 @@
1
1
  import { n as wasmIndex, t as vec3At } from "./vec3-Dpha8d5k.js";
2
- import { _ as serializeCurve2d$2, a as curveTypeName, b as quickHull, 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-B0PIezOZ.js";
2
+ import { _ as serializeCurve2d$2, a as curveTypeName, b as quickHull, 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, t as OcctWasmAdapter, u as makeCircle2d$2, v as tangentCurve2d, y as translateCurve2d$2 } from "./occtWasmAdapter-B0PIezOZ.js";
3
3
  import { A as ok, b as err } from "./errors-DNWJsfVU.js";
4
4
  //#region src/kernel/kernel2dTypes.ts
5
5
  /** Check if the kernel supports 2D geometry operations. */
@@ -13062,13 +13062,15 @@ function prewarm() {
13062
13062
  /**
13063
13063
  * Auto-detect and initialise the best available kernel.
13064
13064
  *
13065
- * Tries `brepjs-opencascade` (OCCT) first, then falls back to `brepkit-wasm`.
13066
- * For `occt-wasm`, use {@link registerKernel} directly (see tests/helpers/kernelInit.ts).
13065
+ * Tries `occt-wasm` (the default kernel) first, then falls back to
13066
+ * `brepjs-opencascade`, then `brepkit-wasm`. `occt-wasm` loads via its
13067
+ * browser-safe `OcctKernel.init()` (auto-locates the `.wasm` via
13068
+ * `import.meta.url`), so no manual registration is required.
13067
13069
  *
13068
13070
  * Idempotent — calling it again after a kernel is registered is a no-op that
13069
13071
  * returns the current kernel ID immediately.
13070
13072
  *
13071
- * @returns The kernel ID that was initialised (`'occt'` or `'brepkit'`).
13073
+ * @returns The kernel ID that was initialised (`'occt-wasm'`, `'occt'`, or `'brepkit'`).
13072
13074
  * @throws If no kernel package can be imported.
13073
13075
  *
13074
13076
  * @example
@@ -13081,6 +13083,15 @@ function prewarm() {
13081
13083
  */
13082
13084
  async function init() {
13083
13085
  if (_defaultKernelId) return _defaultKernelId;
13086
+ try {
13087
+ const { OcctKernel } = await import(
13088
+ /* @vite-ignore */
13089
+ "occt-wasm"
13090
+ );
13091
+ const kernel = await OcctKernel.init();
13092
+ registerKernel("occt-wasm", OcctWasmAdapter.fromKernel(kernel));
13093
+ return "occt-wasm";
13094
+ } catch {}
13084
13095
  try {
13085
13096
  initFromOC(await (await import(
13086
13097
  /* @vite-ignore */
@@ -13097,7 +13108,7 @@ async function init() {
13097
13108
  registerKernel("brepkit", new BrepkitAdapter(new bk.BrepKernel()));
13098
13109
  return "brepkit";
13099
13110
  } catch {}
13100
- throw new Error("brepjs: no kernel package found. Install one of:\n npm install brepjs-opencascade (recommended)\n npm install brepkit-wasm\n npm install occt-wasm (requires manual registerKernel)");
13111
+ throw new Error("brepjs: no kernel package found. Install one of:\n npm install occt-wasm (recommended, default)\n npm install brepjs-opencascade\n npm install brepkit-wasm");
13101
13112
  }
13102
13113
  //#endregion
13103
13114
  //#region \0@oxc-project+runtime@0.132.0/helpers/usingCtx.js
@@ -13070,13 +13070,15 @@ function prewarm() {
13070
13070
  /**
13071
13071
  * Auto-detect and initialise the best available kernel.
13072
13072
  *
13073
- * Tries `brepjs-opencascade` (OCCT) first, then falls back to `brepkit-wasm`.
13074
- * For `occt-wasm`, use {@link registerKernel} directly (see tests/helpers/kernelInit.ts).
13073
+ * Tries `occt-wasm` (the default kernel) first, then falls back to
13074
+ * `brepjs-opencascade`, then `brepkit-wasm`. `occt-wasm` loads via its
13075
+ * browser-safe `OcctKernel.init()` (auto-locates the `.wasm` via
13076
+ * `import.meta.url`), so no manual registration is required.
13075
13077
  *
13076
13078
  * Idempotent — calling it again after a kernel is registered is a no-op that
13077
13079
  * returns the current kernel ID immediately.
13078
13080
  *
13079
- * @returns The kernel ID that was initialised (`'occt'` or `'brepkit'`).
13081
+ * @returns The kernel ID that was initialised (`'occt-wasm'`, `'occt'`, or `'brepkit'`).
13080
13082
  * @throws If no kernel package can be imported.
13081
13083
  *
13082
13084
  * @example
@@ -13089,6 +13091,15 @@ function prewarm() {
13089
13091
  */
13090
13092
  async function init() {
13091
13093
  if (_defaultKernelId) return _defaultKernelId;
13094
+ try {
13095
+ const { OcctKernel } = await import(
13096
+ /* @vite-ignore */
13097
+ "occt-wasm"
13098
+ );
13099
+ const kernel = await OcctKernel.init();
13100
+ registerKernel("occt-wasm", require_occtWasmAdapter.OcctWasmAdapter.fromKernel(kernel));
13101
+ return "occt-wasm";
13102
+ } catch {}
13092
13103
  try {
13093
13104
  initFromOC(await (await import(
13094
13105
  /* @vite-ignore */
@@ -13105,7 +13116,7 @@ async function init() {
13105
13116
  registerKernel("brepkit", new BrepkitAdapter(new bk.BrepKernel()));
13106
13117
  return "brepkit";
13107
13118
  } catch {}
13108
- throw new Error("brepjs: no kernel package found. Install one of:\n npm install brepjs-opencascade (recommended)\n npm install brepkit-wasm\n npm install occt-wasm (requires manual registerKernel)");
13119
+ throw new Error("brepjs: no kernel package found. Install one of:\n npm install occt-wasm (recommended, default)\n npm install brepjs-opencascade\n npm install brepkit-wasm");
13109
13120
  }
13110
13121
  //#endregion
13111
13122
  //#region \0@oxc-project+runtime@0.132.0/helpers/usingCtx.js
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_textBlueprints = require("./textBlueprints-DZ6z07kv.cjs");
3
- const require_blueprintSketcher = require("./blueprintSketcher-hwftYMwR.cjs");
4
- const require_drawFns = require("./drawFns-BJQqMKaJ.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-CMszuH5i.cjs");
3
+ const require_blueprintSketcher = require("./blueprintSketcher-BMy4GYLb.cjs");
4
+ const require_drawFns = require("./drawFns-DGENZIVf.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-C8vZPCQt.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-BHxjaznK.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-DcEAdnAc.js";
1
+ import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-CpYK3eMF.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-zcgjasyw.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-CjWzCUDy.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-BPtEbp0M.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DgN4lV-c.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_faceFns = require("./faceFns-Bk3zpto6.cjs");
3
+ const require_faceFns = require("./faceFns-eCr0tWic.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 { Z as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-JIeiAk3d.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-BGeihZZ2.js";
2
2
  import { A as ok, R as unwrap, b as err, l as typeCastError, v as andThen } from "./errors-DNWJsfVU.js";
3
- import { _ as downcast, g as cast } from "./faceFns-BkSM4Oeu.js";
3
+ import { _ as downcast, g as cast } from "./faceFns-DUmTMdax.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-BPtEbp0M.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DgN4lV-c.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_faceFns = require("./faceFns-Bk3zpto6.cjs");
3
+ const require_faceFns = require("./faceFns-eCr0tWic.cjs");
4
4
  //#region src/utils/range.ts
5
5
  /** Generate an array of integers `[0, 1, …, len - 1]`. */
6
6
  function range(len) {
@@ -1,6 +1,6 @@
1
- import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-JIeiAk3d.js";
1
+ import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-BGeihZZ2.js";
2
2
  import { A as ok, b as err, d as validationError, i as kernelError, v as andThen } from "./errors-DNWJsfVU.js";
3
- import { g as cast, l as outerWire } from "./faceFns-BkSM4Oeu.js";
3
+ import { g as cast, l as outerWire } from "./faceFns-DUmTMdax.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-DZ6z07kv.cjs");
3
- const require_textMetrics = require("./textMetrics-B3OdFcVn.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-CMszuH5i.cjs");
3
+ const require_textMetrics = require("./textMetrics-ogNOndAW.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-DcEAdnAc.js";
2
- import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-DVZWsWQu.js";
1
+ import { n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-CjWzCUDy.js";
2
+ import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-nDL3MTCV.js";
3
3
  export { fontMetrics, getFont, loadFont, sketchText, textBlueprints, textMetrics };