@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
package/doc/api/index.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# @classcad/react-cad
|
|
2
|
+
|
|
3
|
+
The CAD user interface as React components on the SDK: the frame around a drawing, the model's tree, the toolbar,
|
|
4
|
+
the feature dialogs (plugins), the sketcher, and what is drawn over the model on the stage. Buerligons, the CAD app,
|
|
5
|
+
is made of it.
|
|
6
|
+
|
|
7
|
+
It is for an app that builds a CAD UI of its own from these pieces, whole ([Drawing](panels.md#drawing)) or one by one. An app
|
|
8
|
+
that embeds all of Buerligons takes `@classcad/modeler` instead. It runs on `@classcad/client` (the engine,
|
|
9
|
+
`init`) and `@classcad/react` (the drawing's geometry, the plugin manager).
|
|
10
|
+
|
|
11
|
+
## What it exposes
|
|
12
|
+
|
|
13
|
+
- [Drawing](panels.md#drawing): the app's frame around a drawing, in one piece: bar and tools, sidebar, stage, footer.
|
|
14
|
+
- [ModelTree](panels.md#modeltree), [ToolBar](panels.md#toolbar), [SideBar](panels.md#sidebar), [Messages](panels.md#messages), [FeaturePlugin](panels.md#featureplugin), [GlobalPlugins](panels.md#globalplugins):
|
|
15
|
+
the panels and windows, for an app that lays them out itself.
|
|
16
|
+
- The plugins: a namespace for each feature's dialog ([Sketch](feature-plugins.md#sketch), [Extrusion](feature-plugins.md#extrusion), [Fillet](feature-plugins.md#fillet), …), each
|
|
17
|
+
assembly constraint ([Fastened](assembly-constraints.md#fastened), [Revolute](assembly-constraints.md#revolute), …) and each tool panel ([Measure](tool-plugins.md#measure),
|
|
18
|
+
[Expressions](tool-plugins.md#expressions), [ProductManagement](tool-plugins.md#productmanagement), …), which an app registers with `init`'s `plugins` (by feature
|
|
19
|
+
class) and `globalPlugins`.
|
|
20
|
+
- [elements](ui-elements.md#elements): the form controls of the dialogs in the app's look, for `init`'s `elements`.
|
|
21
|
+
- [StageLook](graphics.md#stagelook): the model on the stage, drawn as a drawing.
|
|
22
|
+
- The theme: [AppStyle](theme.md#appstyle) (the stylesheet), [setRCadThemeMode](theme.md#setrcadthememode), [useRCadTheme](theme.md#usercadtheme), [useStage](theme.md#usestage).
|
|
23
|
+
- [Icon](icons.md#icon): the app's icons. `@classcad/react-cad/icons` has them with nothing but React, for a page that
|
|
24
|
+
only needs icons: `Icon`, `iconRef`, `iconSvg`, `iconDataUrl`, the types `IconName` and `IconDrawing`, and the
|
|
25
|
+
sheet of drawings (there called `drawings`, here [icons](icons.md#icons)).
|
|
26
|
+
|
|
27
|
+
## Example
|
|
28
|
+
|
|
29
|
+
```tsx
|
|
30
|
+
import { Suspense } from 'react'
|
|
31
|
+
import { Canvas } from '@react-three/fiber'
|
|
32
|
+
import { init, ScgClassType, WASMClient } from '@classcad/client'
|
|
33
|
+
import { BuerliPluginsGeometry, PluginManager, useBuerliCadFacade } from '@classcad/react'
|
|
34
|
+
import { Drawing, elements, Extrusion, Measure, Sketch, StageLook } from '@classcad/react-cad'
|
|
35
|
+
|
|
36
|
+
// the engine, react-cad's controls, a dialog for each feature class, the panels every drawing has
|
|
37
|
+
init((drawingId) => new WASMClient(drawingId, { token: 'ccpk_…' }), {
|
|
38
|
+
elements,
|
|
39
|
+
plugins: { [ScgClassType.CCSketch]: Sketch, [ScgClassType.CCExtrusion]: Extrusion },
|
|
40
|
+
globalPlugins: [Measure],
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
function Editor() {
|
|
44
|
+
const { drawingId, Geometry } = useBuerliCadFacade('bracket', (api) => api.v1.part.create({ name: 'Bracket' }))
|
|
45
|
+
return (
|
|
46
|
+
<Drawing drawingId={drawingId}>
|
|
47
|
+
<Canvas orthographic>
|
|
48
|
+
<StageLook />
|
|
49
|
+
<Geometry />
|
|
50
|
+
<BuerliPluginsGeometry drawingId={drawingId} />
|
|
51
|
+
</Canvas>
|
|
52
|
+
</Drawing>
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export const App = () => (
|
|
57
|
+
<Suspense fallback={null}>
|
|
58
|
+
<PluginManager />
|
|
59
|
+
<Editor />
|
|
60
|
+
</Suspense>
|
|
61
|
+
)
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## API
|
|
65
|
+
|
|
66
|
+
| Name | Description |
|
|
67
|
+
| :------ | :------ |
|
|
68
|
+
| [Panels](panels.md) | The app's frame and its panels: `Drawing` in one piece, or the model tree, the toolbar, the sidebar, the messages and the windows of the dialogs, laid out by the app. Start with `Drawing`. |
|
|
69
|
+
| [Feature Plugins](feature-plugins.md) | The dialogs of a part's features, one plugin per feature class: the sketcher, extrusions, revolves and twists, the primitives, Booleans, fillets and chamfers, slices, patterns, mirrors and transformations, imports. An app maps each class to its plugin in `init`'s `plugins`; react-cad's toolbar opens one for a new feature, and a double click in the feature list for one that is there. |
|
|
70
|
+
| [Work Geometry](work-geometry.md) | The dialogs of a part's work points, axes, planes and coordinate systems: the references that sketches, features and assembly mates are placed on. They are registered and opened as the feature plugins are, and their views draw the work geometry in the scene. |
|
|
71
|
+
| [Assembly Constraints](assembly-constraints.md) | The dialogs of an assembly's constraints, which fix instances to each other or let them move at their mates (fastened, slider, revolute, cylindrical, planar, parallel, spherical), and of groups, patterns and gears of instances. An app maps the constraint classes to them in `init`'s `plugins`; the assembly toolbar opens one for a new constraint, and a double click in the constraint list for one that is there. |
|
|
72
|
+
| [Tool Plugins](tool-plugins.md) | The tools every drawing has, each in a window of its own: measuring, the bounding box, 3D dimensions, expressions, appearance, products and sessions. An app lists them in `init`'s `globalPlugins`; react-cad opens them from the stage's buttons, the toolbar, the model tree's header and a solid's context menu. |
|
|
73
|
+
| [Graphics](graphics.md) | What goes into the app's canvas besides the geometry: `StageLook`, the model as a drawing, and the pieces the plugins draw with. |
|
|
74
|
+
| [UI Elements](ui-elements.md) | The form controls of the dialogs in the app's look, which an app passes to `init`; and menus. |
|
|
75
|
+
| [Theme](theme.md) | The app's stylesheet, its colours in light and in dark, the stage's colours, and the switch between the two. |
|
|
76
|
+
| [Icons](icons.md) | The app's icons: small drawings in two tones of ink, by name. They are also in `@classcad/react-cad/icons`, with nothing but React. |
|
|
77
|
+
| [Hooks](hooks.md) | What a drawing is being worked on as, and whether the engine is busy, for components of the app's own. |
|
|
78
|
+
| [Other](other.md) | - |
|
|
79
|
+
|
|
80
|
+
## Advanced
|
|
81
|
+
|
|
82
|
+
Most apps do not need these directly: types they meet through the exports above, and what is there for special cases or for building on the SDK itself.
|
|
83
|
+
|
|
84
|
+
| Name | Description |
|
|
85
|
+
| :------ | :------ |
|
|
86
|
+
| [Session](advanced/session.md) | A shared session: the client whose session the page shares, its role in it, and the peers' cameras and pointers. |
|
|
87
|
+
| [Utilities](advanced/utilities.md) | Helpers for sketches, mates and selections, and conversions into the arguments of ClassCAD's API. |
|
package/doc/api/other.md
ADDED
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
# Other
|
|
2
|
+
|
|
3
|
+
## nurbsUtils
|
|
4
|
+
|
|
5
|
+
### nurbsUtils.addPoly() {#nurbsutilsaddpoly}
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
function addPoly(a, b): number[];
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
#### Parameters
|
|
12
|
+
|
|
13
|
+
| Parameter | Type |
|
|
14
|
+
| :------ | :------ |
|
|
15
|
+
| `a` | `number`[] |
|
|
16
|
+
| `b` | `number`[] |
|
|
17
|
+
|
|
18
|
+
#### Returns
|
|
19
|
+
|
|
20
|
+
`number`[]
|
|
21
|
+
|
|
22
|
+
***
|
|
23
|
+
|
|
24
|
+
### nurbsUtils.approximateBezierLength() {#nurbsutilsapproximatebezierlength}
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
function approximateBezierLength(
|
|
28
|
+
points,
|
|
29
|
+
segmentsCount?,
|
|
30
|
+
weights?
|
|
31
|
+
): number;
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Calculates the approximate length of a nurbs span.
|
|
35
|
+
|
|
36
|
+
#### Parameters
|
|
37
|
+
|
|
38
|
+
| Parameter | Type | Default value | Description |
|
|
39
|
+
| :------ | :------ | :------ | :------ |
|
|
40
|
+
| `points` | `Vector3`[] | `undefined` | An array of control points. |
|
|
41
|
+
| `segmentsCount?` | `number` | `60` | The number of segments to divide the nurbs span into. |
|
|
42
|
+
| `weights?` | `number`[] | `undefined` | Optional Bézier control-point weights (rational curve). Defaults to unit weights. |
|
|
43
|
+
|
|
44
|
+
#### Returns
|
|
45
|
+
|
|
46
|
+
`number`
|
|
47
|
+
|
|
48
|
+
An approximate length of the nurbs span.
|
|
49
|
+
|
|
50
|
+
***
|
|
51
|
+
|
|
52
|
+
### nurbsUtils.bezierBBox() {#nurbsutilsbezierbbox}
|
|
53
|
+
|
|
54
|
+
```ts
|
|
55
|
+
function bezierBBox(px, py): {
|
|
56
|
+
xmax: number;
|
|
57
|
+
xmin: number;
|
|
58
|
+
ymax: number;
|
|
59
|
+
ymin: number;
|
|
60
|
+
};
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
#### Parameters
|
|
64
|
+
|
|
65
|
+
| Parameter | Type |
|
|
66
|
+
| :------ | :------ |
|
|
67
|
+
| `px` | `number`[] |
|
|
68
|
+
| `py` | `number`[] |
|
|
69
|
+
|
|
70
|
+
#### Returns
|
|
71
|
+
|
|
72
|
+
```ts
|
|
73
|
+
{
|
|
74
|
+
xmax: number;
|
|
75
|
+
xmin: number;
|
|
76
|
+
ymax: number;
|
|
77
|
+
ymin: number;
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
| Name | Type |
|
|
82
|
+
| :------ | :------ |
|
|
83
|
+
| `xmax` | `number` |
|
|
84
|
+
| `xmin` | `number` |
|
|
85
|
+
| `ymax` | `number` |
|
|
86
|
+
| `ymin` | `number` |
|
|
87
|
+
|
|
88
|
+
***
|
|
89
|
+
|
|
90
|
+
### nurbsUtils.bezierSplitAtHalf() {#nurbsutilsbeziersplitathalf}
|
|
91
|
+
|
|
92
|
+
```ts
|
|
93
|
+
function bezierSplitAtHalf(p): [number[], number[]];
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
#### Parameters
|
|
97
|
+
|
|
98
|
+
| Parameter | Type |
|
|
99
|
+
| :------ | :------ |
|
|
100
|
+
| `p` | `number`[] |
|
|
101
|
+
|
|
102
|
+
#### Returns
|
|
103
|
+
|
|
104
|
+
\[`number`[], `number`[]\]
|
|
105
|
+
|
|
106
|
+
***
|
|
107
|
+
|
|
108
|
+
### nurbsUtils.closestPointPolyRational() {#nurbsutilsclosestpointpolyrational}
|
|
109
|
+
|
|
110
|
+
```ts
|
|
111
|
+
function closestPointPolyRational(
|
|
112
|
+
cx,
|
|
113
|
+
cy,
|
|
114
|
+
cw,
|
|
115
|
+
px,
|
|
116
|
+
py
|
|
117
|
+
): number[];
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
#### Parameters
|
|
121
|
+
|
|
122
|
+
| Parameter | Type |
|
|
123
|
+
| :------ | :------ |
|
|
124
|
+
| `cx` | `number`[] |
|
|
125
|
+
| `cy` | `number`[] |
|
|
126
|
+
| `cw` | `number`[] |
|
|
127
|
+
| `px` | `number` |
|
|
128
|
+
| `py` | `number` |
|
|
129
|
+
|
|
130
|
+
#### Returns
|
|
131
|
+
|
|
132
|
+
`number`[]
|
|
133
|
+
|
|
134
|
+
***
|
|
135
|
+
|
|
136
|
+
### nurbsUtils.decomposeToBeziers() {#nurbsutilsdecomposetobeziers}
|
|
137
|
+
|
|
138
|
+
```ts
|
|
139
|
+
function decomposeToBeziers<T>(
|
|
140
|
+
controlPoints,
|
|
141
|
+
degree,
|
|
142
|
+
knots
|
|
143
|
+
): T[][];
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
#### Type Parameters
|
|
147
|
+
|
|
148
|
+
| Type Parameter |
|
|
149
|
+
| :------ |
|
|
150
|
+
| <a id="type-parameter-t"></a> `T` *extends* `Lerpable`<`T`> |
|
|
151
|
+
|
|
152
|
+
#### Parameters
|
|
153
|
+
|
|
154
|
+
| Parameter | Type |
|
|
155
|
+
| :------ | :------ |
|
|
156
|
+
| `controlPoints` | `T`[] |
|
|
157
|
+
| `degree` | `number` |
|
|
158
|
+
| `knots` | `number`[] |
|
|
159
|
+
|
|
160
|
+
#### Returns
|
|
161
|
+
|
|
162
|
+
`T`[][]
|
|
163
|
+
|
|
164
|
+
***
|
|
165
|
+
|
|
166
|
+
### nurbsUtils.derivativeCoefficients() {#nurbsutilsderivativecoefficients}
|
|
167
|
+
|
|
168
|
+
```ts
|
|
169
|
+
function derivativeCoefficients(coeffs): number[];
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
#### Parameters
|
|
173
|
+
|
|
174
|
+
| Parameter | Type |
|
|
175
|
+
| :------ | :------ |
|
|
176
|
+
| `coeffs` | `number`[] |
|
|
177
|
+
|
|
178
|
+
#### Returns
|
|
179
|
+
|
|
180
|
+
`number`[]
|
|
181
|
+
|
|
182
|
+
***
|
|
183
|
+
|
|
184
|
+
### nurbsUtils.evaluatePolynomial() {#nurbsutilsevaluatepolynomial}
|
|
185
|
+
|
|
186
|
+
```ts
|
|
187
|
+
function evaluatePolynomial(coeffs, t): number;
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
#### Parameters
|
|
191
|
+
|
|
192
|
+
| Parameter | Type |
|
|
193
|
+
| :------ | :------ |
|
|
194
|
+
| `coeffs` | `number`[] |
|
|
195
|
+
| `t` | `number` |
|
|
196
|
+
|
|
197
|
+
#### Returns
|
|
198
|
+
|
|
199
|
+
`number`
|
|
200
|
+
|
|
201
|
+
***
|
|
202
|
+
|
|
203
|
+
### nurbsUtils.findRealRootsInInterval() {#nurbsutilsfindrealrootsininterval}
|
|
204
|
+
|
|
205
|
+
```ts
|
|
206
|
+
function findRealRootsInInterval(
|
|
207
|
+
coeffs,
|
|
208
|
+
tMin,
|
|
209
|
+
tMax,
|
|
210
|
+
tol?
|
|
211
|
+
): number[];
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
#### Parameters
|
|
215
|
+
|
|
216
|
+
| Parameter | Type | Default value |
|
|
217
|
+
| :------ | :------ | :------ |
|
|
218
|
+
| `coeffs` | `number`[] | `undefined` |
|
|
219
|
+
| `tMin` | `number` | `undefined` |
|
|
220
|
+
| `tMax` | `number` | `undefined` |
|
|
221
|
+
| `tol?` | `number` | `1e-10` |
|
|
222
|
+
|
|
223
|
+
#### Returns
|
|
224
|
+
|
|
225
|
+
`number`[]
|
|
226
|
+
|
|
227
|
+
***
|
|
228
|
+
|
|
229
|
+
### nurbsUtils.getBezierCoefficients() {#nurbsutilsgetbeziercoefficients}
|
|
230
|
+
|
|
231
|
+
```ts
|
|
232
|
+
function getBezierCoefficients(...x): number[];
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
#### Parameters
|
|
236
|
+
|
|
237
|
+
| Parameter | Type |
|
|
238
|
+
| :------ | :------ |
|
|
239
|
+
| ...`x` | `number`[] |
|
|
240
|
+
|
|
241
|
+
#### Returns
|
|
242
|
+
|
|
243
|
+
`number`[]
|
|
244
|
+
|
|
245
|
+
***
|
|
246
|
+
|
|
247
|
+
### nurbsUtils.homogenize() {#nurbsutilshomogenize}
|
|
248
|
+
|
|
249
|
+
```ts
|
|
250
|
+
function homogenize(points, weights): Vector4[];
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
#### Parameters
|
|
254
|
+
|
|
255
|
+
| Parameter | Type |
|
|
256
|
+
| :------ | :------ |
|
|
257
|
+
| `points` | `Vector3`[] |
|
|
258
|
+
| `weights` | `number`[] |
|
|
259
|
+
|
|
260
|
+
#### Returns
|
|
261
|
+
|
|
262
|
+
`Vector4`[]
|
|
263
|
+
|
|
264
|
+
***
|
|
265
|
+
|
|
266
|
+
### nurbsUtils.insertKnot() {#nurbsutilsinsertknot}
|
|
267
|
+
|
|
268
|
+
```ts
|
|
269
|
+
function insertKnot<T>(
|
|
270
|
+
points,
|
|
271
|
+
degree,
|
|
272
|
+
knots,
|
|
273
|
+
u
|
|
274
|
+
): [T[], number[]];
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
#### Type Parameters
|
|
278
|
+
|
|
279
|
+
| Type Parameter |
|
|
280
|
+
| :------ |
|
|
281
|
+
| <a id="type-parameter-t-1"></a> `T` *extends* `Lerpable`<`T`> |
|
|
282
|
+
|
|
283
|
+
#### Parameters
|
|
284
|
+
|
|
285
|
+
| Parameter | Type |
|
|
286
|
+
| :------ | :------ |
|
|
287
|
+
| `points` | `T`[] |
|
|
288
|
+
| `degree` | `number` |
|
|
289
|
+
| `knots` | `number`[] |
|
|
290
|
+
| `u` | `number` |
|
|
291
|
+
|
|
292
|
+
#### Returns
|
|
293
|
+
|
|
294
|
+
\[`T`[], `number`[]\]
|
|
295
|
+
|
|
296
|
+
***
|
|
297
|
+
|
|
298
|
+
### nurbsUtils.isUniformWeights() {#nurbsutilsisuniformweights}
|
|
299
|
+
|
|
300
|
+
```ts
|
|
301
|
+
function isUniformWeights(weights, tol?): boolean;
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
#### Parameters
|
|
305
|
+
|
|
306
|
+
| Parameter | Type | Default value |
|
|
307
|
+
| :------ | :------ | :------ |
|
|
308
|
+
| `weights` | `number`[] \| `undefined` | `undefined` |
|
|
309
|
+
| `tol?` | `number` | `1e-9` |
|
|
310
|
+
|
|
311
|
+
#### Returns
|
|
312
|
+
|
|
313
|
+
`boolean`
|
|
314
|
+
|
|
315
|
+
***
|
|
316
|
+
|
|
317
|
+
### nurbsUtils.multiplyPoly() {#nurbsutilsmultiplypoly}
|
|
318
|
+
|
|
319
|
+
```ts
|
|
320
|
+
function multiplyPoly(a, b): number[];
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
#### Parameters
|
|
324
|
+
|
|
325
|
+
| Parameter | Type |
|
|
326
|
+
| :------ | :------ |
|
|
327
|
+
| `a` | `number`[] |
|
|
328
|
+
| `b` | `number`[] |
|
|
329
|
+
|
|
330
|
+
#### Returns
|
|
331
|
+
|
|
332
|
+
`number`[]
|
|
333
|
+
|
|
334
|
+
***
|
|
335
|
+
|
|
336
|
+
### nurbsUtils.projectHomogeneous() {#nurbsutilsprojecthomogeneous}
|
|
337
|
+
|
|
338
|
+
```ts
|
|
339
|
+
function projectHomogeneous(points): Vector3[];
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
#### Parameters
|
|
343
|
+
|
|
344
|
+
| Parameter | Type |
|
|
345
|
+
| :------ | :------ |
|
|
346
|
+
| `points` | `Vector4`[] |
|
|
347
|
+
|
|
348
|
+
#### Returns
|
|
349
|
+
|
|
350
|
+
`Vector3`[]
|
|
351
|
+
|
|
352
|
+
***
|
|
353
|
+
|
|
354
|
+
### nurbsUtils.scalePoly() {#nurbsutilsscalepoly}
|
|
355
|
+
|
|
356
|
+
```ts
|
|
357
|
+
function scalePoly(a, s): number[];
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
#### Parameters
|
|
361
|
+
|
|
362
|
+
| Parameter | Type |
|
|
363
|
+
| :------ | :------ |
|
|
364
|
+
| `a` | `number`[] |
|
|
365
|
+
| `s` | `number` |
|
|
366
|
+
|
|
367
|
+
#### Returns
|
|
368
|
+
|
|
369
|
+
`number`[]
|