brepjs 9.3.10 → 9.4.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.
- package/dist/2d.cjs +2 -2
- package/dist/2d.js +3 -3
- package/dist/{Blueprint-DBFQJ5ME.js → Blueprint-Bx9F-b3M.js} +5 -5
- package/dist/{Blueprint-CYDtiBRw.cjs → Blueprint-CKGR_t7l.cjs} +5 -5
- package/dist/{boolean2D-FaadcaJX.cjs → boolean2D-DXpQlTbC.cjs} +7 -7
- package/dist/{boolean2D-BDRf7DqS.js → boolean2D-iR7ADbYD.js} +7 -7
- package/dist/{booleanFns-GfGGPjuF.js → booleanFns-7rIed0u7.js} +3 -3
- package/dist/{booleanFns-DHFR4zO7.cjs → booleanFns-Bv06tE2O.cjs} +3 -3
- package/dist/brepjs.cjs +114 -32
- package/dist/brepjs.js +126 -44
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-C1oci6gb.cjs → cornerFinder-Ci8VuZvA.cjs} +1 -1
- package/dist/{cornerFinder-Bke7uLr6.js → cornerFinder-HW6Pd4KN.js} +1 -1
- package/dist/{curveFns-BteO-W-V.js → curveFns-DimdPJLf.js} +1 -1
- package/dist/{curveFns-DOhZedkN.cjs → curveFns-NHndvCbT.cjs} +1 -1
- package/dist/{drawFns-4kaeEGpt.cjs → drawFns-BBaIUkX4.cjs} +10 -10
- package/dist/{drawFns-D7fQtIj-.js → drawFns-D1j4FnWp.js} +10 -10
- package/dist/{faceFns-FViaMujJ.js → faceFns-BkJ2_drH.js} +1 -1
- package/dist/{faceFns-Cshr6Dql.cjs → faceFns-BxkKVWoi.cjs} +1 -1
- package/dist/{helpers-aY6tdIRv.cjs → helpers-BlW0S8kc.cjs} +4 -4
- package/dist/{helpers-j3ILUOP3.js → helpers-nNbxhw97.js} +4 -4
- package/dist/io/svgImportFns.d.ts.map +1 -1
- package/dist/io.cjs +9 -3
- package/dist/io.js +9 -3
- package/dist/kernel/advancedOps.d.ts +1 -0
- package/dist/kernel/advancedOps.d.ts.map +1 -1
- package/dist/kernel/brepkitAdapter.d.ts +2 -1
- package/dist/kernel/brepkitAdapter.d.ts.map +1 -1
- package/dist/kernel/brepkitWasmTypes.d.ts +31 -10
- package/dist/kernel/brepkitWasmTypes.d.ts.map +1 -1
- package/dist/kernel/defaultAdapter.d.ts +1 -0
- package/dist/kernel/defaultAdapter.d.ts.map +1 -1
- package/dist/kernel/types.d.ts +3 -0
- package/dist/kernel/types.d.ts.map +1 -1
- package/dist/{loft-CiXi_aga.js → loft-C8yS_NS6.js} +3 -3
- package/dist/{loft-6RVa269J.cjs → loft-CvTRTIDd.cjs} +3 -3
- package/dist/{measurement-BNrssBY_.js → measurement-4z0i9NjE.js} +2 -2
- package/dist/{measurement-Crrs7ULW.cjs → measurement-mWRWDA69.cjs} +2 -2
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-xdRr7G4g.cjs → meshFns-Bl6gXIPd.cjs} +2 -2
- package/dist/{meshFns-w1baxmAz.js → meshFns-D2eLJfd6.js} +2 -2
- package/dist/operations/loftFns.d.ts +1 -1
- package/dist/operations/loftFns.d.ts.map +1 -1
- package/dist/operations/multiSweepFns.d.ts.map +1 -1
- package/dist/operations/patternFns.d.ts +14 -0
- package/dist/operations/patternFns.d.ts.map +1 -1
- package/dist/operations/roofFns.d.ts.map +1 -1
- package/dist/{operations-CbE3WgWv.js → operations-6JJEKei9.js} +33 -5
- package/dist/{operations-Ds393Tne.cjs → operations-JLacBa4V.cjs} +33 -5
- package/dist/operations.cjs +3 -2
- package/dist/operations.d.ts +1 -1
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +3 -2
- package/dist/query.cjs +4 -4
- package/dist/query.js +5 -5
- package/dist/{shapeFns-DvwUGuOx.js → shapeFns-BO9NK6Oo.js} +2 -2
- package/dist/{shapeFns-BvxOc2M_.cjs → shapeFns-DdBZDjVs.cjs} +2 -2
- package/dist/{shapeTypes-CBhj5o2y.cjs → shapeTypes-DGDFzV7k.cjs} +1 -1
- package/dist/{shapeTypes-d-jYnZuW.js → shapeTypes-Dh_qy0wO.js} +1 -1
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/{surfaceBuilders-mE9oGh7r.cjs → surfaceBuilders-BQScH37x.cjs} +2 -2
- package/dist/{surfaceBuilders-C67Q29Gt.js → surfaceBuilders-CX69g8_x.js} +2 -2
- package/dist/{topology-DKWBbtZ3.cjs → topology-In3-XjPz.cjs} +6 -6
- package/dist/{topology-z4wgJE7T.js → topology-JKo9WLos.js} +6 -6
- package/dist/topology.cjs +6 -6
- package/dist/topology.js +6 -6
- package/package.json +2 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as getKernel, c as castShape, g as getShapeKind } from "./shapeTypes-
|
|
1
|
+
import { q as getKernel, c as castShape, g as getShapeKind } from "./shapeTypes-Dh_qy0wO.js";
|
|
2
2
|
import { H as HASH_CODE_MAX, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
|
|
3
|
-
import { i as iterTopo, d as downcast } from "./faceFns-
|
|
3
|
+
import { i as iterTopo, d as downcast } from "./faceFns-BkJ2_drH.js";
|
|
4
4
|
import { u as unwrap } from "./errors-lBwyc8YG.js";
|
|
5
5
|
function clone(shape) {
|
|
6
6
|
return castShape(unwrap(downcast(shape.wrapped)));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const shapeTypes = require("./shapeTypes-
|
|
2
|
+
const shapeTypes = require("./shapeTypes-DGDFzV7k.cjs");
|
|
3
3
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
4
|
-
const faceFns = require("./faceFns-
|
|
4
|
+
const faceFns = require("./faceFns-BxkKVWoi.cjs");
|
|
5
5
|
const errors = require("./errors-DiTn5EoC.cjs");
|
|
6
6
|
function clone(shape) {
|
|
7
7
|
return shapeTypes.castShape(errors.unwrap(faceFns.downcast(shape.wrapped)));
|
|
@@ -3458,7 +3458,7 @@ function sweepPipeShell(oc, profile, spine, options = {}) {
|
|
|
3458
3458
|
function loftAdvanced(oc, wires, options = {}) {
|
|
3459
3459
|
const solid = options.solid ?? true;
|
|
3460
3460
|
const ruled = options.ruled ?? false;
|
|
3461
|
-
const builder = new oc.BRepOffsetAPI_ThruSections(solid, ruled, 1e-6);
|
|
3461
|
+
const builder = new oc.BRepOffsetAPI_ThruSections(solid, ruled, options.tolerance ?? 1e-6);
|
|
3462
3462
|
if (options.startVertex) {
|
|
3463
3463
|
builder.AddVertex(options.startVertex);
|
|
3464
3464
|
}
|
|
@@ -3457,7 +3457,7 @@ function sweepPipeShell(oc, profile, spine, options = {}) {
|
|
|
3457
3457
|
function loftAdvanced(oc, wires, options = {}) {
|
|
3458
3458
|
const solid = options.solid ?? true;
|
|
3459
3459
|
const ruled = options.ruled ?? false;
|
|
3460
|
-
const builder = new oc.BRepOffsetAPI_ThruSections(solid, ruled, 1e-6);
|
|
3460
|
+
const builder = new oc.BRepOffsetAPI_ThruSections(solid, ruled, options.tolerance ?? 1e-6);
|
|
3461
3461
|
if (options.startVertex) {
|
|
3462
3462
|
builder.AddVertex(options.startVertex);
|
|
3463
3463
|
}
|
package/dist/sketching.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const drawFns = require("./drawFns-
|
|
4
|
-
const boolean2D = require("./boolean2D-
|
|
3
|
+
const drawFns = require("./drawFns-BBaIUkX4.cjs");
|
|
4
|
+
const boolean2D = require("./boolean2D-DXpQlTbC.cjs");
|
|
5
5
|
exports.CompoundSketch = drawFns.CompoundSketch;
|
|
6
6
|
exports.Drawing = drawFns.Drawing;
|
|
7
7
|
exports.DrawingPen = drawFns.DrawingPen;
|
package/dist/sketching.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C, D, a, S, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W } from "./drawFns-
|
|
2
|
-
import { B as B2, a as a2, F as F2, S as S2 } from "./boolean2D-
|
|
1
|
+
import { C, D, a, S, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W } from "./drawFns-D1j4FnWp.js";
|
|
2
|
+
import { B as B2, a as a2, F as F2, S as S2 } from "./boolean2D-iR7ADbYD.js";
|
|
3
3
|
export {
|
|
4
4
|
B2 as BaseSketcher2d,
|
|
5
5
|
a2 as BlueprintSketcher,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const shapeTypes = require("./shapeTypes-
|
|
2
|
+
const shapeTypes = require("./shapeTypes-DGDFzV7k.cjs");
|
|
3
3
|
const errors = require("./errors-DiTn5EoC.cjs");
|
|
4
|
-
const faceFns = require("./faceFns-
|
|
4
|
+
const faceFns = require("./faceFns-BxkKVWoi.cjs");
|
|
5
5
|
function range(len) {
|
|
6
6
|
return Array.from(Array(len).keys());
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as createWire, q as getKernel, s as createEdge, t as createFace, e as isFace } from "./shapeTypes-
|
|
1
|
+
import { r as createWire, q as getKernel, s as createEdge, t as createFace, e as isFace } from "./shapeTypes-Dh_qy0wO.js";
|
|
2
2
|
import { o as ok, e as err, k as kernelError, x as validationError, a as andThen } from "./errors-lBwyc8YG.js";
|
|
3
|
-
import { o as outerWire, c as cast } from "./faceFns-
|
|
3
|
+
import { o as outerWire, c as cast } from "./faceFns-BkJ2_drH.js";
|
|
4
4
|
function range(len) {
|
|
5
5
|
return Array.from(Array(len).keys());
|
|
6
6
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const shapeFns = require("./shapeFns-
|
|
3
|
-
require("./booleanFns-
|
|
4
|
-
const shapeTypes = require("./shapeTypes-
|
|
5
|
-
const faceFns = require("./faceFns-
|
|
2
|
+
const shapeFns = require("./shapeFns-DdBZDjVs.cjs");
|
|
3
|
+
require("./booleanFns-Bv06tE2O.cjs");
|
|
4
|
+
const shapeTypes = require("./shapeTypes-DGDFzV7k.cjs");
|
|
5
|
+
const faceFns = require("./faceFns-BxkKVWoi.cjs");
|
|
6
6
|
const errors = require("./errors-DiTn5EoC.cjs");
|
|
7
|
-
require("./curveFns-
|
|
7
|
+
require("./curveFns-NHndvCbT.cjs");
|
|
8
8
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
9
|
-
require("./meshFns-
|
|
9
|
+
require("./meshFns-Bl6gXIPd.cjs");
|
|
10
10
|
function toBufferGeometryData(mesh) {
|
|
11
11
|
return {
|
|
12
12
|
position: mesh.vertices,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { c as getWires, a as getFaces } from "./shapeFns-
|
|
2
|
-
import "./booleanFns-
|
|
3
|
-
import { q as getKernel, c as castShape, j as isShape3D, l as isSolid, e as isFace, n as isWire } from "./shapeTypes-
|
|
4
|
-
import { d as downcast } from "./faceFns-
|
|
1
|
+
import { c as getWires, a as getFaces } from "./shapeFns-BO9NK6Oo.js";
|
|
2
|
+
import "./booleanFns-7rIed0u7.js";
|
|
3
|
+
import { q as getKernel, c as castShape, j as isShape3D, l as isSolid, e as isFace, n as isWire } from "./shapeTypes-Dh_qy0wO.js";
|
|
4
|
+
import { d as downcast } from "./faceFns-BkJ2_drH.js";
|
|
5
5
|
import { e as err, x as validationError, k as kernelError, d as isErr, p as typeCastError, o as ok, u as unwrap, g as isOk, B as BrepErrorCode } from "./errors-lBwyc8YG.js";
|
|
6
|
-
import "./curveFns-
|
|
6
|
+
import "./curveFns-DimdPJLf.js";
|
|
7
7
|
import { H as HASH_CODE_MAX } from "./vecOps-ZDdZWbwT.js";
|
|
8
|
-
import "./meshFns-
|
|
8
|
+
import "./meshFns-D2eLJfd6.js";
|
|
9
9
|
function toBufferGeometryData(mesh) {
|
|
10
10
|
return {
|
|
11
11
|
position: mesh.vertices,
|
package/dist/topology.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const shapeFns = require("./shapeFns-
|
|
4
|
-
const booleanFns = require("./booleanFns-
|
|
5
|
-
const topology = require("./topology-
|
|
6
|
-
const curveFns = require("./curveFns-
|
|
7
|
-
const faceFns = require("./faceFns-
|
|
8
|
-
const meshFns = require("./meshFns-
|
|
3
|
+
const shapeFns = require("./shapeFns-DdBZDjVs.cjs");
|
|
4
|
+
const booleanFns = require("./booleanFns-Bv06tE2O.cjs");
|
|
5
|
+
const topology = require("./topology-In3-XjPz.cjs");
|
|
6
|
+
const curveFns = require("./curveFns-NHndvCbT.cjs");
|
|
7
|
+
const faceFns = require("./faceFns-BxkKVWoi.cjs");
|
|
8
|
+
const meshFns = require("./meshFns-Bl6gXIPd.cjs");
|
|
9
9
|
exports.getBounds = shapeFns.getBounds;
|
|
10
10
|
exports.getEdges = shapeFns.getEdges;
|
|
11
11
|
exports.getFaces = shapeFns.getFaces;
|
package/dist/topology.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { h, d, a, f, e, c, x, i, y, z, A, B, v } from "./shapeFns-
|
|
2
|
-
import { k, j } from "./booleanFns-
|
|
3
|
-
import { a as a2, b, c as c2, e as e2, f as f2, d as d2, g, j as j2, s, t, k as k2, l, v as v2, w } from "./topology-
|
|
4
|
-
import { j as j3, a as a3, e as e3, k as k3, i as i2, l as l2, h as h2, d as d3, c as c3, f as f3, b as b2, g as g2, m, o } from "./curveFns-
|
|
5
|
-
import { l as l3, c as c4, m as m2, j as j4, d as d4, e as e4, f as f4, q, r, g as g3, k as k4, s as s2, i as i3, n, o as o2, p, t as t2, v as v3, u, h as h3 } from "./faceFns-
|
|
6
|
-
import { c as c5, b as b3, e as e5, d as d5, f as f5 } from "./meshFns-
|
|
1
|
+
import { h, d, a, f, e, c, x, i, y, z, A, B, v } from "./shapeFns-BO9NK6Oo.js";
|
|
2
|
+
import { k, j } from "./booleanFns-7rIed0u7.js";
|
|
3
|
+
import { a as a2, b, c as c2, e as e2, f as f2, d as d2, g, j as j2, s, t, k as k2, l, v as v2, w } from "./topology-JKo9WLos.js";
|
|
4
|
+
import { j as j3, a as a3, e as e3, k as k3, i as i2, l as l2, h as h2, d as d3, c as c3, f as f3, b as b2, g as g2, m, o } from "./curveFns-DimdPJLf.js";
|
|
5
|
+
import { l as l3, c as c4, m as m2, j as j4, d as d4, e as e4, f as f4, q, r, g as g3, k as k4, s as s2, i as i3, n, o as o2, p, t as t2, v as v3, u, h as h3 } from "./faceFns-BkJ2_drH.js";
|
|
6
|
+
import { c as c5, b as b3, e as e5, d as d5, f as f5 } from "./meshFns-D2eLJfd6.js";
|
|
7
7
|
export {
|
|
8
8
|
a2 as adjacentFaces,
|
|
9
9
|
j3 as approximateCurve,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brepjs",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.0",
|
|
4
4
|
"description": "Web CAD library with pluggable geometry kernel",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cad",
|
|
@@ -207,6 +207,7 @@
|
|
|
207
207
|
"typescript-eslint": "8.56.0",
|
|
208
208
|
"vite": "7.3.1",
|
|
209
209
|
"vite-plugin-dts": "4.5.4",
|
|
210
|
+
"brepkit-wasm": "^0.4.3",
|
|
210
211
|
"vitest": "4.0.18"
|
|
211
212
|
},
|
|
212
213
|
"peerDependencies": {
|