@buerli.io/react-cad 0.13.1-beta.8.apiversion → 0.13.1-beta.9
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/build/components/UI/CAD/common/NameEdit.d.ts +1 -3
- package/build/components/UI/editors/ExpressionEditor/ExpressionEditor.d.ts +5 -1
- package/build/components/UI/editors/ExpressionEditor/useExpressionsParam.d.ts +1 -2
- package/build/components/UI/editors/NumberEditor/Mentions.d.ts +11 -0
- package/build/index.cjs.js +3931 -3378
- package/build/index.js +3932 -3379
- package/build/plugins/Expressions/useContextMenuItems.d.ts +3 -2
- package/build/plugins/Sketch/View/handlers/filletHelpers.d.ts +1 -2
- package/build/plugins/Sketch/View/handlers/splitHelpers.d.ts +3 -1
- package/build/utils/mateUtils.d.ts +0 -1
- package/package.json +7 -5
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import 'antd/dist/antd.css';
|
|
3
|
+
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
2
4
|
import { MenuElement } from '../../components/UI/CAD/common/ContextMenu';
|
|
3
|
-
|
|
4
|
-
export declare function useContextMenuItems(isDeleted: boolean, deletedExpressions: MemberParam<string[]>): MenuElement[];
|
|
5
|
+
export declare function useContextMenuItems(drawingId: DrawingID, productId: ObjectID, setEditName: React.Dispatch<React.SetStateAction<boolean>>): MenuElement[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
import {
|
|
2
|
+
import { ObjectID, IStructureObject, DrawingID } from '@buerli.io/core';
|
|
3
3
|
export declare function findPointsAt(drawingId: DrawingID, sketchId: ObjectID, pos: THREE.Vector3): import("@buerli.io/core").ScgObject[];
|
|
4
|
-
export declare function findConstraints(type: string, objA: IStructureObject, objB: IStructureObject, tree: IStructureTree, sketchId: ObjectID): number[];
|
|
5
4
|
declare type FilletInfo = {
|
|
6
5
|
lines: Array<IStructureObject>;
|
|
7
6
|
lineStarts: Array<IStructureObject>;
|
|
@@ -5,12 +5,14 @@ import { CCArcInfo, CCCircleInfo, CCLineInfo } from '../../../../utils/sketchInt
|
|
|
5
5
|
declare type CommonInfo = {
|
|
6
6
|
class: CCClasses.CCLine | CCClasses.CCArc | CCClasses.CCCircle;
|
|
7
7
|
bb: THREE.Box2;
|
|
8
|
+
isSplittable: boolean;
|
|
8
9
|
};
|
|
9
10
|
declare type CCLineInfoE = CommonInfo & CCLineInfo;
|
|
10
11
|
declare type CCArcInfoE = CommonInfo & CCArcInfo;
|
|
11
12
|
declare type CCCircleInfoE = CommonInfo & CCCircleInfo;
|
|
12
13
|
export declare type SketchObjInfoE = CCLineInfoE | CCArcInfoE | CCCircleInfoE;
|
|
13
|
-
export declare function getSketchObjInfo(drawingId: DrawingID, objId: ObjectID): CCLineInfoE | CCCircleInfoE | undefined;
|
|
14
|
+
export declare function getSketchObjInfo(drawingId: DrawingID, objId: ObjectID, unsplittableIds: ObjectID[]): CCLineInfoE | CCCircleInfoE | undefined;
|
|
15
|
+
export declare function getRigidsetEntityIds(drawingId: DrawingID, sketchId: ObjectID): number[];
|
|
14
16
|
export declare function calculateIntersections(object: SketchObjInfoE, sketchObjects: SketchObjInfoE[]): number[];
|
|
15
17
|
export declare function calculateClosestIntersection(point: THREE.Vector3, object1: SketchObjInfoE, object2: SketchObjInfoE): number[][];
|
|
16
18
|
export declare function getClosestPoint(point: THREE.Vector3, sketchObject: SketchObjInfoE): THREE.Vector3;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
2
|
-
export declare const getActiveReference: (drawingId: DrawingID, matePath: ObjectID[], activeRefs: ObjectID[]) => number | undefined;
|
|
3
2
|
export declare const getProductRigidSet: (drawingId: DrawingID, instanceId: ObjectID, rigidSets: ObjectID[]) => number | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buerli.io/react-cad",
|
|
3
|
-
"version": "0.13.1-beta.
|
|
3
|
+
"version": "0.13.1-beta.9",
|
|
4
4
|
"description": "buerli CAD components",
|
|
5
5
|
"author": "AWV Informatik AG <info@awv-informatik.ch>",
|
|
6
6
|
"repository": {},
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"@rollup/plugin-node-resolve": "^13.0.4",
|
|
41
41
|
"@testing-library/jest-dom": "^5.11.5",
|
|
42
42
|
"@testing-library/react": "^13.4.0",
|
|
43
|
+
"@testing-library/user-event": "^14.6.1",
|
|
43
44
|
"@types/jest": "^29.1.2",
|
|
44
45
|
"@types/node": "^11.13.8",
|
|
45
46
|
"@types/path-browserify": "^1.0.0",
|
|
@@ -82,17 +83,18 @@
|
|
|
82
83
|
"peerDependencies": {
|
|
83
84
|
"@react-three/drei": ">=9.92.3",
|
|
84
85
|
"@react-three/fiber": ">=8.15.14",
|
|
85
|
-
"
|
|
86
|
-
"
|
|
86
|
+
"react": ">=18.0",
|
|
87
|
+
"three": ">=0.153"
|
|
87
88
|
},
|
|
88
89
|
"dependencies": {
|
|
89
|
-
"@buerli.io/classcad": "0.13.1-beta.
|
|
90
|
-
"@buerli.io/react": "0.13.1-beta.
|
|
90
|
+
"@buerli.io/classcad": "0.13.1-beta.9",
|
|
91
|
+
"@buerli.io/react": "0.13.1-beta.9",
|
|
91
92
|
"@dnd-kit/core": "^6.0.8",
|
|
92
93
|
"@dnd-kit/modifiers": "^6.0.1",
|
|
93
94
|
"@dnd-kit/sortable": "^7.0.2",
|
|
94
95
|
"@react-three/postprocessing": "2.15.0",
|
|
95
96
|
"antd": "^4.23.4",
|
|
97
|
+
"dompurify": "^3.2.6",
|
|
96
98
|
"path-browserify": "^1.0.1",
|
|
97
99
|
"postprocessing": "6.33.0",
|
|
98
100
|
"react-colorful": "^5.3.0",
|