@classcad/react-cad 0.0.0-stage → 3.0.0-beta.20261119100608
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 +57 -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 +109 -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,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Parallel constraint's dialog: keeps the Z axes of two instances' mates parallel.
|
|
3
|
+
*
|
|
4
|
+
* It is the plugin of the constraint class `CC_ParallelConstraint`: an app maps the class to it in `init`'s `plugins`,
|
|
5
|
+
* and react-cad opens it when the assembly toolbar makes a new parallel constraint and when one is double-clicked in
|
|
6
|
+
* the constraint list. The dialog picks the two mates and takes optional limits of the X, Y and Z offsets and the
|
|
7
|
+
* rotation, and once the constraint exists, its Values section moves the instance within them. Apply updates the
|
|
8
|
+
* constraint (`assembly.updateParallel`) and the dialog stays open.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* import { init, ScgClassType, WASMClient } from '@classcad/client'
|
|
13
|
+
* import { getDrawing } from '@classcad/sdkjs'
|
|
14
|
+
* import { elements, Parallel } from '@classcad/react-cad'
|
|
15
|
+
*
|
|
16
|
+
* init(drawingId => new WASMClient(drawingId, { token: 'ccpk_…' }), {
|
|
17
|
+
* elements,
|
|
18
|
+
* plugins: { [ScgClassType.CCParallelConstraint]: Parallel },
|
|
19
|
+
* })
|
|
20
|
+
*
|
|
21
|
+
* // Code opens one by making it the active feature, with the id that `api.v1.assembly.parallel` returns:
|
|
22
|
+
* getDrawing(drawingId).api.plugin.setActiveFeature(constraintId)
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @category Assembly Constraints
|
|
26
|
+
* @module
|
|
27
|
+
*/
|
|
28
|
+
import { PluginDescription } from '@classcad/sdkjs';
|
|
29
|
+
import { Root } from './Root';
|
|
30
|
+
import { View } from './View';
|
|
31
|
+
/**
|
|
32
|
+
* The plugin's description for the SDK's plugin system.
|
|
33
|
+
*
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
declare const description: PluginDescription;
|
|
37
|
+
export { Root, View, description };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID, PluginID } from '@classcad/sdkjs';
|
|
3
|
+
/**
|
|
4
|
+
* Shows the mates of the instance under the pointer while the dialog is open, to pick them in the scene.
|
|
5
|
+
*
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare const View: React.FC<{
|
|
9
|
+
drawingId: DrawingID;
|
|
10
|
+
pluginId: PluginID;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Planar constraint's dialog: lets an instance slide and turn in the XY plane of another one's mate.
|
|
3
|
+
*
|
|
4
|
+
* It is the plugin of the constraint class `CC_PlanarConstraint`: an app maps the class to it in `init`'s `plugins`,
|
|
5
|
+
* and react-cad opens it when the assembly toolbar makes a new planar constraint and when one is double-clicked in the
|
|
6
|
+
* constraint list. The dialog picks the two mates, takes the Z offset and optional limits of the X and Y offsets and
|
|
7
|
+
* the rotation, and once the constraint exists, its Values section moves the instance within them. Apply updates the
|
|
8
|
+
* constraint (`assembly.updatePlanar`) and the dialog stays open.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* import { init, ScgClassType, WASMClient } from '@classcad/client'
|
|
13
|
+
* import { getDrawing } from '@classcad/sdkjs'
|
|
14
|
+
* import { elements, Planar } from '@classcad/react-cad'
|
|
15
|
+
*
|
|
16
|
+
* init(drawingId => new WASMClient(drawingId, { token: 'ccpk_…' }), {
|
|
17
|
+
* elements,
|
|
18
|
+
* plugins: { [ScgClassType.CCPlanarConstraint]: Planar },
|
|
19
|
+
* })
|
|
20
|
+
*
|
|
21
|
+
* // Code opens one by making it the active feature, with the id that `api.v1.assembly.planar` returns:
|
|
22
|
+
* getDrawing(drawingId).api.plugin.setActiveFeature(constraintId)
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @category Assembly Constraints
|
|
26
|
+
* @module
|
|
27
|
+
*/
|
|
28
|
+
import { PluginDescription } from '@classcad/sdkjs';
|
|
29
|
+
import { Root } from './Root';
|
|
30
|
+
import { View } from './View';
|
|
31
|
+
/**
|
|
32
|
+
* The plugin's description for the SDK's plugin system.
|
|
33
|
+
*
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
declare const description: PluginDescription;
|
|
37
|
+
export { Root, View, description };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID, PluginID } from '@classcad/sdkjs';
|
|
3
|
+
/**
|
|
4
|
+
* Shows the mates of the instance under the pointer while the dialog is open, to pick them in the scene.
|
|
5
|
+
*
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare const View: React.FC<{
|
|
9
|
+
drawingId: DrawingID;
|
|
10
|
+
pluginId: PluginID;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Revolute constraint's dialog: lets an instance turn about the Z axis of another one's mate.
|
|
3
|
+
*
|
|
4
|
+
* It is the plugin of the constraint class `CC_RevoluteConstraint`: an app maps the class to it in `init`'s `plugins`,
|
|
5
|
+
* and react-cad opens it when the assembly toolbar makes a new revolute constraint and when one is double-clicked in
|
|
6
|
+
* the constraint list. The dialog picks the two mates, takes the Z offset and optional limits of the rotation, and once
|
|
7
|
+
* the constraint exists, its Values section turns the instance within them. Apply updates the constraint
|
|
8
|
+
* (`assembly.updateRevolute`) and the dialog stays open.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* import { init, ScgClassType, WASMClient } from '@classcad/client'
|
|
13
|
+
* import { getDrawing } from '@classcad/sdkjs'
|
|
14
|
+
* import { elements, Revolute } from '@classcad/react-cad'
|
|
15
|
+
*
|
|
16
|
+
* init(drawingId => new WASMClient(drawingId, { token: 'ccpk_…' }), {
|
|
17
|
+
* elements,
|
|
18
|
+
* plugins: { [ScgClassType.CCRevoluteConstraint]: Revolute },
|
|
19
|
+
* })
|
|
20
|
+
*
|
|
21
|
+
* // Code opens one by making it the active feature, with the id that `api.v1.assembly.revolute` returns:
|
|
22
|
+
* getDrawing(drawingId).api.plugin.setActiveFeature(constraintId)
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @category Assembly Constraints
|
|
26
|
+
* @module
|
|
27
|
+
*/
|
|
28
|
+
import { PluginDescription } from '@classcad/sdkjs';
|
|
29
|
+
import { Root } from './Root';
|
|
30
|
+
import { View } from './View';
|
|
31
|
+
/**
|
|
32
|
+
* The plugin's description for the SDK's plugin system.
|
|
33
|
+
*
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
declare const description: PluginDescription;
|
|
37
|
+
export { Root, View, description };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID, PluginID } from '@classcad/sdkjs';
|
|
3
|
+
/**
|
|
4
|
+
* Shows the mates of the instance under the pointer while the dialog is open, to pick them in the scene.
|
|
5
|
+
*
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare const View: React.FC<{
|
|
9
|
+
drawingId: DrawingID;
|
|
10
|
+
pluginId: PluginID;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Slider constraint's dialog: lets an instance slide along the Z axis of another one's mate.
|
|
3
|
+
*
|
|
4
|
+
* It is the plugin of the constraint class `CC_SliderConstraint`: an app maps the class to it in `init`'s `plugins`,
|
|
5
|
+
* and react-cad opens it when the assembly toolbar makes a new slider and when one is double-clicked in the constraint
|
|
6
|
+
* list. The dialog picks the two mates, takes the X and Y offsets and optional limits of the Z offset, and once the
|
|
7
|
+
* constraint exists, its Values section moves the instance within them. Apply updates the constraint
|
|
8
|
+
* (`assembly.updateSlider`) and the dialog stays open.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* import { init, ScgClassType, WASMClient } from '@classcad/client'
|
|
13
|
+
* import { getDrawing } from '@classcad/sdkjs'
|
|
14
|
+
* import { elements, Slider } from '@classcad/react-cad'
|
|
15
|
+
*
|
|
16
|
+
* init(drawingId => new WASMClient(drawingId, { token: 'ccpk_…' }), {
|
|
17
|
+
* elements,
|
|
18
|
+
* plugins: { [ScgClassType.CCSliderConstraint]: Slider },
|
|
19
|
+
* })
|
|
20
|
+
*
|
|
21
|
+
* // Code opens one by making it the active feature, with the id that `api.v1.assembly.slider` returns:
|
|
22
|
+
* getDrawing(drawingId).api.plugin.setActiveFeature(constraintId)
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @category Assembly Constraints
|
|
26
|
+
* @module
|
|
27
|
+
*/
|
|
28
|
+
import { PluginDescription } from '@classcad/sdkjs';
|
|
29
|
+
import { Root } from './Root';
|
|
30
|
+
import { View } from './View';
|
|
31
|
+
/**
|
|
32
|
+
* The plugin's description for the SDK's plugin system.
|
|
33
|
+
*
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
declare const description: PluginDescription;
|
|
37
|
+
export { Root, View, description };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID, PluginID } from '@classcad/sdkjs';
|
|
3
|
+
/**
|
|
4
|
+
* Shows the mates of the instance under the pointer while the dialog is open, to pick them in the scene.
|
|
5
|
+
*
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare const View: React.FC<{
|
|
9
|
+
drawingId: DrawingID;
|
|
10
|
+
pluginId: PluginID;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Spherical constraint's dialog: joins two instances at their mates' origins like a ball joint.
|
|
3
|
+
*
|
|
4
|
+
* It is the plugin of the constraint class `CC_SphericalConstraint`: an app maps the class to it in `init`'s `plugins`,
|
|
5
|
+
* and react-cad opens it when the assembly toolbar makes a new spherical constraint and when one is double-clicked in
|
|
6
|
+
* the constraint list. The dialog picks the two mates and takes an optional limit of the rotation. Apply updates the
|
|
7
|
+
* constraint (`assembly.updateSpherical`) and the dialog stays open.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import { init, ScgClassType, WASMClient } from '@classcad/client'
|
|
12
|
+
* import { getDrawing } from '@classcad/sdkjs'
|
|
13
|
+
* import { elements, Spherical } from '@classcad/react-cad'
|
|
14
|
+
*
|
|
15
|
+
* init(drawingId => new WASMClient(drawingId, { token: 'ccpk_…' }), {
|
|
16
|
+
* elements,
|
|
17
|
+
* plugins: { [ScgClassType.CCSphericalConstraint]: Spherical },
|
|
18
|
+
* })
|
|
19
|
+
*
|
|
20
|
+
* // Code opens one by making it the active feature, with the id that `api.v1.assembly.spherical` returns:
|
|
21
|
+
* getDrawing(drawingId).api.plugin.setActiveFeature(constraintId)
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @category Assembly Constraints
|
|
25
|
+
* @module
|
|
26
|
+
*/
|
|
27
|
+
import { PluginDescription } from '@classcad/sdkjs';
|
|
28
|
+
import { Root } from './Root';
|
|
29
|
+
import { View } from './View';
|
|
30
|
+
/**
|
|
31
|
+
* The plugin's description for the SDK's plugin system.
|
|
32
|
+
*
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
declare const description: PluginDescription;
|
|
36
|
+
export { Root, View, description };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID, ObjectID } from '@classcad/sdkjs';
|
|
3
|
+
export declare const LimitedValue: React.FC<{
|
|
4
|
+
drawingId: DrawingID;
|
|
5
|
+
objId: ObjectID;
|
|
6
|
+
memberName: string;
|
|
7
|
+
limitsName?: string;
|
|
8
|
+
onUpdate: (value: number | string) => Promise<any>;
|
|
9
|
+
caption?: string;
|
|
10
|
+
angle?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID, ObjectID } from '@classcad/sdkjs';
|
|
3
|
+
import { MemberParam } from '../../../types';
|
|
4
|
+
export declare enum LimitsDiplayType {
|
|
5
|
+
MIN = 0,
|
|
6
|
+
MAX = 1,
|
|
7
|
+
MINMAX = 2
|
|
8
|
+
}
|
|
9
|
+
export type LimitsParam<T = string | number> = {
|
|
10
|
+
min: T | null;
|
|
11
|
+
max: T | null;
|
|
12
|
+
};
|
|
13
|
+
export declare function useLimitsParam(drawingId: DrawingID, objId: ObjectID, memberName: string, options?: {
|
|
14
|
+
angle?: boolean;
|
|
15
|
+
forceNoLimits?: boolean;
|
|
16
|
+
}): MemberParam<LimitsParam>;
|
|
17
|
+
export declare const Limits: React.FC<{
|
|
18
|
+
param: MemberParam<LimitsParam>;
|
|
19
|
+
displayType?: LimitsDiplayType;
|
|
20
|
+
onUpdate?: any;
|
|
21
|
+
iconMinURL?: string;
|
|
22
|
+
iconMaxURL?: string;
|
|
23
|
+
caption?: string;
|
|
24
|
+
validator?: (numParam: LimitsParam, pName?: string) => string[];
|
|
25
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID, ObjectID } from '@classcad/sdkjs';
|
|
3
|
+
export declare function useCollapsed(drawingId: DrawingID, objectId: ObjectID, memberNames: string[]): [boolean, React.Dispatch<React.SetStateAction<boolean>>];
|
|
4
|
+
/**
|
|
5
|
+
* The limits of a constraint: a section that is switched on, and with that unfolds.
|
|
6
|
+
* Switched off, the constraint has none.
|
|
7
|
+
*/
|
|
8
|
+
export declare const LimitsCollapse: React.FC<{
|
|
9
|
+
isCollapsed: boolean;
|
|
10
|
+
setIsCollapsed: any;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Import feature's dialog: brings a STEP file into the part.
|
|
3
|
+
*
|
|
4
|
+
* It is the plugin of the feature class `CC_Import`: an app maps the class to it in `init`'s `plugins`, and react-cad
|
|
5
|
+
* opens it when the toolbar makes a new import and when one is double-clicked in the feature list. The dialog takes a
|
|
6
|
+
* `.stp` or `.step` file and refuses others with a message; Apply reads the file and updates the feature
|
|
7
|
+
* (`part.updateImportFeature`).
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import { init, ScgClassType, WASMClient } from '@classcad/client'
|
|
12
|
+
* import { getDrawing } from '@classcad/sdkjs'
|
|
13
|
+
* import { elements, Import } from '@classcad/react-cad'
|
|
14
|
+
*
|
|
15
|
+
* init(drawingId => new WASMClient(drawingId, { token: 'ccpk_…' }), {
|
|
16
|
+
* elements,
|
|
17
|
+
* plugins: { [ScgClassType.CCImport]: Import },
|
|
18
|
+
* })
|
|
19
|
+
*
|
|
20
|
+
* // Code opens one by making it the active feature, with the id that `api.v1.part.importFeature` returns:
|
|
21
|
+
* getDrawing(drawingId).api.plugin.setActiveFeature(importId)
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @category Feature Plugins
|
|
25
|
+
* @module
|
|
26
|
+
*/
|
|
27
|
+
import { PluginDescription } from '@classcad/sdkjs';
|
|
28
|
+
import { Root } from './Root';
|
|
29
|
+
/**
|
|
30
|
+
* The plugin's description for the SDK's plugin system.
|
|
31
|
+
*
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
declare const description: PluginDescription;
|
|
35
|
+
export { Root, description };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Linear Pattern feature's dialog: copies a solid along one or two axes.
|
|
3
|
+
*
|
|
4
|
+
* It is the plugin of the feature class `CC_LinearPattern`: an app maps the class to it in `init`'s `plugins`, and
|
|
5
|
+
* react-cad opens it when the toolbar makes a new linear pattern and when one is double-clicked in the feature list.
|
|
6
|
+
* The dialog picks the solid, the first axis and optionally a second one, takes the offset and the number of copies
|
|
7
|
+
* along each, inverts an axis, and merges the copies into the solid or keeps them apart. Apply updates the feature
|
|
8
|
+
* (`part.updateLinearPattern`).
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* import { init, ScgClassType, WASMClient } from '@classcad/client'
|
|
13
|
+
* import { getDrawing } from '@classcad/sdkjs'
|
|
14
|
+
* import { elements, LinearPattern } from '@classcad/react-cad'
|
|
15
|
+
*
|
|
16
|
+
* init(drawingId => new WASMClient(drawingId, { token: 'ccpk_…' }), {
|
|
17
|
+
* elements,
|
|
18
|
+
* plugins: { [ScgClassType.CCLinearPattern]: LinearPattern },
|
|
19
|
+
* })
|
|
20
|
+
*
|
|
21
|
+
* // Code opens one by making it the active feature, with the id that `api.v1.part.linearPattern` returns:
|
|
22
|
+
* getDrawing(drawingId).api.plugin.setActiveFeature(patternId)
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @category Feature Plugins
|
|
26
|
+
* @module
|
|
27
|
+
*/
|
|
28
|
+
import { PluginDescription } from '@classcad/sdkjs';
|
|
29
|
+
import { Root } from './Root';
|
|
30
|
+
/**
|
|
31
|
+
* The plugin's description for the SDK's plugin system.
|
|
32
|
+
*
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
declare const description: PluginDescription;
|
|
36
|
+
export { Root, description };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID, PluginID } from '@classcad/sdkjs';
|
|
3
|
+
/** How many digits a measured value is given with: a stepper, which shows a number written that way. */
|
|
4
|
+
export declare const Digits: React.FC<{
|
|
5
|
+
drawingId: DrawingID;
|
|
6
|
+
pluginId: PluginID;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DrawingID, PluginID } from '@classcad/sdkjs';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* The panel: the picked items, what was measured, and the number of digits.
|
|
5
|
+
*
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare const Root: React.FC<{
|
|
9
|
+
drawingId: DrawingID;
|
|
10
|
+
pluginId: PluginID;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawingID, PluginID } from '@classcad/sdkjs';
|
|
3
|
+
export declare function ViewImpl({ drawingId, pluginId }: {
|
|
4
|
+
drawingId: DrawingID;
|
|
5
|
+
pluginId: PluginID;
|
|
6
|
+
}): React.JSX.Element;
|
|
7
|
+
/**
|
|
8
|
+
* Draws what was measured in the scene: distances, angles, positions and directions.
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export declare const View: React.FC<{
|
|
13
|
+
drawingId: DrawingID;
|
|
14
|
+
pluginId: PluginID;
|
|
15
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const defaultNumberOfDigits = 3;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import * as THREE from 'three';
|
|
3
|
+
export declare const Distance: React.FC<{
|
|
4
|
+
p1: THREE.Vector3;
|
|
5
|
+
p2: THREE.Vector3;
|
|
6
|
+
result: number;
|
|
7
|
+
digits?: number;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const Angle: React.FC<{
|
|
10
|
+
center: THREE.Vector3;
|
|
11
|
+
dir1: THREE.Vector3;
|
|
12
|
+
dir2: THREE.Vector3;
|
|
13
|
+
result: number;
|
|
14
|
+
digits?: number;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const Position: React.FC<{
|
|
17
|
+
pos: THREE.Vector3;
|
|
18
|
+
radius?: number;
|
|
19
|
+
result?: string;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const Vector: React.FC<{
|
|
22
|
+
start: THREE.Vector3;
|
|
23
|
+
end: THREE.Vector3;
|
|
24
|
+
}>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Measures the model: a picked item is read (positions, axes, lengths, radii), two are measured against each other.
|
|
3
|
+
*
|
|
4
|
+
* It is a global plugin: an app adds it to `init`'s `globalPlugins`, which gives every drawing one, and the
|
|
5
|
+
* `ViewPlugButtons` have a button that opens it. Its window is one of the `GlobalPlugins`. The panel picks the items
|
|
6
|
+
* and sets the number of digits; between two items it gives their distance and angle. What was measured is drawn in the
|
|
7
|
+
* scene as well.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import { init, WASMClient } from '@classcad/client'
|
|
12
|
+
* import { getDrawing } from '@classcad/sdkjs'
|
|
13
|
+
* import { elements, Measure } from '@classcad/react-cad'
|
|
14
|
+
*
|
|
15
|
+
* init(drawingId => new WASMClient(drawingId, { token: 'ccpk_…' }), { elements, globalPlugins: [Measure] })
|
|
16
|
+
*
|
|
17
|
+
* // Code opens it by its name, as its button in the `ViewPlugButtons` does:
|
|
18
|
+
* const drawing = getDrawing(drawingId)
|
|
19
|
+
* const measureId = drawing.plugin.global.find(id => drawing.plugin.refs[id].name === 'Measure')
|
|
20
|
+
* if (measureId) drawing.api.plugin.setActiveGlobal(measureId, true)
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @category Tool Plugins
|
|
24
|
+
* @module
|
|
25
|
+
*/
|
|
26
|
+
import { MeasureResult, PluginDescription } from '@classcad/sdkjs';
|
|
27
|
+
import { Root } from './Root';
|
|
28
|
+
import { View } from './View';
|
|
29
|
+
type InternalState = {
|
|
30
|
+
measuredItems: MeasureResult[];
|
|
31
|
+
digits: number;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* The plugin's description for the SDK's plugin system. Its state holds what was measured and the number of digits.
|
|
35
|
+
*
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
declare const description: PluginDescription<InternalState>;
|
|
39
|
+
export { Root, View, description };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Mirror feature's dialog: copies solids mirrored at planes.
|
|
3
|
+
*
|
|
4
|
+
* It is the plugin of the feature class `CC_Mirror`: an app maps the class to it in `init`'s `plugins`, and react-cad
|
|
5
|
+
* opens it when the toolbar makes a new mirror and when one is double-clicked in the feature list. The dialog picks the
|
|
6
|
+
* solids and the mirror planes (work planes or planar solid faces). Apply updates the feature (`part.updateMirror`).
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import { init, ScgClassType, WASMClient } from '@classcad/client'
|
|
11
|
+
* import { getDrawing } from '@classcad/sdkjs'
|
|
12
|
+
* import { elements, Mirror } from '@classcad/react-cad'
|
|
13
|
+
*
|
|
14
|
+
* init(drawingId => new WASMClient(drawingId, { token: 'ccpk_…' }), {
|
|
15
|
+
* elements,
|
|
16
|
+
* plugins: { [ScgClassType.CCMirror]: Mirror },
|
|
17
|
+
* })
|
|
18
|
+
*
|
|
19
|
+
* // Code opens one by making it the active feature, with the id that `api.v1.part.mirror` returns:
|
|
20
|
+
* getDrawing(drawingId).api.plugin.setActiveFeature(mirrorId)
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @category Feature Plugins
|
|
24
|
+
* @module
|
|
25
|
+
*/
|
|
26
|
+
import { PluginDescription } from '@classcad/sdkjs';
|
|
27
|
+
import { Root } from './Root';
|
|
28
|
+
/**
|
|
29
|
+
* The plugin's description for the SDK's plugin system.
|
|
30
|
+
*
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
declare const description: PluginDescription;
|
|
34
|
+
export { Root, description };
|