brepjs 18.83.0 → 18.83.3
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/brepjs.cjs +1 -1
- package/dist/brepjs.js +1 -1
- package/dist/{drawFns-XbmE6iHl.cjs → drawFns-BQRr3CMu.cjs} +1 -0
- package/dist/{drawFns-DW3HdqAa.js → drawFns-b4wtzKYi.js} +1 -0
- package/dist/kernel/brepkit/brepkitWasmTypes.d.ts +6 -6
- package/dist/sketching.cjs +1 -1
- package/dist/sketching.js +1 -1
- package/package.json +6 -4
package/dist/brepjs.cjs
CHANGED
|
@@ -20,7 +20,7 @@ const require_healingFns = require("./healingFns-CPb0h4_M.cjs");
|
|
|
20
20
|
const require_threadFns = require("./threadFns-Bi0Qfuca.cjs");
|
|
21
21
|
const require_blueprintSketcher = require("./blueprintSketcher-DyZBno71.cjs");
|
|
22
22
|
const require_helpers = require("./helpers-CLDPogSo.cjs");
|
|
23
|
-
const require_drawFns = require("./drawFns-
|
|
23
|
+
const require_drawFns = require("./drawFns-BQRr3CMu.cjs");
|
|
24
24
|
const require_measureFns = require("./measureFns-CtVe9Fc3.cjs");
|
|
25
25
|
const require_cornerFinder = require("./cornerFinder-DvQLHay1.cjs");
|
|
26
26
|
const require_boolean2D = require("./boolean2D-BRtq8bzq.cjs");
|
package/dist/brepjs.js
CHANGED
|
@@ -18,7 +18,7 @@ import { A as edgesOfFace, C as shellWithEvolution, D as getNurbsCurveData, E as
|
|
|
18
18
|
import { A as setJointValue, B as findNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, F as quatRotate, H as updateNode, I as addChild, J as createAssembly, K as linearPattern, L as collectShapes, M as sphericalJoint, N as quatFromAxisAngle, O as prismaticJoint, P as quatFromTo, R as countNodes, S as addJoint, T as jointTransform, U as walkAssembly, V as removeChild, W as circularPattern, _ as exportURDF, a as deserializeHistory, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, p as serializeHistory, q as exportAssemblySTEP, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as createAssemblyNode } from "./threadFns-BJpsXw07.js";
|
|
19
19
|
import { n as BaseSketcher2d, r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-C9PqxvlX.js";
|
|
20
20
|
import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-B4bgQUFj.js";
|
|
21
|
-
import { A as sketchEllipse, 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, _ 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-
|
|
21
|
+
import { A as sketchEllipse, 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, _ 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-b4wtzKYi.js";
|
|
22
22
|
import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, i as measureCurvatureAtMid, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, r as measureCurvatureAt, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-Cj2QdvaY.js";
|
|
23
23
|
import { t as cornerFinder } from "./cornerFinder-CpUNW1LJ.js";
|
|
24
24
|
import { a as fuseBlueprints, c as roundedRectangleBlueprint, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-BKCmJjFc.js";
|
|
@@ -31,6 +31,7 @@ const require_cameraFns = require("./cameraFns-BJyYRJWK.cjs");
|
|
|
31
31
|
* @returns An array of connected curve chains.
|
|
32
32
|
*/
|
|
33
33
|
var stitchCurves = (curves, precision = 1e-7) => {
|
|
34
|
+
if (curves.length === 0) return [];
|
|
34
35
|
const startPoints = new require_blueprintSketcher.Flatbush(curves.length);
|
|
35
36
|
curves.forEach((c) => {
|
|
36
37
|
const [x, y] = c.firstPoint;
|
|
@@ -31,6 +31,7 @@ import { i as projectEdges, t as cameraFromPlane } from "./cameraFns-1T8_l0NS.js
|
|
|
31
31
|
* @returns An array of connected curve chains.
|
|
32
32
|
*/
|
|
33
33
|
var stitchCurves = (curves, precision = 1e-7) => {
|
|
34
|
+
if (curves.length === 0) return [];
|
|
34
35
|
const startPoints = new Flatbush(curves.length);
|
|
35
36
|
curves.forEach((c) => {
|
|
36
37
|
const [x, y] = c.firstPoint;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Type-safe interface for the brepkit WASM kernel (`BrepKernel`).
|
|
3
3
|
*
|
|
4
4
|
* AUTO-GENERATED by `npm run sync:brepkit-types`.
|
|
5
|
-
* Synced against `brepkit-wasm@2.
|
|
5
|
+
* Synced against `brepkit-wasm@2.112.0`.
|
|
6
6
|
*
|
|
7
7
|
* Methods not yet referenced in the adapter layer are tagged `@unwired`.
|
|
8
8
|
*
|
|
@@ -322,15 +322,15 @@ export interface BrepkitKernel {
|
|
|
322
322
|
/** @unwired */
|
|
323
323
|
toBrepJson(solid: number): string;
|
|
324
324
|
transformFace(face: number, matrix: Float64Array | number[]): void;
|
|
325
|
-
/** @future Not in brepkit-wasm 2.
|
|
325
|
+
/** @future Not in brepkit-wasm 2.112.0. Referenced with feature detection in adapter. */
|
|
326
326
|
chamferAsymmetric?(solid: number, edgeHandles: Uint32Array | number[], d1: number, d2: number): number;
|
|
327
|
-
/** @future Not in brepkit-wasm 2.
|
|
327
|
+
/** @future Not in brepkit-wasm 2.112.0. Referenced with feature detection in adapter. */
|
|
328
328
|
compoundFuse?(solidIds: Uint32Array | number[]): number;
|
|
329
|
-
/** @future Not in brepkit-wasm 2.
|
|
329
|
+
/** @future Not in brepkit-wasm 2.112.0. Referenced with feature detection in adapter. */
|
|
330
330
|
copyEdge?(edge: number): number;
|
|
331
|
-
/** @future Not in brepkit-wasm 2.
|
|
331
|
+
/** @future Not in brepkit-wasm 2.112.0. Referenced with feature detection in adapter. */
|
|
332
332
|
transformEdge?(edge: number, matrix: Float64Array | number[]): void;
|
|
333
|
-
/** @future Not in brepkit-wasm 2.
|
|
333
|
+
/** @future Not in brepkit-wasm 2.112.0. Referenced with feature detection in adapter. */
|
|
334
334
|
validateSolidDetails?(solid: number): string;
|
|
335
335
|
/** Release the entire arena. */
|
|
336
336
|
free(): void;
|
package/dist/sketching.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_textBlueprints = require("./textBlueprints-DIQwcQxF.cjs");
|
|
3
3
|
const require_blueprintSketcher = require("./blueprintSketcher-DyZBno71.cjs");
|
|
4
|
-
const require_drawFns = require("./drawFns-
|
|
4
|
+
const require_drawFns = require("./drawFns-BQRr3CMu.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,5 +1,5 @@
|
|
|
1
1
|
import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-C9PqxvlX.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-
|
|
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-b4wtzKYi.js";
|
|
3
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-Dz9CYlAC.js";
|
|
4
4
|
//#region src/sketching.ts
|
|
5
5
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brepjs",
|
|
3
|
-
"version": "18.83.
|
|
3
|
+
"version": "18.83.3",
|
|
4
4
|
"description": "Web CAD library with pluggable geometry kernel",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cad",
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
"@types/react": "19.2.17",
|
|
259
259
|
"@vitest/coverage-v8": "4.1.8",
|
|
260
260
|
"brepjs-opencascade": "*",
|
|
261
|
-
"brepkit-wasm": "2.
|
|
261
|
+
"brepkit-wasm": "2.112.0",
|
|
262
262
|
"eslint": "10.4.1",
|
|
263
263
|
"fast-check": "4.8.0",
|
|
264
264
|
"husky": "9.1.7",
|
|
@@ -302,12 +302,14 @@
|
|
|
302
302
|
"opentype.js": "1.3.4"
|
|
303
303
|
},
|
|
304
304
|
"overrides": {
|
|
305
|
-
"dompurify": "^3.4.
|
|
305
|
+
"dompurify": "^3.4.10",
|
|
306
306
|
"brace-expansion": "^5.0.6",
|
|
307
307
|
"esbuild@<0.25.0": "^0.25.0",
|
|
308
308
|
"esbuild@>=0.26.0 <0.28.1": "^0.28.1",
|
|
309
|
+
"js-yaml": "^4.2.0",
|
|
310
|
+
"markdown-it": "^14.2.0",
|
|
309
311
|
"vitepress": {
|
|
310
|
-
"vite": "6.4.
|
|
312
|
+
"vite": "6.4.3"
|
|
311
313
|
}
|
|
312
314
|
}
|
|
313
315
|
}
|