brepjs 12.2.2 → 12.2.4

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 (62) hide show
  1. package/LICENSE +669 -190
  2. package/README.md +2 -2
  3. package/dist/2d.cjs +2 -2
  4. package/dist/2d.js +3 -3
  5. package/dist/{Blueprint-CFdLzoy5.cjs → Blueprint-CX2oh-NE.cjs} +5 -5
  6. package/dist/{Blueprint-DQ18yiAI.js → Blueprint-DlfUXrh0.js} +5 -5
  7. package/dist/{boolean2D-Dq3HF-Pd.js → boolean2D-COkYlAPe.js} +7 -7
  8. package/dist/{boolean2D-C5tjWX5T.cjs → boolean2D-G9edb4Pw.cjs} +7 -7
  9. package/dist/{booleanFns-DdU6eLxI.js → booleanFns-5MroD4TZ.js} +3 -3
  10. package/dist/{booleanFns-PbcD1St_.cjs → booleanFns-zdaV6L6c.cjs} +3 -3
  11. package/dist/brepjs.cjs +17 -17
  12. package/dist/brepjs.js +28 -28
  13. package/dist/core/shapeTypes.d.ts.map +1 -1
  14. package/dist/core.cjs +1 -1
  15. package/dist/core.js +1 -1
  16. package/dist/{cornerFinder-Dv3C7Yen.js → cornerFinder-CGzCuJy3.js} +1 -1
  17. package/dist/{cornerFinder-BphV9OLn.cjs → cornerFinder-NbeO5KWC.cjs} +1 -1
  18. package/dist/{curveFns-CeHbFVDc.cjs → curveFns-BN9bWCIl.cjs} +1 -1
  19. package/dist/{curveFns-GOcBuoCc.js → curveFns-DRb_8jyd.js} +1 -1
  20. package/dist/{drawFns-F5uDtd2v.cjs → drawFns-Br57GZWI.cjs} +11 -11
  21. package/dist/{drawFns-7fN_tn1I.js → drawFns-DsB3t0zE.js} +11 -11
  22. package/dist/{faceFns-Bhlm333o.cjs → faceFns-Cfvj4nxx.cjs} +1 -1
  23. package/dist/{faceFns-g5hzl_xe.js → faceFns-Dka8xvYk.js} +1 -1
  24. package/dist/{helpers-D3jdmQoR.cjs → helpers-Cu_7Qo9J.cjs} +4 -4
  25. package/dist/{helpers-Vqsg_fss.js → helpers-TIGqZBj7.js} +4 -4
  26. package/dist/io.cjs +3 -3
  27. package/dist/io.js +3 -3
  28. package/dist/kernel/brepkitAdapter.d.ts +6 -5
  29. package/dist/kernel/brepkitAdapter.d.ts.map +1 -1
  30. package/dist/kernel/brepkitWasmTypes.d.ts +43 -1
  31. package/dist/kernel/brepkitWasmTypes.d.ts.map +1 -1
  32. package/dist/kernel/types.d.ts +32 -5
  33. package/dist/kernel/types.d.ts.map +1 -1
  34. package/dist/{loft-B3ZDn94G.cjs → loft-BDnb8toT.cjs} +4 -4
  35. package/dist/{loft-BGHICbBS.js → loft-DTFP5fVL.js} +4 -4
  36. package/dist/{measurement-Ce4oE8Fg.js → measurement-9v764TRE.js} +2 -2
  37. package/dist/{measurement--jEL3ePF.cjs → measurement-ypLLNq5y.cjs} +2 -2
  38. package/dist/measurement.cjs +1 -1
  39. package/dist/measurement.js +1 -1
  40. package/dist/{meshFns-bHjCcOZp.js → meshFns-B_yFbSte.js} +2 -2
  41. package/dist/{meshFns-rTBykpgO.cjs → meshFns-xWim4bEU.cjs} +2 -2
  42. package/dist/{operations-D3BtYsAB.js → operations-2LVG2jh1.js} +5 -5
  43. package/dist/{operations-Cb4gWPwL.cjs → operations-D4Q6JrTP.cjs} +5 -5
  44. package/dist/operations.cjs +2 -2
  45. package/dist/operations.js +2 -2
  46. package/dist/query.cjs +4 -4
  47. package/dist/query.js +5 -5
  48. package/dist/{shapeFns-smSl7yhL.js → shapeFns-BP-fxfKw.js} +2 -2
  49. package/dist/{shapeFns-BHSGfqFS.cjs → shapeFns-ZbzAD8yC.cjs} +2 -2
  50. package/dist/{shapeTypes-BzrjB5be.cjs → shapeTypes-BQGbhdgi.cjs} +2 -1
  51. package/dist/{shapeTypes-Py3LEyDe.js → shapeTypes-ByN4-0Hp.js} +2 -1
  52. package/dist/sketching.cjs +2 -2
  53. package/dist/sketching.js +2 -2
  54. package/dist/{solidBuilders-Jh5Bnm02.js → solidBuilders-Bc6kgqJ9.js} +2 -2
  55. package/dist/{solidBuilders-DINhvxLC.cjs → solidBuilders-CYEEZgiP.cjs} +2 -2
  56. package/dist/{surfaceBuilders-CD_9kc1m.js → surfaceBuilders-Bdn7iqv5.js} +2 -2
  57. package/dist/{surfaceBuilders-BCd-ugN2.cjs → surfaceBuilders-CXarnCh8.cjs} +2 -2
  58. package/dist/{topology-B15z3Ts4.cjs → topology-BS3_AnBF.cjs} +8 -8
  59. package/dist/{topology-DmQY6469.js → topology-CqhGW5sd.js} +8 -8
  60. package/dist/topology.cjs +6 -6
  61. package/dist/topology.js +6 -6
  62. package/package.json +9 -5
package/README.md CHANGED
@@ -4,7 +4,7 @@ CAD modeling for JavaScript. Build 3D geometry with code.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/brepjs)](https://www.npmjs.com/package/brepjs)
6
6
  [![CI](https://github.com/andymai/brepjs/actions/workflows/ci.yml/badge.svg)](https://github.com/andymai/brepjs/actions/workflows/ci.yml)
7
- [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](./LICENSE)
7
+ [![License](https://img.shields.io/badge/License-AGPL_3.0-blue.svg)](./LICENSE)
8
8
 
9
9
  **[Docs](https://andymai.github.io/brepjs/)** · **[Examples](./examples/)** · **[Cheat Sheet](./docs/cheat-sheet.md)** · **[Getting Started](./docs/getting-started.md)**
10
10
 
@@ -361,4 +361,4 @@ See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.
361
361
 
362
362
  ## License
363
363
 
364
- [Apache-2.0](./LICENSE)
364
+ [AGPL-3.0-only](./LICENSE)
package/dist/2d.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const Blueprint = require("./Blueprint-CFdLzoy5.cjs");
4
- const boolean2D = require("./boolean2D-C5tjWX5T.cjs");
3
+ const Blueprint = require("./Blueprint-CX2oh-NE.cjs");
4
+ const boolean2D = require("./boolean2D-G9edb4Pw.cjs");
5
5
  function reverseCurve(curve) {
6
6
  const cloned = curve.clone();
7
7
  cloned.reverse();
package/dist/2d.js CHANGED
@@ -1,6 +1,6 @@
1
- import { B as Blueprint } from "./Blueprint-DQ18yiAI.js";
2
- import { d, C } from "./Blueprint-DQ18yiAI.js";
3
- import { e, C as C2, f, l, g, n, k, q, o, p, r } from "./boolean2D-Dq3HF-Pd.js";
1
+ import { B as Blueprint } from "./Blueprint-DlfUXrh0.js";
2
+ import { d, C } from "./Blueprint-DlfUXrh0.js";
3
+ import { e, C as C2, f, l, g, n, k, q, o, p, r } from "./boolean2D-COkYlAPe.js";
4
4
  function reverseCurve(curve) {
5
5
  const cloned = curve.clone();
6
6
  cloned.reverse();
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  const vectors = require("./vectors-TlfO1hu2.cjs");
3
3
  const types = require("./types-CA_xrgDq.cjs");
4
- const shapeTypes = require("./shapeTypes-BzrjB5be.cjs");
5
- const faceFns = require("./faceFns-Bhlm333o.cjs");
6
- const curveFns = require("./curveFns-CeHbFVDc.cjs");
4
+ const shapeTypes = require("./shapeTypes-BQGbhdgi.cjs");
5
+ const faceFns = require("./faceFns-Cfvj4nxx.cjs");
6
+ const curveFns = require("./curveFns-BN9bWCIl.cjs");
7
7
  const errors = require("./errors-9fDehDNc.cjs");
8
- const helpers = require("./helpers-D3jdmQoR.cjs");
8
+ const helpers = require("./helpers-Cu_7Qo9J.cjs");
9
9
  const vecOps = require("./vecOps-CjRL1jau.cjs");
10
- const surfaceBuilders = require("./surfaceBuilders-BCd-ugN2.cjs");
10
+ const surfaceBuilders = require("./surfaceBuilders-CXarnCh8.cjs");
11
11
  const result = require("./result.cjs");
12
12
  function makePlane(plane, origin) {
13
13
  if (plane && typeof plane !== "string") {
@@ -1,12 +1,12 @@
1
1
  import { r as resolvePlane } from "./vectors-cec8p8NQ.js";
2
2
  import { a as toVec3 } from "./types-CWDdqcrq.js";
3
- import { B as getKernel, J as getKernel2D, K as registerForCleanup, L as unregisterFromCleanup, H as createEdge, G as createWire } from "./shapeTypes-Py3LEyDe.js";
4
- import { u as uvBounds, f as faceGeomType, e as faceCenter, h as uvCoordinates, c as cast } from "./faceFns-g5hzl_xe.js";
5
- import { g as getOrientation } from "./curveFns-GOcBuoCc.js";
3
+ import { B as getKernel, J as getKernel2D, K as registerForCleanup, L as unregisterFromCleanup, H as createEdge, G as createWire } from "./shapeTypes-ByN4-0Hp.js";
4
+ import { u as uvBounds, f as faceGeomType, e as faceCenter, h as uvCoordinates, c as cast } from "./faceFns-Dka8xvYk.js";
5
+ import { g as getOrientation } from "./curveFns-DRb_8jyd.js";
6
6
  import { o as ok, e as err, b as computationError, r as unwrap, y as validationError } from "./errors-B7kgv0cd.js";
7
- import { d as distance2d, s as samePoint, b as scalarMultiply2d, c as add2d, e as subtract2d, g as getSingleFace } from "./helpers-Vqsg_fss.js";
7
+ import { d as distance2d, s as samePoint, b as scalarMultiply2d, c as add2d, e as subtract2d, g as getSingleFace } from "./helpers-TIGqZBj7.js";
8
8
  import { R as RAD2DEG, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
9
- import { m as makeFace } from "./surfaceBuilders-CD_9kc1m.js";
9
+ import { m as makeFace } from "./surfaceBuilders-Bdn7iqv5.js";
10
10
  import { bug } from "./result.js";
11
11
  function makePlane(plane, origin) {
12
12
  if (plane && typeof plane !== "string") {
@@ -45,16 +45,16 @@ var __callDispose = (stack, error, hasError) => {
45
45
  };
46
46
  import { a as createPlane } from "./vectors-cec8p8NQ.js";
47
47
  import { o as ok, e as err, b as computationError, r as unwrap, g as isOk } from "./errors-B7kgv0cd.js";
48
- import { d as downcast, u as uvBounds, p as pointOnSurface, n as normalAt } from "./faceFns-g5hzl_xe.js";
48
+ import { d as downcast, u as uvBounds, p as pointOnSurface, n as normalAt } from "./faceFns-Dka8xvYk.js";
49
49
  import { a as toVec3 } from "./types-CWDdqcrq.js";
50
50
  import { n as vecScale, j as vecNormalize, b as vecCross, D as DEG2RAD, R as RAD2DEG } from "./vecOps-ZDdZWbwT.js";
51
- import { r as revolution, c as complexExtrude, t as twistExtrude, b as basicFaceExtrusion, g as genericSweep, l as loft } from "./loft-BGHICbBS.js";
52
- import { J as getKernel2D, I as createFace, G as createWire, B as getKernel, H as createEdge, D as DisposalScope } from "./shapeTypes-Py3LEyDe.js";
53
- import { d as curveStartPoint, c as curveTangentAt, e as curveIsClosed } from "./curveFns-GOcBuoCc.js";
54
- import { m as makeFace, l as makeNewFaceWithinFace, b as assembleWire, z as zip } from "./surfaceBuilders-CD_9kc1m.js";
51
+ import { r as revolution, c as complexExtrude, t as twistExtrude, b as basicFaceExtrusion, g as genericSweep, l as loft } from "./loft-DTFP5fVL.js";
52
+ import { J as getKernel2D, I as createFace, G as createWire, B as getKernel, H as createEdge, D as DisposalScope } from "./shapeTypes-ByN4-0Hp.js";
53
+ import { d as curveStartPoint, c as curveTangentAt, e as curveIsClosed } from "./curveFns-DRb_8jyd.js";
54
+ import { m as makeFace, l as makeNewFaceWithinFace, b as assembleWire, z as zip } from "./surfaceBuilders-Bdn7iqv5.js";
55
55
  import { bug } from "./result.js";
56
- import { s as samePoint$1, e as subtract2d, c as add2d, i as crossProduct2d, b as scalarMultiply2d, f as polarToCartesian, r as rotate2d, j as cartesianToPolar, d as distance2d, p as polarAngle2d, k as PRECISION_INTERSECTION } from "./helpers-Vqsg_fss.js";
57
- import { C as Curve2D, a as make2dSegmentCurve, j as approximateAsBSpline, n as normalize2d, b as make2dArcFromCenter, k as isPoint2D, g as make2dCircle, l as make2dThreePointArc, d as BoundingBox2d, v as viewbox, o as asSVG, B as Blueprint, p as make2dEllipseArc, q as make2dTangentArc, r as make2dBezierCurve, s as removeDuplicatePoints } from "./Blueprint-DQ18yiAI.js";
56
+ import { s as samePoint$1, e as subtract2d, c as add2d, i as crossProduct2d, b as scalarMultiply2d, f as polarToCartesian, r as rotate2d, j as cartesianToPolar, d as distance2d, p as polarAngle2d, k as PRECISION_INTERSECTION } from "./helpers-TIGqZBj7.js";
57
+ import { C as Curve2D, a as make2dSegmentCurve, j as approximateAsBSpline, n as normalize2d, b as make2dArcFromCenter, k as isPoint2D, g as make2dCircle, l as make2dThreePointArc, d as BoundingBox2d, v as viewbox, o as asSVG, B as Blueprint, p as make2dEllipseArc, q as make2dTangentArc, r as make2dBezierCurve, s as removeDuplicatePoints } from "./Blueprint-DlfUXrh0.js";
58
58
  const intersectCurves = (first, second, precision = 1e-9) => {
59
59
  if (first.boundingBox.isOut(second.boundingBox))
60
60
  return ok({ intersections: [], commonSegments: [], commonSegmentsPoints: [] });
@@ -46,16 +46,16 @@ var __callDispose = (stack, error, hasError) => {
46
46
  };
47
47
  const vectors = require("./vectors-TlfO1hu2.cjs");
48
48
  const errors = require("./errors-9fDehDNc.cjs");
49
- const faceFns = require("./faceFns-Bhlm333o.cjs");
49
+ const faceFns = require("./faceFns-Cfvj4nxx.cjs");
50
50
  const types = require("./types-CA_xrgDq.cjs");
51
51
  const vecOps = require("./vecOps-CjRL1jau.cjs");
52
- const loft = require("./loft-B3ZDn94G.cjs");
53
- const shapeTypes = require("./shapeTypes-BzrjB5be.cjs");
54
- const curveFns = require("./curveFns-CeHbFVDc.cjs");
55
- const surfaceBuilders = require("./surfaceBuilders-BCd-ugN2.cjs");
52
+ const loft = require("./loft-BDnb8toT.cjs");
53
+ const shapeTypes = require("./shapeTypes-BQGbhdgi.cjs");
54
+ const curveFns = require("./curveFns-BN9bWCIl.cjs");
55
+ const surfaceBuilders = require("./surfaceBuilders-CXarnCh8.cjs");
56
56
  const result = require("./result.cjs");
57
- const helpers = require("./helpers-D3jdmQoR.cjs");
58
- const Blueprint = require("./Blueprint-CFdLzoy5.cjs");
57
+ const helpers = require("./helpers-Cu_7Qo9J.cjs");
58
+ const Blueprint = require("./Blueprint-CX2oh-NE.cjs");
59
59
  const intersectCurves = (first, second, precision = 1e-9) => {
60
60
  if (first.boundingBox.isOut(second.boundingBox))
61
61
  return errors.ok({ intersections: [], commonSegments: [], commonSegmentsPoints: [] });
@@ -1,9 +1,9 @@
1
- import { B as getKernel, c as castShape, p as isShape3D } from "./shapeTypes-Py3LEyDe.js";
1
+ import { B as getKernel, c as castShape, p as isShape3D } from "./shapeTypes-ByN4-0Hp.js";
2
2
  import { o as ok, d as isErr, e as err, y as validationError, B as BrepErrorCode, p as typeCastError, k as kernelError } from "./errors-B7kgv0cd.js";
3
3
  import { r as resolvePlane } from "./vectors-cec8p8NQ.js";
4
4
  import { H as HASH_CODE_MAX, n as vecScale, v as vecAdd } from "./vecOps-ZDdZWbwT.js";
5
- import { a as getFaces, p as propagateOriginsFromEvolution, b as propagateOriginsByHash, g as getFaceOrigins, c as getWires, d as getEdges, e as getVertices } from "./shapeFns-smSl7yhL.js";
6
- import { m as makeFace } from "./surfaceBuilders-CD_9kc1m.js";
5
+ import { a as getFaces, p as propagateOriginsFromEvolution, b as propagateOriginsByHash, g as getFaceOrigins, c as getWires, d as getEdges, e as getVertices } from "./shapeFns-BP-fxfKw.js";
6
+ import { m as makeFace } from "./surfaceBuilders-Bdn7iqv5.js";
7
7
  const shapeTagStore = /* @__PURE__ */ new WeakMap();
8
8
  const tagMetadataStore = /* @__PURE__ */ new WeakMap();
9
9
  function hasFaceTags(shape) {
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
- const shapeTypes = require("./shapeTypes-BzrjB5be.cjs");
2
+ const shapeTypes = require("./shapeTypes-BQGbhdgi.cjs");
3
3
  const errors = require("./errors-9fDehDNc.cjs");
4
4
  const vectors = require("./vectors-TlfO1hu2.cjs");
5
5
  const vecOps = require("./vecOps-CjRL1jau.cjs");
6
- const shapeFns = require("./shapeFns-BHSGfqFS.cjs");
7
- const surfaceBuilders = require("./surfaceBuilders-BCd-ugN2.cjs");
6
+ const shapeFns = require("./shapeFns-ZbzAD8yC.cjs");
7
+ const surfaceBuilders = require("./surfaceBuilders-CXarnCh8.cjs");
8
8
  const shapeTagStore = /* @__PURE__ */ new WeakMap();
9
9
  const tagMetadataStore = /* @__PURE__ */ new WeakMap();
10
10
  function hasFaceTags(shape) {
package/dist/brepjs.cjs CHANGED
@@ -45,31 +45,31 @@ var __callDispose = (stack, error, hasError) => {
45
45
  return next();
46
46
  };
47
47
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
48
- const shapeTypes = require("./shapeTypes-BzrjB5be.cjs");
48
+ const shapeTypes = require("./shapeTypes-BQGbhdgi.cjs");
49
49
  const errors = require("./errors-9fDehDNc.cjs");
50
50
  const vecOps = require("./vecOps-CjRL1jau.cjs");
51
- const Blueprint = require("./Blueprint-CFdLzoy5.cjs");
52
- const loft$2 = require("./loft-B3ZDn94G.cjs");
53
- const operations = require("./operations-Cb4gWPwL.cjs");
54
- const boolean2D = require("./boolean2D-C5tjWX5T.cjs");
51
+ const Blueprint = require("./Blueprint-CX2oh-NE.cjs");
52
+ const loft$2 = require("./loft-BDnb8toT.cjs");
53
+ const operations = require("./operations-D4Q6JrTP.cjs");
54
+ const boolean2D = require("./boolean2D-G9edb4Pw.cjs");
55
55
  const _2d = require("./2d.cjs");
56
- const helpers = require("./helpers-D3jdmQoR.cjs");
56
+ const helpers = require("./helpers-Cu_7Qo9J.cjs");
57
57
  const io = require("./io.cjs");
58
- const drawFns = require("./drawFns-F5uDtd2v.cjs");
58
+ const drawFns = require("./drawFns-Br57GZWI.cjs");
59
59
  const types = require("./types-CA_xrgDq.cjs");
60
60
  const vectors = require("./vectors-TlfO1hu2.cjs");
61
- const shapeFns = require("./shapeFns-BHSGfqFS.cjs");
62
- const booleanFns = require("./booleanFns-PbcD1St_.cjs");
63
- const topology = require("./topology-B15z3Ts4.cjs");
64
- const curveFns = require("./curveFns-CeHbFVDc.cjs");
65
- const faceFns = require("./faceFns-Bhlm333o.cjs");
66
- const meshFns = require("./meshFns-rTBykpgO.cjs");
67
- const measurement = require("./measurement--jEL3ePF.cjs");
68
- const surfaceBuilders = require("./surfaceBuilders-BCd-ugN2.cjs");
61
+ const shapeFns = require("./shapeFns-ZbzAD8yC.cjs");
62
+ const booleanFns = require("./booleanFns-zdaV6L6c.cjs");
63
+ const topology = require("./topology-BS3_AnBF.cjs");
64
+ const curveFns = require("./curveFns-BN9bWCIl.cjs");
65
+ const faceFns = require("./faceFns-Cfvj4nxx.cjs");
66
+ const meshFns = require("./meshFns-xWim4bEU.cjs");
67
+ const measurement = require("./measurement-ypLLNq5y.cjs");
68
+ const surfaceBuilders = require("./surfaceBuilders-CXarnCh8.cjs");
69
69
  const query = require("./query.cjs");
70
- const solidBuilders = require("./solidBuilders-DINhvxLC.cjs");
70
+ const solidBuilders = require("./solidBuilders-CYEEZgiP.cjs");
71
71
  const result = require("./result.cjs");
72
- const cornerFinder = require("./cornerFinder-BphV9OLn.cjs");
72
+ const cornerFinder = require("./cornerFinder-NbeO5KWC.cjs");
73
73
  const worker = require("./worker.cjs");
74
74
  function supportsProjection(kernel) {
75
75
  return "projectShape" in kernel;
package/dist/brepjs.js CHANGED
@@ -43,45 +43,45 @@ var __callDispose = (stack, error, hasError) => {
43
43
  };
44
44
  return next();
45
45
  };
46
- import { c as castShape, D as DisposalScope, B as getKernel, k as isFace, q as isShell, r as isSolid, p as isShape3D, F as createSolid, G as createWire, j as isEdge, u as isWire } from "./shapeTypes-Py3LEyDe.js";
47
- import { M, N, O, a, C, H, I, b, d, P, E, g, Q, i, e, f, h, l, m, n, o, s, t, v, w, R, x, S, y, z, A } from "./shapeTypes-Py3LEyDe.js";
46
+ import { c as castShape, D as DisposalScope, B as getKernel, k as isFace, q as isShell, r as isSolid, p as isShape3D, F as createSolid, G as createWire, j as isEdge, u as isWire } from "./shapeTypes-ByN4-0Hp.js";
47
+ import { M, N, O, a, C, H, I, b, d, P, E, g, Q, i, e, f, h, l, m, n, o, s, t, v, w, R, x, S, y, z, A } from "./shapeTypes-ByN4-0Hp.js";
48
48
  import { o as ok, z as translateKernelError, e as err, p as typeCastError, q as queryError, y as validationError, B as BrepErrorCode, k as kernelError, i as ioError, d as isErr, r as unwrap } from "./errors-B7kgv0cd.js";
49
49
  import { O as O2, A as A2, a as a2, c, b as b2, f as f2, C as C2, g as g2, m as m2, h as h2, j, l as l2, D, E as E2, F, s as s2, G, H as H2, t as t2, n as n2, u, v as v2, w as w2, x as x2, I as I2 } from "./errors-B7kgv0cd.js";
50
50
  import { c as vecDistance, H as HASH_CODE_MAX, n as vecScale, j as vecNormalize, f as vecIsZero } from "./vecOps-ZDdZWbwT.js";
51
51
  import { D as D2, R as R2, v as v3, a as a3, b as b3, d as d2, e as e2, g as g3, h as h3, i as i2, k, l as l3, m as m3, o as o2 } from "./vecOps-ZDdZWbwT.js";
52
- import { B, d as d3, C as C3, t as t3 } from "./Blueprint-DQ18yiAI.js";
53
- import { b as b4, g as g4, r } from "./loft-BGHICbBS.js";
54
- import { w as walkAssembly, e as extrude$1, r as revolve$1, s as sweep, c as circularPattern, l as linearPattern } from "./operations-D3BtYsAB.js";
55
- import { a as a4, b as b5, d as d4, f as f3, g as g5, h as h4, i as i3, j as j2, k as k2, m as m4, n as n3, o as o3, p, q, t as t4, u as u2, v as v4, x as x3, y as y2, z as z2, A as A3, B as B2, C as C4, D as D3, E as E3, F as F2, G as G2 } from "./operations-D3BtYsAB.js";
56
- import { B as B3, a as a5, e as e3, C as C5, F as F3, S as S2, f as f4, l as l4, g as g6, n as n4, k as k3, q as q2, o as o4, p as p2, r as r2 } from "./boolean2D-Dq3HF-Pd.js";
52
+ import { B, d as d3, C as C3, t as t3 } from "./Blueprint-DlfUXrh0.js";
53
+ import { b as b4, g as g4, r } from "./loft-DTFP5fVL.js";
54
+ import { w as walkAssembly, e as extrude$1, r as revolve$1, s as sweep, c as circularPattern, l as linearPattern } from "./operations-2LVG2jh1.js";
55
+ import { a as a4, b as b5, d as d4, f as f3, g as g5, h as h4, i as i3, j as j2, k as k2, m as m4, n as n3, o as o3, p, q, t as t4, u as u2, v as v4, x as x3, y as y2, z as z2, A as A3, B as B2, C as C4, D as D3, E as E3, F as F2, G as G2 } from "./operations-2LVG2jh1.js";
56
+ import { B as B3, a as a5, e as e3, C as C5, F as F3, S as S2, f as f4, l as l4, g as g6, n as n4, k as k3, q as q2, o as o4, p as p2, r as r2 } from "./boolean2D-COkYlAPe.js";
57
57
  import { createBlueprint, curve2dBoundingBox, curve2dDistanceFrom, curve2dFirstPoint, curve2dIsOnCurve, curve2dLastPoint, curve2dParameter, curve2dSplitAt, curve2dTangentAt, getBounds2D, getOrientation2D, isInside2D, mirror2D, reverseCurve, rotate2D, scale2D, sketch2DOnFace, sketch2DOnPlane, stretch2D, toSVGPathD, translate2D } from "./2d.js";
58
- import { l as createTypedFinder, m as faceFinder } from "./helpers-Vqsg_fss.js";
59
- import { g as g7 } from "./helpers-Vqsg_fss.js";
58
+ import { l as createTypedFinder, m as faceFinder } from "./helpers-TIGqZBj7.js";
59
+ import { g as g7 } from "./helpers-TIGqZBj7.js";
60
60
  import { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportOBJ, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD } from "./io.js";
61
- import { C as C6, D as D4, a as a6, S as S3, b as b6, X, Y, c as c2, d as d5, e as e4, f as f5, Z, g as g8, h as h5, i as i4, j as j3, k as k4, l as l5, m as m5, n as n5, o as o5, p as p3, q as q3, r as r3, s as s3, t as t5, u as u3, v as v5, w as w3, x as x4, y as y3, z as z3, _, $, a0, a1, A as A4, a2 as a22, B as B4, E as E4, a3 as a32, F as F4, G as G3, H as H3, I as I3, J, K, L, M as M2, N as N2, O as O3, P as P2, Q as Q2, R as R3, T, U, a4 as a42, V, a5 as a52, a6 as a62, W } from "./drawFns-7fN_tn1I.js";
61
+ import { C as C6, D as D4, a as a6, S as S3, b as b6, X, Y, c as c2, d as d5, e as e4, f as f5, Z, g as g8, h as h5, i as i4, j as j3, k as k4, l as l5, m as m5, n as n5, o as o5, p as p3, q as q3, r as r3, s as s3, t as t5, u as u3, v as v5, w as w3, x as x4, y as y3, z as z3, _, $, a0, a1, A as A4, a2 as a22, B as B4, E as E4, a3 as a32, F as F4, G as G3, H as H3, I as I3, J, K, L, M as M2, N as N2, O as O3, P as P2, Q as Q2, R as R3, T, U, a4 as a42, V, a5 as a52, a6 as a62, W } from "./drawFns-DsB3t0zE.js";
62
62
  import { a as toVec3 } from "./types-CWDdqcrq.js";
63
63
  import { r as r4, t as t6 } from "./types-CWDdqcrq.js";
64
64
  import { c as c3, a as a7, p as p4, r as r5, t as t7 } from "./vectors-cec8p8NQ.js";
65
- import { v as vertexPosition, a as getFaces, e as getVertices, d as getEdges, h as getBounds, p as propagateOriginsFromEvolution, g as getFaceOrigins, j as applyMatrix$1, k as clone$1, l as describe$1, m as isEmpty$1, n as mirror$1, r as rotate$1, s as scale$1, o as simplify$1, t as toBREP$1, q as transformCopy$1, u as translate$1, c as getWires } from "./shapeFns-smSl7yhL.js";
66
- import { w as w4, f as f6, x as x5, i as i5, y as y4, z as z4, A as A5, B as B5, C as C7, D as D5 } from "./shapeFns-smSl7yhL.js";
67
- import { p as propagateFaceTagsFromEvolution, a as propagateColorsFromEvolution, h as hasFaceTags, b as hasColorMetadata, c as cut$1, f as fuse$1, i as intersect$1, s as section$1, d as sectionToFace$1, e as slice$1, g as split$1, j as fuseAll, k as cutAll } from "./booleanFns-DdU6eLxI.js";
68
- import { l as l6, m as m6, n as n6, o as o6, q as q4, r as r6, t as t8, u as u4, v as v6 } from "./booleanFns-DdU6eLxI.js";
69
- import { c as chamferDistAngle, h as heal$1, i as isValid$1 } from "./topology-DmQY6469.js";
70
- import { a as a8, b as b7, d as d6, e as e5, f as f7, g as g9, j as j4, k as k5, l as l7, m as m7, n as n7, o as o7, p as p5, q as q5, r as r7, s as s4, t as t9, u as u5, v as v7, w as w5, x as x6, y as y5, z as z5, A as A6, B as B6, C as C8, D as D6, E as E5, F as F5, G as G4, H as H4, I as I4, J as J2, K as K2, L as L2, M as M3, N as N3, O as O4, P as P3, Q as Q3 } from "./topology-DmQY6469.js";
71
- import { e as curveIsClosed, d as curveStartPoint, c as curveTangentAt, h as curvePointAt, a as curveEndPoint, i as curveLength } from "./curveFns-GOcBuoCc.js";
72
- import { j as j5, k as k6, l as l8, f as f8, b as b8, g as g10, m as m8, o as o8 } from "./curveFns-GOcBuoCc.js";
73
- import { i as iterTopo, e as faceCenter, n as normalAt, j as fromBREP$1, k as innerWires, o as outerWire, g as getSurfaceType } from "./faceFns-g5hzl_xe.js";
74
- import { l as l9, c as c4, m as m9, d as d7, f as f9, q as q6, r as r8, s as s5, p as p6, t as t10, v as v8, u as u6, h as h6 } from "./faceFns-g5hzl_xe.js";
75
- import { m as mesh$1, a as meshEdges$1 } from "./meshFns-bHjCcOZp.js";
76
- import { c as c5, b as b9, e as e6, d as d8, f as f10 } from "./meshFns-bHjCcOZp.js";
77
- import { m as measureArea, a as measureSurfaceProps, b as measureVolumeProps, c as measureVolume } from "./measurement-Ce4oE8Fg.js";
78
- import { d as d9, e as e7, f as f11, g as g11, h as h7, i as i6 } from "./measurement-Ce4oE8Fg.js";
79
- import { m as makeFace } from "./surfaceBuilders-CD_9kc1m.js";
80
- import { n as n8 } from "./surfaceBuilders-CD_9kc1m.js";
65
+ import { v as vertexPosition, a as getFaces, e as getVertices, d as getEdges, h as getBounds, p as propagateOriginsFromEvolution, g as getFaceOrigins, j as applyMatrix$1, k as clone$1, l as describe$1, m as isEmpty$1, n as mirror$1, r as rotate$1, s as scale$1, o as simplify$1, t as toBREP$1, q as transformCopy$1, u as translate$1, c as getWires } from "./shapeFns-BP-fxfKw.js";
66
+ import { w as w4, f as f6, x as x5, i as i5, y as y4, z as z4, A as A5, B as B5, C as C7, D as D5 } from "./shapeFns-BP-fxfKw.js";
67
+ import { p as propagateFaceTagsFromEvolution, a as propagateColorsFromEvolution, h as hasFaceTags, b as hasColorMetadata, c as cut$1, f as fuse$1, i as intersect$1, s as section$1, d as sectionToFace$1, e as slice$1, g as split$1, j as fuseAll, k as cutAll } from "./booleanFns-5MroD4TZ.js";
68
+ import { l as l6, m as m6, n as n6, o as o6, q as q4, r as r6, t as t8, u as u4, v as v6 } from "./booleanFns-5MroD4TZ.js";
69
+ import { c as chamferDistAngle, h as heal$1, i as isValid$1 } from "./topology-CqhGW5sd.js";
70
+ import { a as a8, b as b7, d as d6, e as e5, f as f7, g as g9, j as j4, k as k5, l as l7, m as m7, n as n7, o as o7, p as p5, q as q5, r as r7, s as s4, t as t9, u as u5, v as v7, w as w5, x as x6, y as y5, z as z5, A as A6, B as B6, C as C8, D as D6, E as E5, F as F5, G as G4, H as H4, I as I4, J as J2, K as K2, L as L2, M as M3, N as N3, O as O4, P as P3, Q as Q3 } from "./topology-CqhGW5sd.js";
71
+ import { e as curveIsClosed, d as curveStartPoint, c as curveTangentAt, h as curvePointAt, a as curveEndPoint, i as curveLength } from "./curveFns-DRb_8jyd.js";
72
+ import { j as j5, k as k6, l as l8, f as f8, b as b8, g as g10, m as m8, o as o8 } from "./curveFns-DRb_8jyd.js";
73
+ import { i as iterTopo, e as faceCenter, n as normalAt, j as fromBREP$1, k as innerWires, o as outerWire, g as getSurfaceType } from "./faceFns-Dka8xvYk.js";
74
+ import { l as l9, c as c4, m as m9, d as d7, f as f9, q as q6, r as r8, s as s5, p as p6, t as t10, v as v8, u as u6, h as h6 } from "./faceFns-Dka8xvYk.js";
75
+ import { m as mesh$1, a as meshEdges$1 } from "./meshFns-B_yFbSte.js";
76
+ import { c as c5, b as b9, e as e6, d as d8, f as f10 } from "./meshFns-B_yFbSte.js";
77
+ import { m as measureArea, a as measureSurfaceProps, b as measureVolumeProps, c as measureVolume } from "./measurement-9v764TRE.js";
78
+ import { d as d9, e as e7, f as f11, g as g11, h as h7, i as i6 } from "./measurement-9v764TRE.js";
79
+ import { m as makeFace } from "./surfaceBuilders-Bdn7iqv5.js";
80
+ import { n as n8 } from "./surfaceBuilders-Bdn7iqv5.js";
81
81
  import { edgeFinder } from "./query.js";
82
- import { c as makeCylinder } from "./solidBuilders-Jh5Bnm02.js";
82
+ import { c as makeCylinder } from "./solidBuilders-Bc6kgqJ9.js";
83
83
  import { BrepBugError, bug } from "./result.js";
84
- import { c as c6 } from "./cornerFinder-Dv3C7Yen.js";
84
+ import { c as c6 } from "./cornerFinder-CGzCuJy3.js";
85
85
  import { createOperationRegistry, createTaskQueue, createWorkerClient, createWorkerHandler, dequeueTask, enqueueTask, isDisposeRequest, isErrorResponse, isInitRequest, isOperationRequest, isQueueEmpty, isSuccessResponse, pendingCount, registerHandler, rejectAll } from "./worker.js";
86
86
  function supportsProjection(kernel) {
87
87
  return "projectShape" in kernel;
@@ -1 +1 @@
1
- {"version":3,"file":"shapeTypes.d.ts","sourceRoot":"","sources":["../../src/core/shapeTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAElE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAOjD,2EAA2E;AAC3E,MAAM,WAAW,SAAS;IACxB,MAAM,IAAI,IAAI,CAAC;IACf,KAAK,CAAC,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IAC7B,UAAU,IAAI,OAAO,CAAC;IACtB,MAAM,IAAI,MAAM,CAAC;IACjB,QAAQ,IAAI,OAAO,CAAC;IACpB,cAAc,IAAI,MAAM,CAAC;IACzB,aAAa,IAAI,MAAM,CAAC;IAExB,OAAO,CAAC,IAAI,GAAG,CAAC;IAChB,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;CACxD;AAMD,sDAAsD;AACtD,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC;AAEpC,0EAA0E;AAC1E,OAAO,CAAC,MAAM,KAAK,EAAE,OAAO,MAAM,CAAC;AAMnC,+CAA+C;AAC/C,OAAO,CAAC,MAAM,QAAQ,EAAE,OAAO,MAAM,CAAC;AACtC,6DAA6D;AAC7D,OAAO,CAAC,MAAM,UAAU,EAAE,OAA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,UAAU,CAE9D;AAMD;;;;;;;;;;;;GAYG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAG5F;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAGhG;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,cAAc,CAAC,aAAa,CAAC,CAGzE;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,cAAc,CAAC,UAAU,CAAC,CAGnE;AAED;;;GAGG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,IACxB;IAAE,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAA;CAAE,GAC3C;IAAE,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAMvD;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,SAAS,GAAG,IAAI,EAAE,OAAO,EAAE,WAAW,GAAG,QAAQ,CAAC,CAAC,CAAC,CAcvF;AAED,gDAAgD;AAChD,wBAAgB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,QAAQ,CAE1D"}
package/dist/core.cjs CHANGED
@@ -4,7 +4,7 @@ const types = require("./types-CA_xrgDq.cjs");
4
4
  const vecOps = require("./vecOps-CjRL1jau.cjs");
5
5
  const errors = require("./errors-9fDehDNc.cjs");
6
6
  const vectors = require("./vectors-TlfO1hu2.cjs");
7
- const shapeTypes = require("./shapeTypes-BzrjB5be.cjs");
7
+ const shapeTypes = require("./shapeTypes-BQGbhdgi.cjs");
8
8
  const result = require("./result.cjs");
9
9
  exports.resolveDirection = types.resolveDirection;
10
10
  exports.toVec2 = types.toVec2;
package/dist/core.js CHANGED
@@ -2,7 +2,7 @@ import { r, t, a } from "./types-CWDdqcrq.js";
2
2
  import { D, H, R, v, a as a2, b, c, d, e, f, g, h, i, j, k, l, m, n, o } from "./vecOps-ZDdZWbwT.js";
3
3
  import { O, a as a3, c as c2, b as b2, e as e2, f as f2, i as i2, d as d2, g as g2, k as k2, m as m2, h as h2, j as j2, l as l2, o as o2, q, s, t as t2, n as n2, p, u, r as r2, v as v2, w, x, y } from "./errors-B7kgv0cd.js";
4
4
  import { c as c3, a as a4, p as p2, r as r3, t as t3 } from "./vectors-cec8p8NQ.js";
5
- import { D as D2, c as c4, a as a5, b as b3, d as d3, g as g3, i as i3, e as e3, f as f3, h as h3, j as j3, k as k3, l as l3, m as m3, n as n3, o as o3, p as p3, q as q2, r as r4, s as s2, t as t4, u as u2, v as v3, w as w2, x as x2, y as y2, z, A } from "./shapeTypes-Py3LEyDe.js";
5
+ import { D as D2, c as c4, a as a5, b as b3, d as d3, g as g3, i as i3, e as e3, f as f3, h as h3, j as j3, k as k3, l as l3, m as m3, n as n3, o as o3, p as p3, q as q2, r as r4, s as s2, t as t4, u as u2, v as v3, w as w2, x as x2, y as y2, z, A } from "./shapeTypes-ByN4-0Hp.js";
6
6
  import { BrepBugError, bug } from "./result.js";
7
7
  export {
8
8
  BrepBugError,
@@ -1,5 +1,5 @@
1
1
  import { D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
2
- import { a as angle2d, s as samePoint, d as distance2d } from "./helpers-Vqsg_fss.js";
2
+ import { a as angle2d, s as samePoint, d as distance2d } from "./helpers-TIGqZBj7.js";
3
3
  const PI_2 = 2 * Math.PI;
4
4
  function positiveHalfAngle(angle) {
5
5
  const limitedAngle = angle % PI_2;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const vecOps = require("./vecOps-CjRL1jau.cjs");
3
- const helpers = require("./helpers-D3jdmQoR.cjs");
3
+ const helpers = require("./helpers-Cu_7Qo9J.cjs");
4
4
  const PI_2 = 2 * Math.PI;
5
5
  function positiveHalfAngle(angle) {
6
6
  const limitedAngle = angle % PI_2;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const shapeTypes = require("./shapeTypes-BzrjB5be.cjs");
2
+ const shapeTypes = require("./shapeTypes-BQGbhdgi.cjs");
3
3
  const errors = require("./errors-9fDehDNc.cjs");
4
4
  function getCurveType(shape) {
5
5
  return shapeTypes.getKernel().curveType(shape.wrapped);
@@ -1,4 +1,4 @@
1
- import { B as getKernel, c as castShape, j as isEdge, u as isWire } from "./shapeTypes-Py3LEyDe.js";
1
+ import { B as getKernel, c as castShape, j as isEdge, u as isWire } from "./shapeTypes-ByN4-0Hp.js";
2
2
  import { e as err, p as typeCastError, o as ok } from "./errors-B7kgv0cd.js";
3
3
  function getCurveType(shape) {
4
4
  return getKernel().curveType(shape.wrapped);
@@ -48,19 +48,19 @@ const errors = require("./errors-9fDehDNc.cjs");
48
48
  const vectors = require("./vectors-TlfO1hu2.cjs");
49
49
  const types = require("./types-CA_xrgDq.cjs");
50
50
  const vecOps = require("./vecOps-CjRL1jau.cjs");
51
- const boolean2D = require("./boolean2D-C5tjWX5T.cjs");
52
- const faceFns = require("./faceFns-Bhlm333o.cjs");
53
- const curveFns = require("./curveFns-CeHbFVDc.cjs");
54
- const surfaceBuilders = require("./surfaceBuilders-BCd-ugN2.cjs");
55
- const shapeTypes = require("./shapeTypes-BzrjB5be.cjs");
56
- const Blueprint = require("./Blueprint-CFdLzoy5.cjs");
51
+ const boolean2D = require("./boolean2D-G9edb4Pw.cjs");
52
+ const faceFns = require("./faceFns-Cfvj4nxx.cjs");
53
+ const curveFns = require("./curveFns-BN9bWCIl.cjs");
54
+ const surfaceBuilders = require("./surfaceBuilders-CXarnCh8.cjs");
55
+ const shapeTypes = require("./shapeTypes-BQGbhdgi.cjs");
56
+ const Blueprint = require("./Blueprint-CX2oh-NE.cjs");
57
57
  const result = require("./result.cjs");
58
- const helpers = require("./helpers-D3jdmQoR.cjs");
59
- const shapeFns = require("./shapeFns-BHSGfqFS.cjs");
60
- const solidBuilders = require("./solidBuilders-DINhvxLC.cjs");
61
- const loft = require("./loft-B3ZDn94G.cjs");
58
+ const helpers = require("./helpers-Cu_7Qo9J.cjs");
59
+ const shapeFns = require("./shapeFns-ZbzAD8yC.cjs");
60
+ const solidBuilders = require("./solidBuilders-CYEEZgiP.cjs");
61
+ const loft = require("./loft-BDnb8toT.cjs");
62
62
  const opentype = require("opentype.js");
63
- const cornerFinder = require("./cornerFinder-BphV9OLn.cjs");
63
+ const cornerFinder = require("./cornerFinder-NbeO5KWC.cjs");
64
64
  const stitchCurves = (curves, precision = 1e-7) => {
65
65
  const startPoints = new boolean2D.Flatbush(curves.length);
66
66
  curves.forEach((c) => {
@@ -47,19 +47,19 @@ import { r as unwrap, g as isOk, e as err, y as validationError, o as ok } from
47
47
  import { r as resolvePlane, b as planeToWorld, d as planeToLocal } from "./vectors-cec8p8NQ.js";
48
48
  import { a as toVec3 } from "./types-CWDdqcrq.js";
49
49
  import { n as vecScale, j as vecNormalize, v as vecAdd, o as vecSub, b as vecCross, m as vecRotate, R as RAD2DEG, g as vecLength, e as vecEquals, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
50
- import { b as Flatbush, c as convertSvgEllipseParams, d as defaultsSplineOptions, S as Sketch, r as roundedRectangleBlueprint, e as Blueprints, C as CompoundBlueprint, f as cut2D, i as intersectCurves, g as fuse2D, m as make2dOffset, h as filletCurves, j as chamferCurves, o as organiseBlueprints, a as BlueprintSketcher, k as intersect2D, B as BaseSketcher2d, p as polysidesBlueprint } from "./boolean2D-Dq3HF-Pd.js";
51
- import { d as downcast, c as cast, e as faceCenter, n as normalAt, o as outerWire } from "./faceFns-g5hzl_xe.js";
52
- import { c as curveTangentAt, a as curveEndPoint, f as flipOrientation, b as getCurveType, o as offsetWire2D } from "./curveFns-GOcBuoCc.js";
53
- import { a as makeLine, d as makeThreePointArc, e as makeTangentArc, f as makeEllipseArc, g as makeBezierCurve, b as assembleWire, h as addHolesInFace, m as makeFace, i as makeCircle, j as makeEllipse, c as makeHelix, k as makeBSplineApproximation } from "./surfaceBuilders-CD_9kc1m.js";
54
- import { D as DisposalScope, B as getKernel, G as createWire, I as createFace, k as isFace, c as castShape } from "./shapeTypes-Py3LEyDe.js";
55
- import { m as mirror, B as Blueprint, C as Curve2D, a as make2dSegmentCurve, b as make2dArcFromCenter, c as approximateAsSvgCompatibleCurve, d as BoundingBox2d, e as edgeToCurve, f as make2dInerpolatedBSplineCurve, g as make2dCircle, h as make2dEllipse, i as deserializeCurve2D } from "./Blueprint-DQ18yiAI.js";
50
+ import { b as Flatbush, c as convertSvgEllipseParams, d as defaultsSplineOptions, S as Sketch, r as roundedRectangleBlueprint, e as Blueprints, C as CompoundBlueprint, f as cut2D, i as intersectCurves, g as fuse2D, m as make2dOffset, h as filletCurves, j as chamferCurves, o as organiseBlueprints, a as BlueprintSketcher, k as intersect2D, B as BaseSketcher2d, p as polysidesBlueprint } from "./boolean2D-COkYlAPe.js";
51
+ import { d as downcast, c as cast, e as faceCenter, n as normalAt, o as outerWire } from "./faceFns-Dka8xvYk.js";
52
+ import { c as curveTangentAt, a as curveEndPoint, f as flipOrientation, b as getCurveType, o as offsetWire2D } from "./curveFns-DRb_8jyd.js";
53
+ import { a as makeLine, d as makeThreePointArc, e as makeTangentArc, f as makeEllipseArc, g as makeBezierCurve, b as assembleWire, h as addHolesInFace, m as makeFace, i as makeCircle, j as makeEllipse, c as makeHelix, k as makeBSplineApproximation } from "./surfaceBuilders-Bdn7iqv5.js";
54
+ import { D as DisposalScope, B as getKernel, G as createWire, I as createFace, k as isFace, c as castShape } from "./shapeTypes-ByN4-0Hp.js";
55
+ import { m as mirror, B as Blueprint, C as Curve2D, a as make2dSegmentCurve, b as make2dArcFromCenter, c as approximateAsSvgCompatibleCurve, d as BoundingBox2d, e as edgeToCurve, f as make2dInerpolatedBSplineCurve, g as make2dCircle, h as make2dEllipse, i as deserializeCurve2D } from "./Blueprint-DlfUXrh0.js";
56
56
  import { bug } from "./result.js";
57
- import { d as distance2d, p as polarAngle2d, f as polarToCartesian, P as PRECISION_OFFSET, h as squareDistance2d, s as samePoint$1, e as subtract2d, c as add2d } from "./helpers-Vqsg_fss.js";
58
- import { d as getEdges } from "./shapeFns-smSl7yhL.js";
59
- import { a as makeCompound, b as makeSolid } from "./solidBuilders-Jh5Bnm02.js";
60
- import { b as basicFaceExtrusion, r as revolution, c as complexExtrude, t as twistExtrude } from "./loft-BGHICbBS.js";
57
+ import { d as distance2d, p as polarAngle2d, f as polarToCartesian, P as PRECISION_OFFSET, h as squareDistance2d, s as samePoint$1, e as subtract2d, c as add2d } from "./helpers-TIGqZBj7.js";
58
+ import { d as getEdges } from "./shapeFns-BP-fxfKw.js";
59
+ import { a as makeCompound, b as makeSolid } from "./solidBuilders-Bc6kgqJ9.js";
60
+ import { b as basicFaceExtrusion, r as revolution, c as complexExtrude, t as twistExtrude } from "./loft-DTFP5fVL.js";
61
61
  import opentype from "opentype.js";
62
- import { c as cornerFinder } from "./cornerFinder-Dv3C7Yen.js";
62
+ import { c as cornerFinder } from "./cornerFinder-CGzCuJy3.js";
63
63
  const stitchCurves = (curves, precision = 1e-7) => {
64
64
  const startPoints = new Flatbush(curves.length);
65
65
  curves.forEach((c) => {
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const shapeTypes = require("./shapeTypes-BzrjB5be.cjs");
2
+ const shapeTypes = require("./shapeTypes-BQGbhdgi.cjs");
3
3
  const types = require("./types-CA_xrgDq.cjs");
4
4
  const errors = require("./errors-9fDehDNc.cjs");
5
5
  const TOPO_ENUM = {
@@ -1,4 +1,4 @@
1
- import { B as getKernel, c as castShape, p as isShape3D$1, u as isWire$1 } from "./shapeTypes-Py3LEyDe.js";
1
+ import { B as getKernel, c as castShape, p as isShape3D$1, u as isWire$1 } from "./shapeTypes-ByN4-0Hp.js";
2
2
  import { a as toVec3 } from "./types-CWDdqcrq.js";
3
3
  import { e as err, p as typeCastError, o as ok, r as unwrap } from "./errors-B7kgv0cd.js";
4
4
  const TOPO_ENUM = {
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
- const shapeTypes = require("./shapeTypes-BzrjB5be.cjs");
2
+ const shapeTypes = require("./shapeTypes-BQGbhdgi.cjs");
3
3
  const errors = require("./errors-9fDehDNc.cjs");
4
4
  const vecOps = require("./vecOps-CjRL1jau.cjs");
5
- const faceFns = require("./faceFns-Bhlm333o.cjs");
6
- const measurement = require("./measurement--jEL3ePF.cjs");
7
- const shapeFns = require("./shapeFns-BHSGfqFS.cjs");
5
+ const faceFns = require("./faceFns-Cfvj4nxx.cjs");
6
+ const measurement = require("./measurement-ypLLNq5y.cjs");
7
+ const shapeFns = require("./shapeFns-ZbzAD8yC.cjs");
8
8
  const PRECISION_INTERSECTION = 1e-9;
9
9
  const PRECISION_OFFSET = 1e-8;
10
10
  const PRECISION_POINT = 1e-6;
@@ -1,9 +1,9 @@
1
- import { c as castShape, B as getKernel, k as isFace } from "./shapeTypes-Py3LEyDe.js";
1
+ import { c as castShape, B as getKernel, k as isFace } from "./shapeTypes-ByN4-0Hp.js";
2
2
  import { r as unwrap, e as err, q as queryError, o as ok } from "./errors-B7kgv0cd.js";
3
3
  import { j as vecNormalize, d as vecDot, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
4
- import { i as iterTopo, d as downcast, g as getSurfaceType, n as normalAt } from "./faceFns-g5hzl_xe.js";
5
- import { m as measureArea } from "./measurement-Ce4oE8Fg.js";
6
- import { f as getHashCode, i as isSameShape } from "./shapeFns-smSl7yhL.js";
4
+ import { i as iterTopo, d as downcast, g as getSurfaceType, n as normalAt } from "./faceFns-Dka8xvYk.js";
5
+ import { m as measureArea } from "./measurement-9v764TRE.js";
6
+ import { f as getHashCode, i as isSameShape } from "./shapeFns-BP-fxfKw.js";
7
7
  const PRECISION_INTERSECTION = 1e-9;
8
8
  const PRECISION_OFFSET = 1e-8;
9
9
  const PRECISION_POINT = 1e-6;
package/dist/io.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const shapeTypes = require("./shapeTypes-BzrjB5be.cjs");
3
+ const shapeTypes = require("./shapeTypes-BQGbhdgi.cjs");
4
4
  const errors = require("./errors-9fDehDNc.cjs");
5
- const meshFns = require("./meshFns-rTBykpgO.cjs");
6
- const Blueprint = require("./Blueprint-CFdLzoy5.cjs");
5
+ const meshFns = require("./meshFns-xWim4bEU.cjs");
6
+ const Blueprint = require("./Blueprint-CX2oh-NE.cjs");
7
7
  function vec3At(arr, i) {
8
8
  const off = i * 3;
9
9
  return [arr[off], arr[off + 1], arr[off + 2]];
package/dist/io.js CHANGED
@@ -1,7 +1,7 @@
1
- import { B as getKernel, c as castShape } from "./shapeTypes-Py3LEyDe.js";
1
+ import { B as getKernel, c as castShape } from "./shapeTypes-ByN4-0Hp.js";
2
2
  import { e as err, i as ioError, o as ok } from "./errors-B7kgv0cd.js";
3
- import { e, d, f } from "./meshFns-bHjCcOZp.js";
4
- import { B as Blueprint, a as make2dSegmentCurve, l as make2dThreePointArc, r as make2dBezierCurve } from "./Blueprint-DQ18yiAI.js";
3
+ import { e, d, f } from "./meshFns-B_yFbSte.js";
4
+ import { B as Blueprint, a as make2dSegmentCurve, l as make2dThreePointArc, r as make2dBezierCurve } from "./Blueprint-DlfUXrh0.js";
5
5
  function vec3At(arr, i) {
6
6
  const off = i * 3;
7
7
  return [arr[off], arr[off + 1], arr[off + 2]];
@@ -78,9 +78,9 @@ export declare class BrepkitAdapter implements KernelAdapter {
78
78
  fillet(shape: KernelShape, edges: KernelShape[], radius: number | [number, number] | ((edge: KernelShape) => number | [number, number])): KernelShape;
79
79
  chamfer(shape: KernelShape, edges: KernelShape[], distance: number | [number, number] | ((edge: KernelShape) => number | [number, number])): KernelShape;
80
80
  chamferDistAngle(shape: KernelShape, edges: KernelShape[], distance: number, angleDeg: number): KernelShape;
81
- shell(shape: KernelShape, faces: KernelShape[], thickness: number, _tolerance?: number): KernelShape;
81
+ shell(shape: KernelShape, faces: KernelShape[], thickness: number, tolerance?: number): KernelShape;
82
82
  thicken(shape: KernelShape, thickness: number): KernelShape;
83
- offset(shape: KernelShape, distance: number, _tolerance?: number): KernelShape;
83
+ offset(shape: KernelShape, distance: number, tolerance?: number): KernelShape;
84
84
  transform(shape: KernelShape, trsf: KernelType): KernelShape;
85
85
  translate(shape: KernelShape, x: number, y: number, z: number): KernelShape;
86
86
  rotate(shape: KernelShape, angle: number, axis?: [number, number, number], center?: [number, number, number]): KernelShape;
@@ -140,7 +140,7 @@ export declare class BrepkitAdapter implements KernelAdapter {
140
140
  thickenWithHistory(shape: KernelShape, thickness: number, inputFaceHashes: number[], hashUpperBound: number): OperationResult;
141
141
  offsetWithHistory(shape: KernelShape, distance: number, inputFaceHashes: number[], hashUpperBound: number, tolerance?: number): OperationResult;
142
142
  mesh(shape: KernelShape, options: MeshOptions): KernelMeshResult;
143
- meshEdges(shape: KernelShape, tolerance: number, _angularTolerance: number): KernelEdgeMeshResult;
143
+ meshEdges(shape: KernelShape, tolerance: number, angularTolerance: number): KernelEdgeMeshResult;
144
144
  exportSTEP(shapes: KernelShape[]): string;
145
145
  exportSTL(shape: KernelShape, binary?: boolean): string | ArrayBuffer;
146
146
  importSTEP(data: string | ArrayBuffer): KernelShape[];
@@ -193,14 +193,15 @@ export declare class BrepkitAdapter implements KernelAdapter {
193
193
  curveType(shape: KernelShape): string;
194
194
  simplify(shape: KernelShape): KernelShape;
195
195
  isValid(shape: KernelShape): boolean;
196
+ isValidStrict(shape: KernelShape): boolean;
196
197
  sew(shapes: KernelShape[], tolerance?: number): KernelShape;
197
198
  healSolid(shape: KernelShape): KernelShape | null;
198
199
  healFace(shape: KernelShape): KernelShape;
199
200
  healWire(wire: KernelShape, _face?: KernelShape): KernelShape;
200
201
  offsetWire2D(wire: KernelShape, offset: number, _joinType?: number | 'arc' | 'intersection' | 'tangent'): KernelShape;
201
202
  distance(shape1: KernelShape, shape2: KernelShape): DistanceResult;
202
- classifyPointOnFace(face: KernelShape, u: number, v: number, _tolerance?: number): 'in' | 'on' | 'out';
203
- interpolatePoints(points: [number, number, number][], _options?: {
203
+ classifyPointOnFace(face: KernelShape, u: number, v: number, tolerance?: number): 'in' | 'on' | 'out';
204
+ interpolatePoints(points: [number, number, number][], options?: {
204
205
  periodic?: boolean;
205
206
  tolerance?: number;
206
207
  }): KernelShape;