@buerli.io/react-cad 0.12.0 → 0.13.1-beta.2
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/ModelTree/AssemblyNode.d.ts +3 -0
- package/build/components/UI/CAD/common/Collapse.d.ts +8 -0
- package/build/components/UI/CAD/common/ContextMenu.d.ts +4 -2
- package/build/components/UI/CAD/common/primitives.d.ts +1 -0
- package/build/components/UI/CAD/hooks/index.d.ts +1 -0
- package/build/components/UI/CAD/hooks/useGlobalMateInfo.d.ts +6 -0
- package/build/components/UI/CAD/store/CADActions.d.ts +1 -0
- package/build/components/UI/CAD/store/CADStore.d.ts +8 -1
- package/build/components/graphics/CSysDisplay.d.ts +19 -2
- package/build/index.cjs.js +9259 -7959
- package/build/index.d.ts +8 -3
- package/build/index.js +9220 -7928
- package/build/plugins/HLConstraints/CircularPattern/Root.d.ts +6 -0
- package/build/plugins/HLConstraints/CircularPattern/View.d.ts +6 -0
- package/build/plugins/HLConstraints/CircularPattern/index.d.ts +5 -0
- package/build/plugins/HLConstraints/Gear/Root.d.ts +6 -0
- package/build/plugins/HLConstraints/Gear/View.d.ts +6 -0
- package/build/plugins/HLConstraints/Gear/index.d.ts +5 -0
- package/build/plugins/HLConstraints/Group/Root.d.ts +6 -0
- package/build/plugins/HLConstraints/Group/index.d.ts +4 -0
- package/build/plugins/HLConstraints/LinearPattern/Root.d.ts +6 -0
- package/build/plugins/HLConstraints/LinearPattern/View.d.ts +6 -0
- package/build/plugins/HLConstraints/LinearPattern/index.d.ts +5 -0
- package/build/plugins/HLConstraints/Spherical/Root.d.ts +6 -0
- package/build/plugins/HLConstraints/Spherical/View.d.ts +6 -0
- package/build/plugins/HLConstraints/Spherical/index.d.ts +5 -0
- package/build/plugins/HLConstraints/components/CSysDisplayWrapper.d.ts +7 -0
- package/build/plugins/HLConstraints/components/HLConstrIcon.d.ts +7 -0
- package/build/plugins/HLConstraints/components/LimitedValue.d.ts +1 -1
- package/build/plugins/HLConstraints/components/Limits.d.ts +6 -0
- package/build/plugins/Sketch/utils/Interaction.d.ts +2 -1
- package/build/utils/mateUtils.d.ts +4 -0
- package/build/utils/selection/filters.d.ts +1 -0
- package/package.json +5 -4
|
@@ -2,12 +2,18 @@ import React from 'react';
|
|
|
2
2
|
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
3
3
|
import { LimitsParam } from '@buerli.io/classcad';
|
|
4
4
|
import { MemberParam } from '../../../types';
|
|
5
|
+
export declare enum LimitsDiplayType {
|
|
6
|
+
MIN = 0,
|
|
7
|
+
MAX = 1,
|
|
8
|
+
MINMAX = 2
|
|
9
|
+
}
|
|
5
10
|
export declare function useLimitsParam(drawingId: DrawingID, objId: ObjectID, memberName: string, options?: {
|
|
6
11
|
angle?: boolean;
|
|
7
12
|
forceNoLimits?: boolean;
|
|
8
13
|
}): MemberParam<LimitsParam>;
|
|
9
14
|
export declare const Limits: React.FC<{
|
|
10
15
|
param: MemberParam<LimitsParam>;
|
|
16
|
+
displayType?: LimitsDiplayType;
|
|
11
17
|
onUpdate?: any;
|
|
12
18
|
caption?: string;
|
|
13
19
|
validator?: (numParam: LimitsParam, pName?: string) => string[];
|
|
@@ -2,5 +2,6 @@ import * as THREE from 'three';
|
|
|
2
2
|
import { DrawingID, PluginID, ObjectID } from '@buerli.io/core';
|
|
3
3
|
export declare const hover: (drawingId: DrawingID, pluginId: PluginID, objIds: ObjectID[], hoverPos?: THREE.Vector3) => void;
|
|
4
4
|
export declare const unhover: (drawingId: DrawingID, pluginId: PluginID, objId: ObjectID) => void;
|
|
5
|
-
export declare const select: (drawingId: DrawingID,
|
|
5
|
+
export declare const select: (drawingId: DrawingID, selectedId: ObjectID) => void;
|
|
6
|
+
export declare const setSelected: (drawingId: DrawingID, selectedIds: ObjectID[]) => void;
|
|
6
7
|
export declare const tab: (drawingId: DrawingID, pluginId: PluginID) => void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
2
|
+
export declare const getAncestors: (drawingId: DrawingID, objectId: ObjectID) => number[];
|
|
3
|
+
export declare const getActiveReference: (drawingId: DrawingID, matePath: ObjectID[], activeRefs: ObjectID[]) => number | undefined;
|
|
4
|
+
export declare const getProductRigidSet: (drawingId: DrawingID, productId: ObjectID, rigidSets: ObjectID[]) => number | undefined;
|
|
@@ -8,4 +8,5 @@ export declare const workPlaneFilter: (scope: any, data: any) => boolean;
|
|
|
8
8
|
export declare const workAxisFilter: (scope: any, data: any) => boolean;
|
|
9
9
|
export declare const csysFilter: (scope: any, data: any) => boolean;
|
|
10
10
|
export declare const mateFilter: (scope: any, data: any) => boolean;
|
|
11
|
+
export declare const instanceFilter: (scope: any, data: any) => boolean;
|
|
11
12
|
export declare const curveEntityFilter: (scope: any, data: any) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buerli.io/react-cad",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.1-beta.2",
|
|
4
4
|
"description": "buerli CAD components",
|
|
5
5
|
"author": "AWV Informatik AG <info@awv-informatik.ch>",
|
|
6
6
|
"repository": {},
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@babel/preset-env": "^7.15.0",
|
|
38
38
|
"@babel/preset-react": "^7.14.5",
|
|
39
39
|
"@babel/preset-typescript": "^7.10.4",
|
|
40
|
-
"@buerli.io/icons": "^1.0.
|
|
40
|
+
"@buerli.io/icons": "^1.0.14",
|
|
41
41
|
"@react-three/drei": "9.92.3",
|
|
42
42
|
"@react-three/fiber": "8.15.14",
|
|
43
43
|
"@rollup/plugin-babel": "^5.3.0",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"@typescript-eslint/parser": "^5.21.0",
|
|
57
57
|
"babel-jest": "^26.1.0",
|
|
58
58
|
"babel-plugin-module-resolver": "^4.0.0",
|
|
59
|
+
"babel-plugin-transform-import-meta": "^2.2.1",
|
|
59
60
|
"babel-polyfill": "^6.26.0",
|
|
60
61
|
"eslint": "8.0.0",
|
|
61
62
|
"eslint-config-prettier": "^8.3.0",
|
|
@@ -90,8 +91,8 @@
|
|
|
90
91
|
"react": ">=18.0"
|
|
91
92
|
},
|
|
92
93
|
"dependencies": {
|
|
93
|
-
"@buerli.io/classcad": "0.
|
|
94
|
-
"@buerli.io/react": "0.
|
|
94
|
+
"@buerli.io/classcad": "0.13.1-beta.2",
|
|
95
|
+
"@buerli.io/react": "0.13.1-beta.2",
|
|
95
96
|
"@dnd-kit/core": "^6.0.8",
|
|
96
97
|
"@dnd-kit/modifiers": "^6.0.1",
|
|
97
98
|
"@dnd-kit/sortable": "^7.0.2",
|