@buerli.io/react-cad 0.5.0 → 0.6.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/build/components/UI/CAD/PluginBounds.d.ts +8 -0
- package/build/components/UI/CAD/PluginTooltip.d.ts +5 -0
- package/build/components/UI/CAD/Solids/ColorPicker.d.ts +1 -1
- package/build/components/UI/CAD/hooks/useMenuItems.d.ts +1 -1
- package/build/components/UI/CAD/plugins/ProductManagement/ProdTable.d.ts +5 -9
- package/build/components/UI/CAD/plugins/ProductManagement/types.d.ts +5 -0
- package/build/components/UI/CAD/plugins/ProductManagement/useMenuItems.d.ts +1 -1
- package/build/components/UI/editors/ExpressionEditor/ExpressionEditor.d.ts +1 -1
- package/build/components/UI/editors/NumberEditor/NumOrExpr.d.ts +1 -0
- package/build/components/UI/editors/useParam.d.ts +3 -1
- package/build/index.cjs.js +1487 -917
- package/build/index.js +1515 -945
- package/build/plugins/HLConstraints/components/LimitedValue.d.ts +1 -8
- package/build/plugins/HLConstraints/components/Limits.d.ts +1 -1
- package/build/types.d.ts +3 -0
- package/package.json +3 -3
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type PBContextProps = {
|
|
3
|
+
pluginBoundsRef: React.MutableRefObject<HTMLDivElement>;
|
|
4
|
+
};
|
|
5
|
+
export declare const PBContext: React.Context<PBContextProps>;
|
|
6
|
+
export declare const PluginBounds: React.FC<{
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
3
2
|
import 'antd/dist/antd.css';
|
|
3
|
+
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
4
4
|
import { MenuItems } from '../common/Menu';
|
|
5
5
|
export declare function useMenuItems(drawingId: DrawingID, featureId: ObjectID, isActive: boolean, setEditName: React.Dispatch<React.SetStateAction<boolean>>): MenuItems;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DrawingID, ObjectID, PluginID } from '@buerli.io/core';
|
|
3
|
-
export declare
|
|
4
|
-
prodId: ObjectID;
|
|
5
|
-
key: ObjectID;
|
|
6
|
-
notCreated?: boolean;
|
|
7
|
-
type?: 'asm' | 'part';
|
|
8
|
-
}[];
|
|
9
|
-
export declare const ProdTable: React.FC<{
|
|
3
|
+
export declare const ProdList: React.FC<{
|
|
10
4
|
drawingId: DrawingID;
|
|
11
5
|
pluginId: PluginID;
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
prodIds: ObjectID[];
|
|
7
|
+
type: 'part' | 'asm';
|
|
8
|
+
createMode: boolean;
|
|
9
|
+
setCreateMode: React.Dispatch<React.SetStateAction<boolean>>;
|
|
14
10
|
}>;
|
|
@@ -2,4 +2,4 @@ import React from 'react';
|
|
|
2
2
|
import 'antd/dist/antd.css';
|
|
3
3
|
import { DrawingID, ObjectID, PluginID } from '@buerli.io/core';
|
|
4
4
|
import { MenuItems } from '../../common/Menu';
|
|
5
|
-
export declare function useMenuItems(drawingId: DrawingID, prodId: ObjectID, setEditName: React.Dispatch<React.SetStateAction<boolean
|
|
5
|
+
export declare function useMenuItems(drawingId: DrawingID, pluginId: PluginID, prodId: ObjectID, setEditName: React.Dispatch<React.SetStateAction<boolean>>): MenuItems;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { MemberParam } from '../../../../types';
|
|
3
2
|
import { ExprMemToModify } from '@buerli.io/classcad';
|
|
3
|
+
import { MemberParam } from '../../../../types';
|
|
4
4
|
export declare const ExpressionEditor: React.FC<{
|
|
5
5
|
name: string;
|
|
6
6
|
expression: string;
|
|
@@ -12,7 +12,9 @@ import { MemberParam } from '../../../types';
|
|
|
12
12
|
* @param validation - Custom validation (used in useMateParam, useRefsParam. - these params has an array in userValue, so we need to apply validateF for each element from array).
|
|
13
13
|
* @returns
|
|
14
14
|
*/
|
|
15
|
-
export declare function useParam<T>(param: Omit<MemberParam<T>, 'serverValue' | 'validator' | 'setValidator'>, getServValue?: (x: T) => T, validation?: {
|
|
15
|
+
export declare function useParam<T>(param: Omit<MemberParam<T>, 'serverValue' | 'validator' | 'setValidator' | 'options'>, getServValue?: (x: T) => T, validation?: {
|
|
16
16
|
validator: () => string[];
|
|
17
17
|
setValidator: (...args: any[]) => void;
|
|
18
|
+
}, options?: {
|
|
19
|
+
[key: string]: any;
|
|
18
20
|
}): MemberParam<T>;
|