@buerli.io/react-cad 0.0.24-beta.1 → 0.2.1-beta.1
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/Drawing.d.ts +22 -1
- package/build/components/UI/CAD/ListPlaceholder.d.ts +2 -0
- package/build/components/UI/CAD/ModelTree/AssemblyNode.d.ts +0 -1
- package/build/components/UI/CAD/ModelTree/FeatureList/Feature.d.ts +2 -2
- package/build/components/UI/CAD/SideBar.d.ts +1 -1
- package/build/components/UI/CAD/Solids/Solids.d.ts +2 -2
- package/build/components/UI/CAD/Solids/useVisibleSolids.d.ts +2 -0
- package/build/components/UI/CAD/ToolBar/useCommands.d.ts +1 -1
- package/build/components/UI/CAD/common/EntityName.d.ts +2 -3
- package/build/components/UI/CAD/common/primitives.d.ts +3 -1
- package/build/components/UI/CAD/hooks/index.d.ts +5 -4
- package/build/components/UI/CAD/hooks/useHasPending.d.ts +8 -0
- package/build/components/UI/CAD/hooks/useIsLoading.d.ts +8 -0
- package/build/components/UI/CAD/index.d.ts +1 -0
- package/build/components/UI/editors/BooleanEditor/BooleanEditor.d.ts +1 -0
- package/build/components/UI/editors/Wrapper.d.ts +1 -0
- package/build/components/graphics/HoveredConstraintDisplay.d.ts +2 -1
- package/build/components/utils/CompValidation/validators/DrawingValidator.d.ts +1 -1
- package/build/index.cjs.js +1831 -1090
- package/build/index.d.ts +4 -1
- package/build/index.js +1816 -1079
- package/build/plugins/Measure/Root.d.ts +1 -1
- package/build/plugins/Mirror/Root.d.ts +6 -0
- package/build/plugins/Mirror/index.d.ts +4 -0
- package/build/plugins/Sketch/Root/PlaneSelection.d.ts +7 -0
- package/build/plugins/Sketch/View/graphics/Merged/Arc.d.ts +2 -1
- package/build/plugins/Sketch/View/graphics/Merged/Circle.d.ts +1 -0
- package/build/plugins/Sketch/description.d.ts +1 -1
- package/build/plugins/SliceBySheet/Root.d.ts +6 -0
- package/build/plugins/SliceBySheet/index.d.ts +4 -0
- package/build/utils/selection/filters.d.ts +2 -0
- package/package.json +5 -5
- package/build/components/UI/CAD/hooks/useComponentInteraction.d.ts +0 -14
- package/build/components/utils/CompValidation/validators/ModelTreeValidator.d.ts +0 -11
- package/build/components/utils/CompValidation/validators/SideBarValidator.d.ts +0 -11
|
@@ -2,10 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import * as THREE from 'three';
|
|
3
3
|
import { DrawingID, PluginID } from '@buerli.io/core';
|
|
4
4
|
import { commonProps } from '../primitives';
|
|
5
|
-
export declare const useTubeRadius: (drawingId: DrawingID, pluginId: PluginID) => number;
|
|
5
|
+
export declare const useTubeRadius: (drawingId: DrawingID, pluginId: PluginID, scalePlus?: boolean | undefined) => number;
|
|
6
6
|
export declare const Arc: React.FC<{
|
|
7
7
|
start: THREE.Vector3;
|
|
8
8
|
end: THREE.Vector3;
|
|
9
9
|
center: THREE.Vector3;
|
|
10
10
|
clockwise: boolean;
|
|
11
|
+
scalePlus?: boolean;
|
|
11
12
|
} & commonProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PluginDescription } from '@buerli.io/core';
|
|
2
2
|
import { SketchPState } from './types';
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const getInitialState: () => SketchPState;
|
|
4
4
|
export declare const description: PluginDescription;
|
|
5
5
|
export declare const tolerance = 0.000001;
|
|
@@ -4,6 +4,8 @@ export declare const ccArcFilter: (scope: any, data: any) => boolean;
|
|
|
4
4
|
export declare const ccCircleFilter: (scope: any, data: any) => boolean;
|
|
5
5
|
export declare const lineFilter: (scope: any, data: any) => boolean;
|
|
6
6
|
export declare const lineSegmentsFilter: (scope: any, data: any) => boolean;
|
|
7
|
+
export declare const arcFilter: (scope: any, data: any) => boolean;
|
|
8
|
+
export declare const circleFilter: (scope: any, data: any) => boolean;
|
|
7
9
|
export declare const arcCircleFilter: (scope: any, data: any) => boolean;
|
|
8
10
|
export declare const pointFilter: (scope: any, data: any) => boolean;
|
|
9
11
|
export declare const meshFilter: (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.2.1-beta.1",
|
|
4
4
|
"description": "buerli CAD components",
|
|
5
5
|
"author": "AWV Informatik AG <info@awv-informatik.ch>",
|
|
6
6
|
"repository": {},
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@babel/preset-react": "^7.14.5",
|
|
48
48
|
"@babel/preset-typescript": "^7.10.4",
|
|
49
49
|
"@buerli.io/icons": "^1.0.9",
|
|
50
|
-
"@react-three/drei": "^8.
|
|
50
|
+
"@react-three/drei": "^8.16.6",
|
|
51
51
|
"@react-three/fiber": "^7.0.19",
|
|
52
52
|
"@rollup/plugin-babel": "^5.3.0",
|
|
53
53
|
"@rollup/plugin-image": "^2.1.0",
|
|
@@ -90,14 +90,14 @@
|
|
|
90
90
|
"typescript": "4.1.2"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
|
-
"@react-three/drei": "^8.
|
|
93
|
+
"@react-three/drei": "^8.16.6",
|
|
94
94
|
"@react-three/fiber": ">= 7.0.17",
|
|
95
95
|
"three": ">=0.138"
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
98
|
"@ant-design/compatible": "^1.0.8",
|
|
99
|
-
"@buerli.io/classcad": "0.
|
|
100
|
-
"@buerli.io/react": "0.
|
|
99
|
+
"@buerli.io/classcad": "0.2.1-beta.1",
|
|
100
|
+
"@buerli.io/react": "0.2.1-beta.1",
|
|
101
101
|
"antd": "^4.15.3",
|
|
102
102
|
"path-browserify": "^1.0.1",
|
|
103
103
|
"react": "^17.0.2",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
2
|
-
import { GetState, SetState } from 'zustand';
|
|
3
|
-
declare type HoverState = {
|
|
4
|
-
drawingId: DrawingID;
|
|
5
|
-
hovered: ObjectID | null;
|
|
6
|
-
api: ReturnType<typeof setters>;
|
|
7
|
-
getters: ReturnType<typeof getters>;
|
|
8
|
-
};
|
|
9
|
-
export declare const useComponentInteraction: <T>(drawingId: DrawingID, sel: (state: HoverState) => T) => T | undefined;
|
|
10
|
-
declare const setters: (set: SetState<HoverState>, get: GetState<HoverState>) => {
|
|
11
|
-
setHovered: (hovered: ObjectID | null) => void;
|
|
12
|
-
};
|
|
13
|
-
declare const getters: (get: GetState<HoverState>) => {};
|
|
14
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DrawingID } from '@buerli.io/core';
|
|
3
|
-
/**
|
|
4
|
-
* Validator for ModelTree component. Checks drawing existance.
|
|
5
|
-
*
|
|
6
|
-
* @param drawingId
|
|
7
|
-
* @returns
|
|
8
|
-
*/
|
|
9
|
-
export declare const ModelTreeValidator: React.FC<{
|
|
10
|
-
drawingId: DrawingID;
|
|
11
|
-
}>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DrawingID } from '@buerli.io/core';
|
|
3
|
-
/**
|
|
4
|
-
* Validator for SideBar component. Checks drawing, currentProduct and root existance.
|
|
5
|
-
*
|
|
6
|
-
* @param drawingId
|
|
7
|
-
* @returns
|
|
8
|
-
*/
|
|
9
|
-
export declare const SideBarValidator: React.FC<{
|
|
10
|
-
drawingId: DrawingID;
|
|
11
|
-
}>;
|