@buerli.io/react-cad 0.13.1-beta.4 → 0.13.1-beta.8.apiversion
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/PluginsWindows.d.ts +5 -2
- package/build/components/UI/CAD/hooks/useCurrentInstance.d.ts +1 -1
- package/build/components/UI/CAD/hooks/useCurrentProduct.d.ts +1 -1
- package/build/components/UI/CAD/hooks/useRoot.d.ts +1 -1
- package/build/components/UI/CAD/index.d.ts +1 -0
- package/build/components/UI/editors/BooleanEditor/BooleanEditor.d.ts +7 -0
- package/build/components/UI/editors/BooleanEditor/useBoolParam.d.ts +2 -0
- package/build/components/UI/editors/NumberEditor/NumberEditor.d.ts +10 -0
- package/build/components/UI/editors/NumberEditor/useNumParam.d.ts +4 -0
- package/build/components/UI/editors/PointEditor/PointEditor.d.ts +9 -1
- package/build/components/UI/editors/PointEditor/usePointParam.d.ts +3 -1
- package/build/components/UI/editors/RefsEditors/useModes.d.ts +6 -2
- package/build/components/UI/editors/TypeEditor/useTypeParam.d.ts +2 -0
- package/build/index.cjs.js +9231 -8521
- package/build/index.d.ts +4 -1
- package/build/index.js +20865 -20158
- package/build/plugins/Expressions/useContextMenuItems.d.ts +4 -0
- package/build/plugins/Sketch/View/graphics/TmpAngularDimension.d.ts +0 -2
- package/build/plugins/Sketch/View/graphics/primitives.d.ts +0 -14
- package/build/plugins/Sketch/View/handlers/HandlersConstructors.d.ts +2 -2
- package/build/plugins/Sketch/View/handlers/Use.d.ts +3 -0
- package/build/plugins/Sketch/View/handlers/filletHelpers.d.ts +5 -6
- package/build/plugins/Sketch/View/handlers/splitHelpers.d.ts +11 -28
- package/build/plugins/Sketch/types.d.ts +1 -6
- package/build/plugins/components/PluginForm.d.ts +12 -0
- package/build/utils/helpers.d.ts +1 -23
- package/build/utils/mateUtils.d.ts +1 -2
- package/build/utils/selection/scopes/mateSelection.d.ts +1 -1
- package/build/utils/sketchIntersectionUtils.d.ts +29 -0
- package/build/utils/sketchUtils.d.ts +173 -0
- package/package.json +4 -9
- package/build/plugins/Sketch/View/graphics/RubberBandSelection.d.ts +0 -2
- package/build/plugins/Sketch/View/handlers/UseRef.d.ts +0 -3
- package/build/plugins/Sketch/utils/getEntities.d.ts +0 -2
- package/build/plugins/Sketch/utils/getGeometryPriority.d.ts +0 -2
|
@@ -13,8 +13,11 @@ export declare const FeaturePlugin: React.FC<{
|
|
|
13
13
|
drawingId: DrawingID;
|
|
14
14
|
modalProps?: ModalProps;
|
|
15
15
|
}>;
|
|
16
|
-
export declare
|
|
16
|
+
export declare type GlobalPluginsProps = {
|
|
17
|
+
/** The drawing id. */
|
|
17
18
|
drawingId: DrawingID;
|
|
19
|
+
/** Optional modal properties for the global plugins */
|
|
18
20
|
modalProps?: ModalProps;
|
|
19
|
-
}
|
|
21
|
+
};
|
|
22
|
+
export declare const GlobalPlugins: React.FC<GlobalPluginsProps>;
|
|
20
23
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DrawingID } from '@buerli.io/core';
|
|
2
|
-
export declare const useCurrentInstance: (drawingId: DrawingID) => import("@buerli.io/core").
|
|
2
|
+
export declare const useCurrentInstance: (drawingId: DrawingID) => import("@buerli.io/core").ScgObject | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DrawingID } from '@buerli.io/core';
|
|
2
|
-
export declare const useCurrentProduct: (drawingId: DrawingID) => import("@buerli.io/core").
|
|
2
|
+
export declare const useCurrentProduct: (drawingId: DrawingID) => import("@buerli.io/core").ScgObject | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DrawingID } from '@buerli.io/core';
|
|
2
|
-
export declare const useRoot: (drawingId: DrawingID) => import("@buerli.io/core").
|
|
2
|
+
export declare const useRoot: (drawingId: DrawingID) => import("@buerli.io/core").ScgObject | undefined;
|
|
@@ -10,6 +10,7 @@ export { ViewOptionButtons } from './ViewOptionsBar/ViewOptionButtons';
|
|
|
10
10
|
export { ViewPlugButtons } from './ViewPlugButtons';
|
|
11
11
|
export { ContextMenu } from './common/ContextMenu';
|
|
12
12
|
export { Menu } from './common/Menu';
|
|
13
|
+
export type { GlobalPluginsProps } from './PluginsWindows';
|
|
13
14
|
export type { MenuInfo, MenuElement } from './common/ContextMenu';
|
|
14
15
|
export type { MenuItem, MenuItems } from './common/Menu';
|
|
15
16
|
export { useOperationSequence } from './hooks/useOperationSequence';
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MemberParam } from '../../../../types';
|
|
3
|
+
/** @deprecated */
|
|
3
4
|
export declare const BooleanEditor: React.FC<{
|
|
4
5
|
param: MemberParam<0 | 1>;
|
|
5
6
|
inverted?: boolean;
|
|
6
7
|
icon?: boolean | any[];
|
|
7
8
|
caption?: string;
|
|
8
9
|
}>;
|
|
10
|
+
export declare const BooleanEditor_v1: React.FC<{
|
|
11
|
+
param: MemberParam<boolean>;
|
|
12
|
+
inverted?: boolean;
|
|
13
|
+
icon?: boolean | any[];
|
|
14
|
+
caption?: string;
|
|
15
|
+
}>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
2
2
|
import { MemberParam } from '../../../../types';
|
|
3
|
+
/** @deprecated */
|
|
3
4
|
export declare function useBoolParam(drawingId: DrawingID, objId: ObjectID, memberName: string): MemberParam<0 | 1>;
|
|
5
|
+
export declare function useBoolParam_v1(drawingId: DrawingID, objId: ObjectID, memberName: string): MemberParam<boolean>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DrawingID } from '@buerli.io/core';
|
|
3
3
|
import { MemberParam, APIParam } from '../../../../types';
|
|
4
|
+
/** @deprecated */
|
|
4
5
|
export declare const NumberEditor: React.FC<{
|
|
5
6
|
param: MemberParam<APIParam<number>>;
|
|
6
7
|
drawingId: DrawingID;
|
|
@@ -10,3 +11,12 @@ export declare const NumberEditor: React.FC<{
|
|
|
10
11
|
allowExpr?: boolean;
|
|
11
12
|
children?: React.ReactNode;
|
|
12
13
|
}>;
|
|
14
|
+
export declare const NumberEditor_v1: React.FC<{
|
|
15
|
+
param: MemberParam<number | string>;
|
|
16
|
+
drawingId: DrawingID;
|
|
17
|
+
iconUrl?: string;
|
|
18
|
+
caption?: string;
|
|
19
|
+
validator?: (numParam: number | string, pName?: string) => string[];
|
|
20
|
+
allowExpr?: boolean;
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
}>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
2
2
|
import { MemberParam, APIParam } from '../../../../types';
|
|
3
|
+
/** @deprecated */
|
|
3
4
|
export declare function useNumParam(drawingId: DrawingID, objId: ObjectID, memberName: string, options?: {
|
|
4
5
|
angle: boolean;
|
|
5
6
|
}): MemberParam<APIParam<number>>;
|
|
7
|
+
export declare function useNumParam_v1(drawingId: DrawingID, objId: ObjectID, memberName: string, options?: {
|
|
8
|
+
angle: boolean;
|
|
9
|
+
}): MemberParam<number | string>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DrawingID, PointMemValue } from '@buerli.io/core';
|
|
2
|
+
import { DrawingID, PointMemValue, ScgPoint } from '@buerli.io/core';
|
|
3
3
|
import { MemberParam, APIParam } from '../../../../types';
|
|
4
|
+
/** @deprecated */
|
|
4
5
|
export declare const PointEditor: React.FC<{
|
|
5
6
|
param: MemberParam<APIParam<PointMemValue>>;
|
|
6
7
|
drawingId: DrawingID;
|
|
@@ -8,3 +9,10 @@ export declare const PointEditor: React.FC<{
|
|
|
8
9
|
caption?: string;
|
|
9
10
|
validator?: (x: APIParam<PointMemValue>, pName?: string) => string[];
|
|
10
11
|
}>;
|
|
12
|
+
export declare const PointEditor_v1: React.FC<{
|
|
13
|
+
param: MemberParam<ScgPoint | string>;
|
|
14
|
+
drawingId: DrawingID;
|
|
15
|
+
iconUrl?: string;
|
|
16
|
+
caption?: string;
|
|
17
|
+
validator?: (x: ScgPoint | string, pName?: string) => string[];
|
|
18
|
+
}>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { DrawingID, PointMemValue, ObjectID } from '@buerli.io/core';
|
|
1
|
+
import { DrawingID, PointMemValue, ObjectID, ScgPoint } from '@buerli.io/core';
|
|
2
2
|
import { MemberParam, APIParam } from '../../../../types';
|
|
3
|
+
/** @deprecated */
|
|
3
4
|
export declare function usePointParam(drawingId: DrawingID, objId: ObjectID, memberName: string, options?: {
|
|
4
5
|
angle: boolean;
|
|
5
6
|
}): MemberParam<APIParam<PointMemValue>>;
|
|
7
|
+
export declare function usePointParam_v1(drawingId: DrawingID, objId: ObjectID, memberName: string): MemberParam<ScgPoint | string>;
|
|
@@ -2,6 +2,10 @@ import { DrawingID, SelectorID, SelectedItem } from '@buerli.io/core';
|
|
|
2
2
|
import { SelectorsOrderT } from '../../../../utils/selection/useSelectorsOrder';
|
|
3
3
|
export declare function useModes(drawingId: DrawingID, sketchLines: boolean, setParamRefs: (selId: SelectorID, items: SelectedItem[]) => void, selectorsOrder?: SelectorsOrderT): {
|
|
4
4
|
name: string;
|
|
5
|
-
customSelect: (selId: SelectorID, newItems: SelectedItem[], diff: SelectedItem[]
|
|
6
|
-
|
|
5
|
+
customSelect: (selId: SelectorID, newItems: SelectedItem[], diff: SelectedItem[], options?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
} | undefined) => void;
|
|
8
|
+
customUnSelect: (selId: SelectorID, newItems: SelectedItem[], diff: SelectedItem[], options?: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
} | undefined) => void;
|
|
7
11
|
}[];
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
2
2
|
import { MemberParam } from '../../../../types';
|
|
3
|
+
/** @deprecated */
|
|
3
4
|
export declare function useTypeParam(drawingId: DrawingID, objId: ObjectID, memberName: string): MemberParam<number>;
|
|
5
|
+
export declare function useTypeParam_v1(drawingId: DrawingID, objId: ObjectID, memberName: string): MemberParam<number>;
|