@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.
Files changed (78) hide show
  1. package/build/components/UI/CAD/PluginsWindows.d.ts +5 -2
  2. package/build/components/UI/CAD/ToolBar/AssemblyModeCmds.d.ts +2 -2
  3. package/build/components/UI/CAD/ToolBar/PartModeCmds.d.ts +2 -2
  4. package/build/components/UI/CAD/ToolBar/useCommands.d.ts +5 -2
  5. package/build/components/UI/CAD/common/MultiSelect.d.ts +12 -0
  6. package/build/components/UI/CAD/common/NameEdit.d.ts +1 -3
  7. package/build/components/UI/CAD/hooks/useContextMenuItems.d.ts +1 -1
  8. package/build/components/UI/CAD/hooks/useCurrentInstance.d.ts +1 -1
  9. package/build/components/UI/CAD/hooks/useCurrentProduct.d.ts +1 -1
  10. package/build/components/UI/CAD/hooks/useObjectDetails.d.ts +2 -2
  11. package/build/components/UI/CAD/hooks/useRollbackBar.d.ts +3 -3
  12. package/build/components/UI/CAD/hooks/useRoot.d.ts +1 -1
  13. package/build/components/UI/CAD/index.d.ts +1 -0
  14. package/build/components/UI/CAD/plugins/ProductManagement/types.d.ts +0 -1
  15. package/build/components/UI/editors/BooleanEditor/BooleanEditor.d.ts +1 -1
  16. package/build/components/UI/editors/BooleanEditor/useBoolParam.d.ts +1 -1
  17. package/build/components/UI/editors/CSysEditor/CSysEditor.d.ts +4 -3
  18. package/build/components/UI/editors/CSysEditor/useCSysParam.d.ts +2 -2
  19. package/build/components/UI/editors/ExpressionEditor/ExpressionEditor.d.ts +9 -3
  20. package/build/components/UI/editors/ExpressionEditor/useExpressionsParam.d.ts +4 -3
  21. package/build/components/UI/editors/NumberEditor/Mentions.d.ts +11 -0
  22. package/build/components/UI/editors/NumberEditor/NumberEditor.d.ts +4 -3
  23. package/build/components/UI/editors/NumberEditor/useNumParam.d.ts +2 -2
  24. package/build/components/UI/editors/PointEditor/PointEditor.d.ts +5 -4
  25. package/build/components/UI/editors/PointEditor/usePointParam.d.ts +3 -3
  26. package/build/components/UI/editors/RefsEditors/ChainFinder.d.ts +2 -2
  27. package/build/components/UI/editors/RefsEditors/MateEditor.d.ts +1 -0
  28. package/build/components/UI/editors/RefsEditors/MateOrientationEditor.d.ts +9 -0
  29. package/build/components/UI/editors/RefsEditors/RefEditor.d.ts +3 -2
  30. package/build/components/UI/editors/RefsEditors/RefsEditor.d.ts +1 -0
  31. package/build/components/UI/editors/RefsEditors/useMateParam.d.ts +3 -3
  32. package/build/components/UI/editors/RefsEditors/useModes.d.ts +6 -2
  33. package/build/components/UI/editors/RefsEditors/useSelectedItems.d.ts +2 -2
  34. package/build/components/UI/editors/TypeWrapper.d.ts +5 -0
  35. package/build/components/UI/editors/Wrapper.d.ts +2 -1
  36. package/build/components/graphics/CSysDisplay.d.ts +5 -5
  37. package/build/components/graphics/SelectedMateObj.d.ts +2 -2
  38. package/build/components/graphics/utils/MatePathTransform.d.ts +1 -1
  39. package/build/components/graphics/utils/useCsysMatrix.d.ts +1 -1
  40. package/build/index.cjs.js +21839 -19902
  41. package/build/index.d.ts +5 -1
  42. package/build/index.js +16022 -14089
  43. package/build/plugins/Dimensions/utils.d.ts +4 -4
  44. package/build/plugins/Expressions/useContextMenuItems.d.ts +5 -0
  45. package/build/plugins/HLConstraints/components/LimitedValue.d.ts +1 -1
  46. package/build/plugins/HLConstraints/components/Limits.d.ts +6 -1
  47. package/build/plugins/HLConstraints/validators.d.ts +1 -1
  48. package/build/plugins/Sketch/Root/Constraints/constraintsHelpers.d.ts +6 -4
  49. package/build/plugins/Sketch/Root/Constraints/utils.d.ts +3 -3
  50. package/build/plugins/Sketch/Root/CopyPatterns.d.ts +0 -5
  51. package/build/plugins/Sketch/Root/SketchGroup.d.ts +1 -0
  52. package/build/plugins/Sketch/View/graphics/TmpAngularDimension.d.ts +0 -2
  53. package/build/plugins/Sketch/View/graphics/hooks.d.ts +4 -2
  54. package/build/plugins/Sketch/View/graphics/primitives.d.ts +0 -14
  55. package/build/plugins/Sketch/View/handlers/HandlersConstructors.d.ts +2 -2
  56. package/build/plugins/Sketch/View/handlers/Use.d.ts +3 -0
  57. package/build/plugins/Sketch/View/handlers/filletHelpers.d.ts +18 -38
  58. package/build/plugins/Sketch/View/handlers/hoverHelpers.d.ts +3 -0
  59. package/build/plugins/Sketch/View/handlers/splitHelpers.d.ts +14 -29
  60. package/build/plugins/Sketch/types.d.ts +8 -8
  61. package/build/plugins/Sketch/utils/Interaction.d.ts +2 -1
  62. package/build/plugins/Sketch/utils/OverdefinedStateManager.d.ts +6 -0
  63. package/build/plugins/components/PluginForm.d.ts +1 -1
  64. package/build/utils/conversionUtils.d.ts +16 -0
  65. package/build/utils/getHighlightedColor.d.ts +1 -1
  66. package/build/utils/helpers.d.ts +6 -27
  67. package/build/utils/mateUtils.d.ts +1 -3
  68. package/build/utils/selection/scopes/mateSelection.d.ts +10 -10
  69. package/build/utils/selection/scopes/treeObjInteraction.d.ts +3 -3
  70. package/build/utils/sketchIntersectionUtils.d.ts +29 -0
  71. package/build/utils/sketchUtils.d.ts +173 -0
  72. package/build/utils/useScale.d.ts +3 -1
  73. package/build/utils/validation.d.ts +3 -4
  74. package/package.json +9 -11
  75. package/build/plugins/Sketch/View/graphics/RubberBandSelection.d.ts +0 -2
  76. package/build/plugins/Sketch/View/handlers/UseRef.d.ts +0 -3
  77. package/build/plugins/Sketch/utils/getEntities.d.ts +0 -2
  78. 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 const GlobalPlugins: React.FC<{
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 { Command } from './useCommands';
3
- export declare const AssemblyModeCmds: (drawingId: DrawingID, rootId: ObjectID) => Record<string, Command | Command[]>;
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 { Command } from './useCommands';
3
- export declare const PartModeCmds: (drawingId: DrawingID, rootId: ObjectID) => Record<string, Command | Command[]>;
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 Command = {
2
+ export declare type ToolBarCommand = {
3
3
  label: string;
4
4
  icon: any;
5
5
  callback: () => Promise<any>;
6
6
  };
7
- export declare function useCommands(drawingId: DrawingID, curProductClass: string | undefined): Record<string, Command | Command[]>;
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, isActive: boolean, setEditName: React.Dispatch<React.SetStateAction<boolean>>): MenuElement[];
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").IStructureObject | undefined;
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").IStructureObject | undefined;
2
+ export declare const useCurrentProduct: (drawingId: DrawingID) => import("@buerli.io/core").ScgObject | undefined;
@@ -1,6 +1,6 @@
1
- import { DrawingID, IStructureObject, ObjectID } from '@buerli.io/core';
1
+ import { DrawingID, ScgObject, ObjectID } from '@buerli.io/core';
2
2
  declare type ObjectDetails = {
3
- obj?: IStructureObject;
3
+ obj?: ScgObject;
4
4
  isPart?: boolean;
5
5
  isAssembly?: boolean;
6
6
  isAssemblyNode?: boolean;
@@ -1,7 +1,7 @@
1
- import { DrawingID, IStructureObject, ObjectID } from '@buerli.io/core';
1
+ import { DrawingID, ScgObject, ObjectID } from '@buerli.io/core';
2
2
  declare type RollbackBarInfo = {
3
- operationSequence?: IStructureObject;
4
- rollbackBar?: IStructureObject;
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").IStructureObject | undefined;
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,5 +1,4 @@
1
1
  import { ObjectID } from '@buerli.io/core';
2
2
  export declare type PMPluginState = {
3
3
  product: ObjectID | null;
4
- selected: ObjectID[];
5
4
  };
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { MemberParam } from '../../../../types';
3
3
  export declare const BooleanEditor: React.FC<{
4
- param: MemberParam<0 | 1>;
4
+ param: MemberParam<boolean>;
5
5
  inverted?: boolean;
6
6
  icon?: boolean | any[];
7
7
  caption?: string;
@@ -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<0 | 1>;
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 { PointMemValue } from '@buerli.io/core';
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<PointMemValue[]>;
6
+ param: MemberParam<ScgPoint[]>;
7
7
  csysRow: CSysRows;
8
+ iconUrl?: string;
8
9
  caption?: string;
9
- validator?: (x: PointMemValue, pName?: string) => string[];
10
+ validator?: (x: ScgPoint, pName?: string) => string[];
10
11
  }>;
@@ -1,4 +1,4 @@
1
- import { DrawingID, ObjectID, PointMemValue } from '@buerli.io/core';
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<PointMemValue[]>;
9
+ export declare function useCSysParam(drawingId: DrawingID, objId: ObjectID): MemberParam<ScgPoint[]>;
@@ -1,10 +1,16 @@
1
1
  import React from 'react';
2
- import { ExprMemToModify } from '@buerli.io/classcad';
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<ExprMemToModify[]>;
9
- deleted: boolean;
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
- import { ExprMemToModify } from '@buerli.io/classcad';
3
- export declare function useEditedExpressionsParam(): MemberParam<ExprMemToModify[]>;
4
- export declare function useDeletedExpressionsParam(): MemberParam<string[]>;
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, APIParam } from '../../../../types';
3
+ import { MemberParam } from '../../../../types';
4
4
  export declare const NumberEditor: React.FC<{
5
- param: MemberParam<APIParam<number>>;
5
+ param: MemberParam<number | string>;
6
6
  drawingId: DrawingID;
7
+ iconUrl?: string;
7
8
  caption?: string;
8
- validator?: (numParam: APIParam<number>, pName?: string) => string[];
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, APIParam } from '../../../../types';
2
+ import { MemberParam } from '../../../../types';
3
3
  export declare function useNumParam(drawingId: DrawingID, objId: ObjectID, memberName: string, options?: {
4
4
  angle: boolean;
5
- }): MemberParam<APIParam<number>>;
5
+ }): MemberParam<number | string>;
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
- import { DrawingID, PointMemValue } from '@buerli.io/core';
3
- import { MemberParam, APIParam } from '../../../../types';
2
+ import { DrawingID, ScgPoint } from '@buerli.io/core';
3
+ import { MemberParam } from '../../../../types';
4
4
  export declare const PointEditor: React.FC<{
5
- param: MemberParam<APIParam<PointMemValue>>;
5
+ param: MemberParam<ScgPoint | string>;
6
6
  drawingId: DrawingID;
7
+ iconUrl?: string;
7
8
  caption?: string;
8
- validator?: (x: APIParam<PointMemValue>, pName?: string) => string[];
9
+ validator?: (x: ScgPoint | string, pName?: string) => string[];
9
10
  }>;
@@ -1,5 +1,5 @@
1
- import { DrawingID, PointMemValue, ObjectID } from '@buerli.io/core';
2
- import { MemberParam, APIParam } from '../../../../types';
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<APIParam<PointMemValue>>;
5
+ }): MemberParam<ScgPoint | string>;
@@ -1,4 +1,4 @@
1
- import { DrawingID, IStructureObject } from '@buerli.io/core';
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: IStructureObject): IStructureObject[];
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, IStructureTree, ObjectID, SelectorID, SelectedItem } from '@buerli.io/core';
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: IStructureTree, objId: ObjectID) => boolean;
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;
@@ -7,6 +7,7 @@ export declare const RefsEditor: React.FC<{
7
7
  drawingId: DrawingID;
8
8
  filter: any;
9
9
  customIdPicker?: (data: any) => ObjectID;
10
+ iconUrl?: string;
10
11
  caption?: string;
11
12
  selectorsOrder?: SelectorsOrderT;
12
13
  maxLen?: number;
@@ -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
- matePath: ObjectID[] | undefined;
6
- wcsId: ObjectID | undefined;
5
+ path: ObjectID[] | undefined;
6
+ csys: ObjectID | undefined;
7
7
  flip: FlipType;
8
- reoriented: ReorientedType;
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[]) => void;
6
- customUnSelect: (selId: SelectorID, newItems: SelectedItem[], diff: SelectedItem[]) => void;
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, IStructureTree } from '@buerli.io/core';
2
- export declare function getGraphicId(tree: IStructureTree, refOrObjId: ObjectID): {
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
  };
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const TypeWrapper: React.FC<{
3
+ justifyEnd?: boolean;
4
+ children?: React.ReactNode;
5
+ }>;
@@ -2,7 +2,8 @@ import React from 'react';
2
2
  export declare const Wrapper: React.FC<{
3
3
  highlighted?: boolean;
4
4
  minor?: boolean;
5
- caption: string | undefined;
5
+ caption?: string;
6
+ iconUrl?: string;
6
7
  contentWidth?: number;
7
8
  children?: React.ReactNode;
8
9
  }>;
@@ -7,14 +7,14 @@ export declare type CustomCSys = {
7
7
  matrix: THREE.Matrix4;
8
8
  userData: {
9
9
  csysId: ObjectID;
10
- matePath: ObjectID[];
10
+ path: ObjectID[];
11
11
  };
12
12
  };
13
13
  export declare type CSysUserData = {
14
- matePath: ObjectID[];
14
+ path: ObjectID[];
15
15
  csysId: ObjectID;
16
16
  flip?: FlipType;
17
- reoriented?: ReorientedType;
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, matePath_: ObjectID[]) => void;
41
- onPointerOut?: (csysId_: ObjectID, matePath_: ObjectID[]) => void;
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
- matePath: ObjectID[];
7
+ path: ObjectID[];
8
8
  flip: FlipType;
9
- reoriented: ReorientedType;
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
- matePath: ObjectID[];
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, reoriented: ReorientedType | undefined) => THREE.Matrix4;
4
+ export declare const useCsysMatrix: (drawingId: DrawingID, csysId: ObjectID, flip: FlipType | undefined, reorient: ReorientedType | undefined) => THREE.Matrix4;