@buerli.io/react-cad 0.9.0 → 0.11.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.
Files changed (50) hide show
  1. package/build/components/UI/CAD/ModelTree/FeatureList/utils.d.ts +4 -0
  2. package/build/components/UI/CAD/ModelTree/useContextMenuItems.d.ts +5 -0
  3. package/build/components/UI/CAD/PluginsWindows.d.ts +11 -0
  4. package/build/components/UI/CAD/Solids/useContextMenuItems.d.ts +5 -0
  5. package/build/components/UI/CAD/common/ContextMenu.d.ts +31 -0
  6. package/build/components/UI/CAD/common/Icon.d.ts +5 -0
  7. package/build/components/UI/CAD/common/Img.d.ts +1 -0
  8. package/build/components/UI/CAD/hooks/index.d.ts +2 -1
  9. package/build/components/UI/CAD/hooks/useContextMenuInteraction.d.ts +7 -0
  10. package/build/components/UI/CAD/hooks/useContextMenuItems.d.ts +5 -0
  11. package/build/components/UI/CAD/index.d.ts +3 -0
  12. package/build/components/UI/CAD/plugins/ProductManagement/useContextMenuItems.d.ts +5 -0
  13. package/build/components/UI/editors/ColorEditor/ColorEditor.d.ts +9 -0
  14. package/build/components/UI/editors/ColorEditor/index.d.ts +2 -0
  15. package/build/components/UI/editors/ColorEditor/useColorParam.d.ts +9 -0
  16. package/build/components/UI/editors/ToleranceEditor/ToleranceEditor.d.ts +7 -0
  17. package/build/components/UI/editors/ToleranceEditor/index.d.ts +2 -0
  18. package/build/components/UI/editors/ToleranceEditor/useToleranceParam.d.ts +3 -0
  19. package/build/index.cjs.js +4204 -2368
  20. package/build/index.d.ts +3 -1
  21. package/build/index.js +4455 -2623
  22. package/build/plugins/AppearanceEditor/Root.d.ts +7 -0
  23. package/build/plugins/AppearanceEditor/index.d.ts +7 -0
  24. package/build/plugins/Dimensions/DimContext.d.ts +5 -3
  25. package/build/plugins/Dimensions/Root.d.ts +1 -1
  26. package/build/plugins/Dimensions/View.d.ts +3 -3
  27. package/build/plugins/Dimensions/graphics/DimensionSet.d.ts +8 -0
  28. package/build/plugins/Dimensions/index.d.ts +5 -7
  29. package/build/plugins/Dimensions/utils.d.ts +2 -0
  30. package/build/plugins/Sketch/Root/useContextMenuItems.d.ts +5 -0
  31. package/build/plugins/Sketch/View/graphics/hooks.d.ts +2 -2
  32. package/build/plugins/Sketch/View/handlers/DrawRectangle.d.ts +2 -2
  33. package/build/plugins/Sketch/View/handlers/HandlersConstructors.d.ts +4 -2
  34. package/build/plugins/Sketch/View/handlers/Split.d.ts +3 -0
  35. package/build/plugins/Sketch/View/handlers/splitHelpers.d.ts +34 -0
  36. package/build/plugins/Sketch/types.d.ts +8 -4
  37. package/build/plugins/Sketch/utils/Interaction.d.ts +3 -2
  38. package/build/plugins/Sketch/utils/getConstrEntities.d.ts +2 -0
  39. package/build/plugins/Sketch/utils/getGeometryPriority.d.ts +1 -1
  40. package/build/plugins/Twist/Root.d.ts +6 -0
  41. package/build/plugins/Twist/index.d.ts +4 -0
  42. package/build/plugins/components/PluginForm.d.ts +2 -1
  43. package/build/utils/helpers.d.ts +1 -0
  44. package/package.json +13 -13
  45. package/build/components/UI/CAD/ModelTree/useMenuItems.d.ts +0 -5
  46. package/build/components/UI/CAD/Solids/ColorPicker.d.ts +0 -7
  47. package/build/components/UI/CAD/Solids/useMenuItems.d.ts +0 -5
  48. package/build/components/UI/CAD/hooks/useMenuItems.d.ts +0 -5
  49. package/build/components/UI/CAD/plugins/ProductManagement/useMenuItems.d.ts +0 -5
  50. package/build/plugins/Sketch/Root/useMenuItems.d.ts +0 -5
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { PluginID, DrawingID } from '@buerli.io/core';
3
+ export declare function Root({ drawingId, pluginId }: {
4
+ drawingId: DrawingID;
5
+ pluginId: PluginID;
6
+ }): JSX.Element;
7
+ export default Root;
@@ -0,0 +1,7 @@
1
+ import { ObjectID, PluginDescription } from '@buerli.io/core';
2
+ import { Root } from './Root';
3
+ declare type InternalState = {
4
+ solidIds: ObjectID[];
5
+ };
6
+ declare const description: PluginDescription<InternalState>;
7
+ export { Root, description };
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
2
  import * as THREE from 'three';
3
- import { DrawingID, PluginID } from '@buerli.io/core';
4
- export declare const DimContext: React.Context<{
3
+ import { DrawingID } from '@buerli.io/core';
4
+ export declare const DimSetContext: React.Context<{
5
5
  globalToLocalM: THREE.Matrix4;
6
- pluginId: PluginID;
7
6
  drawingId: DrawingID;
8
7
  }>;
8
+ export declare const DimContext: React.Context<{
9
+ globalToLocalM: THREE.Matrix4;
10
+ }>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { DrawingID, PluginID } from '@buerli.io/core';
2
+ import { PluginID, DrawingID } from '@buerli.io/core';
3
3
  export declare const Root: React.FC<{
4
4
  drawingId: DrawingID;
5
5
  pluginId: PluginID;
@@ -1,6 +1,6 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { DrawingID, PluginID } from '@buerli.io/core';
3
- export declare const View: React.FC<{
3
+ export declare function View({ drawingId, pluginId }: {
4
4
  drawingId: DrawingID;
5
5
  pluginId: PluginID;
6
- }>;
6
+ }): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { DrawingID, ObjectID } from '@buerli.io/core';
3
+ export declare const DimensionSet: React.FC<{
4
+ drawingId: DrawingID;
5
+ objectId: ObjectID;
6
+ applyTransform?: boolean;
7
+ allowDeletion?: boolean;
8
+ }>;
@@ -1,7 +1,5 @@
1
- import { ObjectID, Plugin as PluginT } from '@buerli.io/core';
2
- export { useDimensionSetId } from './utils';
3
- export declare type DimensionsPState = {
4
- selected: ObjectID[];
5
- };
6
- declare const Plugin: PluginT;
7
- export { Plugin };
1
+ import { PluginDescription } from '@buerli.io/core';
2
+ import { View } from './View';
3
+ import { Root } from './Root';
4
+ declare const description: PluginDescription;
5
+ export { Root, View, description };
@@ -1,3 +1,5 @@
1
1
  import { DrawingID, ObjectID, IStructureObject } from '@buerli.io/core';
2
2
  export declare function useDimensionSetId(drawingId: DrawingID, ownerId: ObjectID): ObjectID | undefined;
3
3
  export declare const isAngular: (dim: IStructureObject) => boolean;
4
+ export declare const isRadial: (dim: IStructureObject) => boolean;
5
+ export declare const isDiameter: (dim: IStructureObject) => boolean;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import 'antd/dist/antd.css';
3
+ import { DrawingID, PluginID } from '@buerli.io/core';
4
+ import { MenuElement } from '../../../components/UI/CAD/common/ContextMenu';
5
+ export declare function useContextMenuItems(drawingId: DrawingID, pluginId: PluginID, setRename: React.Dispatch<React.SetStateAction<boolean>>): MenuElement[];
@@ -9,8 +9,8 @@ export declare const useGeomParams: (objId: ObjectID) => {
9
9
  declare type ObjState = {
10
10
  isSketchActive: boolean;
11
11
  isHighlighted: boolean;
12
- isHovered: boolean;
13
12
  isGHovered: boolean;
13
+ isSHovered: boolean;
14
14
  isSelected: boolean;
15
15
  lgsState: number;
16
16
  };
@@ -21,7 +21,7 @@ export declare const getColor: (object: IStructureObject, objState: ObjState) =>
21
21
  * @returns
22
22
  */
23
23
  export declare const useSketchHandlers: (objId: ObjectID) => Record<string, (e: import("@react-three/fiber/dist/declarations/src/core/events").IntersectionEvent<PointerEvent> & import("@react-three/fiber").Properties<PointerEvent> & import("../../types").PointerEventsT) => void> | undefined;
24
- export declare const useColor: (objId: ObjectID, gHovered: boolean) => number;
24
+ export declare const useColor: (objId: ObjectID) => number;
25
25
  export declare const useUserData: (objId: ObjectID) => {
26
26
  objId: number;
27
27
  onHUD: true;
@@ -1,3 +1,3 @@
1
1
  import { DrawingID, PluginID } from '@buerli.io/core';
2
- import { Handler } from '../../types';
3
- export declare function DrawRectangle(drawingId: DrawingID, pluginId: PluginID): Handler;
2
+ import { Handler, HandlersList } from '../../types';
3
+ export declare function DrawRectangle(drawingId: DrawingID, pluginId: PluginID, rectType: HandlersList.DRAWRECT2POINTS | HandlersList.DRAWRECTCENTER): Handler;
@@ -3,10 +3,10 @@ import { CreateAngle } from './CreateAngle';
3
3
  import { Drag } from './Drag';
4
4
  import { DrawPoint } from './DrawPoint';
5
5
  import { DrawLine } from './DrawLine';
6
- import { DrawRectangle } from './DrawRectangle';
7
6
  import { DrawCircle } from './DrawCircle';
8
7
  import { Fillet } from './Fillet';
9
8
  import { Trim } from './Trim';
9
+ import { Split } from './Split';
10
10
  import { UseRef } from './UseRef';
11
11
  export declare const HandlersConstructors: {
12
12
  createAngle: typeof CreateAngle;
@@ -14,10 +14,12 @@ export declare const HandlersConstructors: {
14
14
  drawPoint: typeof DrawPoint;
15
15
  drawLine: typeof DrawLine;
16
16
  drawCircle: typeof DrawCircle;
17
- drawRectangle: typeof DrawRectangle;
18
17
  fillet: typeof Fillet;
19
18
  trim: typeof Trim;
19
+ split: typeof Split;
20
20
  useReference: typeof UseRef;
21
+ drawRect2Points: (drawingId: DrawingID, pluginId: PluginID) => import("../../types").Handler;
22
+ drawRectCenter: (drawingId: DrawingID, pluginId: PluginID) => import("../../types").Handler;
21
23
  drawArcCenter: (drawingId: DrawingID, pluginId: PluginID) => import("../../types").Handler;
22
24
  drawArcMidlde: (drawingId: DrawingID, pluginId: PluginID) => import("../../types").Handler;
23
25
  drawArcTangent: (drawingId: DrawingID, pluginId: PluginID) => import("../../types").Handler;
@@ -0,0 +1,3 @@
1
+ import { DrawingID, PluginID } from '@buerli.io/core';
2
+ import { Handler } from '../../types';
3
+ export declare function Split(drawingId: DrawingID, pluginId: PluginID): Handler;
@@ -0,0 +1,34 @@
1
+ import * as THREE from 'three';
2
+ import { DrawingID, ObjectID } from "@buerli.io/core";
3
+ import { CCClasses } from "@buerli.io/classcad";
4
+ declare type CommonInfo = {
5
+ class: CCClasses.CCLine | CCClasses.CCArc | CCClasses.CCCircle;
6
+ bb: THREE.Box2;
7
+ };
8
+ declare type LineInfo = CommonInfo & {
9
+ start: THREE.Vector3;
10
+ end: THREE.Vector3;
11
+ dir: THREE.Vector3;
12
+ };
13
+ declare type ArcInfo = CommonInfo & {
14
+ start: THREE.Vector3;
15
+ end: THREE.Vector3;
16
+ center: THREE.Vector3;
17
+ radius: number;
18
+ clockwise: boolean;
19
+ startAngle: number;
20
+ endAngle: number;
21
+ angularlength: number;
22
+ };
23
+ declare type CircleInfo = CommonInfo & {
24
+ center: THREE.Vector3;
25
+ radius: number;
26
+ };
27
+ export declare type ObjInfo = LineInfo | ArcInfo | CircleInfo;
28
+ export declare function getSketchObjInfo(drawingId: DrawingID, objId: ObjectID): LineInfo | CircleInfo | undefined;
29
+ export declare function getNormalizedPosition(point: THREE.Vector3, sketchObject: ObjInfo): number;
30
+ export declare function getParameterizedPosition(t: number, sketchObject: ObjInfo): THREE.Vector3;
31
+ export declare function calculateIntersections(object: ObjInfo, sketchObjects: ObjInfo[]): number[];
32
+ export declare function calculateClosestIntersection(point: THREE.Vector3, object1: ObjInfo, object2: ObjInfo): number[][];
33
+ export declare function getClosestPoint(point: THREE.Vector3, sketchObject: ObjInfo): THREE.Vector3;
34
+ export {};
@@ -9,6 +9,7 @@ export declare type HighlightedConstraintsT = Array<{
9
9
  }>;
10
10
  export declare type SketchPState = {
11
11
  alwaysShowConstr: boolean;
12
+ showCoincidence: boolean;
12
13
  constraintsToGeometry: {
13
14
  [key: number]: ObjectID;
14
15
  };
@@ -20,12 +21,11 @@ export declare type SketchPState = {
20
21
  tmpObjects: {
21
22
  [key: string]: TmpObject;
22
23
  };
23
- selected: ObjectID[];
24
- hovered: ObjectID;
25
24
  highlighted: ObjectID[];
26
25
  interaction: {
27
26
  cycle: number;
28
27
  objects: ObjectID[];
28
+ lastPos: THREE.Vector3 | undefined;
29
29
  };
30
30
  isDragged: boolean;
31
31
  scale: number;
@@ -46,7 +46,8 @@ export declare enum HandlersList {
46
46
  DRAG = "drag",
47
47
  DRAWPOINT = "drawPoint",
48
48
  DRAWLINE = "drawLine",
49
- DRAWRECTANGLE = "drawRectangle",
49
+ DRAWRECT2POINTS = "drawRect2Points",
50
+ DRAWRECTCENTER = "drawRectCenter",
50
51
  DRAWARCTANGENT = "drawArcTangent",
51
52
  DRAWARCCENTER = "drawArcCenter",
52
53
  DRAWARCMIDDLE = "drawArcMidlde",
@@ -54,6 +55,7 @@ export declare enum HandlersList {
54
55
  FILLET = "fillet",
55
56
  HOVER = "hover",
56
57
  TRIM = "trim",
58
+ SPLIT = "split",
57
59
  USEREF = "useReference",
58
60
  GSELECTION = "globalSelection"
59
61
  }
@@ -65,7 +67,7 @@ export declare type Handler = {
65
67
  name: HandlersList;
66
68
  filter: (object: IStructureObject) => boolean;
67
69
  onActivate?: () => void;
68
- onDeactivate?: () => void;
70
+ onDeactivate?: (() => void) | (() => Promise<void>);
69
71
  pointerHandlers: Record<string, (e: ThreeEvent<PointerEvent> & PointerEventsT) => void>;
70
72
  keyHandlers?: Record<string, (e: KeyboardEvent) => boolean | void>;
71
73
  };
@@ -80,6 +82,7 @@ export declare enum TmpObjClasses {
80
82
  declare type TmpObjectCommon = {
81
83
  class: TmpObjClasses;
82
84
  id: string;
85
+ color?: THREE.ColorRepresentation;
83
86
  };
84
87
  export declare type TmpLineT = TmpObjectCommon & {
85
88
  startPId: TmpObjectID;
@@ -93,6 +96,7 @@ export declare type TmpRectT = TmpObjectCommon & {
93
96
  };
94
97
  export declare type TmpPointT = TmpObjectCommon & {
95
98
  position: THREE.Vector3;
99
+ size?: number;
96
100
  };
97
101
  export declare type TmpArcT = TmpObjectCommon & {
98
102
  startPId: TmpObjectID;
@@ -1,5 +1,6 @@
1
+ import * as THREE from 'three';
1
2
  import { DrawingID, PluginID, ObjectID } from '@buerli.io/core';
2
- export declare const hover: (drawingId: DrawingID, pluginId: PluginID, hoveredId: ObjectID) => void;
3
- export declare const unhover: (drawingId: DrawingID, pluginId: PluginID, hoveredId: ObjectID) => void;
3
+ export declare const hover: (drawingId: DrawingID, pluginId: PluginID, objIds: ObjectID[], hoverPos?: THREE.Vector3) => void;
4
+ export declare const unhover: (drawingId: DrawingID, pluginId: PluginID, objId: ObjectID) => void;
4
5
  export declare const select: (drawingId: DrawingID, pluginId: PluginID, selectedId: ObjectID) => void;
5
6
  export declare const tab: (drawingId: DrawingID, pluginId: PluginID) => void;
@@ -0,0 +1,2 @@
1
+ import { DrawingID, ObjectID } from '@buerli.io/core';
2
+ export declare const getConstrEntities: (drawingId: DrawingID, constrId: ObjectID) => number[];
@@ -1,2 +1,2 @@
1
1
  import { IStructureObject } from '@buerli.io/core';
2
- export declare function getGeometryPriority(object: IStructureObject): 1 | 2 | 3 | 4 | -1 | 5;
2
+ export declare function getGeometryPriority(object: IStructureObject): 1 | 2 | 4 | 3 | -1 | 5;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { DrawingID, PluginID } from '@buerli.io/core';
3
+ export declare const Root: React.FC<{
4
+ drawingId: DrawingID;
5
+ pluginId: PluginID;
6
+ }>;
@@ -0,0 +1,4 @@
1
+ import { PluginDescription } from '@buerli.io/core';
2
+ import { Root } from './Root';
3
+ declare const description: PluginDescription;
4
+ export { Root, description };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { DrawingID } from '@buerli.io/core';
2
+ import { DrawingID, PluginID } from '@buerli.io/core';
3
3
  import { MemberParam } from '../../types';
4
4
  /**
5
5
  * @param drawingId - id of the drawing.
@@ -14,6 +14,7 @@ import { MemberParam } from '../../types';
14
14
  */
15
15
  export declare const PluginForm: React.FC<{
16
16
  drawingId: DrawingID;
17
+ pluginId: PluginID;
17
18
  update: () => Promise<void>;
18
19
  params: Record<string, MemberParam<any>>;
19
20
  children?: React.ReactNode;
@@ -33,4 +33,5 @@ export declare function rgbToHex(color: {
33
33
  }): string;
34
34
  export declare function fmod(num: number, denom: number): number;
35
35
  export declare function numberToHexColor(color: number): string;
36
+ export declare const solveQuadratic: (a: number, b: number, c: number) => number[];
36
37
  export declare const solveQuartic: (a: number, b: number, c: number, d: number, e: number) => number[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buerli.io/react-cad",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "description": "buerli CAD components",
5
5
  "author": "AWV Informatik AG <info@awv-informatik.ch>",
6
6
  "repository": {},
@@ -37,8 +37,8 @@
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.10",
41
- "@react-three/drei": "9.77.1",
40
+ "@buerli.io/icons": "^1.0.12",
41
+ "@react-three/drei": "9.92.3",
42
42
  "@react-three/fiber": "8.13.0",
43
43
  "@rollup/plugin-babel": "^5.3.0",
44
44
  "@rollup/plugin-image": "^2.1.0",
@@ -71,7 +71,7 @@
71
71
  "jest-environment-jsdom": "^29.1.2",
72
72
  "lint-staged": "10.5.3",
73
73
  "postcss": "^8.2.14",
74
- "prettier": "^2.4.0",
74
+ "prettier": "^3.0.0",
75
75
  "react": "18.0.0",
76
76
  "react-dom": "18.0.0",
77
77
  "react-test-renderer": "^16.13.1",
@@ -84,26 +84,26 @@
84
84
  "typescript": "4.8.4"
85
85
  },
86
86
  "peerDependencies": {
87
- "@react-three/drei": ">=9.77.1",
87
+ "@react-three/drei": ">=9.92.3",
88
88
  "@react-three/fiber": ">=8.13.0",
89
89
  "three": ">=0.153",
90
90
  "react": ">=18.0"
91
91
  },
92
92
  "dependencies": {
93
- "@ant-design/compatible": "^1.0.8",
94
- "@buerli.io/classcad": "0.9.0",
95
- "@buerli.io/react": "0.9.0",
96
- "@react-three/postprocessing": "2.14.9",
93
+ "@buerli.io/classcad": "0.11.0",
94
+ "@buerli.io/react": "0.11.0",
95
+ "@dnd-kit/core": "^6.0.8",
96
+ "@dnd-kit/modifiers": "^6.0.1",
97
+ "@dnd-kit/sortable": "^7.0.2",
98
+ "@react-three/postprocessing": "2.15.0",
97
99
  "antd": "^4.23.4",
98
100
  "path-browserify": "^1.0.1",
99
- "postprocessing": "6.31.0",
101
+ "postprocessing": "6.33.0",
100
102
  "react-colorful": "^5.3.0",
101
- "react-movable": "^2.3.0",
102
- "react-sortable-hoc": "^2.0.0",
103
103
  "react-uid": "^2.3.1",
104
104
  "styled-components": "^5.3.1",
105
105
  "three-rounded-box": "^0.1.1",
106
- "uuid": "^3.3.2",
106
+ "uuid": "^9.0.0",
107
107
  "zustand": "^4.1.4"
108
108
  }
109
109
  }
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import 'antd/dist/antd.css';
3
- import { DrawingID, ObjectID } from '@buerli.io/core';
4
- import { MenuItems } from '../common/Menu';
5
- export declare function useMenuItems(drawingId: DrawingID, objectId: ObjectID, setRename: React.Dispatch<React.SetStateAction<boolean>>): MenuItems;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import './colorPicker.css';
3
- import { DrawingID, ObjectID } from '@buerli.io/core';
4
- export declare const ColorPicker: React.FC<{
5
- drawingId: DrawingID;
6
- solidId: ObjectID;
7
- }>;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import 'antd/dist/antd.css';
3
- import { DrawingID, ObjectID } from '@buerli.io/core';
4
- import { MenuItems } from '../common/Menu';
5
- export declare function useMenuItems(drawingId: DrawingID, solidId: ObjectID, setEditName: React.Dispatch<React.SetStateAction<boolean>>): MenuItems;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import 'antd/dist/antd.css';
3
- import { DrawingID, ObjectID } from '@buerli.io/core';
4
- import { MenuItems } from '../common/Menu';
5
- export declare function useMenuItems(drawingId: DrawingID, featureId: ObjectID, isActive: boolean, setEditName: React.Dispatch<React.SetStateAction<boolean>>): MenuItems;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import 'antd/dist/antd.css';
3
- import { DrawingID, ObjectID, PluginID } from '@buerli.io/core';
4
- import { MenuItems } from '../../common/Menu';
5
- export declare function useMenuItems(drawingId: DrawingID, pluginId: PluginID, prodId: ObjectID, setEditName: React.Dispatch<React.SetStateAction<boolean>>): MenuItems;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import 'antd/dist/antd.css';
3
- import { DrawingID, ObjectID, PluginID } from '@buerli.io/core';
4
- import { MenuItems } from '../../../components/UI/CAD/common/Menu';
5
- export declare function useMenuItems(drawingId: DrawingID, pluginId: PluginID, objectId: ObjectID, setRename: React.Dispatch<React.SetStateAction<boolean>>): MenuItems;