@buerli.io/react-cad 1.0.0 → 1.0.1-beta.1
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/README.md +1 -1
- package/build/components/UI/CAD/Constraints.d.ts +12 -12
- package/build/components/UI/CAD/Drawing.d.ts +16 -16
- package/build/components/UI/CAD/ListPlaceholder.d.ts +2 -2
- package/build/components/UI/CAD/Messages/Message.d.ts +5 -5
- package/build/components/UI/CAD/Messages/Messages.d.ts +9 -9
- package/build/components/UI/CAD/Messages/index.d.ts +1 -1
- package/build/components/UI/CAD/Messages/msgStore.d.ts +18 -18
- package/build/components/UI/CAD/ModelTree/AssemblyNode.d.ts +10 -10
- package/build/components/UI/CAD/ModelTree/FeatureList/Feature.d.ts +7 -7
- package/build/components/UI/CAD/ModelTree/FeatureList/FeatureList.d.ts +5 -5
- package/build/components/UI/CAD/ModelTree/FeatureList/index.d.ts +1 -1
- package/build/components/UI/CAD/ModelTree/FeatureList/utils.d.ts +7 -7
- package/build/components/UI/CAD/ModelTree/ModelTree.d.ts +13 -13
- package/build/components/UI/CAD/ModelTree/ModelTreeHeader.d.ts +16 -16
- package/build/components/UI/CAD/ModelTree/index.d.ts +1 -1
- package/build/components/UI/CAD/ModelTree/primitives.d.ts +9 -9
- package/build/components/UI/CAD/ModelTree/useContextMenuItems.d.ts +5 -5
- package/build/components/UI/CAD/PluginBounds.d.ts +8 -8
- package/build/components/UI/CAD/PluginTooltip.d.ts +5 -5
- package/build/components/UI/CAD/PluginsWindows.d.ts +23 -23
- package/build/components/UI/CAD/SideBar.d.ts +6 -6
- package/build/components/UI/CAD/Solids/Solids.d.ts +11 -11
- package/build/components/UI/CAD/Solids/index.d.ts +1 -1
- package/build/components/UI/CAD/Solids/useContextMenuItems.d.ts +5 -5
- package/build/components/UI/CAD/Solids/useVisibleSolids.d.ts +2 -2
- package/build/components/UI/CAD/ToolBar/AssemblyModeCmds.d.ts +3 -3
- package/build/components/UI/CAD/ToolBar/Icon.d.ts +4 -4
- package/build/components/UI/CAD/ToolBar/PartModeCmds.d.ts +3 -3
- package/build/components/UI/CAD/ToolBar/ToolBar.d.ts +6 -6
- package/build/components/UI/CAD/ToolBar/index.d.ts +1 -1
- package/build/components/UI/CAD/ToolBar/useCommands.d.ts +10 -10
- package/build/components/UI/CAD/ViewOptionsBar/ViewOptionButtons.d.ts +3 -3
- package/build/components/UI/CAD/ViewOptionsBar/useOptionCommands.d.ts +14 -14
- package/build/components/UI/CAD/ViewPlugButtons.d.ts +6 -6
- package/build/components/UI/CAD/ant-design-draggable-modal/DraggableModal.d.ts +19 -19
- package/build/components/UI/CAD/ant-design-draggable-modal/DraggableModal.test.d.ts +1 -1
- package/build/components/UI/CAD/ant-design-draggable-modal/DraggableModalContext.d.ts +9 -9
- package/build/components/UI/CAD/ant-design-draggable-modal/DraggableModalInner.d.ts +27 -27
- package/build/components/UI/CAD/ant-design-draggable-modal/DraggableModalProvider.d.ts +4 -4
- package/build/components/UI/CAD/ant-design-draggable-modal/ResizeHandle.d.ts +2 -2
- package/build/components/UI/CAD/ant-design-draggable-modal/clamp.d.ts +1 -1
- package/build/components/UI/CAD/ant-design-draggable-modal/draggableModalReducer.d.ts +123 -123
- package/build/components/UI/CAD/ant-design-draggable-modal/getWindowSize.d.ts +4 -4
- package/build/components/UI/CAD/ant-design-draggable-modal/index.d.ts +3 -3
- package/build/components/UI/CAD/ant-design-draggable-modal/useDrag.d.ts +5 -5
- package/build/components/UI/CAD/ant-design-draggable-modal/usePrevious.d.ts +1 -1
- package/build/components/UI/CAD/ant-design-draggable-modal/useResize.d.ts +7 -7
- package/build/components/UI/CAD/common/BlankDiv.d.ts +4 -4
- package/build/components/UI/CAD/common/Collapse.d.ts +8 -8
- package/build/components/UI/CAD/common/ContextMenu.d.ts +33 -33
- package/build/components/UI/CAD/common/Divider.d.ts +4 -4
- package/build/components/UI/CAD/common/EntityName.d.ts +9 -9
- package/build/components/UI/CAD/common/Icon.d.ts +5 -5
- package/build/components/UI/CAD/common/Img.d.ts +1 -1
- package/build/components/UI/CAD/common/LoadingScreen/LoadingScreen.d.ts +6 -6
- package/build/components/UI/CAD/common/LoadingScreen/Spinner.d.ts +2 -2
- package/build/components/UI/CAD/common/LoadingScreen/index.d.ts +1 -1
- package/build/components/UI/CAD/common/Menu.d.ts +29 -29
- package/build/components/UI/CAD/common/MultiSelect.d.ts +12 -12
- package/build/components/UI/CAD/common/NameEdit.d.ts +8 -8
- package/build/components/UI/CAD/common/SectionHeader.d.ts +4 -4
- package/build/components/UI/CAD/common/primitives.d.ts +10 -10
- package/build/components/UI/CAD/hooks/index.d.ts +13 -13
- package/build/components/UI/CAD/hooks/useContextMenuInteraction.d.ts +7 -7
- package/build/components/UI/CAD/hooks/useContextMenuItems.d.ts +5 -5
- package/build/components/UI/CAD/hooks/useCurrentInstance.d.ts +2 -2
- package/build/components/UI/CAD/hooks/useCurrentProduct.d.ts +2 -2
- package/build/components/UI/CAD/hooks/useEditMode.d.ts +7 -7
- package/build/components/UI/CAD/hooks/useGlobalMateInfo.d.ts +6 -6
- package/build/components/UI/CAD/hooks/useHasPending.d.ts +8 -8
- package/build/components/UI/CAD/hooks/useIsDisabled.d.ts +2 -2
- package/build/components/UI/CAD/hooks/useIsLoading.d.ts +8 -8
- package/build/components/UI/CAD/hooks/useIsSketchActive.d.ts +2 -2
- package/build/components/UI/CAD/hooks/useObjectDetails.d.ts +12 -12
- package/build/components/UI/CAD/hooks/useOperationSequence.d.ts +2 -2
- package/build/components/UI/CAD/hooks/useRollbackBar.d.ts +8 -8
- package/build/components/UI/CAD/hooks/useRoot.d.ts +2 -2
- package/build/components/UI/CAD/index.d.ts +17 -17
- package/build/components/UI/CAD/plugins/ProductManagement/ProdTable.d.ts +10 -10
- package/build/components/UI/CAD/plugins/ProductManagement/Root.d.ts +6 -6
- package/build/components/UI/CAD/plugins/ProductManagement/View.d.ts +6 -6
- package/build/components/UI/CAD/plugins/ProductManagement/index.d.ts +8 -8
- package/build/components/UI/CAD/plugins/ProductManagement/types.d.ts +4 -4
- package/build/components/UI/CAD/plugins/ProductManagement/useContextMenuItems.d.ts +5 -5
- package/build/components/UI/CAD/store/CADActions.d.ts +15 -15
- package/build/components/UI/CAD/store/CADStore.d.ts +26 -26
- package/build/components/UI/Readfile.d.ts +6 -6
- package/build/components/UI/editors/BooleanEditor/BooleanEditor.d.ts +8 -8
- package/build/components/UI/editors/BooleanEditor/index.d.ts +2 -2
- package/build/components/UI/editors/BooleanEditor/useBoolParam.d.ts +3 -3
- package/build/components/UI/editors/CSysEditor/CSysEditor.d.ts +11 -11
- package/build/components/UI/editors/CSysEditor/index.d.ts +2 -2
- package/build/components/UI/editors/CSysEditor/useCSysParam.d.ts +9 -9
- package/build/components/UI/editors/ColorEditor/ColorEditor.d.ts +9 -9
- package/build/components/UI/editors/ColorEditor/index.d.ts +2 -2
- package/build/components/UI/editors/ColorEditor/useColorParam.d.ts +9 -9
- package/build/components/UI/editors/ExpressionEditor/ExpressionEditor.d.ts +16 -16
- package/build/components/UI/editors/ExpressionEditor/index.d.ts +2 -2
- package/build/components/UI/editors/ExpressionEditor/useExpressionsParam.d.ts +5 -5
- package/build/components/UI/editors/NumberEditor/Inputs.d.ts +18 -18
- package/build/components/UI/editors/NumberEditor/Mentions.d.ts +11 -11
- package/build/components/UI/editors/NumberEditor/NumOrExpr.d.ts +12 -12
- package/build/components/UI/editors/NumberEditor/NumberEditor.d.ts +12 -12
- package/build/components/UI/editors/NumberEditor/index.d.ts +2 -2
- package/build/components/UI/editors/NumberEditor/useNumParam.d.ts +5 -5
- package/build/components/UI/editors/PointEditor/PointEditor.d.ts +10 -10
- package/build/components/UI/editors/PointEditor/index.d.ts +2 -2
- package/build/components/UI/editors/PointEditor/usePointParam.d.ts +5 -5
- package/build/components/UI/editors/RefsEditors/ChainFinder.d.ts +14 -14
- package/build/components/UI/editors/RefsEditors/MateEditor.d.ts +13 -13
- package/build/components/UI/editors/RefsEditors/MateOrientationEditor.d.ts +9 -9
- package/build/components/UI/editors/RefsEditors/RefEditor.d.ts +24 -24
- package/build/components/UI/editors/RefsEditors/RefsEditor.d.ts +16 -16
- package/build/components/UI/editors/RefsEditors/index.d.ts +8 -8
- package/build/components/UI/editors/RefsEditors/pickers.d.ts +4 -4
- package/build/components/UI/editors/RefsEditors/useIdParam.d.ts +3 -3
- package/build/components/UI/editors/RefsEditors/useMateParam.d.ts +10 -10
- package/build/components/UI/editors/RefsEditors/useModes.d.ts +11 -11
- package/build/components/UI/editors/RefsEditors/useRefsParam.d.ts +3 -3
- package/build/components/UI/editors/RefsEditors/useSelectedItems.d.ts +18 -18
- package/build/components/UI/editors/ToleranceEditor/ToleranceEditor.d.ts +7 -7
- package/build/components/UI/editors/ToleranceEditor/index.d.ts +2 -2
- package/build/components/UI/editors/ToleranceEditor/useToleranceParam.d.ts +3 -3
- package/build/components/UI/editors/TypeEditor/TypeEditor.d.ts +10 -10
- package/build/components/UI/editors/TypeEditor/index.d.ts +2 -2
- package/build/components/UI/editors/TypeEditor/useTypeParam.d.ts +3 -3
- package/build/components/UI/editors/TypeWrapper.d.ts +5 -5
- package/build/components/UI/editors/Wrapper.d.ts +9 -9
- package/build/components/UI/editors/useParam.d.ts +20 -20
- package/build/components/UI/editors/useValidation.d.ts +4 -4
- package/build/components/graphics/CSysDisplay.d.ts +50 -50
- package/build/components/graphics/CompositeCurveObj.d.ts +11 -11
- package/build/components/graphics/GeometryOverrides/GeometryOverridesManager.d.ts +5 -5
- package/build/components/graphics/GeometryOverrides/GeometryOverridesStore.d.ts +18 -18
- package/build/components/graphics/GeometryOverrides/index.d.ts +2 -2
- package/build/components/graphics/GeometryOverrides/useOverrideGeometryColor.d.ts +3 -3
- package/build/components/graphics/HUD.d.ts +4 -4
- package/build/components/graphics/HoveredConstraintDisplay.d.ts +5 -5
- package/build/components/graphics/InfinityPlane.d.ts +4 -4
- package/build/components/graphics/Outlines/AAPass.d.ts +8 -8
- package/build/components/graphics/Outlines/IDPass.d.ts +12 -12
- package/build/components/graphics/Outlines/Outline.d.ts +20 -20
- package/build/components/graphics/Outlines/OutlineEffect.d.ts +37 -37
- package/build/components/graphics/Outlines/OutlineMaterial.d.ts +9 -9
- package/build/components/graphics/Outlines/WidenPass.d.ts +17 -17
- package/build/components/graphics/PluginGeometryBounds.d.ts +8 -8
- package/build/components/graphics/SelectableMate.d.ts +3 -3
- package/build/components/graphics/SelectedMateObj.d.ts +12 -12
- package/build/components/graphics/WorkAxisObj.d.ts +10 -10
- package/build/components/graphics/WorkCSysObj.d.ts +11 -11
- package/build/components/graphics/WorkCoordSystemObj.d.ts +11 -11
- package/build/components/graphics/WorkPlaneObj.d.ts +11 -11
- package/build/components/graphics/WorkPointObj.d.ts +10 -10
- package/build/components/graphics/graphics.d.ts +61 -61
- package/build/components/graphics/utils/MatePathTransform.d.ts +10 -10
- package/build/components/graphics/utils/useCsysMatrix.d.ts +4 -4
- package/build/components/utils/CompValidation/ErrorBoundary.d.ts +28 -28
- package/build/components/utils/CompValidation/validators/CSysDisplayValidator.d.ts +12 -12
- package/build/components/utils/CompValidation/validators/DrawingValidator.d.ts +12 -12
- package/build/components/utils/CompValidation/validators/ExpressionsValidator.d.ts +12 -12
- package/build/components/utils/CompValidation/validators/FPluginValidator.d.ts +16 -16
- package/build/components/utils/CompValidation/validators/FeatureListValidator.d.ts +12 -12
- package/build/components/utils/CompValidation/validators/ProductManagementValidator.d.ts +14 -14
- package/build/components/utils/CompValidation/verifiers.d.ts +32 -32
- package/build/components/utils/FtVisibilityController.d.ts +6 -6
- package/build/index.cjs.js +480 -454
- package/build/index.d.ts +73 -73
- package/build/index.js +480 -454
- package/build/plugins/AppearanceEditor/Root.d.ts +7 -7
- package/build/plugins/AppearanceEditor/index.d.ts +7 -7
- package/build/plugins/Boolean/Root.d.ts +6 -6
- package/build/plugins/Boolean/index.d.ts +4 -4
- package/build/plugins/BoundingBoxInfo/Root.d.ts +7 -7
- package/build/plugins/BoundingBoxInfo/View.d.ts +6 -6
- package/build/plugins/BoundingBoxInfo/index.d.ts +5 -5
- package/build/plugins/Box/Root.d.ts +6 -6
- package/build/plugins/Box/index.d.ts +4 -4
- package/build/plugins/Chamfer/Root.d.ts +6 -6
- package/build/plugins/Chamfer/index.d.ts +4 -4
- package/build/plugins/CircularPattern/Root.d.ts +6 -6
- package/build/plugins/CircularPattern/index.d.ts +4 -4
- package/build/plugins/CompositeCurve/Root.d.ts +6 -6
- package/build/plugins/CompositeCurve/View.d.ts +6 -6
- package/build/plugins/CompositeCurve/index.d.ts +5 -5
- package/build/plugins/Cone/Root.d.ts +6 -6
- package/build/plugins/Cone/index.d.ts +4 -4
- package/build/plugins/Cylinder/Root.d.ts +6 -6
- package/build/plugins/Cylinder/index.d.ts +4 -4
- package/build/plugins/Dimensions/DimContext.d.ts +10 -10
- package/build/plugins/Dimensions/Root.d.ts +6 -6
- package/build/plugins/Dimensions/View.d.ts +6 -6
- package/build/plugins/Dimensions/graphics/DimGraphics.d.ts +7 -7
- package/build/plugins/Dimensions/graphics/DimensionSet.d.ts +8 -8
- package/build/plugins/Dimensions/graphics/primitives.d.ts +35 -35
- package/build/plugins/Dimensions/index.d.ts +5 -5
- package/build/plugins/Dimensions/utils.d.ts +5 -5
- package/build/plugins/EntityDeletion/Root.d.ts +6 -6
- package/build/plugins/EntityDeletion/index.d.ts +4 -4
- package/build/plugins/Expressions/Root.d.ts +6 -6
- package/build/plugins/Expressions/index.d.ts +4 -4
- package/build/plugins/Expressions/useContextMenuItems.d.ts +5 -5
- package/build/plugins/Extrusion/Root.d.ts +6 -6
- package/build/plugins/Extrusion/View.d.ts +6 -6
- package/build/plugins/Extrusion/index.d.ts +10 -10
- package/build/plugins/Fillet/Root.d.ts +6 -6
- package/build/plugins/Fillet/index.d.ts +4 -4
- package/build/plugins/HLConstraints/CircularPattern/Root.d.ts +6 -6
- package/build/plugins/HLConstraints/CircularPattern/View.d.ts +6 -6
- package/build/plugins/HLConstraints/CircularPattern/index.d.ts +5 -5
- package/build/plugins/HLConstraints/Cylindrical/Root.d.ts +6 -6
- package/build/plugins/HLConstraints/Cylindrical/View.d.ts +6 -6
- package/build/plugins/HLConstraints/Cylindrical/index.d.ts +5 -5
- package/build/plugins/HLConstraints/Fastened/Root.d.ts +6 -6
- package/build/plugins/HLConstraints/Fastened/View.d.ts +6 -6
- package/build/plugins/HLConstraints/Fastened/index.d.ts +5 -5
- package/build/plugins/HLConstraints/FastenedOrigin/Root.d.ts +6 -6
- package/build/plugins/HLConstraints/FastenedOrigin/View.d.ts +6 -6
- package/build/plugins/HLConstraints/FastenedOrigin/index.d.ts +5 -5
- package/build/plugins/HLConstraints/Gear/Root.d.ts +6 -6
- package/build/plugins/HLConstraints/Gear/View.d.ts +6 -6
- package/build/plugins/HLConstraints/Gear/index.d.ts +5 -5
- package/build/plugins/HLConstraints/Group/Root.d.ts +6 -6
- package/build/plugins/HLConstraints/Group/index.d.ts +4 -4
- package/build/plugins/HLConstraints/LinearPattern/Root.d.ts +6 -6
- package/build/plugins/HLConstraints/LinearPattern/View.d.ts +6 -6
- package/build/plugins/HLConstraints/LinearPattern/index.d.ts +5 -5
- package/build/plugins/HLConstraints/Parallel/Root.d.ts +6 -6
- package/build/plugins/HLConstraints/Parallel/View.d.ts +6 -6
- package/build/plugins/HLConstraints/Parallel/index.d.ts +5 -5
- package/build/plugins/HLConstraints/Planar/Root.d.ts +6 -6
- package/build/plugins/HLConstraints/Planar/View.d.ts +6 -6
- package/build/plugins/HLConstraints/Planar/index.d.ts +5 -5
- package/build/plugins/HLConstraints/Revolute/Root.d.ts +6 -6
- package/build/plugins/HLConstraints/Revolute/View.d.ts +6 -6
- package/build/plugins/HLConstraints/Revolute/index.d.ts +5 -5
- package/build/plugins/HLConstraints/Slider/Root.d.ts +6 -6
- package/build/plugins/HLConstraints/Slider/View.d.ts +6 -6
- package/build/plugins/HLConstraints/Slider/index.d.ts +5 -5
- package/build/plugins/HLConstraints/Spherical/Root.d.ts +6 -6
- package/build/plugins/HLConstraints/Spherical/View.d.ts +6 -6
- package/build/plugins/HLConstraints/Spherical/index.d.ts +5 -5
- package/build/plugins/HLConstraints/components/CSysDisplayWrapper.d.ts +7 -7
- package/build/plugins/HLConstraints/components/HLConstrIcon.d.ts +7 -7
- package/build/plugins/HLConstraints/components/LimitedValue.d.ts +12 -12
- package/build/plugins/HLConstraints/components/Limits.d.ts +25 -25
- package/build/plugins/HLConstraints/components/LimitsCollapse.d.ts +8 -8
- package/build/plugins/HLConstraints/validators.d.ts +2 -2
- package/build/plugins/Import/Root.d.ts +6 -6
- package/build/plugins/Import/index.d.ts +4 -4
- package/build/plugins/LinearPattern/Root.d.ts +6 -6
- package/build/plugins/LinearPattern/index.d.ts +4 -4
- package/build/plugins/Measure/Digits.d.ts +6 -6
- package/build/plugins/Measure/Root.d.ts +6 -6
- package/build/plugins/Measure/View.d.ts +10 -10
- package/build/plugins/Measure/config.d.ts +1 -1
- package/build/plugins/Measure/graphics/MeasureGraphics.d.ts +24 -24
- package/build/plugins/Measure/index.d.ts +9 -9
- package/build/plugins/Measure/utils.d.ts +1 -1
- package/build/plugins/Mirror/Root.d.ts +6 -6
- package/build/plugins/Mirror/index.d.ts +4 -4
- package/build/plugins/Revolve/Root.d.ts +6 -6
- package/build/plugins/Revolve/index.d.ts +4 -4
- package/build/plugins/Rotate/Root.d.ts +6 -6
- package/build/plugins/Rotate/index.d.ts +4 -4
- package/build/plugins/Sketch/Root/Constraints/Constraints.d.ts +2 -2
- package/build/plugins/Sketch/Root/Constraints/constraintsHelpers.d.ts +21 -21
- package/build/plugins/Sketch/Root/Constraints/index.d.ts +2 -2
- package/build/plugins/Sketch/Root/Constraints/utils.d.ts +6 -6
- package/build/plugins/Sketch/Root/CopyPatterns.d.ts +2 -2
- package/build/plugins/Sketch/Root/Details.d.ts +2 -2
- package/build/plugins/Sketch/Root/Handlers.d.ts +3 -3
- package/build/plugins/Sketch/Root/PlaneSelection.d.ts +7 -7
- package/build/plugins/Sketch/Root/Position.d.ts +2 -2
- package/build/plugins/Sketch/Root/Regions.d.ts +2 -2
- package/build/plugins/Sketch/Root/Root.d.ts +6 -6
- package/build/plugins/Sketch/Root/RootContext.d.ts +7 -7
- package/build/plugins/Sketch/Root/SketchGroup.d.ts +9 -9
- package/build/plugins/Sketch/Root/index.d.ts +1 -1
- package/build/plugins/Sketch/Root/useContextMenuItems.d.ts +5 -5
- package/build/plugins/Sketch/Root/useLayoutSize.d.ts +11 -11
- package/build/plugins/Sketch/View/View.d.ts +6 -6
- package/build/plugins/Sketch/View/ViewContext.d.ts +8 -8
- package/build/plugins/Sketch/View/graphics/Constraints.d.ts +5 -5
- package/build/plugins/Sketch/View/graphics/IconGroups.d.ts +7 -7
- package/build/plugins/Sketch/View/graphics/Merged/Arc.d.ts +12 -12
- package/build/plugins/Sketch/View/graphics/Merged/ArcGeometry.d.ts +2 -2
- package/build/plugins/Sketch/View/graphics/Merged/ArcMaterial.d.ts +2 -2
- package/build/plugins/Sketch/View/graphics/Merged/Circle.d.ts +8 -8
- package/build/plugins/Sketch/View/graphics/Merged/Line.d.ts +10 -10
- package/build/plugins/Sketch/View/graphics/Merged/MergedWrapper.d.ts +24 -24
- package/build/plugins/Sketch/View/graphics/Merged/Point.d.ts +8 -8
- package/build/plugins/Sketch/View/graphics/MousePosition.d.ts +2 -2
- package/build/plugins/Sketch/View/graphics/Regions.d.ts +5 -5
- package/build/plugins/Sketch/View/graphics/TmpAngularDimension.d.ts +8 -8
- package/build/plugins/Sketch/View/graphics/graphics.d.ts +5 -5
- package/build/plugins/Sketch/View/graphics/hooks.d.ts +38 -38
- package/build/plugins/Sketch/View/graphics/primitives.d.ts +34 -34
- package/build/plugins/Sketch/View/graphics/scale.d.ts +5 -5
- package/build/plugins/Sketch/View/graphics/tmpGraphics.d.ts +3 -3
- package/build/plugins/Sketch/View/handlers/CreateAngle.d.ts +3 -3
- package/build/plugins/Sketch/View/handlers/Drag.d.ts +3 -3
- package/build/plugins/Sketch/View/handlers/DrawArc.d.ts +3 -3
- package/build/plugins/Sketch/View/handlers/DrawCircle.d.ts +3 -3
- package/build/plugins/Sketch/View/handlers/DrawLine.d.ts +3 -3
- package/build/plugins/Sketch/View/handlers/DrawPoint.d.ts +3 -3
- package/build/plugins/Sketch/View/handlers/DrawRectangle.d.ts +3 -3
- package/build/plugins/Sketch/View/handlers/Fillet.d.ts +3 -3
- package/build/plugins/Sketch/View/handlers/HandlersConstructors.d.ts +28 -28
- package/build/plugins/Sketch/View/handlers/Hover.d.ts +3 -3
- package/build/plugins/Sketch/View/handlers/SSelect.d.ts +3 -3
- package/build/plugins/Sketch/View/handlers/Split.d.ts +3 -3
- package/build/plugins/Sketch/View/handlers/Trim.d.ts +3 -3
- package/build/plugins/Sketch/View/handlers/Use.d.ts +3 -3
- package/build/plugins/Sketch/View/handlers/filletHelpers.d.ts +22 -22
- package/build/plugins/Sketch/View/handlers/hoverHelpers.d.ts +3 -3
- package/build/plugins/Sketch/View/handlers/snapper.d.ts +11 -11
- package/build/plugins/Sketch/View/handlers/splitHelpers.d.ts +19 -19
- package/build/plugins/Sketch/View/index.d.ts +1 -1
- package/build/plugins/Sketch/constants.d.ts +5 -5
- package/build/plugins/Sketch/description.d.ts +2 -2
- package/build/plugins/Sketch/index.d.ts +4 -4
- package/build/plugins/Sketch/resources.d.ts +5 -5
- package/build/plugins/Sketch/types.d.ts +133 -133
- package/build/plugins/Sketch/utils/Interaction.d.ts +7 -7
- package/build/plugins/Sketch/utils/OverdefinedStateManager.d.ts +6 -6
- package/build/plugins/Sketch/utils/getSketchState.d.ts +3 -3
- package/build/plugins/Sketch/utils/useSketchRegions.d.ts +2 -2
- package/build/plugins/Sketch/utils/useSketchState.d.ts +4 -4
- package/build/plugins/Slice/Root.d.ts +6 -6
- package/build/plugins/Slice/index.d.ts +4 -4
- package/build/plugins/SliceBySheet/Root.d.ts +6 -6
- package/build/plugins/SliceBySheet/index.d.ts +4 -4
- package/build/plugins/Sphere/Root.d.ts +6 -6
- package/build/plugins/Sphere/index.d.ts +4 -4
- package/build/plugins/TransformByCsys/Root.d.ts +6 -6
- package/build/plugins/TransformByCsys/index.d.ts +4 -4
- package/build/plugins/Translate/Root.d.ts +6 -6
- package/build/plugins/Translate/index.d.ts +4 -4
- package/build/plugins/Twist/Root.d.ts +6 -6
- package/build/plugins/Twist/View.d.ts +6 -6
- package/build/plugins/Twist/index.d.ts +10 -10
- package/build/plugins/WorkAxis/Root.d.ts +6 -6
- package/build/plugins/WorkAxis/View.d.ts +6 -6
- package/build/plugins/WorkAxis/index.d.ts +5 -5
- package/build/plugins/WorkCSys/Root.d.ts +6 -6
- package/build/plugins/WorkCSys/View.d.ts +6 -6
- package/build/plugins/WorkCSys/index.d.ts +14 -14
- package/build/plugins/WorkCoordSystem/Root.d.ts +6 -6
- package/build/plugins/WorkCoordSystem/View.d.ts +6 -6
- package/build/plugins/WorkCoordSystem/index.d.ts +14 -14
- package/build/plugins/WorkPlane/Root.d.ts +6 -6
- package/build/plugins/WorkPlane/View.d.ts +6 -6
- package/build/plugins/WorkPlane/index.d.ts +5 -5
- package/build/plugins/WorkPlane/validators.d.ts +1 -1
- package/build/plugins/WorkPoint/Root.d.ts +6 -6
- package/build/plugins/WorkPoint/View.d.ts +6 -6
- package/build/plugins/WorkPoint/index.d.ts +5 -5
- package/build/plugins/components/PluginForm.d.ts +24 -24
- package/build/plugins/utils/useRefsReset.d.ts +2 -2
- package/build/types.d.ts +17 -17
- package/build/utils/FileUtils.d.ts +18 -18
- package/build/utils/conversionUtils.d.ts +16 -16
- package/build/utils/defaultValues.d.ts +3 -3
- package/build/utils/drawing/index.d.ts +3 -3
- package/build/utils/drawing/useDrawingArr.d.ts +10 -10
- package/build/utils/drawing/useDrawingCCId.d.ts +10 -10
- package/build/utils/drawing/useDrawingStr.d.ts +10 -10
- package/build/utils/getHighlightedColor.d.ts +1 -1
- package/build/utils/getMatePath.d.ts +2 -2
- package/build/utils/getMateRefIds.d.ts +2 -2
- package/build/utils/helpers.d.ts +18 -18
- package/build/utils/mateUtils.d.ts +2 -2
- package/build/utils/selection/filters.d.ts +12 -12
- package/build/utils/selection/scopes/mateSelection.d.ts +29 -29
- package/build/utils/selection/scopes/treeObjInteraction.d.ts +37 -37
- package/build/utils/selection/useSelectorsOrder.d.ts +12 -12
- package/build/utils/sketchIntersectionUtils.d.ts +29 -29
- package/build/utils/sketchUtils.d.ts +173 -173
- package/build/utils/useAllObjects.d.ts +2 -2
- package/build/utils/useIsUncommited.d.ts +2 -2
- package/build/utils/useRetainVisibility.d.ts +2 -2
- package/build/utils/useScale.d.ts +4 -4
- package/build/utils/validation.d.ts +11 -11
- package/package.json +107 -107
|
@@ -1,6 +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
|
-
}>;
|
|
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
|
+
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DrawingID, PluginID } from '@buerli.io/core';
|
|
3
|
-
export declare const View: React.FC<{
|
|
4
|
-
drawingId: DrawingID;
|
|
5
|
-
pluginId: PluginID;
|
|
6
|
-
}>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID, PluginID } from '@buerli.io/core';
|
|
3
|
+
export declare const View: React.FC<{
|
|
4
|
+
drawingId: DrawingID;
|
|
5
|
+
pluginId: PluginID;
|
|
6
|
+
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PluginDescription } from '@buerli.io/core';
|
|
2
|
-
import { Root } from './Root';
|
|
3
|
-
import { View } from './View';
|
|
4
|
-
declare const description: PluginDescription;
|
|
5
|
-
export { Root, View, description };
|
|
1
|
+
import { PluginDescription } from '@buerli.io/core';
|
|
2
|
+
import { Root } from './Root';
|
|
3
|
+
import { View } from './View';
|
|
4
|
+
declare const description: PluginDescription;
|
|
5
|
+
export { Root, View, description };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const validators: Record<number, (...args: any[]) => string[]>;
|
|
1
|
+
export declare const validators: Record<number, (...args: any[]) => string[]>;
|
|
@@ -1,6 +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
|
-
}>;
|
|
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
|
+
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DrawingID, PluginID } from '@buerli.io/core';
|
|
3
|
-
export declare const View: React.FC<{
|
|
4
|
-
drawingId: DrawingID;
|
|
5
|
-
pluginId: PluginID;
|
|
6
|
-
}>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID, PluginID } from '@buerli.io/core';
|
|
3
|
+
export declare const View: React.FC<{
|
|
4
|
+
drawingId: DrawingID;
|
|
5
|
+
pluginId: PluginID;
|
|
6
|
+
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PluginDescription } from '@buerli.io/core';
|
|
2
|
-
import { Root } from './Root';
|
|
3
|
-
import { View } from './View';
|
|
4
|
-
declare const description: PluginDescription;
|
|
5
|
-
export { Root, View, description };
|
|
1
|
+
import { PluginDescription } from '@buerli.io/core';
|
|
2
|
+
import { Root } from './Root';
|
|
3
|
+
import { View } from './View';
|
|
4
|
+
declare const description: PluginDescription;
|
|
5
|
+
export { Root, View, description };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DrawingID, PluginID } from '@buerli.io/core';
|
|
3
|
-
import { MemberParam } from '../../types';
|
|
4
|
-
/**
|
|
5
|
-
* @param drawingId - id of the drawing.
|
|
6
|
-
* @param update - a function which will be called when user presses "Update" button.
|
|
7
|
-
* @param params - all params which should be sent to the server. PluginForm validates each of them.
|
|
8
|
-
* @param validator - smart validation (check https://awv-informatik.atlassian.net/wiki/spaces/CLAS/pages/2428076033/Validation for mor details)
|
|
9
|
-
* @param autoClose - (optional) if true plugin will closed after update. Default is true.
|
|
10
|
-
* @param forceUpdateEnabled - if plugin is opened for the recently created feature it contains default values.
|
|
11
|
-
* User should be able to click "Update" button (clicking on close will remove the feature). Since there is no params changed by the user validator disables "Update" button.
|
|
12
|
-
* To make "Update" button enabled with default values pass true to forceUpdateEnabled
|
|
13
|
-
* @returns
|
|
14
|
-
*/
|
|
15
|
-
export declare const PluginForm: React.FC<{
|
|
16
|
-
drawingId: DrawingID;
|
|
17
|
-
pluginId: PluginID;
|
|
18
|
-
update: () => Promise<any>;
|
|
19
|
-
params: Record<string, MemberParam<any>>;
|
|
20
|
-
children?: React.ReactNode;
|
|
21
|
-
validator?: () => string[];
|
|
22
|
-
autoClose?: boolean;
|
|
23
|
-
forceUpdateEnabled?: boolean;
|
|
24
|
-
}>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID, PluginID } from '@buerli.io/core';
|
|
3
|
+
import { MemberParam } from '../../types';
|
|
4
|
+
/**
|
|
5
|
+
* @param drawingId - id of the drawing.
|
|
6
|
+
* @param update - a function which will be called when user presses "Update" button.
|
|
7
|
+
* @param params - all params which should be sent to the server. PluginForm validates each of them.
|
|
8
|
+
* @param validator - smart validation (check https://awv-informatik.atlassian.net/wiki/spaces/CLAS/pages/2428076033/Validation for mor details)
|
|
9
|
+
* @param autoClose - (optional) if true plugin will closed after update. Default is true.
|
|
10
|
+
* @param forceUpdateEnabled - if plugin is opened for the recently created feature it contains default values.
|
|
11
|
+
* User should be able to click "Update" button (clicking on close will remove the feature). Since there is no params changed by the user validator disables "Update" button.
|
|
12
|
+
* To make "Update" button enabled with default values pass true to forceUpdateEnabled
|
|
13
|
+
* @returns
|
|
14
|
+
*/
|
|
15
|
+
export declare const PluginForm: React.FC<{
|
|
16
|
+
drawingId: DrawingID;
|
|
17
|
+
pluginId: PluginID;
|
|
18
|
+
update: () => Promise<any>;
|
|
19
|
+
params: Record<string, MemberParam<any>>;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
validator?: () => string[];
|
|
22
|
+
autoClose?: boolean;
|
|
23
|
+
forceUpdateEnabled?: boolean;
|
|
24
|
+
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MemberParam } from '../../types';
|
|
2
|
-
export declare function useRefsReset(type: MemberParam<number>, refs: MemberParam<number[]>): void;
|
|
1
|
+
import { MemberParam } from '../../types';
|
|
2
|
+
export declare function useRefsReset(type: MemberParam<number>, refs: MemberParam<number[]>): void;
|
package/build/types.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare type MemberParam<T> = {
|
|
3
|
-
userValue: T;
|
|
4
|
-
serverValue: T;
|
|
5
|
-
setUserValue: React.Dispatch<React.SetStateAction<T>>;
|
|
6
|
-
defaults: T;
|
|
7
|
-
isChanged: (idx?: number) => boolean;
|
|
8
|
-
validator: () => string[];
|
|
9
|
-
setValidator: (...args: any[]) => void;
|
|
10
|
-
options: {
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export declare type APIParam<T> = {
|
|
15
|
-
value: T | string;
|
|
16
|
-
isExpr: boolean;
|
|
17
|
-
};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type MemberParam<T> = {
|
|
3
|
+
userValue: T;
|
|
4
|
+
serverValue: T;
|
|
5
|
+
setUserValue: React.Dispatch<React.SetStateAction<T>>;
|
|
6
|
+
defaults: T;
|
|
7
|
+
isChanged: (idx?: number) => boolean;
|
|
8
|
+
validator: () => string[];
|
|
9
|
+
setValidator: (...args: any[]) => void;
|
|
10
|
+
options: {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare type APIParam<T> = {
|
|
15
|
+
value: T | string;
|
|
16
|
+
isExpr: boolean;
|
|
17
|
+
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
2
|
-
/**
|
|
3
|
-
* Simple helper functions for file interaction.
|
|
4
|
-
*/
|
|
5
|
-
export declare const FileUtils: {
|
|
6
|
-
/**
|
|
7
|
-
* Loads a file from the file system.
|
|
8
|
-
* It uses @see document and is therefore directly dependent on the DOM.
|
|
9
|
-
*
|
|
10
|
-
* @param onLoad The callback.
|
|
11
|
-
* @param type The content type.
|
|
12
|
-
*/
|
|
13
|
-
loadFile: (onLoad: (files: {
|
|
14
|
-
file: File;
|
|
15
|
-
content: any;
|
|
16
|
-
}[]) => void, type?: 'DataURL' | 'ArrayBuffer' | 'BinaryString' | 'Text', multiple?: boolean) => void;
|
|
17
|
-
exportNode: (drawingId: DrawingID, objectId: ObjectID, type?: 'ofb' | 'stp' | 'step' | 'stl') => Promise<void>;
|
|
18
|
-
};
|
|
1
|
+
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
2
|
+
/**
|
|
3
|
+
* Simple helper functions for file interaction.
|
|
4
|
+
*/
|
|
5
|
+
export declare const FileUtils: {
|
|
6
|
+
/**
|
|
7
|
+
* Loads a file from the file system.
|
|
8
|
+
* It uses @see document and is therefore directly dependent on the DOM.
|
|
9
|
+
*
|
|
10
|
+
* @param onLoad The callback.
|
|
11
|
+
* @param type The content type.
|
|
12
|
+
*/
|
|
13
|
+
loadFile: (onLoad: (files: {
|
|
14
|
+
file: File;
|
|
15
|
+
content: any;
|
|
16
|
+
}[]) => void, type?: 'DataURL' | 'ArrayBuffer' | 'BinaryString' | 'Text', multiple?: boolean) => void;
|
|
17
|
+
exportNode: (drawingId: DrawingID, objectId: ObjectID, type?: 'ofb' | 'stp' | 'step' | 'stl') => Promise<void>;
|
|
18
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { DrawingID, ObjectID } from "@buerli.io/core";
|
|
2
|
-
import { MateParam } from "../components/UI/editors/RefsEditors";
|
|
3
|
-
export declare const mateV1: (mateV0: MateParam) => {
|
|
4
|
-
flip: "X" | "-X" | "Y" | "-Y" | "Z" | "-Z";
|
|
5
|
-
reorient: "0" | "90" | "180" | "270";
|
|
6
|
-
path: number[] | undefined;
|
|
7
|
-
csys: number | undefined;
|
|
8
|
-
};
|
|
9
|
-
export declare const solidV1: (drawingId: DrawingID, id: ObjectID) => {
|
|
10
|
-
id: string | number;
|
|
11
|
-
indices?: number[] | undefined;
|
|
12
|
-
};
|
|
13
|
-
export declare const solidsV1: (drawingId: DrawingID, ids: ObjectID[]) => {
|
|
14
|
-
id: string | number;
|
|
15
|
-
indices?: number[] | undefined;
|
|
16
|
-
}[];
|
|
1
|
+
import { DrawingID, ObjectID } from "@buerli.io/core";
|
|
2
|
+
import { MateParam } from "../components/UI/editors/RefsEditors";
|
|
3
|
+
export declare const mateV1: (mateV0: MateParam) => {
|
|
4
|
+
flip: "X" | "-X" | "Y" | "-Y" | "Z" | "-Z";
|
|
5
|
+
reorient: "0" | "90" | "180" | "270";
|
|
6
|
+
path: number[] | undefined;
|
|
7
|
+
csys: number | undefined;
|
|
8
|
+
};
|
|
9
|
+
export declare const solidV1: (drawingId: DrawingID, id: ObjectID) => {
|
|
10
|
+
id: string | number;
|
|
11
|
+
indices?: number[] | undefined;
|
|
12
|
+
};
|
|
13
|
+
export declare const solidsV1: (drawingId: DrawingID, ids: ObjectID[]) => {
|
|
14
|
+
id: string | number;
|
|
15
|
+
indices?: number[] | undefined;
|
|
16
|
+
}[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const EMPTYARRAY: never[];
|
|
2
|
-
export declare const NOCCID: number;
|
|
3
|
-
export declare const EMPTYSTR = "";
|
|
1
|
+
export declare const EMPTYARRAY: never[];
|
|
2
|
+
export declare const NOCCID: number;
|
|
3
|
+
export declare const EMPTYSTR = "";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { useDrawingArr } from './useDrawingArr';
|
|
2
|
-
export { useDrawingCCId } from './useDrawingCCId';
|
|
3
|
-
export { useDrawingStr } from './useDrawingStr';
|
|
1
|
+
export { useDrawingArr } from './useDrawingArr';
|
|
2
|
+
export { useDrawingCCId } from './useDrawingCCId';
|
|
3
|
+
export { useDrawingStr } from './useDrawingStr';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DrawingID, DrawingState } from '@buerli.io/core';
|
|
2
|
-
/**
|
|
3
|
-
* Wrapper around useDrawing which allows to avoid ReferenceErrors.
|
|
4
|
-
* Use useDrawingArr if you want to get an array from store. It returns EMPTYARRAY if requested one is undefined.
|
|
5
|
-
*
|
|
6
|
-
* @param drawingId
|
|
7
|
-
* @param selector
|
|
8
|
-
* @returns requested by selector array or EMPTYARRAY if requested is undefined or null
|
|
9
|
-
*/
|
|
10
|
-
export declare function useDrawingArr<T>(drawingId: DrawingID, selector: (state: DrawingState) => Array<T> | undefined): Array<T>;
|
|
1
|
+
import { DrawingID, DrawingState } from '@buerli.io/core';
|
|
2
|
+
/**
|
|
3
|
+
* Wrapper around useDrawing which allows to avoid ReferenceErrors.
|
|
4
|
+
* Use useDrawingArr if you want to get an array from store. It returns EMPTYARRAY if requested one is undefined.
|
|
5
|
+
*
|
|
6
|
+
* @param drawingId
|
|
7
|
+
* @param selector
|
|
8
|
+
* @returns requested by selector array or EMPTYARRAY if requested is undefined or null
|
|
9
|
+
*/
|
|
10
|
+
export declare function useDrawingArr<T>(drawingId: DrawingID, selector: (state: DrawingState) => Array<T> | undefined): Array<T>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DrawingID, DrawingState, ObjectID } from '@buerli.io/core';
|
|
2
|
-
/**
|
|
3
|
-
* Wrapper around useDrawing which allows to avoid ReferenceErrors.
|
|
4
|
-
* Use useDrawingCCId if you want to get an object id from store. It returns NOCCID if requested one is undefined or null.
|
|
5
|
-
*
|
|
6
|
-
* @param drawingId
|
|
7
|
-
* @param selector
|
|
8
|
-
* @returns requested by selector object id or NOCCID if requested is undefined or null
|
|
9
|
-
*/
|
|
10
|
-
export declare function useDrawingCCId(drawingId: DrawingID, selector: (state: DrawingState) => ObjectID | undefined): ObjectID;
|
|
1
|
+
import { DrawingID, DrawingState, ObjectID } from '@buerli.io/core';
|
|
2
|
+
/**
|
|
3
|
+
* Wrapper around useDrawing which allows to avoid ReferenceErrors.
|
|
4
|
+
* Use useDrawingCCId if you want to get an object id from store. It returns NOCCID if requested one is undefined or null.
|
|
5
|
+
*
|
|
6
|
+
* @param drawingId
|
|
7
|
+
* @param selector
|
|
8
|
+
* @returns requested by selector object id or NOCCID if requested is undefined or null
|
|
9
|
+
*/
|
|
10
|
+
export declare function useDrawingCCId(drawingId: DrawingID, selector: (state: DrawingState) => ObjectID | undefined): ObjectID;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DrawingID, DrawingState } from '@buerli.io/core';
|
|
2
|
-
/**
|
|
3
|
-
* Wrapper around useDrawing which allows to avoid ReferenceErrors.
|
|
4
|
-
* Use useDrawingStr if you want to get a string from store. It returns EMPTYSTR if requested one is undefined.
|
|
5
|
-
*
|
|
6
|
-
* @param drawingId
|
|
7
|
-
* @param selector
|
|
8
|
-
* @returns requested by selector string or EMPTYSTRING if requested one is undefined or null
|
|
9
|
-
*/
|
|
10
|
-
export declare function useDrawingStr(drawingId: DrawingID, selector: (state: DrawingState) => string | undefined): string;
|
|
1
|
+
import { DrawingID, DrawingState } from '@buerli.io/core';
|
|
2
|
+
/**
|
|
3
|
+
* Wrapper around useDrawing which allows to avoid ReferenceErrors.
|
|
4
|
+
* Use useDrawingStr if you want to get a string from store. It returns EMPTYSTR if requested one is undefined.
|
|
5
|
+
*
|
|
6
|
+
* @param drawingId
|
|
7
|
+
* @param selector
|
|
8
|
+
* @returns requested by selector string or EMPTYSTRING if requested one is undefined or null
|
|
9
|
+
*/
|
|
10
|
+
export declare function useDrawingStr(drawingId: DrawingID, selector: (state: DrawingState) => string | undefined): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getHighlightedColor: (isGHovered: boolean, isGSelected: boolean, isSHovered: boolean, isSSelected: boolean) => "red" | "green" | "#3280ff" | "#8040c0" | undefined;
|
|
1
|
+
export declare const getHighlightedColor: (isGHovered: boolean, isGSelected: boolean, isSHovered: boolean, isSSelected: boolean) => "red" | "green" | "#3280ff" | "#8040c0" | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
2
|
-
export declare const getMatePath: (drawingId: DrawingID, prRefId: ObjectID) => number[];
|
|
1
|
+
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
2
|
+
export declare const getMatePath: (drawingId: DrawingID, prRefId: ObjectID) => number[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
2
|
-
export declare const getMateRefIds: (drawingId: DrawingID, constrId: ObjectID) => number[] | undefined;
|
|
1
|
+
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
2
|
+
export declare const getMateRefIds: (drawingId: DrawingID, constrId: ObjectID) => number[] | undefined;
|
package/build/utils/helpers.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { DrawingID, GeometryElement, GraphicID, ScgObject, MemberType, ObjectID, ScgPointMem, ScgPoint, ContainerGeometryT } from '@buerli.io/core';
|
|
2
|
-
import * as THREE from 'three';
|
|
3
|
-
export declare function useGlobalToLocalMatrix(drawingId: DrawingID, objId: ObjectID | undefined): THREE.Matrix4;
|
|
4
|
-
export declare function getGlobalToLocalMatrix(drawingId: DrawingID, objId: ObjectID): THREE.Matrix4;
|
|
5
|
-
export declare function convertToVector(point: ScgPointMem | undefined): THREE.Vector3;
|
|
6
|
-
export declare function convertToArray(point: ScgPointMem): number[];
|
|
7
|
-
export declare function linesIntersection(point1: THREE.Vector3, dir1: THREE.Vector3, point2: THREE.Vector3, dir2: THREE.Vector3): THREE.Vector3 | null;
|
|
8
|
-
export declare const angleVecVec: (a: THREE.Vector3, b: THREE.Vector3) => number;
|
|
9
|
-
export declare const degreesToRadians: (degrees: number) => number;
|
|
10
|
-
export declare const radiansToDegrees: (radians: number) => number;
|
|
11
|
-
export declare const getPointOnPlane: (unprojectedPoint: THREE.Vector3, camera: THREE.Camera, globalToLocalM: THREE.Matrix4) => THREE.Vector3;
|
|
12
|
-
export declare const closestAngle: (value: number, to: number) => number;
|
|
13
|
-
export declare const stringifyValue: (value: string | number | ScgPoint, type: MemberType) => string;
|
|
14
|
-
export declare function findObject(drawingId: DrawingID, id: GraphicID | ObjectID, unrollRefs?: boolean): ScgObject | ContainerGeometryT | GeometryElement | undefined;
|
|
15
|
-
export declare function fmod(num: number, denom: number): number;
|
|
16
|
-
export declare const solveQuadratic: (a: number, b: number, c: number) => number[];
|
|
17
|
-
export declare const solveQuartic: (a: number, b: number, c: number, d: number, e: number) => number[];
|
|
18
|
-
export declare function getRegionCoordSys(drawingId: DrawingID, regionObj: ScgObject): THREE.Vector3[];
|
|
1
|
+
import { DrawingID, GeometryElement, GraphicID, ScgObject, MemberType, ObjectID, ScgPointMem, ScgPoint, ContainerGeometryT } from '@buerli.io/core';
|
|
2
|
+
import * as THREE from 'three';
|
|
3
|
+
export declare function useGlobalToLocalMatrix(drawingId: DrawingID, objId: ObjectID | undefined): THREE.Matrix4;
|
|
4
|
+
export declare function getGlobalToLocalMatrix(drawingId: DrawingID, objId: ObjectID): THREE.Matrix4;
|
|
5
|
+
export declare function convertToVector(point: ScgPointMem | undefined): THREE.Vector3;
|
|
6
|
+
export declare function convertToArray(point: ScgPointMem): number[];
|
|
7
|
+
export declare function linesIntersection(point1: THREE.Vector3, dir1: THREE.Vector3, point2: THREE.Vector3, dir2: THREE.Vector3): THREE.Vector3 | null;
|
|
8
|
+
export declare const angleVecVec: (a: THREE.Vector3, b: THREE.Vector3) => number;
|
|
9
|
+
export declare const degreesToRadians: (degrees: number) => number;
|
|
10
|
+
export declare const radiansToDegrees: (radians: number) => number;
|
|
11
|
+
export declare const getPointOnPlane: (unprojectedPoint: THREE.Vector3, camera: THREE.Camera, globalToLocalM: THREE.Matrix4) => THREE.Vector3;
|
|
12
|
+
export declare const closestAngle: (value: number, to: number) => number;
|
|
13
|
+
export declare const stringifyValue: (value: string | number | ScgPoint, type: MemberType) => string;
|
|
14
|
+
export declare function findObject(drawingId: DrawingID, id: GraphicID | ObjectID, unrollRefs?: boolean): ScgObject | ContainerGeometryT | GeometryElement | undefined;
|
|
15
|
+
export declare function fmod(num: number, denom: number): number;
|
|
16
|
+
export declare const solveQuadratic: (a: number, b: number, c: number) => number[];
|
|
17
|
+
export declare const solveQuartic: (a: number, b: number, c: number, d: number, e: number) => number[];
|
|
18
|
+
export declare function getRegionCoordSys(drawingId: DrawingID, regionObj: ScgObject): THREE.Vector3[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
2
|
-
export declare const getProductRigidSet: (drawingId: DrawingID, instanceId: ObjectID, rigidSets: ObjectID[]) => number | undefined;
|
|
1
|
+
import { DrawingID, ObjectID } from '@buerli.io/core';
|
|
2
|
+
export declare const getProductRigidSet: (drawingId: DrawingID, instanceId: ObjectID, rigidSets: ObjectID[]) => number | undefined;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare const ccPointFilter: (scope: any, data: any) => boolean;
|
|
2
|
-
export declare const ccLineFilter: (scope: any, data: any) => boolean;
|
|
3
|
-
export declare const ccArcFilter: (scope: any, data: any) => boolean;
|
|
4
|
-
export declare const ccCircleFilter: (scope: any, data: any) => boolean;
|
|
5
|
-
export declare const axisFilter: (scope: any, data: any) => boolean;
|
|
6
|
-
export declare const workPointFilter: (scope: any, data: any) => boolean;
|
|
7
|
-
export declare const workPlaneFilter: (scope: any, data: any) => boolean;
|
|
8
|
-
export declare const workAxisFilter: (scope: any, data: any) => boolean;
|
|
9
|
-
export declare const csysFilter: (scope: any, data: any) => boolean;
|
|
10
|
-
export declare const mateFilter: (scope: any, data: any) => boolean;
|
|
11
|
-
export declare const instanceFilter: (scope: any, data: any) => boolean;
|
|
12
|
-
export declare const curveEntityFilter: (scope: any, data: any) => boolean;
|
|
1
|
+
export declare const ccPointFilter: (scope: any, data: any) => boolean;
|
|
2
|
+
export declare const ccLineFilter: (scope: any, data: any) => boolean;
|
|
3
|
+
export declare const ccArcFilter: (scope: any, data: any) => boolean;
|
|
4
|
+
export declare const ccCircleFilter: (scope: any, data: any) => boolean;
|
|
5
|
+
export declare const axisFilter: (scope: any, data: any) => boolean;
|
|
6
|
+
export declare const workPointFilter: (scope: any, data: any) => boolean;
|
|
7
|
+
export declare const workPlaneFilter: (scope: any, data: any) => boolean;
|
|
8
|
+
export declare const workAxisFilter: (scope: any, data: any) => boolean;
|
|
9
|
+
export declare const csysFilter: (scope: any, data: any) => boolean;
|
|
10
|
+
export declare const mateFilter: (scope: any, data: any) => boolean;
|
|
11
|
+
export declare const instanceFilter: (scope: any, data: any) => boolean;
|
|
12
|
+
export declare const curveEntityFilter: (scope: any, data: any) => boolean;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { DrawingID, ObjectID, ScgObject } from '@buerli.io/core';
|
|
2
|
-
import { FlipType, ReorientedType } from '@buerli.io/classcad';
|
|
3
|
-
/**
|
|
4
|
-
* Implies the following data structure:
|
|
5
|
-
* data: {
|
|
6
|
-
* path: ObjectID[],
|
|
7
|
-
* csys: ScgObject,
|
|
8
|
-
* flip: FlipType,
|
|
9
|
-
* reorient: ReorientedType,
|
|
10
|
-
* }
|
|
11
|
-
*/
|
|
12
|
-
export declare const MateScope = "HLConstraintScope";
|
|
13
|
-
export declare const createMateItem: (path: ObjectID[], csys: ScgObject, flip: FlipType, reorient: ReorientedType) => {
|
|
14
|
-
id: string;
|
|
15
|
-
scope: string;
|
|
16
|
-
data: {
|
|
17
|
-
path: number[];
|
|
18
|
-
csys: ScgObject;
|
|
19
|
-
flip: FlipType;
|
|
20
|
-
reorient: ReorientedType;
|
|
21
|
-
};
|
|
22
|
-
label: string;
|
|
23
|
-
};
|
|
24
|
-
export declare function useIsSelected(drawingId: DrawingID, path: ObjectID[], csys: ScgObject): boolean;
|
|
25
|
-
export declare function useMateSelection(drawingId: DrawingID, path: ObjectID[], csysId: ObjectID): {
|
|
26
|
-
isHovered: boolean;
|
|
27
|
-
isSelected: boolean;
|
|
28
|
-
handlers: {};
|
|
29
|
-
};
|
|
1
|
+
import { DrawingID, ObjectID, ScgObject } from '@buerli.io/core';
|
|
2
|
+
import { FlipType, ReorientedType } from '@buerli.io/classcad';
|
|
3
|
+
/**
|
|
4
|
+
* Implies the following data structure:
|
|
5
|
+
* data: {
|
|
6
|
+
* path: ObjectID[],
|
|
7
|
+
* csys: ScgObject,
|
|
8
|
+
* flip: FlipType,
|
|
9
|
+
* reorient: ReorientedType,
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export declare const MateScope = "HLConstraintScope";
|
|
13
|
+
export declare const createMateItem: (path: ObjectID[], csys: ScgObject, flip: FlipType, reorient: ReorientedType) => {
|
|
14
|
+
id: string;
|
|
15
|
+
scope: string;
|
|
16
|
+
data: {
|
|
17
|
+
path: number[];
|
|
18
|
+
csys: ScgObject;
|
|
19
|
+
flip: FlipType;
|
|
20
|
+
reorient: ReorientedType;
|
|
21
|
+
};
|
|
22
|
+
label: string;
|
|
23
|
+
};
|
|
24
|
+
export declare function useIsSelected(drawingId: DrawingID, path: ObjectID[], csys: ScgObject): boolean;
|
|
25
|
+
export declare function useMateSelection(drawingId: DrawingID, path: ObjectID[], csysId: ObjectID): {
|
|
26
|
+
isHovered: boolean;
|
|
27
|
+
isSelected: boolean;
|
|
28
|
+
handlers: {};
|
|
29
|
+
};
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { DrawingID, ScgObject, ObjectID, SelectedItem } from '@buerli.io/core';
|
|
2
|
-
import { ThreeEvent } from '@react-three/fiber';
|
|
3
|
-
/**
|
|
4
|
-
* Implies the following data structure:
|
|
5
|
-
* data: {
|
|
6
|
-
* object: ScgObject
|
|
7
|
-
* }
|
|
8
|
-
*/
|
|
9
|
-
export declare const TreeObjScope = "TreeObjScope";
|
|
10
|
-
export declare const createTreeObjSelItem: (productId: ObjectID, object: ScgObject) => SelectedItem;
|
|
11
|
-
export declare function useIsGHovered(drawingId: DrawingID, objId: ObjectID): boolean;
|
|
12
|
-
export declare function useIsGSelected(drawingId: DrawingID, objId: ObjectID): boolean;
|
|
13
|
-
export declare function useIsSHovered(drawingId: DrawingID, objId: ObjectID): boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Returns true if object in tree is currently selected in active selection.
|
|
16
|
-
*
|
|
17
|
-
* This hook leads to re-rendering of each element uses it.
|
|
18
|
-
* It happens because it uses items of the active selection,
|
|
19
|
-
* and it's not possible to check if objId is selected inside of useDrawing selector
|
|
20
|
-
* because of performance reasone (it requires traversing through all of selectedItems).
|
|
21
|
-
*
|
|
22
|
-
* @param drawingId
|
|
23
|
-
* @param objId
|
|
24
|
-
* @returns
|
|
25
|
-
*/
|
|
26
|
-
export declare function useIsSSelected(drawingId: DrawingID, objId: ObjectID): boolean;
|
|
27
|
-
export declare function useTreeObjInteraction(drawingId: DrawingID, objId: ObjectID): {
|
|
28
|
-
isGHovered: boolean;
|
|
29
|
-
isGSelected: boolean;
|
|
30
|
-
isSHovered: boolean;
|
|
31
|
-
isSSelected: boolean;
|
|
32
|
-
handlers: {
|
|
33
|
-
onClick: (e: MouseEvent | ThreeEvent<MouseEvent>) => void;
|
|
34
|
-
onPointerOut: (e: PointerEvent | ThreeEvent<PointerEvent>) => void;
|
|
35
|
-
onPointerOver: (e: PointerEvent | ThreeEvent<PointerEvent>) => void;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
1
|
+
import { DrawingID, ScgObject, ObjectID, SelectedItem } from '@buerli.io/core';
|
|
2
|
+
import { ThreeEvent } from '@react-three/fiber';
|
|
3
|
+
/**
|
|
4
|
+
* Implies the following data structure:
|
|
5
|
+
* data: {
|
|
6
|
+
* object: ScgObject
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export declare const TreeObjScope = "TreeObjScope";
|
|
10
|
+
export declare const createTreeObjSelItem: (productId: ObjectID, object: ScgObject) => SelectedItem;
|
|
11
|
+
export declare function useIsGHovered(drawingId: DrawingID, objId: ObjectID): boolean;
|
|
12
|
+
export declare function useIsGSelected(drawingId: DrawingID, objId: ObjectID): boolean;
|
|
13
|
+
export declare function useIsSHovered(drawingId: DrawingID, objId: ObjectID): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Returns true if object in tree is currently selected in active selection.
|
|
16
|
+
*
|
|
17
|
+
* This hook leads to re-rendering of each element uses it.
|
|
18
|
+
* It happens because it uses items of the active selection,
|
|
19
|
+
* and it's not possible to check if objId is selected inside of useDrawing selector
|
|
20
|
+
* because of performance reasone (it requires traversing through all of selectedItems).
|
|
21
|
+
*
|
|
22
|
+
* @param drawingId
|
|
23
|
+
* @param objId
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
export declare function useIsSSelected(drawingId: DrawingID, objId: ObjectID): boolean;
|
|
27
|
+
export declare function useTreeObjInteraction(drawingId: DrawingID, objId: ObjectID): {
|
|
28
|
+
isGHovered: boolean;
|
|
29
|
+
isGSelected: boolean;
|
|
30
|
+
isSHovered: boolean;
|
|
31
|
+
isSSelected: boolean;
|
|
32
|
+
handlers: {
|
|
33
|
+
onClick: (e: MouseEvent | ThreeEvent<MouseEvent>) => void;
|
|
34
|
+
onPointerOut: (e: PointerEvent | ThreeEvent<PointerEvent>) => void;
|
|
35
|
+
onPointerOver: (e: PointerEvent | ThreeEvent<PointerEvent>) => void;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { DrawingID, SelectorID } from '@buerli.io/core';
|
|
2
|
-
export declare type SelectorsOrderT = {
|
|
3
|
-
addSelector: (selId: SelectorID) => void;
|
|
4
|
-
removeSelector: (selId: SelectorID) => void;
|
|
5
|
-
switchToNext: (selId: SelectorID) => void;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Allows to automatically enable all selectors in form one by one.
|
|
9
|
-
* @param drawingId
|
|
10
|
-
* @returns
|
|
11
|
-
*/
|
|
12
|
-
export declare function useSelectorsOrder(drawingId: DrawingID): SelectorsOrderT;
|
|
1
|
+
import { DrawingID, SelectorID } from '@buerli.io/core';
|
|
2
|
+
export declare type SelectorsOrderT = {
|
|
3
|
+
addSelector: (selId: SelectorID) => void;
|
|
4
|
+
removeSelector: (selId: SelectorID) => void;
|
|
5
|
+
switchToNext: (selId: SelectorID) => void;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Allows to automatically enable all selectors in form one by one.
|
|
9
|
+
* @param drawingId
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
export declare function useSelectorsOrder(drawingId: DrawingID): SelectorsOrderT;
|