brepjs 18.147.2 → 18.148.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/lib/definitions.d.ts +0 -1
- package/dist/core/kernelBoundary.d.ts +0 -3
- package/dist/core/planeOps.d.ts +0 -1
- package/dist/core/shapeTypeCache.d.ts +0 -2
- package/dist/core/typeDiscriminants.d.ts +0 -1
- package/dist/measurement/measureCache.d.ts +0 -1
- package/dist/operations/exporters.d.ts +0 -1
- package/dist/utils/vec2d.d.ts +0 -1
- package/package.json +1 -1
|
@@ -7,6 +7,5 @@ export declare function isPoint2D(point: unknown): point is Point2D;
|
|
|
7
7
|
export type Matrix2X2 = [[number, number], [number, number]];
|
|
8
8
|
/**
|
|
9
9
|
* Type guard that checks whether a value is a `Matrix2X2`.
|
|
10
|
-
* @testOnly Exercised by tests/definitions.test.ts.
|
|
11
10
|
*/
|
|
12
11
|
export declare function isMatrix2X2(matrix: unknown): matrix is Matrix2X2;
|
|
@@ -20,16 +20,13 @@ export declare function withKernelPnt<T>(v: Vec3, fn: (ocPnt: KernelType) => T):
|
|
|
20
20
|
export declare function withKernelDir<T>(v: Vec3, fn: (ocDir: KernelType) => T): T;
|
|
21
21
|
/**
|
|
22
22
|
* Create a kernel 3D axis-1 from point and direction. Caller must delete.
|
|
23
|
-
* @testOnly Exercised by tests/occtBoundary.test.ts.
|
|
24
23
|
*/
|
|
25
24
|
export declare function makeKernelAx1(center: Vec3, dir: Vec3): KernelType;
|
|
26
25
|
/**
|
|
27
26
|
* Create a kernel 3D axis-2 from origin and z direction (+optional x direction). Caller must delete.
|
|
28
|
-
* @testOnly Exercised by tests/occtBoundary.test.ts.
|
|
29
27
|
*/
|
|
30
28
|
export declare function makeKernelAx2(origin: Vec3, zDir: Vec3, xDir?: Vec3): KernelType;
|
|
31
29
|
/**
|
|
32
30
|
* Create a kernel 3D axis-3 from origin, z direction, and optional x direction. Caller must delete.
|
|
33
|
-
* @testOnly Exercised by tests/occtBoundary.test.ts.
|
|
34
31
|
*/
|
|
35
32
|
export declare function makeKernelAx3(origin: Vec3, zDir: Vec3, xDir?: Vec3): KernelType;
|
package/dist/core/planeOps.d.ts
CHANGED
|
@@ -44,7 +44,6 @@ export { makePlane };
|
|
|
44
44
|
export declare function planeToWorld(plane: Plane, local: Vec2): Vec3;
|
|
45
45
|
/**
|
|
46
46
|
* Convert 3D world coordinates to 2D local coordinates on the plane.
|
|
47
|
-
* @testOnly Exercised by tests/planeOps.test.ts.
|
|
48
47
|
*/
|
|
49
48
|
export declare function planeToLocal(plane: Plane, world: Vec3): Vec2;
|
|
50
49
|
/** Translate a plane by a vector. */
|
|
@@ -2,14 +2,12 @@ import { KernelShape, ShapeType } from '../kernel/types.js';
|
|
|
2
2
|
import { KernelAdapter } from '../kernel/interfaces/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* Get the cached type for a shape, or undefined if not cached.
|
|
5
|
-
* @testOnly Exercised by tests/shapeTypeCache.test.ts.
|
|
6
5
|
*/
|
|
7
6
|
export declare function getCachedType(shape: KernelShape): ShapeType | undefined;
|
|
8
7
|
/** Store a type for a shape. */
|
|
9
8
|
export declare function setCachedType(shape: KernelShape, type: ShapeType): void;
|
|
10
9
|
/**
|
|
11
10
|
* Check if a shape has a cached type.
|
|
12
|
-
* @testOnly Exercised by tests/shapeTypeCache.test.ts.
|
|
13
11
|
*/
|
|
14
12
|
export declare function hasCachedType(shape: KernelShape): boolean;
|
|
15
13
|
/**
|
|
@@ -7,7 +7,6 @@ export type CurveType = 'LINE' | 'CIRCLE' | 'ELLIPSE' | 'HYPERBOLA' | 'PARABOLA'
|
|
|
7
7
|
* Map a kernel curve type enum value to its string discriminant.
|
|
8
8
|
*
|
|
9
9
|
* @returns `Ok<CurveType>` on success, or `Err` if the enum value is unrecognised.
|
|
10
|
-
* @testOnly Exercised by tests/typeDiscriminants.test.ts.
|
|
11
10
|
*/
|
|
12
11
|
export declare const findCurveType: (type: number | {
|
|
13
12
|
value: number;
|
|
@@ -9,5 +9,4 @@ export interface MeasurementValueMap {
|
|
|
9
9
|
export type MeasurementKey = keyof MeasurementValueMap;
|
|
10
10
|
export declare function getCachedMeasurement<K extends MeasurementKey>(shape: object, key: K): MeasurementValueMap[K] | undefined;
|
|
11
11
|
export declare function setCachedMeasurement<K extends MeasurementKey>(shape: object, key: K, value: MeasurementValueMap[K]): void;
|
|
12
|
-
/** @testOnly Exercised by tests/measureCache.test.ts. */
|
|
13
12
|
export declare function clearMeasurementCache(shape?: object): void;
|
|
@@ -51,7 +51,6 @@ export declare function createAssembly(shapes?: ShapeOptions[]): AssemblyExporte
|
|
|
51
51
|
* ```
|
|
52
52
|
*
|
|
53
53
|
* @see {@link exporterFns!exportAssemblySTEP | exportAssemblySTEP} for the functional API equivalent.
|
|
54
|
-
* @testOnly Exercised by tests/operations-exporters.test.ts.
|
|
55
54
|
*/
|
|
56
55
|
export declare function exportSTEP(shapes?: ShapeOptions[], { unit, modelUnit }?: {
|
|
57
56
|
unit?: SupportedUnit;
|
package/dist/utils/vec2d.d.ts
CHANGED
|
@@ -31,7 +31,6 @@ export declare const squareDistance2d: ([x0, y0]: Point2D, [x1, y1]?: Point2D) =
|
|
|
31
31
|
export declare function crossProduct2d([x0, y0]: Point2D, [x1, y1]: Point2D): number;
|
|
32
32
|
/**
|
|
33
33
|
* Compute the dot product of two 2D vectors.
|
|
34
|
-
* @testOnly Exercised by tests/vectorOperations.test.ts.
|
|
35
34
|
*/
|
|
36
35
|
export declare function dotProduct2d([x0, y0]: Point2D, [x1, y1]: Point2D): number;
|
|
37
36
|
/** Compute the signed angle (in radians) between two 2D vectors. */
|