@buerli.io/react-cad 0.13.0 → 0.13.1-beta.11
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/ToolBar/AssemblyModeCmds.d.ts +2 -2
- package/build/components/UI/CAD/ToolBar/PartModeCmds.d.ts +2 -2
- package/build/components/UI/CAD/ToolBar/useCommands.d.ts +5 -2
- package/build/components/UI/CAD/common/MultiSelect.d.ts +12 -0
- package/build/components/UI/CAD/common/NameEdit.d.ts +1 -3
- package/build/components/UI/CAD/hooks/useContextMenuItems.d.ts +1 -1
- 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/useObjectDetails.d.ts +2 -2
- package/build/components/UI/CAD/hooks/useRollbackBar.d.ts +3 -3
- 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/CAD/plugins/ProductManagement/types.d.ts +0 -1
- package/build/components/UI/editors/BooleanEditor/BooleanEditor.d.ts +1 -1
- package/build/components/UI/editors/BooleanEditor/useBoolParam.d.ts +1 -1
- package/build/components/UI/editors/CSysEditor/CSysEditor.d.ts +4 -3
- package/build/components/UI/editors/CSysEditor/useCSysParam.d.ts +2 -2
- package/build/components/UI/editors/ExpressionEditor/ExpressionEditor.d.ts +9 -3
- package/build/components/UI/editors/ExpressionEditor/useExpressionsParam.d.ts +4 -3
- package/build/components/UI/editors/NumberEditor/Mentions.d.ts +11 -0
- package/build/components/UI/editors/NumberEditor/NumberEditor.d.ts +4 -3
- package/build/components/UI/editors/NumberEditor/useNumParam.d.ts +2 -2
- package/build/components/UI/editors/PointEditor/PointEditor.d.ts +5 -4
- package/build/components/UI/editors/PointEditor/usePointParam.d.ts +3 -3
- package/build/components/UI/editors/RefsEditors/ChainFinder.d.ts +2 -2
- package/build/components/UI/editors/RefsEditors/MateEditor.d.ts +1 -0
- package/build/components/UI/editors/RefsEditors/MateOrientationEditor.d.ts +9 -0
- package/build/components/UI/editors/RefsEditors/RefEditor.d.ts +3 -2
- package/build/components/UI/editors/RefsEditors/RefsEditor.d.ts +1 -0
- package/build/components/UI/editors/RefsEditors/useMateParam.d.ts +3 -3
- package/build/components/UI/editors/RefsEditors/useModes.d.ts +6 -2
- package/build/components/UI/editors/RefsEditors/useSelectedItems.d.ts +2 -2
- package/build/components/UI/editors/TypeWrapper.d.ts +5 -0
- package/build/components/UI/editors/Wrapper.d.ts +2 -1
- package/build/components/graphics/CSysDisplay.d.ts +5 -5
- package/build/components/graphics/SelectedMateObj.d.ts +2 -2
- package/build/components/graphics/utils/MatePathTransform.d.ts +1 -1
- package/build/components/graphics/utils/useCsysMatrix.d.ts +1 -1
- package/build/index.cjs.js +21839 -19902
- package/build/index.d.ts +5 -1
- package/build/index.js +16022 -14089
- package/build/plugins/Dimensions/utils.d.ts +4 -4
- package/build/plugins/Expressions/useContextMenuItems.d.ts +5 -0
- package/build/plugins/HLConstraints/components/LimitedValue.d.ts +1 -1
- package/build/plugins/HLConstraints/components/Limits.d.ts +6 -1
- package/build/plugins/HLConstraints/validators.d.ts +1 -1
- package/build/plugins/Sketch/Root/Constraints/constraintsHelpers.d.ts +6 -4
- package/build/plugins/Sketch/Root/Constraints/utils.d.ts +3 -3
- package/build/plugins/Sketch/Root/CopyPatterns.d.ts +0 -5
- package/build/plugins/Sketch/Root/SketchGroup.d.ts +1 -0
- package/build/plugins/Sketch/View/graphics/TmpAngularDimension.d.ts +0 -2
- package/build/plugins/Sketch/View/graphics/hooks.d.ts +4 -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 +18 -38
- package/build/plugins/Sketch/View/handlers/hoverHelpers.d.ts +3 -0
- package/build/plugins/Sketch/View/handlers/splitHelpers.d.ts +14 -29
- package/build/plugins/Sketch/types.d.ts +8 -8
- package/build/plugins/Sketch/utils/Interaction.d.ts +2 -1
- package/build/plugins/Sketch/utils/OverdefinedStateManager.d.ts +6 -0
- package/build/plugins/components/PluginForm.d.ts +1 -1
- package/build/utils/conversionUtils.d.ts +16 -0
- package/build/utils/getHighlightedColor.d.ts +1 -1
- package/build/utils/helpers.d.ts +6 -27
- package/build/utils/mateUtils.d.ts +1 -3
- package/build/utils/selection/scopes/mateSelection.d.ts +10 -10
- package/build/utils/selection/scopes/treeObjInteraction.d.ts +3 -3
- package/build/utils/sketchIntersectionUtils.d.ts +29 -0
- package/build/utils/sketchUtils.d.ts +173 -0
- package/build/utils/useScale.d.ts +3 -1
- package/build/utils/validation.d.ts +3 -4
- package/package.json +9 -11
- 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,3 +1,3 @@
|
|
|
1
1
|
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
2
|
-
import {
|
|
3
|
-
export declare const AssemblyModeCmds: (drawingId: DrawingID, rootId: ObjectID) =>
|
|
2
|
+
import { ToolBarCommand, ToolBarDivider } from './useCommands';
|
|
3
|
+
export declare const AssemblyModeCmds: (drawingId: DrawingID, rootId: ObjectID) => (ToolBarCommand | ToolBarCommand[] | ToolBarDivider)[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
2
|
-
import {
|
|
3
|
-
export declare const PartModeCmds: (drawingId: DrawingID, rootId: ObjectID) =>
|
|
2
|
+
import { ToolBarCommand, ToolBarDivider } from './useCommands';
|
|
3
|
+
export declare const PartModeCmds: (drawingId: DrawingID, rootId: ObjectID) => (ToolBarCommand | ToolBarCommand[] | ToolBarDivider)[];
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { DrawingID } from '@buerli.io/core';
|
|
2
|
-
export declare type
|
|
2
|
+
export declare type ToolBarCommand = {
|
|
3
3
|
label: string;
|
|
4
4
|
icon: any;
|
|
5
5
|
callback: () => Promise<any>;
|
|
6
6
|
};
|
|
7
|
-
export declare
|
|
7
|
+
export declare type ToolBarDivider = {
|
|
8
|
+
type: 'divider';
|
|
9
|
+
};
|
|
10
|
+
export declare function useCommands(drawingId: DrawingID, curProductClass: string | undefined): (ToolBarCommand | ToolBarDivider | ToolBarCommand[])[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ObjectID, DrawingID, InteractionInfo } from '@buerli.io/core';
|
|
3
|
+
export declare const MultiSelectContext: React.Context<{
|
|
4
|
+
setLastSelected: (objId: ObjectID, overwrite?: boolean) => void;
|
|
5
|
+
multiSelect: (objId: ObjectID) => void;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const MultiSelect: React.FC<{
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
drawingId: DrawingID;
|
|
10
|
+
items: ObjectID[];
|
|
11
|
+
createInfo: (objId: ObjectID) => InteractionInfo;
|
|
12
|
+
}>;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import 'antd/dist/antd.css';
|
|
3
|
-
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
4
3
|
export declare const NameEdit: React.FC<{
|
|
5
4
|
style?: React.CSSProperties;
|
|
6
|
-
drawingId: DrawingID;
|
|
7
|
-
objId: ObjectID;
|
|
8
5
|
name: string;
|
|
9
6
|
setEditName: React.Dispatch<React.SetStateAction<boolean>>;
|
|
7
|
+
onEnter: (text: string) => void;
|
|
10
8
|
}>;
|
|
@@ -2,4 +2,4 @@ import React from 'react';
|
|
|
2
2
|
import 'antd/dist/antd.css';
|
|
3
3
|
import { DrawingID } from '@buerli.io/core';
|
|
4
4
|
import { MenuElement } from '../common/ContextMenu';
|
|
5
|
-
export declare function useContextMenuItems(drawingId: DrawingID,
|
|
5
|
+
export declare function useContextMenuItems(drawingId: DrawingID, setEditName: React.Dispatch<React.SetStateAction<boolean>>): MenuElement[];
|
|
@@ -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,6 +1,6 @@
|
|
|
1
|
-
import { DrawingID,
|
|
1
|
+
import { DrawingID, ScgObject, ObjectID } from '@buerli.io/core';
|
|
2
2
|
declare type ObjectDetails = {
|
|
3
|
-
obj?:
|
|
3
|
+
obj?: ScgObject;
|
|
4
4
|
isPart?: boolean;
|
|
5
5
|
isAssembly?: boolean;
|
|
6
6
|
isAssemblyNode?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DrawingID,
|
|
1
|
+
import { DrawingID, ScgObject, ObjectID } from '@buerli.io/core';
|
|
2
2
|
declare type RollbackBarInfo = {
|
|
3
|
-
operationSequence?:
|
|
4
|
-
rollbackBar?:
|
|
3
|
+
operationSequence?: ScgObject;
|
|
4
|
+
rollbackBar?: ScgObject;
|
|
5
5
|
rollbackBarIndex: number;
|
|
6
6
|
};
|
|
7
7
|
export declare const useRollbackBar: (drawingId: DrawingID, partId: ObjectID) => RollbackBarInfo;
|
|
@@ -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,3 +1,3 @@
|
|
|
1
1
|
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
2
2
|
import { MemberParam } from '../../../../types';
|
|
3
|
-
export declare function useBoolParam(drawingId: DrawingID, objId: ObjectID, memberName: string): MemberParam<
|
|
3
|
+
export declare function useBoolParam(drawingId: DrawingID, objId: ObjectID, memberName: string): MemberParam<boolean>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ScgPoint } from '@buerli.io/core';
|
|
3
3
|
import { CSysRows } from '.';
|
|
4
4
|
import { MemberParam } from '../../../../types';
|
|
5
5
|
export declare const CSysEditor: React.FC<{
|
|
6
|
-
param: MemberParam<
|
|
6
|
+
param: MemberParam<ScgPoint[]>;
|
|
7
7
|
csysRow: CSysRows;
|
|
8
|
+
iconUrl?: string;
|
|
8
9
|
caption?: string;
|
|
9
|
-
validator?: (x:
|
|
10
|
+
validator?: (x: ScgPoint, pName?: string) => string[];
|
|
10
11
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DrawingID, ObjectID,
|
|
1
|
+
import { DrawingID, ObjectID, ScgPoint } from '@buerli.io/core';
|
|
2
2
|
import { MemberParam } from '../../../../types';
|
|
3
3
|
export declare enum CSysRows {
|
|
4
4
|
Position = 0,
|
|
@@ -6,4 +6,4 @@ export declare enum CSysRows {
|
|
|
6
6
|
YAxis = 2,
|
|
7
7
|
ZAxis = 3
|
|
8
8
|
}
|
|
9
|
-
export declare function useCSysParam(drawingId: DrawingID, objId: ObjectID): MemberParam<
|
|
9
|
+
export declare function useCSysParam(drawingId: DrawingID, objId: ObjectID): MemberParam<ScgPoint[]>;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
3
3
|
import { MemberParam } from '../../../../types';
|
|
4
4
|
export declare const ExpressionEditor: React.FC<{
|
|
5
|
+
drawingId: DrawingID;
|
|
6
|
+
productId: ObjectID;
|
|
5
7
|
name: string;
|
|
6
8
|
expression: string;
|
|
7
9
|
value: number;
|
|
8
|
-
editedExpressions: MemberParam<
|
|
9
|
-
|
|
10
|
+
editedExpressions: MemberParam<{
|
|
11
|
+
name: string;
|
|
12
|
+
value: string | number;
|
|
13
|
+
}[]>;
|
|
14
|
+
rename: boolean;
|
|
15
|
+
setRename: React.Dispatch<React.SetStateAction<boolean>>;
|
|
10
16
|
}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MemberParam } from '../../../../types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export declare function useEditedExpressionsParam(): MemberParam<{
|
|
3
|
+
name: string;
|
|
4
|
+
value: string | number;
|
|
5
|
+
}[]>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { MenuItemType } from 'antd/lib/menu/hooks/useItems';
|
|
3
|
+
import './mentions.css';
|
|
4
|
+
export declare const Mentions: React.FC<{
|
|
5
|
+
style: React.CSSProperties;
|
|
6
|
+
value: string;
|
|
7
|
+
options: MenuItemType[];
|
|
8
|
+
autoFocus?: boolean;
|
|
9
|
+
onChange?: (text: string) => void;
|
|
10
|
+
onBlur?: (event: React.FocusEvent) => void;
|
|
11
|
+
}>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DrawingID } from '@buerli.io/core';
|
|
3
|
-
import { MemberParam
|
|
3
|
+
import { MemberParam } from '../../../../types';
|
|
4
4
|
export declare const NumberEditor: React.FC<{
|
|
5
|
-
param: MemberParam<
|
|
5
|
+
param: MemberParam<number | string>;
|
|
6
6
|
drawingId: DrawingID;
|
|
7
|
+
iconUrl?: string;
|
|
7
8
|
caption?: string;
|
|
8
|
-
validator?: (numParam:
|
|
9
|
+
validator?: (numParam: number | string, pName?: string) => string[];
|
|
9
10
|
allowExpr?: boolean;
|
|
10
11
|
children?: React.ReactNode;
|
|
11
12
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
2
|
-
import { MemberParam
|
|
2
|
+
import { MemberParam } from '../../../../types';
|
|
3
3
|
export declare function useNumParam(drawingId: DrawingID, objId: ObjectID, memberName: string, options?: {
|
|
4
4
|
angle: boolean;
|
|
5
|
-
}): MemberParam<
|
|
5
|
+
}): MemberParam<number | string>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DrawingID,
|
|
3
|
-
import { MemberParam
|
|
2
|
+
import { DrawingID, ScgPoint } from '@buerli.io/core';
|
|
3
|
+
import { MemberParam } from '../../../../types';
|
|
4
4
|
export declare const PointEditor: React.FC<{
|
|
5
|
-
param: MemberParam<
|
|
5
|
+
param: MemberParam<ScgPoint | string>;
|
|
6
6
|
drawingId: DrawingID;
|
|
7
|
+
iconUrl?: string;
|
|
7
8
|
caption?: string;
|
|
8
|
-
validator?: (x:
|
|
9
|
+
validator?: (x: ScgPoint | string, pName?: string) => string[];
|
|
9
10
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DrawingID,
|
|
2
|
-
import { MemberParam
|
|
1
|
+
import { DrawingID, ObjectID, ScgPoint } from '@buerli.io/core';
|
|
2
|
+
import { MemberParam } from '../../../../types';
|
|
3
3
|
export declare function usePointParam(drawingId: DrawingID, objId: ObjectID, memberName: string, options?: {
|
|
4
4
|
angle: boolean;
|
|
5
|
-
}): MemberParam<
|
|
5
|
+
}): MemberParam<ScgPoint | string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DrawingID,
|
|
1
|
+
import { DrawingID, ScgObject } from '@buerli.io/core';
|
|
2
2
|
export declare class ChainFinder {
|
|
3
3
|
private tree;
|
|
4
4
|
private drawingId;
|
|
@@ -10,5 +10,5 @@ export declare class ChainFinder {
|
|
|
10
10
|
private findIncCurve;
|
|
11
11
|
private findIncCurves;
|
|
12
12
|
private getPointId;
|
|
13
|
-
findChained(curve:
|
|
13
|
+
findChained(curve: ScgObject): ScgObject[];
|
|
14
14
|
}
|
|
@@ -6,6 +6,7 @@ import { MateParam } from './useMateParam';
|
|
|
6
6
|
export declare const MateEditor: React.FC<{
|
|
7
7
|
param: MemberParam<MateParam>;
|
|
8
8
|
drawingId: DrawingID;
|
|
9
|
+
iconUrl?: string;
|
|
9
10
|
caption?: string;
|
|
10
11
|
selectorsOrder?: SelectorsOrderT;
|
|
11
12
|
validator?: (ref: ObjectID | undefined, pName?: string) => string[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID, SelectorID } from '@buerli.io/core';
|
|
3
|
+
import { MemberParam } from '../../../../types';
|
|
4
|
+
import { MateParam } from './useMateParam';
|
|
5
|
+
export declare const MateOrientationEditor: React.FC<{
|
|
6
|
+
param: MemberParam<MateParam>;
|
|
7
|
+
drawingId: DrawingID;
|
|
8
|
+
selectorId: SelectorID | undefined;
|
|
9
|
+
}>;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DrawingID,
|
|
2
|
+
import { DrawingID, ScgTree, ObjectID, SelectorID, SelectedItem } from '@buerli.io/core';
|
|
3
3
|
import { MemberParam } from '../../../../types';
|
|
4
4
|
import { SelectorsOrderT } from '../../../../utils/selection/useSelectorsOrder';
|
|
5
|
-
export declare const isGeometry: (tree:
|
|
5
|
+
export declare const isGeometry: (tree: ScgTree, objId: ObjectID) => boolean;
|
|
6
6
|
export declare const getInteractionInfo: (drawingId: DrawingID, item: SelectedItem | null) => import("@buerli.io/core").InteractionInfo<any> | null;
|
|
7
7
|
export declare const RefEditor: React.FC<{
|
|
8
8
|
param: MemberParam<ObjectID[]> | MemberParam<ObjectID>;
|
|
9
9
|
drawingId: DrawingID;
|
|
10
10
|
filter: any;
|
|
11
11
|
customIdPicker?: (data: any) => ObjectID;
|
|
12
|
+
iconUrl?: string;
|
|
12
13
|
caption?: string;
|
|
13
14
|
idxOfRef?: number;
|
|
14
15
|
selectorsOrder?: SelectorsOrderT;
|
|
@@ -2,9 +2,9 @@ import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
|
2
2
|
import { FlipType, ReorientedType } from '@buerli.io/classcad';
|
|
3
3
|
import { MemberParam } from '../../../../types';
|
|
4
4
|
export declare type MateParam = {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
path: ObjectID[] | undefined;
|
|
6
|
+
csys: ObjectID | undefined;
|
|
7
7
|
flip: FlipType;
|
|
8
|
-
|
|
8
|
+
reorient: ReorientedType;
|
|
9
9
|
};
|
|
10
10
|
export declare function useMateParam(drawingId: DrawingID, objId: ObjectID, memberName: string): MemberParam<MateParam>;
|
|
@@ -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,5 +1,5 @@
|
|
|
1
|
-
import { DrawingID, ObjectID, SelectedItem,
|
|
2
|
-
export declare function getGraphicId(tree:
|
|
1
|
+
import { DrawingID, ObjectID, SelectedItem, ScgTree } from '@buerli.io/core';
|
|
2
|
+
export declare function getGraphicId(tree: ScgTree, refOrObjId: ObjectID): {
|
|
3
3
|
graphicId: number;
|
|
4
4
|
isSolid: boolean;
|
|
5
5
|
};
|
|
@@ -7,14 +7,14 @@ export declare type CustomCSys = {
|
|
|
7
7
|
matrix: THREE.Matrix4;
|
|
8
8
|
userData: {
|
|
9
9
|
csysId: ObjectID;
|
|
10
|
-
|
|
10
|
+
path: ObjectID[];
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
export declare type CSysUserData = {
|
|
14
|
-
|
|
14
|
+
path: ObjectID[];
|
|
15
15
|
csysId: ObjectID;
|
|
16
16
|
flip?: FlipType;
|
|
17
|
-
|
|
17
|
+
reorient?: ReorientedType;
|
|
18
18
|
isSelected?: boolean;
|
|
19
19
|
isActive?: boolean;
|
|
20
20
|
onHUD?: boolean;
|
|
@@ -37,8 +37,8 @@ export declare const CSysDisplayContext: React.Context<CSysDisplayContextProps>;
|
|
|
37
37
|
export declare const CSysWrapper: React.FC<{
|
|
38
38
|
drawingId: DrawingID;
|
|
39
39
|
csys?: React.FC<CustomCSys>;
|
|
40
|
-
onPointerMove?: (csysId_: ObjectID,
|
|
41
|
-
onPointerOut?: (csysId_: ObjectID,
|
|
40
|
+
onPointerMove?: (csysId_: ObjectID, path_: ObjectID[]) => void;
|
|
41
|
+
onPointerOut?: (csysId_: ObjectID, path_: ObjectID[]) => void;
|
|
42
42
|
userData: CSysUserData;
|
|
43
43
|
}>;
|
|
44
44
|
export declare const CSysDisplay: React.FC<{
|
|
@@ -4,9 +4,9 @@ import { FlipType, ReorientedType } from '@buerli.io/classcad';
|
|
|
4
4
|
export declare const SelectedMateObj: React.FC<{
|
|
5
5
|
drawingId: DrawingID;
|
|
6
6
|
csysId: ObjectID;
|
|
7
|
-
|
|
7
|
+
path: ObjectID[];
|
|
8
8
|
flip: FlipType;
|
|
9
|
-
|
|
9
|
+
reorient: ReorientedType;
|
|
10
10
|
color?: THREE.ColorRepresentation;
|
|
11
11
|
opacity?: number;
|
|
12
12
|
}>;
|
|
@@ -3,7 +3,7 @@ import * as THREE from 'three';
|
|
|
3
3
|
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
4
4
|
export declare const MatePathTransform: React.FC<{
|
|
5
5
|
drawingId: DrawingID;
|
|
6
|
-
|
|
6
|
+
path: ObjectID[];
|
|
7
7
|
currentDepth?: number;
|
|
8
8
|
matrix?: THREE.Matrix4;
|
|
9
9
|
children?: React.ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
3
3
|
import { FlipType, ReorientedType } from '@buerli.io/classcad';
|
|
4
|
-
export declare const useCsysMatrix: (drawingId: DrawingID, csysId: ObjectID, flip: FlipType | undefined,
|
|
4
|
+
export declare const useCsysMatrix: (drawingId: DrawingID, csysId: ObjectID, flip: FlipType | undefined, reorient: ReorientedType | undefined) => THREE.Matrix4;
|