brepjs 19.0.3 → 19.0.5
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 +6 -6
- package/dist/2d.js +6 -6
- package/dist/{adjacencyFns-Cuqqg_9C.js → adjacencyFns-BFgzaWom.js} +40 -6
- package/dist/{adjacencyFns-D1sYXJUk.cjs → adjacencyFns-CZ8tOKo6.cjs} +40 -6
- package/dist/{blueprint-BeuiC2jB.js → blueprint-CuE8oS8o.js} +5 -5
- package/dist/{blueprint-DbMLINgb.cjs → blueprint-Pd5C9eyi.cjs} +5 -5
- package/dist/{blueprintFns-JT9_SPeA.js → blueprintFns-DeK5m2Dd.js} +2 -2
- package/dist/{blueprintFns-CtpFK_Qe.cjs → blueprintFns-Jt8aabnr.cjs} +2 -2
- package/dist/{blueprintSketcher-Dedw15H1.cjs → blueprintSketcher-BbbIIw68.cjs} +3 -3
- package/dist/{blueprintSketcher-Dr5-ITBw.js → blueprintSketcher-s1mCyP4C.js} +3 -3
- package/dist/{boolean2D-Dktt8ed6.cjs → boolean2D-B5-s6yey.cjs} +4 -4
- package/dist/{boolean2D-D1EzLW3j.js → boolean2D-XkF5a9UO.js} +4 -4
- package/dist/brepjs.cjs +30 -28
- package/dist/brepjs.js +30 -29
- package/dist/{cameraFns-D59FeXIj.js → cameraFns-C42m8_GN.js} +3 -3
- package/dist/{cameraFns-CKl-ZLoM.cjs → cameraFns-C_aXHOXb.cjs} +3 -3
- package/dist/core/cleanupError.d.ts +9 -0
- package/dist/core/shapeTypes.d.ts +2 -0
- package/dist/core.cjs +3 -2
- package/dist/core.d.ts +1 -0
- package/dist/core.js +3 -3
- package/dist/{cornerFinder-Cq-kBDcR.js → cornerFinder-B5uO-_nX.js} +1 -1
- package/dist/{cornerFinder-CLEHlBMf.cjs → cornerFinder-BSHr_G27.cjs} +1 -1
- package/dist/{curveFns-DXMlN84x.cjs → curveFns-BRhVbssu.cjs} +1 -1
- package/dist/{curveFns-CIyfCLCt.js → curveFns-xQNPUc23.js} +1 -1
- package/dist/{drawFns-BaGbMy6K.cjs → drawFns-ByfPdMin.cjs} +12 -12
- package/dist/{drawFns-Dr9iCrbh.js → drawFns-S-UBDz0z.js} +12 -12
- package/dist/{faceFns-qnvwgyaw.cjs → faceFns-BbkcUym2.cjs} +2 -2
- package/dist/{faceFns-2wV1msnQ.js → faceFns-WhbyFezr.js} +2 -2
- package/dist/{healingFns-BSHqLCOx.cjs → healingFns-CxWU6nqI.cjs} +4 -4
- package/dist/{healingFns-J_O-YEpl.js → healingFns-sTD9eRIy.js} +4 -4
- package/dist/{helpers-YWE4RECX.cjs → helpers-HXscoErf.cjs} +6 -6
- package/dist/{helpers-DHU9mCM7.js → helpers-m7uW_dyL.js} +6 -6
- package/dist/{importFns-DF9TqvQt.cjs → importFns-BUiDmbn7.cjs} +2 -2
- package/dist/{importFns-BHmZYBBq.js → importFns-C9yuTs04.js} +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/manifold/kernel2dNative.d.ts +1 -1
- package/dist/{loftFns-B9-6-lOQ.cjs → loftFns-BUtmwfSU.cjs} +1 -1
- package/dist/{loftFns-qB9Ek9-L.js → loftFns-oiR_wtVd.js} +1 -1
- package/dist/{measureFns-CCd5bBnv.js → measureFns-B2-vw7XG.js} +3 -3
- package/dist/{measureFns-DU8x4zPn.cjs → measureFns-BX7yvMB_.cjs} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-DvDybgNn.js → meshFns-13CekW14.js} +3 -3
- package/dist/{meshFns-DkMiqcvB.cjs → meshFns-DFhnm9DB.cjs} +3 -3
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{originTrackingFns-Bm7CD2oW.cjs → originTrackingFns-B1dazHMg.cjs} +2 -2
- package/dist/{originTrackingFns-j2je8lQv.js → originTrackingFns-DYB8oZOX.js} +2 -2
- package/dist/{primitiveFns-C-rBAvgV.cjs → primitiveFns-BdM2vG17.cjs} +38 -10
- package/dist/{primitiveFns-itCYAzxU.js → primitiveFns-DjKUrsMr.js} +38 -10
- package/dist/projection.cjs +1 -1
- package/dist/projection.js +1 -1
- package/dist/query.cjs +2 -2
- package/dist/query.js +2 -2
- package/dist/{refResolveFns-DTZoqjRs.js → refResolveFns-BhN6_Z7B.js} +6 -6
- package/dist/{refResolveFns-CxIokx3w.cjs → refResolveFns-IdHk_1vT.cjs} +6 -6
- package/dist/{shapeFns-B_GAp2z3.js → shapeFns-B2Xg4Xom.js} +2 -2
- package/dist/{shapeFns-FzE1ivNh.cjs → shapeFns-D6EjojPG.cjs} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeTypes-CIMiWenj.js → shapeTypes-2oI77VpW.js} +75 -11
- package/dist/{shapeTypes-DZZldFUS.cjs → shapeTypes-GoRBg9oo.cjs} +80 -10
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-x5Bz2ELQ.cjs → solidBuilders-BDwUKmVl.cjs} +51 -26
- package/dist/{solidBuilders-DKwoY2nP.js → solidBuilders-Buze6qct.js} +50 -25
- package/dist/{surfaceBuilders-CHfC8AUd.js → surfaceBuilders-DcD6eAJW.js} +3 -3
- package/dist/{surfaceBuilders-B9llhfrz.cjs → surfaceBuilders-rWRvkB_K.cjs} +3 -3
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-D6csroh5.cjs → textBlueprints-DoePacWO.cjs} +7 -7
- package/dist/{textBlueprints-B3cJhqsf.js → textBlueprints-lFyk_adY.js} +7 -7
- package/dist/{textMetrics-B_Js6IoN.js → textMetrics-CmAlcFpe.js} +1 -1
- package/dist/{textMetrics-sApnOuwi.cjs → textMetrics-DemtrM-e.cjs} +1 -1
- package/dist/{threadFns-iR-yK8rr.js → threadFns-C1EWB5h6.js} +7 -7
- package/dist/{threadFns-52YHK9wK.cjs → threadFns-DzoOHczW.cjs} +7 -7
- package/dist/topology/api.d.ts +2 -1
- package/dist/topology/transformFns.d.ts +2 -1
- package/dist/topology.cjs +9 -9
- package/dist/topology.js +9 -9
- package/dist/{topologyQueryFns-Dp_LqPFF.js → topologyQueryFns-C2tBjzT8.js} +1 -1
- package/dist/{topologyQueryFns-DYslfber.cjs → topologyQueryFns-CZAfuhOE.cjs} +1 -1
- package/dist/{validityTypes-BqJb23o4.js → validityTypes-BAwJuMQB.js} +1 -1
- package/dist/{validityTypes-BYnGyL8L.cjs → validityTypes-rPudJ_eg.cjs} +1 -1
- package/package.json +7 -7
package/dist/text.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-
|
|
2
|
-
import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-
|
|
1
|
+
import { n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-lFyk_adY.js";
|
|
2
|
+
import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-CmAlcFpe.js";
|
|
3
3
|
export { fontMetrics, getFont, loadFont, sketchText, textBlueprints, textMetrics };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
|
|
2
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
+
const require_shapeTypes = require("./shapeTypes-GoRBg9oo.cjs");
|
|
3
3
|
const require_bug = require("./bug-O02CsAmt.cjs");
|
|
4
4
|
const require_errors = require("./errors-DWezb9DI.cjs");
|
|
5
5
|
const require_types = require("./types-KjA8tY4Y.cjs");
|
|
6
6
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
7
7
|
const require_planeOps = require("./planeOps-CpupTCRM.cjs");
|
|
8
|
-
const require_faceFns = require("./faceFns-
|
|
9
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
10
|
-
const require_curveFns = require("./curveFns-
|
|
8
|
+
const require_faceFns = require("./faceFns-BbkcUym2.cjs");
|
|
9
|
+
const require_solidBuilders = require("./solidBuilders-BDwUKmVl.cjs");
|
|
10
|
+
const require_curveFns = require("./curveFns-BRhVbssu.cjs");
|
|
11
11
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
12
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
13
|
-
const require_blueprintSketcher = require("./blueprintSketcher-
|
|
14
|
-
const require_loftFns = require("./loftFns-
|
|
12
|
+
const require_surfaceBuilders = require("./surfaceBuilders-rWRvkB_K.cjs");
|
|
13
|
+
const require_blueprintSketcher = require("./blueprintSketcher-BbbIIw68.cjs");
|
|
14
|
+
const require_loftFns = require("./loftFns-BUtmwfSU.cjs");
|
|
15
15
|
let opentype_js = require("opentype.js");
|
|
16
16
|
opentype_js = require_rolldown_runtime.__toESM(opentype_js, 1);
|
|
17
17
|
//#region src/operations/extrudeFns.ts
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as createSolid, h as disposeResultShape, l as createFace, m as disposeDowncastSource, n as castResultShape, p as createWire, q as getKernel, x as isShape3D } from "./shapeTypes-2oI77VpW.js";
|
|
2
2
|
import { n as bug } from "./bug-BdOHwn_e.js";
|
|
3
3
|
import { E as ok, P as unwrap, d as validationError, g as err, i as kernelError, l as typeCastError, r as ioError, t as BrepErrorCode } from "./errors-CTn8i3lY.js";
|
|
4
4
|
import { r as toVec3 } from "./types-D24Y27N0.js";
|
|
5
5
|
import { c as vecLength, d as vecNormalize, h as vecScale, r as vecCross } from "./vecOps-SKPRvPH-.js";
|
|
6
6
|
import { n as createPlane } from "./planeOps-CkpMeheg.js";
|
|
7
|
-
import { v as copyShape } from "./faceFns-
|
|
8
|
-
import { o as makeSolid, p as cutAll, t as makeCompound } from "./solidBuilders-
|
|
9
|
-
import { l as curveStartPoint, u as curveTangentAt } from "./curveFns-
|
|
7
|
+
import { v as copyShape } from "./faceFns-WhbyFezr.js";
|
|
8
|
+
import { o as makeSolid, p as cutAll, t as makeCompound } from "./solidBuilders-Buze6qct.js";
|
|
9
|
+
import { l as curveStartPoint, u as curveTangentAt } from "./curveFns-xQNPUc23.js";
|
|
10
10
|
import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
|
|
11
|
-
import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-
|
|
12
|
-
import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-
|
|
13
|
-
import { c as twistExtrude, r as complexExtrude, s as sweep, t as loft } from "./loftFns-
|
|
11
|
+
import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-DcD6eAJW.js";
|
|
12
|
+
import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-s1mCyP4C.js";
|
|
13
|
+
import { c as twistExtrude, r as complexExtrude, s as sweep, t as loft } from "./loftFns-oiR_wtVd.js";
|
|
14
14
|
import opentype from "opentype.js";
|
|
15
15
|
//#region src/operations/extrudeFns.ts
|
|
16
16
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-CTn8i3lY.js";
|
|
2
|
-
import { g as wrapSketchData, i as Sketches, n as getFont, t as textBlueprints, v as CompoundSketch } from "./textBlueprints-
|
|
2
|
+
import { g as wrapSketchData, i as Sketches, n as getFont, t as textBlueprints, v as CompoundSketch } from "./textBlueprints-lFyk_adY.js";
|
|
3
3
|
//#region src/text/sketchText.ts
|
|
4
4
|
/**
|
|
5
5
|
* Render text as 3D sketch outlines on a plane.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_errors = require("./errors-DWezb9DI.cjs");
|
|
2
|
-
const require_textBlueprints = require("./textBlueprints-
|
|
2
|
+
const require_textBlueprints = require("./textBlueprints-DoePacWO.cjs");
|
|
3
3
|
//#region src/text/sketchText.ts
|
|
4
4
|
/**
|
|
5
5
|
* Render text as 3D sketch outlines on a plane.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as createKernelHandle, G as _usingCtx, N as DisposalScope, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-2oI77VpW.js";
|
|
2
2
|
import { E as ok, d as validationError, g as err, n as computationError, r as ioError, t as BrepErrorCode, x as isOk } from "./errors-CTn8i3lY.js";
|
|
3
3
|
import { d as vecNormalize, s as vecIsZero } from "./vecOps-SKPRvPH-.js";
|
|
4
|
-
import { b as fromBREP } from "./faceFns-
|
|
5
|
-
import { h as fuseAll } from "./solidBuilders-
|
|
6
|
-
import { E as wire, h as line } from "./primitiveFns-
|
|
7
|
-
import { s as toBREP } from "./shapeFns-
|
|
8
|
-
import { t as loft } from "./loftFns-
|
|
9
|
-
import { c as resolveRefParams } from "./refResolveFns-
|
|
4
|
+
import { b as fromBREP } from "./faceFns-WhbyFezr.js";
|
|
5
|
+
import { h as fuseAll } from "./solidBuilders-Buze6qct.js";
|
|
6
|
+
import { E as wire, h as line } from "./primitiveFns-DjKUrsMr.js";
|
|
7
|
+
import { s as toBREP } from "./shapeFns-B2Xg4Xom.js";
|
|
8
|
+
import { t as loft } from "./loftFns-oiR_wtVd.js";
|
|
9
|
+
import { c as resolveRefParams } from "./refResolveFns-BhN6_Z7B.js";
|
|
10
10
|
//#region src/utils/uuid.ts
|
|
11
11
|
/** Generate a v4-style UUID string using `crypto.getRandomValues`. */
|
|
12
12
|
function uuidv() {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-GoRBg9oo.cjs");
|
|
2
2
|
const require_errors = require("./errors-DWezb9DI.cjs");
|
|
3
3
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
5
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
6
|
-
const require_primitiveFns = require("./primitiveFns-
|
|
7
|
-
const require_shapeFns = require("./shapeFns-
|
|
8
|
-
const require_loftFns = require("./loftFns-
|
|
9
|
-
const require_refResolveFns = require("./refResolveFns-
|
|
4
|
+
const require_faceFns = require("./faceFns-BbkcUym2.cjs");
|
|
5
|
+
const require_solidBuilders = require("./solidBuilders-BDwUKmVl.cjs");
|
|
6
|
+
const require_primitiveFns = require("./primitiveFns-BdM2vG17.cjs");
|
|
7
|
+
const require_shapeFns = require("./shapeFns-D6EjojPG.cjs");
|
|
8
|
+
const require_loftFns = require("./loftFns-BUtmwfSU.cjs");
|
|
9
|
+
const require_refResolveFns = require("./refResolveFns-IdHk_1vT.cjs");
|
|
10
10
|
//#region src/utils/uuid.ts
|
|
11
11
|
/** Generate a v4-style UUID string using `crypto.getRandomValues`. */
|
|
12
12
|
function uuidv() {
|
package/dist/topology/api.d.ts
CHANGED
|
@@ -57,8 +57,9 @@ export declare function transformCopy<T extends AnyShape<Dimension>>(shape: Shap
|
|
|
57
57
|
* re-tag — O(1) on occt-wasm ≥3.6.0, falling back to a copy elsewhere. Same
|
|
58
58
|
* face-metadata guarantee as `translate`, at location-swap cost. Ideal for
|
|
59
59
|
* placing one cached cell at N positions without paying for N deep copies.
|
|
60
|
+
* A supplied pre-composed transform remains caller-owned and must be cleaned up.
|
|
60
61
|
*/
|
|
61
|
-
export declare function locate<T extends AnyShape<Dimension>>(shape: Shapeable<T>, placement: transforms.TransformOp | readonly transforms.TransformOp[]): T;
|
|
62
|
+
export declare function locate<T extends AnyShape<Dimension>>(shape: Shapeable<T>, placement: transforms.TransformOp | readonly transforms.TransformOp[] | transforms.ComposedTransform): T;
|
|
62
63
|
/** Fuse two 3D shapes (boolean union). */
|
|
63
64
|
export declare function fuse<T extends Shape3D>(a: Shapeable<T>, b: Shapeable<Shape3D>, options?: booleans.BooleanOptions): Result<T>;
|
|
64
65
|
/** Cut a tool from a base shape (boolean subtraction). */
|
|
@@ -55,8 +55,9 @@ export declare function composeTransforms(ops: readonly TransformOp[]): Composed
|
|
|
55
55
|
* Accepts a single op or an ordered list (applied first-to-last, e.g. rotate
|
|
56
56
|
* then translate). Non-rigid ops (`scale`) aren't a placement and don't belong
|
|
57
57
|
* here — use `applyMatrix` for those.
|
|
58
|
+
* A pre-composed transform remains caller-owned; this function never cleans it up.
|
|
58
59
|
*/
|
|
59
|
-
export declare function locate<T extends AnyShape<Dimension>>(shape: T, placement: TransformOp | readonly TransformOp[]): T;
|
|
60
|
+
export declare function locate<T extends AnyShape<Dimension>>(shape: T, placement: TransformOp | readonly TransformOp[] | ComposedTransform): T;
|
|
60
61
|
/**
|
|
61
62
|
* Clone a shape and apply a pre-composed transform in a single kernel operation.
|
|
62
63
|
* Much faster than separate clone() + translate() + rotate() calls.
|
package/dist/topology.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
4
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
5
|
-
const require_primitiveFns = require("./primitiveFns-
|
|
6
|
-
const require_shapeFns = require("./shapeFns-
|
|
7
|
-
const require_curveFns = require("./curveFns-
|
|
8
|
-
const require_meshFns = require("./meshFns-
|
|
9
|
-
const require_healingFns = require("./healingFns-
|
|
10
|
-
const require_adjacencyFns = require("./adjacencyFns-
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns-CZAfuhOE.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-BbkcUym2.cjs");
|
|
4
|
+
const require_solidBuilders = require("./solidBuilders-BDwUKmVl.cjs");
|
|
5
|
+
const require_primitiveFns = require("./primitiveFns-BdM2vG17.cjs");
|
|
6
|
+
const require_shapeFns = require("./shapeFns-D6EjojPG.cjs");
|
|
7
|
+
const require_curveFns = require("./curveFns-BRhVbssu.cjs");
|
|
8
|
+
const require_meshFns = require("./meshFns-DFhnm9DB.cjs");
|
|
9
|
+
const require_healingFns = require("./healingFns-CxWU6nqI.cjs");
|
|
10
|
+
const require_adjacencyFns = require("./adjacencyFns-CZ8tOKo6.cjs");
|
|
11
11
|
exports.addHoles = require_primitiveFns.addHoles;
|
|
12
12
|
exports.adjacentFaces = require_adjacencyFns.adjacentFaces;
|
|
13
13
|
exports.approximateCurve = require_curveFns.approximateCurve;
|
package/dist/topology.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { C as vertexPosition, _ as iterFaces, b as iterVertices, c as getFaces, f as getVertices, g as iterEdges, m as invalidateShapeCache, n as getBounds, p as getWires, s as getEdges, x as iterWires } from "./topologyQueryFns-
|
|
2
|
-
import { C as shapeType, S as iterTopo, _ as cast, a as faceOrientation, b as fromBREP, c as innerWires, d as pointOnSurface, f as projectPointOnFace, g as asTopo, h as uvCoordinates, i as faceGeomType, l as normalAt, m as uvBounds, n as faceAxis, o as flipFaceOrientation, r as faceCenter, s as getSurfaceType, t as classifyPointOnFace, u as outerWire, x as isCompSolid, y as downcast } from "./faceFns-
|
|
3
|
-
import { h as fuseAll, p as cutAll } from "./solidBuilders-
|
|
4
|
-
import { C as threePointArc, D as wireLoop, E as wire, S as tangentArc, T as vertex, _ as polygon, a as circle, b as sphere, c as cylinder, d as ellipsoid, f as face, g as offsetFace, h as line, i as bsplineApprox, l as ellipse, m as helix, n as bezier, o as compound, p as filledFace, r as box, s as cone, t as addHoles, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-
|
|
5
|
-
import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-
|
|
6
|
-
import { a as curveIsPeriodic, c as curvePointAt, d as flipOrientation, f as getCurveType, h as offsetWire2D, i as curveIsClosed, l as curveStartPoint, m as interpolateCurve, n as curveAxis, o as curveLength, p as getOrientation, r as curveEndPoint, s as curvePeriod, t as approximateCurve, u as curveTangentAt } from "./curveFns-
|
|
7
|
-
import { d as clearMeshCache, f as createMeshCache, n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-
|
|
8
|
-
import { A as toBufferGeometryData, P as toLineGeometryData, S as chamferDistAngle, _ as checkBoolean, a as healFace, b as getNurbsCurveData, d as chamferWithEvolution, f as cutWithEvolution, g as shellWithEvolution, h as intersectWithEvolution, j as toGroupedBufferGeometryData, k as variableFillet, l as solidFromShell, m as fuseWithEvolution, n as fixSelfIntersection, o as healSolid, p as filletWithEvolution, r as fixShape, s as healWire, t as autoHeal, u as positionOnCurve, v as cutAllBisect, x as getNurbsSurfaceData, y as fuseAllBisect } from "./healingFns-
|
|
9
|
-
import { i as facesOfEdge, l as wiresOfFace, n as adjacentFaces, o as sharedEdges, r as edgesOfFace, s as verticesOfEdge } from "./adjacencyFns-
|
|
1
|
+
import { C as vertexPosition, _ as iterFaces, b as iterVertices, c as getFaces, f as getVertices, g as iterEdges, m as invalidateShapeCache, n as getBounds, p as getWires, s as getEdges, x as iterWires } from "./topologyQueryFns-C2tBjzT8.js";
|
|
2
|
+
import { C as shapeType, S as iterTopo, _ as cast, a as faceOrientation, b as fromBREP, c as innerWires, d as pointOnSurface, f as projectPointOnFace, g as asTopo, h as uvCoordinates, i as faceGeomType, l as normalAt, m as uvBounds, n as faceAxis, o as flipFaceOrientation, r as faceCenter, s as getSurfaceType, t as classifyPointOnFace, u as outerWire, x as isCompSolid, y as downcast } from "./faceFns-WhbyFezr.js";
|
|
3
|
+
import { h as fuseAll, p as cutAll } from "./solidBuilders-Buze6qct.js";
|
|
4
|
+
import { C as threePointArc, D as wireLoop, E as wire, S as tangentArc, T as vertex, _ as polygon, a as circle, b as sphere, c as cylinder, d as ellipsoid, f as face, g as offsetFace, h as line, i as bsplineApprox, l as ellipse, m as helix, n as bezier, o as compound, p as filledFace, r as box, s as cone, t as addHoles, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-DjKUrsMr.js";
|
|
5
|
+
import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-B2Xg4Xom.js";
|
|
6
|
+
import { a as curveIsPeriodic, c as curvePointAt, d as flipOrientation, f as getCurveType, h as offsetWire2D, i as curveIsClosed, l as curveStartPoint, m as interpolateCurve, n as curveAxis, o as curveLength, p as getOrientation, r as curveEndPoint, s as curvePeriod, t as approximateCurve, u as curveTangentAt } from "./curveFns-xQNPUc23.js";
|
|
7
|
+
import { d as clearMeshCache, f as createMeshCache, n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-13CekW14.js";
|
|
8
|
+
import { A as toBufferGeometryData, P as toLineGeometryData, S as chamferDistAngle, _ as checkBoolean, a as healFace, b as getNurbsCurveData, d as chamferWithEvolution, f as cutWithEvolution, g as shellWithEvolution, h as intersectWithEvolution, j as toGroupedBufferGeometryData, k as variableFillet, l as solidFromShell, m as fuseWithEvolution, n as fixSelfIntersection, o as healSolid, p as filletWithEvolution, r as fixShape, s as healWire, t as autoHeal, u as positionOnCurve, v as cutAllBisect, x as getNurbsSurfaceData, y as fuseAllBisect } from "./healingFns-sTD9eRIy.js";
|
|
9
|
+
import { i as facesOfEdge, l as wiresOfFace, n as adjacentFaces, o as sharedEdges, r as edgesOfFace, s as verticesOfEdge } from "./adjacencyFns-BFgzaWom.js";
|
|
10
10
|
export { addHoles, adjacentFaces, approximateCurve, asTopo, autoHeal, bezier, box, bsplineApprox, cast, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkBoolean, circle, classifyPointOnFace, clearMeshCache, compound, cone, createMeshCache, curveAxis, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cutAll, cutAllBisect, cutWithEvolution, cylinder, fromBREP as deserializeShape, downcast, edgesOfFace, ellipse, ellipseArc, ellipsoid, exportIGES, exportSTEP, exportSTL, face, faceAxis, faceCenter, faceGeomType, faceOrientation, facesOfEdge, filledFace, filletWithEvolution, fixSelfIntersection, fixShape, flipFaceOrientation, flipOrientation, fuseAll, fuseAllBisect, fuseWithEvolution, getBounds, getCurveType, getEdges, getFaces, getHashCode, getNurbsCurveData, getNurbsSurfaceData, getOrientation, getSurfaceType, getVertices, getWires, healFace, healSolid, healWire, helix, innerWires, interpolateCurve, intersectWithEvolution, invalidateShapeCache, isCompSolid, isEqualShape, isSameShape, iterEdges, iterFaces, iterTopo, iterVertices, iterWires, line, normalAt, offsetFace, offsetWire2D, outerWire, pointOnSurface, polygon, positionOnCurve, projectPointOnFace, sewShells, shapeType, sharedEdges, shellWithEvolution, solid, solidFromShell, sphere, subFace, tangentArc, threePointArc, toBufferGeometryData, toGroupedBufferGeometryData, toLineGeometryData, torus, uvBounds, uvCoordinates, variableFillet, vertex, vertexPosition, verticesOfEdge, wire, wireLoop, wiresOfFace };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { G as _usingCtx, N as DisposalScope, O as getOrQueryType, n as castResultShape, q as getKernel, r as castResultShapeWithKnownType } from "./shapeTypes-2oI77VpW.js";
|
|
2
2
|
import { E as ok, g as err } from "./errors-CTn8i3lY.js";
|
|
3
3
|
import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
|
|
4
4
|
//#region src/core/kernelErrorTranslation.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-GoRBg9oo.cjs");
|
|
2
2
|
const require_errors = require("./errors-DWezb9DI.cjs");
|
|
3
3
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
4
4
|
//#region src/core/kernelErrorTranslation.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brepjs",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.5",
|
|
4
4
|
"description": "Web CAD library with pluggable geometry kernel",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cad",
|
|
@@ -271,24 +271,24 @@
|
|
|
271
271
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
272
272
|
"@vitest/coverage-v8": "4.1.11",
|
|
273
273
|
"brepjs-opencascade": "*",
|
|
274
|
-
"brepkit-wasm": "3.
|
|
275
|
-
"eslint": "10.
|
|
274
|
+
"brepkit-wasm": "3.4.0",
|
|
275
|
+
"eslint": "10.10.0",
|
|
276
276
|
"fast-check": "4.9.0",
|
|
277
277
|
"husky": "9.1.7",
|
|
278
278
|
"knip": "6.27.0",
|
|
279
|
-
"lint-staged": "17.
|
|
279
|
+
"lint-staged": "17.5.0",
|
|
280
280
|
"lz-string": "1.5.0",
|
|
281
281
|
"occt-wasm": "5.0.0",
|
|
282
282
|
"prettier": "3.9.6",
|
|
283
|
-
"puppeteer": "25.
|
|
283
|
+
"puppeteer": "25.10.0",
|
|
284
284
|
"size-limit": "13.0.3",
|
|
285
285
|
"sucrase": "3.35.1",
|
|
286
286
|
"tsx": "4.23.13",
|
|
287
287
|
"typedoc": "0.28.20",
|
|
288
288
|
"typescript": "6.0.3",
|
|
289
|
-
"typescript-eslint": "8.
|
|
289
|
+
"typescript-eslint": "8.69.0",
|
|
290
290
|
"vite": "8.2.2",
|
|
291
|
-
"vite-plugin-dts": "5.0
|
|
291
|
+
"vite-plugin-dts": "5.1.0",
|
|
292
292
|
"vitest": "4.1.11"
|
|
293
293
|
},
|
|
294
294
|
"peerDependencies": {
|