@classcad/react-cad 0.0.0-stage → 3.0.0-beta.20261119090857
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/CHANGELOG.md +55 -0
- package/README.md +98 -2
- package/build/components/UI/CAD/Constraints.d.ts +30 -0
- package/build/components/UI/CAD/Drawing.d.ts +83 -0
- package/build/components/UI/CAD/ListPlaceholder.d.ts +3 -0
- package/build/components/UI/CAD/Messages/Message.d.ts +8 -0
- package/build/components/UI/CAD/Messages/Messages.d.ts +43 -0
- package/build/components/UI/CAD/Messages/index.d.ts +1 -0
- package/build/components/UI/CAD/Messages/msgStore.d.ts +18 -0
- package/build/components/UI/CAD/ModelTree/AssemblyNode.d.ts +5 -0
- package/build/components/UI/CAD/ModelTree/FeatureList/Feature.d.ts +8 -0
- package/build/components/UI/CAD/ModelTree/FeatureList/FeatureList.d.ts +6 -0
- package/build/components/UI/CAD/ModelTree/FeatureList/index.d.ts +1 -0
- package/build/components/UI/CAD/ModelTree/FeatureList/utils.d.ts +26 -0
- package/build/components/UI/CAD/ModelTree/ModelTree.d.ts +56 -0
- package/build/components/UI/CAD/ModelTree/ModelTreeHeader.d.ts +15 -0
- package/build/components/UI/CAD/ModelTree/index.d.ts +1 -0
- package/build/components/UI/CAD/ModelTree/primitives.d.ts +6 -0
- package/build/components/UI/CAD/ModelTree/useContextMenuItems.d.ts +4 -0
- package/build/components/UI/CAD/PluginBounds.d.ts +8 -0
- package/build/components/UI/CAD/PluginTooltip.d.ts +5 -0
- package/build/components/UI/CAD/PluginsWindows.d.ts +99 -0
- package/build/components/UI/CAD/ReadOnlyContext.d.ts +10 -0
- package/build/components/UI/CAD/SideBar.d.ts +40 -0
- package/build/components/UI/CAD/Solids/Solids.d.ts +23 -0
- package/build/components/UI/CAD/Solids/index.d.ts +1 -0
- package/build/components/UI/CAD/Solids/useContextMenuItems.d.ts +4 -0
- package/build/components/UI/CAD/Solids/useVisibleSolids.d.ts +30 -0
- package/build/components/UI/CAD/StageHud.d.ts +9 -0
- package/build/components/UI/CAD/StatusBar.d.ts +11 -0
- package/build/components/UI/CAD/ThemeToggle.d.ts +25 -0
- package/build/components/UI/CAD/ToolBar/AssemblyModeCmds.d.ts +3 -0
- package/build/components/UI/CAD/ToolBar/PartModeCmds.d.ts +3 -0
- package/build/components/UI/CAD/ToolBar/ToolBar.d.ts +24 -0
- package/build/components/UI/CAD/ToolBar/index.d.ts +1 -0
- package/build/components/UI/CAD/ToolBar/useCommands.d.ts +12 -0
- package/build/components/UI/CAD/ViewOptionsBar/ViewOptionButtons.d.ts +30 -0
- package/build/components/UI/CAD/ViewOptionsBar/useOptionCommands.d.ts +65 -0
- package/build/components/UI/CAD/ViewPlugButtons.d.ts +43 -0
- package/build/components/UI/CAD/ant-design-draggable-modal/DraggableModal.d.ts +18 -0
- package/build/components/UI/CAD/ant-design-draggable-modal/DraggableModalContext.d.ts +9 -0
- package/build/components/UI/CAD/ant-design-draggable-modal/DraggableModalInner.d.ts +27 -0
- package/build/components/UI/CAD/ant-design-draggable-modal/DraggableModalProvider.d.ts +4 -0
- package/build/components/UI/CAD/ant-design-draggable-modal/OverlayScrollbar.d.ts +6 -0
- package/build/components/UI/CAD/ant-design-draggable-modal/ResizeHandle.d.ts +2 -0
- package/build/components/UI/CAD/ant-design-draggable-modal/clamp.d.ts +1 -0
- package/build/components/UI/CAD/ant-design-draggable-modal/draggableModalReducer.d.ts +123 -0
- package/build/components/UI/CAD/ant-design-draggable-modal/getWindowSize.d.ts +4 -0
- package/build/components/UI/CAD/ant-design-draggable-modal/index.d.ts +3 -0
- package/build/components/UI/CAD/ant-design-draggable-modal/useDrag.d.ts +5 -0
- package/build/components/UI/CAD/ant-design-draggable-modal/usePrevious.d.ts +1 -0
- package/build/components/UI/CAD/ant-design-draggable-modal/useResize.d.ts +7 -0
- package/build/components/UI/CAD/common/BlankDiv.d.ts +3 -0
- package/build/components/UI/CAD/common/Collapse.d.ts +13 -0
- package/build/components/UI/CAD/common/ContextMenu.d.ts +115 -0
- package/build/components/UI/CAD/common/Divider.d.ts +4 -0
- package/build/components/UI/CAD/common/EntityName.d.ts +14 -0
- package/build/components/UI/CAD/common/Img.d.ts +6 -0
- package/build/components/UI/CAD/common/LoadingScreen/LoadingScreen.d.ts +8 -0
- package/build/components/UI/CAD/common/LoadingScreen/Spinner.d.ts +3 -0
- package/build/components/UI/CAD/common/LoadingScreen/index.d.ts +1 -0
- package/build/components/UI/CAD/common/Menu.d.ts +81 -0
- package/build/components/UI/CAD/common/MultiSelect.d.ts +12 -0
- package/build/components/UI/CAD/common/NameEdit.d.ts +7 -0
- package/build/components/UI/CAD/common/SectionHeader.d.ts +9 -0
- package/build/components/UI/CAD/common/primitives.d.ts +36 -0
- package/build/components/UI/CAD/common/reveal.d.ts +12 -0
- package/build/components/UI/CAD/hooks/index.d.ts +13 -0
- package/build/components/UI/CAD/hooks/useContextMenuInteraction.d.ts +7 -0
- package/build/components/UI/CAD/hooks/useContextMenuItems.d.ts +4 -0
- package/build/components/UI/CAD/hooks/useCurrentInstance.d.ts +2 -0
- package/build/components/UI/CAD/hooks/useCurrentProduct.d.ts +2 -0
- package/build/components/UI/CAD/hooks/useEditMode.d.ts +40 -0
- package/build/components/UI/CAD/hooks/useFeatureCount.d.ts +6 -0
- package/build/components/UI/CAD/hooks/useGlobalMateInfo.d.ts +6 -0
- package/build/components/UI/CAD/hooks/useHasPending.d.ts +27 -0
- package/build/components/UI/CAD/hooks/useIsDisabled.d.ts +2 -0
- package/build/components/UI/CAD/hooks/useIsLoading.d.ts +25 -0
- package/build/components/UI/CAD/hooks/useIsSketchActive.d.ts +26 -0
- package/build/components/UI/CAD/hooks/useObjectDetails.d.ts +12 -0
- package/build/components/UI/CAD/hooks/useOperationSequence.d.ts +29 -0
- package/build/components/UI/CAD/hooks/useRollbackBar.d.ts +8 -0
- package/build/components/UI/CAD/hooks/useRoot.d.ts +2 -0
- package/build/components/UI/CAD/index.d.ts +27 -0
- package/build/components/UI/CAD/plugins/ProductManagement/ProdTable.d.ts +10 -0
- package/build/components/UI/CAD/plugins/ProductManagement/Root.d.ts +11 -0
- package/build/components/UI/CAD/plugins/ProductManagement/View.d.ts +11 -0
- package/build/components/UI/CAD/plugins/ProductManagement/index.d.ts +34 -0
- package/build/components/UI/CAD/plugins/ProductManagement/types.d.ts +4 -0
- package/build/components/UI/CAD/plugins/ProductManagement/useContextMenuItems.d.ts +4 -0
- package/build/components/UI/CAD/plugins/SessionManagement/Root.d.ts +11 -0
- package/build/components/UI/CAD/plugins/SessionManagement/index.d.ts +36 -0
- package/build/components/UI/CAD/plugins/SessionManagement/types.d.ts +3 -0
- package/build/components/UI/CAD/store/CADActions.d.ts +29 -0
- package/build/components/UI/CAD/store/CADStore.d.ts +68 -0
- package/build/components/UI/CAD/store/instances.d.ts +7 -0
- package/build/components/UI/Readfile.d.ts +39 -0
- package/build/components/UI/ThemeVars.d.ts +6 -0
- package/build/components/UI/editors/BooleanEditor/BooleanEditor.d.ts +8 -0
- package/build/components/UI/editors/BooleanEditor/index.d.ts +2 -0
- package/build/components/UI/editors/BooleanEditor/useBoolParam.d.ts +3 -0
- package/build/components/UI/editors/CSysEditor/CSysEditor.d.ts +11 -0
- package/build/components/UI/editors/CSysEditor/index.d.ts +2 -0
- package/build/components/UI/editors/CSysEditor/useCSysParam.d.ts +9 -0
- package/build/components/UI/editors/ColorEditor/ColorEditor.d.ts +12 -0
- package/build/components/UI/editors/ColorEditor/index.d.ts +2 -0
- package/build/components/UI/editors/ColorEditor/useColorParam.d.ts +9 -0
- package/build/components/UI/editors/ExpressionEditor/ExpressionEditor.d.ts +20 -0
- package/build/components/UI/editors/ExpressionEditor/index.d.ts +2 -0
- package/build/components/UI/editors/ExpressionEditor/useExpressionsParam.d.ts +5 -0
- package/build/components/UI/editors/NumberEditor/Inputs.d.ts +18 -0
- package/build/components/UI/editors/NumberEditor/Mentions.d.ts +10 -0
- package/build/components/UI/editors/NumberEditor/NumOrExpr.d.ts +12 -0
- package/build/components/UI/editors/NumberEditor/NumberEditor.d.ts +12 -0
- package/build/components/UI/editors/NumberEditor/index.d.ts +2 -0
- package/build/components/UI/editors/NumberEditor/useNumParam.d.ts +5 -0
- package/build/components/UI/editors/PointEditor/PointEditor.d.ts +10 -0
- package/build/components/UI/editors/PointEditor/index.d.ts +2 -0
- package/build/components/UI/editors/PointEditor/usePointParam.d.ts +5 -0
- package/build/components/UI/editors/RefsEditors/ChainFinder.d.ts +12 -0
- package/build/components/UI/editors/RefsEditors/MateEditor.d.ts +13 -0
- package/build/components/UI/editors/RefsEditors/MateOrientationEditor.d.ts +9 -0
- package/build/components/UI/editors/RefsEditors/RefEditor.d.ts +24 -0
- package/build/components/UI/editors/RefsEditors/RefsEditor.d.ts +16 -0
- package/build/components/UI/editors/RefsEditors/index.d.ts +8 -0
- package/build/components/UI/editors/RefsEditors/pickers.d.ts +4 -0
- package/build/components/UI/editors/RefsEditors/useIdParam.d.ts +3 -0
- package/build/components/UI/editors/RefsEditors/useMateParam.d.ts +19 -0
- package/build/components/UI/editors/RefsEditors/useModes.d.ts +11 -0
- package/build/components/UI/editors/RefsEditors/useRefsParam.d.ts +3 -0
- package/build/components/UI/editors/RefsEditors/useSelectedItems.d.ts +18 -0
- package/build/components/UI/editors/ToleranceEditor/ToleranceEditor.d.ts +7 -0
- package/build/components/UI/editors/ToleranceEditor/index.d.ts +2 -0
- package/build/components/UI/editors/ToleranceEditor/useToleranceParam.d.ts +3 -0
- package/build/components/UI/editors/TypeEditor/TypeEditor.d.ts +10 -0
- package/build/components/UI/editors/TypeEditor/index.d.ts +2 -0
- package/build/components/UI/editors/TypeEditor/useTypeParam.d.ts +3 -0
- package/build/components/UI/editors/TypeWrapper.d.ts +6 -0
- package/build/components/UI/editors/Wrapper.d.ts +16 -0
- package/build/components/UI/editors/useParam.d.ts +20 -0
- package/build/components/UI/editors/useValidation.d.ts +4 -0
- package/build/components/graphics/Badge.d.ts +70 -0
- package/build/components/graphics/CSysDisplay.d.ts +108 -0
- package/build/components/graphics/CompositeCurveObj.d.ts +33 -0
- package/build/components/graphics/GeometryOverrides/GeometryOverridesManager.d.ts +41 -0
- package/build/components/graphics/GeometryOverrides/GeometryOverridesStore.d.ts +28 -0
- package/build/components/graphics/GeometryOverrides/index.d.ts +2 -0
- package/build/components/graphics/GeometryOverrides/useOverrideGeometryColor.d.ts +36 -0
- package/build/components/graphics/HUD.d.ts +44 -0
- package/build/components/graphics/HoveredConstraintDisplay.d.ts +24 -0
- package/build/components/graphics/InfinityPlane.d.ts +4 -0
- package/build/components/graphics/Outlines/AAPass.d.ts +8 -0
- package/build/components/graphics/Outlines/IDPass.d.ts +12 -0
- package/build/components/graphics/Outlines/Outline.d.ts +62 -0
- package/build/components/graphics/Outlines/OutlineEffect.d.ts +48 -0
- package/build/components/graphics/Outlines/OutlineMaterial.d.ts +9 -0
- package/build/components/graphics/Outlines/WidenPass.d.ts +17 -0
- package/build/components/graphics/PluginGeometryBounds.d.ts +40 -0
- package/build/components/graphics/SelectableMate.d.ts +3 -0
- package/build/components/graphics/SelectedMateObj.d.ts +54 -0
- package/build/components/graphics/StageLook.d.ts +51 -0
- package/build/components/graphics/WorkAxisObj.d.ts +33 -0
- package/build/components/graphics/WorkCSysObj.d.ts +33 -0
- package/build/components/graphics/WorkCoordSystemObj.d.ts +32 -0
- package/build/components/graphics/WorkPlaneObj.d.ts +33 -0
- package/build/components/graphics/WorkPointObj.d.ts +57 -0
- package/build/components/graphics/graphics.d.ts +61 -0
- package/build/components/graphics/utils/MatePathTransform.d.ts +10 -0
- package/build/components/graphics/utils/useCsysMatrix.d.ts +4 -0
- package/build/components/utils/CompValidation/ErrorBoundary.d.ts +28 -0
- package/build/components/utils/CompValidation/validators/CSysDisplayValidator.d.ts +12 -0
- package/build/components/utils/CompValidation/validators/DrawingValidator.d.ts +12 -0
- package/build/components/utils/CompValidation/validators/ExpressionsValidator.d.ts +12 -0
- package/build/components/utils/CompValidation/validators/FPluginValidator.d.ts +16 -0
- package/build/components/utils/CompValidation/validators/FeatureListValidator.d.ts +12 -0
- package/build/components/utils/CompValidation/validators/ProductManagementValidator.d.ts +14 -0
- package/build/components/utils/CompValidation/verifiers.d.ts +32 -0
- package/build/components/utils/FtVisibilityController.d.ts +26 -0
- package/build/elements/index.d.ts +162 -0
- package/build/icons/axes.d.ts +73 -0
- package/build/icons/draw.d.ts +75 -0
- package/build/icons/features.d.ts +71 -0
- package/build/icons/glyphs.d.ts +10 -0
- package/build/icons/index.d.ts +152 -0
- package/build/icons/legacy.d.ts +159 -0
- package/build/icons/mates.d.ts +26 -0
- package/build/icons/params.d.ts +77 -0
- package/build/icons/refs.d.ts +61 -0
- package/build/icons/sheets.d.ts +302 -0
- package/build/icons/sketch.d.ts +102 -0
- package/build/icons/types.d.ts +74 -0
- package/build/icons/ui.d.ts +114 -0
- package/build/icons.cjs.js +1751 -0
- package/build/icons.js +1742 -0
- package/build/index.cjs.js +44948 -0
- package/build/index.d.ts +115 -0
- package/build/index.js +44800 -0
- package/build/plugins/AppearanceEditor/Root.d.ts +12 -0
- package/build/plugins/AppearanceEditor/index.d.ts +42 -0
- package/build/plugins/Boolean/Root.d.ts +11 -0
- package/build/plugins/Boolean/index.d.ts +39 -0
- package/build/plugins/BoundingBoxInfo/Root.d.ts +12 -0
- package/build/plugins/BoundingBoxInfo/View.d.ts +11 -0
- package/build/plugins/BoundingBoxInfo/index.d.ts +35 -0
- package/build/plugins/Box/Root.d.ts +11 -0
- package/build/plugins/Box/index.d.ts +34 -0
- package/build/plugins/Chamfer/Root.d.ts +11 -0
- package/build/plugins/Chamfer/index.d.ts +35 -0
- package/build/plugins/CircularPattern/Root.d.ts +11 -0
- package/build/plugins/CircularPattern/index.d.ts +35 -0
- package/build/plugins/CompositeCurve/Root.d.ts +11 -0
- package/build/plugins/CompositeCurve/View.d.ts +11 -0
- package/build/plugins/CompositeCurve/index.d.ts +36 -0
- package/build/plugins/Cone/Root.d.ts +11 -0
- package/build/plugins/Cone/index.d.ts +36 -0
- package/build/plugins/Cylinder/Root.d.ts +11 -0
- package/build/plugins/Cylinder/index.d.ts +35 -0
- package/build/plugins/Dimensions/DimContext.d.ts +10 -0
- package/build/plugins/Dimensions/Root.d.ts +11 -0
- package/build/plugins/Dimensions/View.d.ts +11 -0
- package/build/plugins/Dimensions/graphics/DimGraphics.d.ts +7 -0
- package/build/plugins/Dimensions/graphics/DimensionSet.d.ts +8 -0
- package/build/plugins/Dimensions/graphics/primitives.d.ts +34 -0
- package/build/plugins/Dimensions/index.d.ts +34 -0
- package/build/plugins/Dimensions/utils.d.ts +5 -0
- package/build/plugins/EntityDeletion/Root.d.ts +11 -0
- package/build/plugins/EntityDeletion/index.d.ts +34 -0
- package/build/plugins/Expressions/Root.d.ts +11 -0
- package/build/plugins/Expressions/index.d.ts +34 -0
- package/build/plugins/Expressions/useContextMenuItems.d.ts +4 -0
- package/build/plugins/Extrusion/Root.d.ts +11 -0
- package/build/plugins/Extrusion/View.d.ts +11 -0
- package/build/plugins/Extrusion/index.d.ts +50 -0
- package/build/plugins/Fillet/Root.d.ts +11 -0
- package/build/plugins/Fillet/index.d.ts +35 -0
- package/build/plugins/HLConstraints/CircularPattern/Root.d.ts +11 -0
- package/build/plugins/HLConstraints/CircularPattern/View.d.ts +11 -0
- package/build/plugins/HLConstraints/CircularPattern/index.d.ts +38 -0
- package/build/plugins/HLConstraints/Cylindrical/Root.d.ts +11 -0
- package/build/plugins/HLConstraints/Cylindrical/View.d.ts +11 -0
- package/build/plugins/HLConstraints/Cylindrical/index.d.ts +37 -0
- package/build/plugins/HLConstraints/Fastened/Root.d.ts +11 -0
- package/build/plugins/HLConstraints/Fastened/View.d.ts +11 -0
- package/build/plugins/HLConstraints/Fastened/index.d.ts +37 -0
- package/build/plugins/HLConstraints/FastenedOrigin/Root.d.ts +11 -0
- package/build/plugins/HLConstraints/FastenedOrigin/View.d.ts +11 -0
- package/build/plugins/HLConstraints/FastenedOrigin/index.d.ts +37 -0
- package/build/plugins/HLConstraints/Gear/Root.d.ts +11 -0
- package/build/plugins/HLConstraints/Gear/View.d.ts +11 -0
- package/build/plugins/HLConstraints/Gear/index.d.ts +36 -0
- package/build/plugins/HLConstraints/Group/Root.d.ts +11 -0
- package/build/plugins/HLConstraints/Group/index.d.ts +34 -0
- package/build/plugins/HLConstraints/LinearPattern/Root.d.ts +11 -0
- package/build/plugins/HLConstraints/LinearPattern/View.d.ts +11 -0
- package/build/plugins/HLConstraints/LinearPattern/index.d.ts +38 -0
- package/build/plugins/HLConstraints/Parallel/Root.d.ts +11 -0
- package/build/plugins/HLConstraints/Parallel/View.d.ts +11 -0
- package/build/plugins/HLConstraints/Parallel/index.d.ts +37 -0
- package/build/plugins/HLConstraints/Planar/Root.d.ts +11 -0
- package/build/plugins/HLConstraints/Planar/View.d.ts +11 -0
- package/build/plugins/HLConstraints/Planar/index.d.ts +37 -0
- package/build/plugins/HLConstraints/Revolute/Root.d.ts +11 -0
- package/build/plugins/HLConstraints/Revolute/View.d.ts +11 -0
- package/build/plugins/HLConstraints/Revolute/index.d.ts +37 -0
- package/build/plugins/HLConstraints/Slider/Root.d.ts +11 -0
- package/build/plugins/HLConstraints/Slider/View.d.ts +11 -0
- package/build/plugins/HLConstraints/Slider/index.d.ts +37 -0
- package/build/plugins/HLConstraints/Spherical/Root.d.ts +11 -0
- package/build/plugins/HLConstraints/Spherical/View.d.ts +11 -0
- package/build/plugins/HLConstraints/Spherical/index.d.ts +36 -0
- package/build/plugins/HLConstraints/components/CSysDisplayWrapper.d.ts +7 -0
- package/build/plugins/HLConstraints/components/HLConstrIcon.d.ts +7 -0
- package/build/plugins/HLConstraints/components/LimitedValue.d.ts +12 -0
- package/build/plugins/HLConstraints/components/Limits.d.ts +25 -0
- package/build/plugins/HLConstraints/components/LimitsCollapse.d.ts +12 -0
- package/build/plugins/HLConstraints/validators.d.ts +2 -0
- package/build/plugins/Import/Root.d.ts +11 -0
- package/build/plugins/Import/index.d.ts +35 -0
- package/build/plugins/LinearPattern/Root.d.ts +11 -0
- package/build/plugins/LinearPattern/index.d.ts +36 -0
- package/build/plugins/Measure/Digits.d.ts +7 -0
- package/build/plugins/Measure/Root.d.ts +11 -0
- package/build/plugins/Measure/View.d.ts +15 -0
- package/build/plugins/Measure/config.d.ts +1 -0
- package/build/plugins/Measure/graphics/MeasureGraphics.d.ts +24 -0
- package/build/plugins/Measure/index.d.ts +39 -0
- package/build/plugins/Measure/utils.d.ts +2 -0
- package/build/plugins/Mirror/Root.d.ts +11 -0
- package/build/plugins/Mirror/index.d.ts +34 -0
- package/build/plugins/Revolve/Root.d.ts +11 -0
- package/build/plugins/Revolve/index.d.ts +37 -0
- package/build/plugins/Rotate/Root.d.ts +11 -0
- package/build/plugins/Rotate/index.d.ts +35 -0
- package/build/plugins/Sketch/Root/Constraints/Constraints.d.ts +2 -0
- package/build/plugins/Sketch/Root/Constraints/constraintsHelpers.d.ts +22 -0
- package/build/plugins/Sketch/Root/Constraints/index.d.ts +2 -0
- package/build/plugins/Sketch/Root/Constraints/utils.d.ts +6 -0
- package/build/plugins/Sketch/Root/CopyPatterns.d.ts +2 -0
- package/build/plugins/Sketch/Root/Details.d.ts +2 -0
- package/build/plugins/Sketch/Root/Handlers.d.ts +2 -0
- package/build/plugins/Sketch/Root/PlaneSelection.d.ts +7 -0
- package/build/plugins/Sketch/Root/Position.d.ts +2 -0
- package/build/plugins/Sketch/Root/Regions.d.ts +2 -0
- package/build/plugins/Sketch/Root/Root.d.ts +11 -0
- package/build/plugins/Sketch/Root/RootContext.d.ts +7 -0
- package/build/plugins/Sketch/Root/SketchGroup.d.ts +15 -0
- package/build/plugins/Sketch/Root/index.d.ts +1 -0
- package/build/plugins/Sketch/Root/useContextMenuItems.d.ts +4 -0
- package/build/plugins/Sketch/Root/useLayoutSize.d.ts +11 -0
- package/build/plugins/Sketch/View/View.d.ts +11 -0
- package/build/plugins/Sketch/View/ViewContext.d.ts +8 -0
- package/build/plugins/Sketch/View/graphics/Constraints.d.ts +5 -0
- package/build/plugins/Sketch/View/graphics/IconGroups.d.ts +7 -0
- package/build/plugins/Sketch/View/graphics/Merged/Arc.d.ts +20 -0
- package/build/plugins/Sketch/View/graphics/Merged/ArcGeometry.d.ts +2 -0
- package/build/plugins/Sketch/View/graphics/Merged/ArcMaterial.d.ts +2 -0
- package/build/plugins/Sketch/View/graphics/Merged/Bezier.d.ts +19 -0
- package/build/plugins/Sketch/View/graphics/Merged/BezierGeometry.d.ts +12 -0
- package/build/plugins/Sketch/View/graphics/Merged/BezierMaterial.d.ts +2 -0
- package/build/plugins/Sketch/View/graphics/Merged/Circle.d.ts +9 -0
- package/build/plugins/Sketch/View/graphics/Merged/Line.d.ts +15 -0
- package/build/plugins/Sketch/View/graphics/Merged/LineGeometry.d.ts +2 -0
- package/build/plugins/Sketch/View/graphics/Merged/LineMaterial.d.ts +2 -0
- package/build/plugins/Sketch/View/graphics/Merged/MergedWrapper.d.ts +16 -0
- package/build/plugins/Sketch/View/graphics/Merged/Point.d.ts +8 -0
- package/build/plugins/Sketch/View/graphics/Merged/Spline.d.ts +17 -0
- package/build/plugins/Sketch/View/graphics/Merged/SplineGeometry.d.ts +11 -0
- package/build/plugins/Sketch/View/graphics/Merged/SplineMaterial.d.ts +2 -0
- package/build/plugins/Sketch/View/graphics/MousePosition.d.ts +2 -0
- package/build/plugins/Sketch/View/graphics/Regions.d.ts +5 -0
- package/build/plugins/Sketch/View/graphics/TmpAngularDimension.d.ts +8 -0
- package/build/plugins/Sketch/View/graphics/graphics.d.ts +5 -0
- package/build/plugins/Sketch/View/graphics/hooks.d.ts +49 -0
- package/build/plugins/Sketch/View/graphics/primitives.d.ts +34 -0
- package/build/plugins/Sketch/View/graphics/scale.d.ts +6 -0
- package/build/plugins/Sketch/View/graphics/tmpGraphics.d.ts +3 -0
- package/build/plugins/Sketch/View/graphics/transform.d.ts +4 -0
- package/build/plugins/Sketch/View/handlers/CreateAngle.d.ts +3 -0
- package/build/plugins/Sketch/View/handlers/CreateConstraint.d.ts +10 -0
- package/build/plugins/Sketch/View/handlers/Drag.d.ts +3 -0
- package/build/plugins/Sketch/View/handlers/DrawArc.d.ts +3 -0
- package/build/plugins/Sketch/View/handlers/DrawCircle.d.ts +3 -0
- package/build/plugins/Sketch/View/handlers/DrawLine.d.ts +3 -0
- package/build/plugins/Sketch/View/handlers/DrawNurbs.d.ts +3 -0
- package/build/plugins/Sketch/View/handlers/DrawPoint.d.ts +3 -0
- package/build/plugins/Sketch/View/handlers/DrawRectangle.d.ts +3 -0
- package/build/plugins/Sketch/View/handlers/Fillet.d.ts +3 -0
- package/build/plugins/Sketch/View/handlers/HandlersConstructors.d.ts +33 -0
- package/build/plugins/Sketch/View/handlers/Hover.d.ts +3 -0
- package/build/plugins/Sketch/View/handlers/SSelect.d.ts +3 -0
- package/build/plugins/Sketch/View/handlers/Split.d.ts +3 -0
- package/build/plugins/Sketch/View/handlers/Trim.d.ts +3 -0
- package/build/plugins/Sketch/View/handlers/Use.d.ts +3 -0
- package/build/plugins/Sketch/View/handlers/constraintCreation.d.ts +10 -0
- package/build/plugins/Sketch/View/handlers/filletHelpers.d.ts +24 -0
- package/build/plugins/Sketch/View/handlers/hoverHelpers.d.ts +3 -0
- package/build/plugins/Sketch/View/handlers/snapper.d.ts +11 -0
- package/build/plugins/Sketch/View/handlers/splitHelpers.d.ts +20 -0
- package/build/plugins/Sketch/View/index.d.ts +1 -0
- package/build/plugins/Sketch/constants.d.ts +5 -0
- package/build/plugins/Sketch/description.d.ts +7 -0
- package/build/plugins/Sketch/index.d.ts +35 -0
- package/build/plugins/Sketch/resources.d.ts +5 -0
- package/build/plugins/Sketch/types.d.ts +148 -0
- package/build/plugins/Sketch/utils/Interaction.d.ts +7 -0
- package/build/plugins/Sketch/utils/OverdefinedStateManager.d.ts +6 -0
- package/build/plugins/Sketch/utils/getSketchState.d.ts +3 -0
- package/build/plugins/Sketch/utils/useSketchRegions.d.ts +2 -0
- package/build/plugins/Sketch/utils/useSketchState.d.ts +3 -0
- package/build/plugins/Slice/Root.d.ts +11 -0
- package/build/plugins/Slice/index.d.ts +34 -0
- package/build/plugins/SliceBySheet/Root.d.ts +11 -0
- package/build/plugins/SliceBySheet/index.d.ts +35 -0
- package/build/plugins/Sphere/Root.d.ts +11 -0
- package/build/plugins/Sphere/index.d.ts +35 -0
- package/build/plugins/TransformByCsys/Root.d.ts +11 -0
- package/build/plugins/TransformByCsys/index.d.ts +35 -0
- package/build/plugins/Translate/Root.d.ts +11 -0
- package/build/plugins/Translate/index.d.ts +35 -0
- package/build/plugins/Twist/Root.d.ts +11 -0
- package/build/plugins/Twist/View.d.ts +11 -0
- package/build/plugins/Twist/index.d.ts +48 -0
- package/build/plugins/WorkAxis/Root.d.ts +11 -0
- package/build/plugins/WorkAxis/View.d.ts +11 -0
- package/build/plugins/WorkAxis/index.d.ts +37 -0
- package/build/plugins/WorkCSys/Root.d.ts +11 -0
- package/build/plugins/WorkCSys/View.d.ts +11 -0
- package/build/plugins/WorkCSys/index.d.ts +53 -0
- package/build/plugins/WorkCoordSystem/Root.d.ts +11 -0
- package/build/plugins/WorkCoordSystem/View.d.ts +11 -0
- package/build/plugins/WorkCoordSystem/index.d.ts +55 -0
- package/build/plugins/WorkPlane/Root.d.ts +11 -0
- package/build/plugins/WorkPlane/View.d.ts +11 -0
- package/build/plugins/WorkPlane/index.d.ts +38 -0
- package/build/plugins/WorkPlane/validators.d.ts +1 -0
- package/build/plugins/WorkPoint/Root.d.ts +11 -0
- package/build/plugins/WorkPoint/View.d.ts +11 -0
- package/build/plugins/WorkPoint/index.d.ts +38 -0
- package/build/plugins/components/PluginForm.d.ts +24 -0
- package/build/plugins/utils/useRefsReset.d.ts +2 -0
- package/build/session/identity.d.ts +46 -0
- package/build/session/sessionClient.d.ts +140 -0
- package/build/session/types.d.ts +52 -0
- package/build/session/viewpoints.d.ts +90 -0
- package/build/theme/AppStyle.d.ts +33 -0
- package/build/theme/fonts/mono.d.ts +29 -0
- package/build/theme/stage.d.ts +148 -0
- package/build/theme/styles/antdChoices.d.ts +1 -0
- package/build/theme/styles/antdControls.d.ts +1 -0
- package/build/theme/styles/antdSurfaces.d.ts +1 -0
- package/build/theme/styles/editors.d.ts +1 -0
- package/build/theme/styles/fields.d.ts +1 -0
- package/build/theme/styles/frame.d.ts +1 -0
- package/build/theme/styles/panes.d.ts +1 -0
- package/build/theme/styles/parts.d.ts +2 -0
- package/build/theme/styles/rest.d.ts +1 -0
- package/build/theme/styles/sketch.d.ts +1 -0
- package/build/theme/styles/toolbar.d.ts +1 -0
- package/build/theme/styles/tools.d.ts +1 -0
- package/build/theme/styles/windows.d.ts +1 -0
- package/build/theme/themeStore.d.ts +305 -0
- package/build/types/jsx-compat.d.ts +8 -0
- package/build/types.d.ts +16 -0
- package/build/utils/FileUtils.d.ts +20 -0
- package/build/utils/bezierMatrices.d.ts +3 -0
- package/build/utils/conversionUtils.d.ts +78 -0
- package/build/utils/cubicSplineInterpolation.d.ts +5 -0
- package/build/utils/defaultValues.d.ts +3 -0
- package/build/utils/drawing/index.d.ts +3 -0
- package/build/utils/drawing/useDrawingArr.d.ts +10 -0
- package/build/utils/drawing/useDrawingCCId.d.ts +10 -0
- package/build/utils/drawing/useDrawingStr.d.ts +10 -0
- package/build/utils/getHighlightedColor.d.ts +6 -0
- package/build/utils/getMatePath.d.ts +2 -0
- package/build/utils/getMateRefIds.d.ts +30 -0
- package/build/utils/helpers.d.ts +19 -0
- package/build/utils/mateUtils.d.ts +35 -0
- package/build/utils/nurbsUtils.d.ts +35 -0
- package/build/utils/selection/filters.d.ts +12 -0
- package/build/utils/selection/scopes/mateSelection.d.ts +49 -0
- package/build/utils/selection/scopes/treeObjInteraction.d.ts +74 -0
- package/build/utils/selection/useSelectorsOrder.d.ts +12 -0
- package/build/utils/sketchIntersectionUtils.d.ts +139 -0
- package/build/utils/sketchUtils.d.ts +235 -0
- package/build/utils/useAllObjects.d.ts +31 -0
- package/build/utils/useIsUncommited.d.ts +2 -0
- package/build/utils/useRetainVisibility.d.ts +2 -0
- package/build/utils/useScale.d.ts +5 -0
- package/build/utils/validation.d.ts +11 -0
- package/doc/api/advanced/session.md +646 -0
- package/doc/api/advanced/utilities.md +1306 -0
- package/doc/api/assembly-constraints.md +340 -0
- package/doc/api/feature-plugins.md +613 -0
- package/doc/api/graphics.md +848 -0
- package/doc/api/hooks.md +300 -0
- package/doc/api/icons.md +812 -0
- package/doc/api/index.md +87 -0
- package/doc/api/other.md +369 -0
- package/doc/api/panels.md +754 -0
- package/doc/api/theme.md +551 -0
- package/doc/api/tool-plugins.md +191 -0
- package/doc/api/ui-elements.md +310 -0
- package/doc/api/work-geometry.md +154 -0
- package/icons/package.json +8 -0
- package/package.json +108 -4
- package/tools/fonts/brotli.py +29 -0
- package/tools/fonts/build.py +76 -0
- package/tools/icons/preview.mjs +74 -0
- package/tsconfig.build.json +16 -0
- package/typedoc.json +18 -0
- package/vitest.config.mts +25 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Products panel: the parts and assemblies of the drawing, to create, import, rename, edit, export, delete, and
|
|
3
|
+
* add to the current assembly.
|
|
4
|
+
*
|
|
5
|
+
* It is a global plugin: an app adds it to `init`'s `globalPlugins`, which gives every drawing one; the model tree's
|
|
6
|
+
* header opens it (the products button), and its window is one of the {@link GlobalPlugins}. Its tabs list the parts
|
|
7
|
+
* and the assemblies; a product is added to the current assembly as an instance where it is placed on the stage.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import { init, WASMClient } from '@classcad/client'
|
|
12
|
+
* import { elements, Measure, ProductManagement } from '@classcad/react-cad'
|
|
13
|
+
*
|
|
14
|
+
* // every drawing gets the Products panel; the model tree's header opens it
|
|
15
|
+
* init((drawingId) => new WASMClient(drawingId, { token: 'ccpk_…' }), {
|
|
16
|
+
* elements,
|
|
17
|
+
* globalPlugins: [Measure, ProductManagement],
|
|
18
|
+
* })
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @category Tool Plugins
|
|
22
|
+
* @module
|
|
23
|
+
*/
|
|
24
|
+
import { PluginDescription } from '@classcad/sdkjs';
|
|
25
|
+
import { Root } from './Root';
|
|
26
|
+
import { View } from './View';
|
|
27
|
+
/**
|
|
28
|
+
* The plugin's description for buerli's plugin system: a global plugin, not kept when its window closes; its state
|
|
29
|
+
* holds the product that is being placed.
|
|
30
|
+
*
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
declare const description: PluginDescription;
|
|
34
|
+
export { Root, View, description };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID, ObjectID, PluginID } from '@classcad/sdkjs';
|
|
3
|
+
import { MenuElement } from '../../common/ContextMenu';
|
|
4
|
+
export declare function useContextMenuItems(drawingId: DrawingID, pluginId: PluginID, prodId: ObjectID, setEditName: React.Dispatch<React.SetStateAction<boolean>>): MenuElement[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID, PluginID } from '@classcad/sdkjs';
|
|
3
|
+
/**
|
|
4
|
+
* The panel: the session's invites and who has joined; nothing for a guest, or where the session cannot be shared.
|
|
5
|
+
*
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare const Root: React.FC<{
|
|
9
|
+
drawingId: DrawingID;
|
|
10
|
+
pluginId: PluginID;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Sessions panel: the host of a shared session makes invites to it, sees who has joined, and copies or revokes
|
|
3
|
+
* their links.
|
|
4
|
+
*
|
|
5
|
+
* It is a global plugin: an app adds it to `init`'s `globalPlugins` (Buerligons does so where sharing is on), and the
|
|
6
|
+
* {@link ViewPlugButtons} have a button that opens it. It shows only for the host of a session that can be shared (a
|
|
7
|
+
* `WSClient` or a `WASMClient` registered with `sessionClient.setSessionClient`), not to a guest. An invite has a
|
|
8
|
+
* name and a role (edit or view); its link opens the app as a guest of the session.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* import { init, onClient, WASMClient } from '@classcad/client'
|
|
13
|
+
* import { elements, sessionClient, SessionManagement } from '@classcad/react-cad'
|
|
14
|
+
*
|
|
15
|
+
* // the page hosts the session itself; its Sessions panel hands out invites to it
|
|
16
|
+
* init((drawingId) => new WASMClient(drawingId, { token: 'ccpk_…' }), {
|
|
17
|
+
* elements,
|
|
18
|
+
* globalPlugins: [SessionManagement],
|
|
19
|
+
* })
|
|
20
|
+
* onClient((client) => sessionClient.setSessionClient(client))
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @advanced
|
|
24
|
+
* @category Tool Plugins
|
|
25
|
+
* @module
|
|
26
|
+
*/
|
|
27
|
+
import { PluginDescription } from '@classcad/sdkjs';
|
|
28
|
+
import { Root } from './Root';
|
|
29
|
+
/**
|
|
30
|
+
* The plugin's description for buerli's plugin system: a global plugin with no state of its own (the invites live on
|
|
31
|
+
* the session's client).
|
|
32
|
+
*
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
declare const description: PluginDescription<Record<string, never>>;
|
|
36
|
+
export { Root, description };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { StoreApi } from 'zustand';
|
|
2
|
+
import { CADStateT } from './CADStore';
|
|
3
|
+
import { ObjectID, DrawingID } from '@classcad/sdkjs';
|
|
4
|
+
/**
|
|
5
|
+
* Where "back" leads when this tab has no stack of its own — the product was entered from outside it
|
|
6
|
+
* (an API call, another member of a shared session, a reload): one level up, to the parent instance of
|
|
7
|
+
* the current one, or to the root. Undefined when the drawing already shows its root.
|
|
8
|
+
*/
|
|
9
|
+
export declare const getParentInstance: (drawingId: DrawingID) => ObjectID | undefined;
|
|
10
|
+
export declare const appApi: (set: StoreApi<CADStateT>["setState"], get: StoreApi<CADStateT>["getState"]) => {
|
|
11
|
+
assemblyTree: {
|
|
12
|
+
startProdEditing: (drawingId: DrawingID, objId: ObjectID) => void;
|
|
13
|
+
goBack: (drawingId: DrawingID) => void;
|
|
14
|
+
clearProdStack: () => void;
|
|
15
|
+
setVisible: (instanceIds: ObjectID[], objIdsArr: ObjectID[][], value: boolean) => void;
|
|
16
|
+
/** Unfolds (or folds) the rows of the given instances of a drawing, in one update. */
|
|
17
|
+
setExpanded: (drawingId: DrawingID, instanceIds: ObjectID[], value: boolean) => void;
|
|
18
|
+
/** Folds an unfolded row, unfolds a folded one. */
|
|
19
|
+
toggleExpanded: (drawingId: DrawingID, instanceId: ObjectID) => void;
|
|
20
|
+
/** Unfolds every instance below the drawing's current one, or folds them all. */
|
|
21
|
+
setExpandedAll: (drawingId: DrawingID, value: boolean) => void;
|
|
22
|
+
/** Folds every row of a drawing. */
|
|
23
|
+
clearExpanded: (drawingId: DrawingID) => void;
|
|
24
|
+
};
|
|
25
|
+
blankDiv: {
|
|
26
|
+
show: (callback: () => void) => void;
|
|
27
|
+
hide: () => void;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { DrawingID, ObjectID } from '@classcad/sdkjs';
|
|
2
|
+
import { StoreApi } from 'zustand';
|
|
3
|
+
import { appApi } from './CADActions';
|
|
4
|
+
/**
|
|
5
|
+
* The state of react-cad's own store: the products entered in the assembly tree, the mates switched visible, the
|
|
6
|
+
* instances unfolded there, the blank layer under an open menu, and the actions on them.
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export type CADStateT = {
|
|
11
|
+
assemblyTree: {
|
|
12
|
+
prodStack: ObjectID[];
|
|
13
|
+
visibleMap: {
|
|
14
|
+
[key: ObjectID]: ObjectID[];
|
|
15
|
+
};
|
|
16
|
+
/** By drawing, the instances whose rows are unfolded in the assembly tree; one that is not here is folded. */
|
|
17
|
+
expanded: {
|
|
18
|
+
[key: DrawingID]: {
|
|
19
|
+
[key: ObjectID]: boolean;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
blankDiv: {
|
|
24
|
+
isActive: boolean;
|
|
25
|
+
onClose: (() => void) | undefined;
|
|
26
|
+
};
|
|
27
|
+
api: ReturnType<typeof appApi>;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* react-cad's own store (zustand, vanilla), beside buerli's: what its components share that is not the drawing's.
|
|
31
|
+
*
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
declare const CADApi: StoreApi<CADStateT>;
|
|
35
|
+
/**
|
|
36
|
+
* Selects from react-cad's own store, and renders again when the selection changes.
|
|
37
|
+
*
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
declare function useCADStore<T>(selector: (state: CADStateT) => T): T;
|
|
41
|
+
/**
|
|
42
|
+
* The mates switched visible in the assembly tree, by instance.
|
|
43
|
+
*
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
declare const useVisibleMap: () => {
|
|
47
|
+
[key: number]: number[];
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Whether a mate of an instance is switched visible in the assembly tree.
|
|
51
|
+
*
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
declare const useIsVisible: (instanceId: ObjectID, objectId: ObjectID) => boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Whether an instance's row is unfolded in the assembly tree.
|
|
57
|
+
*
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
declare const useIsExpanded: (drawingId: DrawingID, instanceId: ObjectID) => boolean;
|
|
61
|
+
/**
|
|
62
|
+
* The state of react-cad's own store, outside of a component: its actions are under `api` (enter a product, show a
|
|
63
|
+
* mate, the blank layer under a menu).
|
|
64
|
+
*
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
declare const getCADState: () => CADStateT;
|
|
68
|
+
export { useCADStore, useVisibleMap, useIsVisible, useIsExpanded, CADApi, getCADState };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether an object of the structure tree is a row of the assembly tree: an instance (a product reference) or an
|
|
3
|
+
* assembly. The rows, their chevrons and "Unfold all" go by it.
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare const isTreeInstance: (clazz: string | undefined) => boolean;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props of {@link Readfile}.
|
|
4
|
+
*
|
|
5
|
+
* @category Panels
|
|
6
|
+
*/
|
|
7
|
+
export type ReadfileProps = {
|
|
8
|
+
/** Removes the drawing that was active before, once the file is loaded into a new one: the app has one drawing. */
|
|
9
|
+
singleDrawingApp?: boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* A hidden file input that loads a model the user picks: an `.ofb`, `.stp`/`.step` or `.iwp` file.
|
|
13
|
+
*
|
|
14
|
+
* Its ref is the `<input>`: a button of the app's calls `ref.current.click()` to open the browser's file dialog. The
|
|
15
|
+
* file is loaded into a new drawing named after it (`BuerliCadFacade.utils.connect`), which becomes the active one.
|
|
16
|
+
* A guest of a shared session loads it into the session's drawing instead, in place of its model, for everyone in
|
|
17
|
+
* it. What goes wrong is said with `showMessage`. Its props: {@link ReadfileProps}.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```tsx
|
|
21
|
+
* import { useRef } from 'react'
|
|
22
|
+
* import { Readfile } from '@classcad/react-cad'
|
|
23
|
+
*
|
|
24
|
+
* // an Open button: the browser's file dialog, and the model the user picks in a drawing of its own
|
|
25
|
+
* function OpenButton() {
|
|
26
|
+
* const input = useRef<HTMLInputElement>(null)
|
|
27
|
+
* return (
|
|
28
|
+
* <>
|
|
29
|
+
* <button onClick={() => input.current?.click()}>Open…</button>
|
|
30
|
+
* <Readfile ref={input} singleDrawingApp />
|
|
31
|
+
* </>
|
|
32
|
+
* )
|
|
33
|
+
* }
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @category Panels
|
|
37
|
+
*/
|
|
38
|
+
declare const Readfile: React.ForwardRefExoticComponent<ReadfileProps & React.RefAttributes<any>>;
|
|
39
|
+
export default Readfile;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ScgPoint } from '@classcad/sdkjs';
|
|
3
|
+
import { CSysRows } from '.';
|
|
4
|
+
import { MemberParam } from '../../../../types';
|
|
5
|
+
export declare const CSysEditor: React.FC<{
|
|
6
|
+
param: MemberParam<ScgPoint[]>;
|
|
7
|
+
csysRow: CSysRows;
|
|
8
|
+
iconUrl?: string;
|
|
9
|
+
caption?: string;
|
|
10
|
+
validator?: (x: ScgPoint, pName?: string) => string[];
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DrawingID, ObjectID, ScgPoint } from '@classcad/sdkjs';
|
|
2
|
+
import { MemberParam } from '../../../../types';
|
|
3
|
+
export declare enum CSysRows {
|
|
4
|
+
Position = 0,
|
|
5
|
+
XAxis = 1,
|
|
6
|
+
YAxis = 2,
|
|
7
|
+
ZAxis = 3
|
|
8
|
+
}
|
|
9
|
+
export declare function useCSysParam(drawingId: DrawingID, objId: ObjectID): MemberParam<ScgPoint[]>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ObjectID } from '@classcad/sdkjs';
|
|
3
|
+
import { Color } from './useColorParam';
|
|
4
|
+
import { MemberParam } from '../../../../types';
|
|
5
|
+
/**
|
|
6
|
+
* A body's colour and how much of it shows: a swatch and what the colour is called in hex, a field
|
|
7
|
+
* to pick it from by eye, and its channels one by one.
|
|
8
|
+
*/
|
|
9
|
+
export declare const ColorEditor: React.FC<{
|
|
10
|
+
param: MemberParam<Color>;
|
|
11
|
+
solidIds: ObjectID[];
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DrawingID, ObjectID } from '@classcad/sdkjs';
|
|
2
|
+
import { MemberParam } from '../../../../types';
|
|
3
|
+
export type Color = {
|
|
4
|
+
r: number;
|
|
5
|
+
g: number;
|
|
6
|
+
b: number;
|
|
7
|
+
a: number;
|
|
8
|
+
};
|
|
9
|
+
export declare function useColorParam(drawingId: DrawingID, solidId: ObjectID): MemberParam<Color>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID, ObjectID } from '@classcad/sdkjs';
|
|
3
|
+
import { MemberParam } from '../../../../types';
|
|
4
|
+
/**
|
|
5
|
+
* One line of the expressions' table: the expression's name, the field it is written in, and what
|
|
6
|
+
* it comes to.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ExpressionEditor: React.FC<{
|
|
9
|
+
drawingId: DrawingID;
|
|
10
|
+
productId: ObjectID;
|
|
11
|
+
name: string;
|
|
12
|
+
expression: string;
|
|
13
|
+
value: number;
|
|
14
|
+
editedExpressions: MemberParam<{
|
|
15
|
+
name: string;
|
|
16
|
+
value: string | number;
|
|
17
|
+
}[]>;
|
|
18
|
+
rename: boolean;
|
|
19
|
+
setRename: React.Dispatch<React.SetStateAction<boolean>>;
|
|
20
|
+
}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID } from '@classcad/sdkjs';
|
|
3
|
+
export declare const NumInput: React.FC<{
|
|
4
|
+
value: number;
|
|
5
|
+
defaultV: number;
|
|
6
|
+
onChange: any;
|
|
7
|
+
onUpdate?: any;
|
|
8
|
+
isExprState?: [boolean, React.Dispatch<React.SetStateAction<boolean>>];
|
|
9
|
+
defaultOpenState?: [boolean, React.Dispatch<React.SetStateAction<boolean>>];
|
|
10
|
+
}>;
|
|
11
|
+
export declare const ExprInput: React.FC<{
|
|
12
|
+
drawingId: DrawingID;
|
|
13
|
+
expr: string;
|
|
14
|
+
onChange: any;
|
|
15
|
+
onUpdate?: any;
|
|
16
|
+
isExprState: [boolean, React.Dispatch<React.SetStateAction<boolean>>];
|
|
17
|
+
defaultOpenState: [boolean, React.Dispatch<React.SetStateAction<boolean>>];
|
|
18
|
+
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { MenuItemType } from 'antd/es/menu/interface';
|
|
3
|
+
export declare const Mentions: React.FC<{
|
|
4
|
+
style?: React.CSSProperties;
|
|
5
|
+
value: string;
|
|
6
|
+
options: MenuItemType[];
|
|
7
|
+
autoFocus?: boolean;
|
|
8
|
+
onChange?: (text: string) => void;
|
|
9
|
+
onBlur?: (event: React.FocusEvent) => void;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID } from '@classcad/sdkjs';
|
|
3
|
+
export declare function isDegValue(expr: string): boolean;
|
|
4
|
+
export declare const NumOrExpr: React.FC<{
|
|
5
|
+
drawingId: DrawingID;
|
|
6
|
+
valOrExpr: number | string;
|
|
7
|
+
onChange: any;
|
|
8
|
+
defaults: number | string;
|
|
9
|
+
angle?: boolean;
|
|
10
|
+
allowExpr?: boolean;
|
|
11
|
+
prefix?: string;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID } from '@classcad/sdkjs';
|
|
3
|
+
import { MemberParam } from '../../../../types';
|
|
4
|
+
export declare const NumberEditor: React.FC<{
|
|
5
|
+
param: MemberParam<number | string>;
|
|
6
|
+
drawingId: DrawingID;
|
|
7
|
+
iconUrl?: string;
|
|
8
|
+
caption?: string;
|
|
9
|
+
validator?: (numParam: number | string, pName?: string) => string[];
|
|
10
|
+
allowExpr?: boolean;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID, ScgPoint } from '@classcad/sdkjs';
|
|
3
|
+
import { MemberParam } from '../../../../types';
|
|
4
|
+
export declare const PointEditor: React.FC<{
|
|
5
|
+
param: MemberParam<ScgPoint | string>;
|
|
6
|
+
drawingId: DrawingID;
|
|
7
|
+
iconUrl?: string;
|
|
8
|
+
caption?: string;
|
|
9
|
+
validator?: (x: ScgPoint | string, pName?: string) => string[];
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DrawingID, ObjectID, ScgPoint } from '@classcad/sdkjs';
|
|
2
|
+
import { MemberParam } from '../../../../types';
|
|
3
|
+
export declare function usePointParam(drawingId: DrawingID, objId: ObjectID, memberName: string, options?: {
|
|
4
|
+
angle: boolean;
|
|
5
|
+
}): MemberParam<ScgPoint | string>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DrawingID, ScgObject } from '@classcad/sdkjs';
|
|
2
|
+
export declare class ChainFinder {
|
|
3
|
+
private tree;
|
|
4
|
+
private drawingId;
|
|
5
|
+
private visited;
|
|
6
|
+
private nodes;
|
|
7
|
+
constructor(drawingId: DrawingID);
|
|
8
|
+
private getPointByName;
|
|
9
|
+
private processPoint;
|
|
10
|
+
private processCurve;
|
|
11
|
+
findChained(curve: ScgObject): ScgObject[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DrawingID, ObjectID } from '@classcad/sdkjs';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { MemberParam } from '../../../../types';
|
|
4
|
+
import { SelectorsOrderT } from '../../../../utils/selection/useSelectorsOrder';
|
|
5
|
+
import { MateParam } from './useMateParam';
|
|
6
|
+
export declare const MateEditor: React.FC<{
|
|
7
|
+
param: MemberParam<MateParam>;
|
|
8
|
+
drawingId: DrawingID;
|
|
9
|
+
iconUrl?: string;
|
|
10
|
+
caption?: string;
|
|
11
|
+
selectorsOrder?: SelectorsOrderT;
|
|
12
|
+
validator?: (ref: ObjectID | undefined, pName?: string) => string[];
|
|
13
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID, SelectorID } from '@classcad/sdkjs';
|
|
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
|
+
}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID, ScgTree, ObjectID, SelectorID, SelectedItem } from '@classcad/sdkjs';
|
|
3
|
+
import { MemberParam } from '../../../../types';
|
|
4
|
+
import { SelectorsOrderT } from '../../../../utils/selection/useSelectorsOrder';
|
|
5
|
+
export declare const isGeometry: (tree: ScgTree, objId: ObjectID) => boolean;
|
|
6
|
+
export declare const getInteractionInfo: (drawingId: DrawingID, item: SelectedItem | null) => import("@classcad/sdkjs").InteractionInfo<any> | null;
|
|
7
|
+
export declare const RefEditor: React.FC<{
|
|
8
|
+
param: MemberParam<ObjectID[]> | MemberParam<ObjectID>;
|
|
9
|
+
drawingId: DrawingID;
|
|
10
|
+
filter: any;
|
|
11
|
+
customIdPicker?: (data: any) => ObjectID;
|
|
12
|
+
iconUrl?: string;
|
|
13
|
+
caption?: string;
|
|
14
|
+
idxOfRef?: number;
|
|
15
|
+
selectorsOrder?: SelectorsOrderT;
|
|
16
|
+
validator?: (ref: ObjectID, pName?: string) => string[];
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const GrItemRestorer: React.FC<{
|
|
20
|
+
drawingId: DrawingID;
|
|
21
|
+
refId: ObjectID;
|
|
22
|
+
selectorId: SelectorID | undefined;
|
|
23
|
+
setParamRef: (x: SelectedItem<any>) => void;
|
|
24
|
+
}>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID, ObjectID } from '@classcad/sdkjs';
|
|
3
|
+
import { MemberParam } from '../../../../types';
|
|
4
|
+
import { SelectorsOrderT } from '../../../../utils/selection/useSelectorsOrder';
|
|
5
|
+
export declare const RefsEditor: React.FC<{
|
|
6
|
+
param: MemberParam<number[]>;
|
|
7
|
+
drawingId: DrawingID;
|
|
8
|
+
filter: any;
|
|
9
|
+
customIdPicker?: (data: any) => ObjectID;
|
|
10
|
+
iconUrl?: string;
|
|
11
|
+
caption?: string;
|
|
12
|
+
selectorsOrder?: SelectorsOrderT;
|
|
13
|
+
maxLen?: number;
|
|
14
|
+
sketchLines?: boolean;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DrawingID, ObjectID } from '@classcad/sdkjs';
|
|
2
|
+
import { FlipType, ReorientedType } from '@classcad/client';
|
|
3
|
+
import { MemberParam } from '../../../../types';
|
|
4
|
+
/**
|
|
5
|
+
* A mate as a constraint's field holds it.
|
|
6
|
+
*
|
|
7
|
+
* @inline
|
|
8
|
+
*/
|
|
9
|
+
export type MateParam = {
|
|
10
|
+
/** The instances that lead to the coordinate system. */
|
|
11
|
+
path: ObjectID[] | undefined;
|
|
12
|
+
/** The work coordinate system the mate is on. */
|
|
13
|
+
csys: ObjectID | undefined;
|
|
14
|
+
/** Which of its axes is the mate's main one, and which way (ClassCAD's number). */
|
|
15
|
+
flip: FlipType;
|
|
16
|
+
/** How far the mate is turned about its main axis (ClassCAD's number). */
|
|
17
|
+
reorient: ReorientedType;
|
|
18
|
+
};
|
|
19
|
+
export declare function useMateParam(drawingId: DrawingID, objId: ObjectID, memberName: string): MemberParam<MateParam>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DrawingID, SelectorID, SelectedItem } from '@classcad/sdkjs';
|
|
2
|
+
import { SelectorsOrderT } from '../../../../utils/selection/useSelectorsOrder';
|
|
3
|
+
export declare function useModes(drawingId: DrawingID, sketchLines: boolean, setParamRefs: (selId: SelectorID, items: SelectedItem[]) => void, selectorsOrder?: SelectorsOrderT): {
|
|
4
|
+
name: string;
|
|
5
|
+
customSelect: (selId: SelectorID, newItems: SelectedItem[], diff: SelectedItem[], options?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}) => void;
|
|
8
|
+
customUnSelect: (selId: SelectorID, newItems: SelectedItem[], diff: SelectedItem[], options?: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}) => void;
|
|
11
|
+
}[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DrawingID, ObjectID, SelectedItem, ScgTree } from '@classcad/sdkjs';
|
|
2
|
+
export declare function getGraphicId(tree: ScgTree, refOrObjId: ObjectID): {
|
|
3
|
+
graphicId: number;
|
|
4
|
+
isSolid: boolean;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Creates Selected Items for the feature references and id of a geometry.
|
|
8
|
+
* If there is no corresponding graphics in the cache the empty array will be returned.
|
|
9
|
+
* This hook check cache stamp,
|
|
10
|
+
* so when the new graphics will be downloaded this hook returns refreshed array.
|
|
11
|
+
*
|
|
12
|
+
* An array of @see SelectedItem will be returned.
|
|
13
|
+
*
|
|
14
|
+
* @param drawingId The drawing id.
|
|
15
|
+
* @param refOrObjIds The ids of the objects or references to find.
|
|
16
|
+
* @returns An array of @see SelectedItem
|
|
17
|
+
*/
|
|
18
|
+
export declare function useSelectedItems(drawingId: DrawingID, refOrObjIds: ObjectID[]): SelectedItem[];
|