@buerli.io/react-cad 1.0.0 → 1.0.1-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (385) hide show
  1. package/README.md +1 -1
  2. package/build/components/UI/CAD/Constraints.d.ts +12 -12
  3. package/build/components/UI/CAD/Drawing.d.ts +16 -16
  4. package/build/components/UI/CAD/ListPlaceholder.d.ts +2 -2
  5. package/build/components/UI/CAD/Messages/Message.d.ts +5 -5
  6. package/build/components/UI/CAD/Messages/Messages.d.ts +9 -9
  7. package/build/components/UI/CAD/Messages/index.d.ts +1 -1
  8. package/build/components/UI/CAD/Messages/msgStore.d.ts +18 -18
  9. package/build/components/UI/CAD/ModelTree/AssemblyNode.d.ts +10 -10
  10. package/build/components/UI/CAD/ModelTree/FeatureList/Feature.d.ts +7 -7
  11. package/build/components/UI/CAD/ModelTree/FeatureList/FeatureList.d.ts +5 -5
  12. package/build/components/UI/CAD/ModelTree/FeatureList/index.d.ts +1 -1
  13. package/build/components/UI/CAD/ModelTree/FeatureList/utils.d.ts +7 -7
  14. package/build/components/UI/CAD/ModelTree/ModelTree.d.ts +13 -13
  15. package/build/components/UI/CAD/ModelTree/ModelTreeHeader.d.ts +16 -16
  16. package/build/components/UI/CAD/ModelTree/index.d.ts +1 -1
  17. package/build/components/UI/CAD/ModelTree/primitives.d.ts +9 -9
  18. package/build/components/UI/CAD/ModelTree/useContextMenuItems.d.ts +5 -5
  19. package/build/components/UI/CAD/PluginBounds.d.ts +8 -8
  20. package/build/components/UI/CAD/PluginTooltip.d.ts +5 -5
  21. package/build/components/UI/CAD/PluginsWindows.d.ts +23 -23
  22. package/build/components/UI/CAD/SideBar.d.ts +6 -6
  23. package/build/components/UI/CAD/Solids/Solids.d.ts +11 -11
  24. package/build/components/UI/CAD/Solids/index.d.ts +1 -1
  25. package/build/components/UI/CAD/Solids/useContextMenuItems.d.ts +5 -5
  26. package/build/components/UI/CAD/Solids/useVisibleSolids.d.ts +2 -2
  27. package/build/components/UI/CAD/ToolBar/AssemblyModeCmds.d.ts +3 -3
  28. package/build/components/UI/CAD/ToolBar/Icon.d.ts +4 -4
  29. package/build/components/UI/CAD/ToolBar/PartModeCmds.d.ts +3 -3
  30. package/build/components/UI/CAD/ToolBar/ToolBar.d.ts +6 -6
  31. package/build/components/UI/CAD/ToolBar/index.d.ts +1 -1
  32. package/build/components/UI/CAD/ToolBar/useCommands.d.ts +10 -10
  33. package/build/components/UI/CAD/ViewOptionsBar/ViewOptionButtons.d.ts +3 -3
  34. package/build/components/UI/CAD/ViewOptionsBar/useOptionCommands.d.ts +14 -14
  35. package/build/components/UI/CAD/ViewPlugButtons.d.ts +6 -6
  36. package/build/components/UI/CAD/ant-design-draggable-modal/DraggableModal.d.ts +19 -19
  37. package/build/components/UI/CAD/ant-design-draggable-modal/DraggableModal.test.d.ts +1 -1
  38. package/build/components/UI/CAD/ant-design-draggable-modal/DraggableModalContext.d.ts +9 -9
  39. package/build/components/UI/CAD/ant-design-draggable-modal/DraggableModalInner.d.ts +27 -27
  40. package/build/components/UI/CAD/ant-design-draggable-modal/DraggableModalProvider.d.ts +4 -4
  41. package/build/components/UI/CAD/ant-design-draggable-modal/ResizeHandle.d.ts +2 -2
  42. package/build/components/UI/CAD/ant-design-draggable-modal/clamp.d.ts +1 -1
  43. package/build/components/UI/CAD/ant-design-draggable-modal/draggableModalReducer.d.ts +123 -123
  44. package/build/components/UI/CAD/ant-design-draggable-modal/getWindowSize.d.ts +4 -4
  45. package/build/components/UI/CAD/ant-design-draggable-modal/index.d.ts +3 -3
  46. package/build/components/UI/CAD/ant-design-draggable-modal/useDrag.d.ts +5 -5
  47. package/build/components/UI/CAD/ant-design-draggable-modal/usePrevious.d.ts +1 -1
  48. package/build/components/UI/CAD/ant-design-draggable-modal/useResize.d.ts +7 -7
  49. package/build/components/UI/CAD/common/BlankDiv.d.ts +4 -4
  50. package/build/components/UI/CAD/common/Collapse.d.ts +8 -8
  51. package/build/components/UI/CAD/common/ContextMenu.d.ts +33 -33
  52. package/build/components/UI/CAD/common/Divider.d.ts +4 -4
  53. package/build/components/UI/CAD/common/EntityName.d.ts +9 -9
  54. package/build/components/UI/CAD/common/Icon.d.ts +5 -5
  55. package/build/components/UI/CAD/common/Img.d.ts +1 -1
  56. package/build/components/UI/CAD/common/LoadingScreen/LoadingScreen.d.ts +6 -6
  57. package/build/components/UI/CAD/common/LoadingScreen/Spinner.d.ts +2 -2
  58. package/build/components/UI/CAD/common/LoadingScreen/index.d.ts +1 -1
  59. package/build/components/UI/CAD/common/Menu.d.ts +29 -29
  60. package/build/components/UI/CAD/common/MultiSelect.d.ts +12 -12
  61. package/build/components/UI/CAD/common/NameEdit.d.ts +8 -8
  62. package/build/components/UI/CAD/common/SectionHeader.d.ts +4 -4
  63. package/build/components/UI/CAD/common/primitives.d.ts +10 -10
  64. package/build/components/UI/CAD/hooks/index.d.ts +13 -13
  65. package/build/components/UI/CAD/hooks/useContextMenuInteraction.d.ts +7 -7
  66. package/build/components/UI/CAD/hooks/useContextMenuItems.d.ts +5 -5
  67. package/build/components/UI/CAD/hooks/useCurrentInstance.d.ts +2 -2
  68. package/build/components/UI/CAD/hooks/useCurrentProduct.d.ts +2 -2
  69. package/build/components/UI/CAD/hooks/useEditMode.d.ts +7 -7
  70. package/build/components/UI/CAD/hooks/useGlobalMateInfo.d.ts +6 -6
  71. package/build/components/UI/CAD/hooks/useHasPending.d.ts +8 -8
  72. package/build/components/UI/CAD/hooks/useIsDisabled.d.ts +2 -2
  73. package/build/components/UI/CAD/hooks/useIsLoading.d.ts +8 -8
  74. package/build/components/UI/CAD/hooks/useIsSketchActive.d.ts +2 -2
  75. package/build/components/UI/CAD/hooks/useObjectDetails.d.ts +12 -12
  76. package/build/components/UI/CAD/hooks/useOperationSequence.d.ts +2 -2
  77. package/build/components/UI/CAD/hooks/useRollbackBar.d.ts +8 -8
  78. package/build/components/UI/CAD/hooks/useRoot.d.ts +2 -2
  79. package/build/components/UI/CAD/index.d.ts +17 -17
  80. package/build/components/UI/CAD/plugins/ProductManagement/ProdTable.d.ts +10 -10
  81. package/build/components/UI/CAD/plugins/ProductManagement/Root.d.ts +6 -6
  82. package/build/components/UI/CAD/plugins/ProductManagement/View.d.ts +6 -6
  83. package/build/components/UI/CAD/plugins/ProductManagement/index.d.ts +8 -8
  84. package/build/components/UI/CAD/plugins/ProductManagement/types.d.ts +4 -4
  85. package/build/components/UI/CAD/plugins/ProductManagement/useContextMenuItems.d.ts +5 -5
  86. package/build/components/UI/CAD/store/CADActions.d.ts +15 -15
  87. package/build/components/UI/CAD/store/CADStore.d.ts +26 -26
  88. package/build/components/UI/Readfile.d.ts +6 -6
  89. package/build/components/UI/editors/BooleanEditor/BooleanEditor.d.ts +8 -8
  90. package/build/components/UI/editors/BooleanEditor/index.d.ts +2 -2
  91. package/build/components/UI/editors/BooleanEditor/useBoolParam.d.ts +3 -3
  92. package/build/components/UI/editors/CSysEditor/CSysEditor.d.ts +11 -11
  93. package/build/components/UI/editors/CSysEditor/index.d.ts +2 -2
  94. package/build/components/UI/editors/CSysEditor/useCSysParam.d.ts +9 -9
  95. package/build/components/UI/editors/ColorEditor/ColorEditor.d.ts +9 -9
  96. package/build/components/UI/editors/ColorEditor/index.d.ts +2 -2
  97. package/build/components/UI/editors/ColorEditor/useColorParam.d.ts +9 -9
  98. package/build/components/UI/editors/ExpressionEditor/ExpressionEditor.d.ts +16 -16
  99. package/build/components/UI/editors/ExpressionEditor/index.d.ts +2 -2
  100. package/build/components/UI/editors/ExpressionEditor/useExpressionsParam.d.ts +5 -5
  101. package/build/components/UI/editors/NumberEditor/Inputs.d.ts +18 -18
  102. package/build/components/UI/editors/NumberEditor/Mentions.d.ts +11 -11
  103. package/build/components/UI/editors/NumberEditor/NumOrExpr.d.ts +12 -12
  104. package/build/components/UI/editors/NumberEditor/NumberEditor.d.ts +12 -12
  105. package/build/components/UI/editors/NumberEditor/index.d.ts +2 -2
  106. package/build/components/UI/editors/NumberEditor/useNumParam.d.ts +5 -5
  107. package/build/components/UI/editors/PointEditor/PointEditor.d.ts +10 -10
  108. package/build/components/UI/editors/PointEditor/index.d.ts +2 -2
  109. package/build/components/UI/editors/PointEditor/usePointParam.d.ts +5 -5
  110. package/build/components/UI/editors/RefsEditors/ChainFinder.d.ts +14 -14
  111. package/build/components/UI/editors/RefsEditors/MateEditor.d.ts +13 -13
  112. package/build/components/UI/editors/RefsEditors/MateOrientationEditor.d.ts +9 -9
  113. package/build/components/UI/editors/RefsEditors/RefEditor.d.ts +24 -24
  114. package/build/components/UI/editors/RefsEditors/RefsEditor.d.ts +16 -16
  115. package/build/components/UI/editors/RefsEditors/index.d.ts +8 -8
  116. package/build/components/UI/editors/RefsEditors/pickers.d.ts +4 -4
  117. package/build/components/UI/editors/RefsEditors/useIdParam.d.ts +3 -3
  118. package/build/components/UI/editors/RefsEditors/useMateParam.d.ts +10 -10
  119. package/build/components/UI/editors/RefsEditors/useModes.d.ts +11 -11
  120. package/build/components/UI/editors/RefsEditors/useRefsParam.d.ts +3 -3
  121. package/build/components/UI/editors/RefsEditors/useSelectedItems.d.ts +18 -18
  122. package/build/components/UI/editors/ToleranceEditor/ToleranceEditor.d.ts +7 -7
  123. package/build/components/UI/editors/ToleranceEditor/index.d.ts +2 -2
  124. package/build/components/UI/editors/ToleranceEditor/useToleranceParam.d.ts +3 -3
  125. package/build/components/UI/editors/TypeEditor/TypeEditor.d.ts +10 -10
  126. package/build/components/UI/editors/TypeEditor/index.d.ts +2 -2
  127. package/build/components/UI/editors/TypeEditor/useTypeParam.d.ts +3 -3
  128. package/build/components/UI/editors/TypeWrapper.d.ts +5 -5
  129. package/build/components/UI/editors/Wrapper.d.ts +9 -9
  130. package/build/components/UI/editors/useParam.d.ts +20 -20
  131. package/build/components/UI/editors/useValidation.d.ts +4 -4
  132. package/build/components/graphics/CSysDisplay.d.ts +50 -50
  133. package/build/components/graphics/CompositeCurveObj.d.ts +11 -11
  134. package/build/components/graphics/GeometryOverrides/GeometryOverridesManager.d.ts +5 -5
  135. package/build/components/graphics/GeometryOverrides/GeometryOverridesStore.d.ts +18 -18
  136. package/build/components/graphics/GeometryOverrides/index.d.ts +2 -2
  137. package/build/components/graphics/GeometryOverrides/useOverrideGeometryColor.d.ts +3 -3
  138. package/build/components/graphics/HUD.d.ts +4 -4
  139. package/build/components/graphics/HoveredConstraintDisplay.d.ts +5 -5
  140. package/build/components/graphics/InfinityPlane.d.ts +4 -4
  141. package/build/components/graphics/Outlines/AAPass.d.ts +8 -8
  142. package/build/components/graphics/Outlines/IDPass.d.ts +12 -12
  143. package/build/components/graphics/Outlines/Outline.d.ts +20 -20
  144. package/build/components/graphics/Outlines/OutlineEffect.d.ts +37 -37
  145. package/build/components/graphics/Outlines/OutlineMaterial.d.ts +9 -9
  146. package/build/components/graphics/Outlines/WidenPass.d.ts +17 -17
  147. package/build/components/graphics/PluginGeometryBounds.d.ts +8 -8
  148. package/build/components/graphics/SelectableMate.d.ts +3 -3
  149. package/build/components/graphics/SelectedMateObj.d.ts +12 -12
  150. package/build/components/graphics/WorkAxisObj.d.ts +10 -10
  151. package/build/components/graphics/WorkCSysObj.d.ts +11 -11
  152. package/build/components/graphics/WorkCoordSystemObj.d.ts +11 -11
  153. package/build/components/graphics/WorkPlaneObj.d.ts +11 -11
  154. package/build/components/graphics/WorkPointObj.d.ts +10 -10
  155. package/build/components/graphics/graphics.d.ts +61 -61
  156. package/build/components/graphics/utils/MatePathTransform.d.ts +10 -10
  157. package/build/components/graphics/utils/useCsysMatrix.d.ts +4 -4
  158. package/build/components/utils/CompValidation/ErrorBoundary.d.ts +28 -28
  159. package/build/components/utils/CompValidation/validators/CSysDisplayValidator.d.ts +12 -12
  160. package/build/components/utils/CompValidation/validators/DrawingValidator.d.ts +12 -12
  161. package/build/components/utils/CompValidation/validators/ExpressionsValidator.d.ts +12 -12
  162. package/build/components/utils/CompValidation/validators/FPluginValidator.d.ts +16 -16
  163. package/build/components/utils/CompValidation/validators/FeatureListValidator.d.ts +12 -12
  164. package/build/components/utils/CompValidation/validators/ProductManagementValidator.d.ts +14 -14
  165. package/build/components/utils/CompValidation/verifiers.d.ts +32 -32
  166. package/build/components/utils/FtVisibilityController.d.ts +6 -6
  167. package/build/index.cjs.js +480 -454
  168. package/build/index.d.ts +73 -73
  169. package/build/index.js +480 -454
  170. package/build/plugins/AppearanceEditor/Root.d.ts +7 -7
  171. package/build/plugins/AppearanceEditor/index.d.ts +7 -7
  172. package/build/plugins/Boolean/Root.d.ts +6 -6
  173. package/build/plugins/Boolean/index.d.ts +4 -4
  174. package/build/plugins/BoundingBoxInfo/Root.d.ts +7 -7
  175. package/build/plugins/BoundingBoxInfo/View.d.ts +6 -6
  176. package/build/plugins/BoundingBoxInfo/index.d.ts +5 -5
  177. package/build/plugins/Box/Root.d.ts +6 -6
  178. package/build/plugins/Box/index.d.ts +4 -4
  179. package/build/plugins/Chamfer/Root.d.ts +6 -6
  180. package/build/plugins/Chamfer/index.d.ts +4 -4
  181. package/build/plugins/CircularPattern/Root.d.ts +6 -6
  182. package/build/plugins/CircularPattern/index.d.ts +4 -4
  183. package/build/plugins/CompositeCurve/Root.d.ts +6 -6
  184. package/build/plugins/CompositeCurve/View.d.ts +6 -6
  185. package/build/plugins/CompositeCurve/index.d.ts +5 -5
  186. package/build/plugins/Cone/Root.d.ts +6 -6
  187. package/build/plugins/Cone/index.d.ts +4 -4
  188. package/build/plugins/Cylinder/Root.d.ts +6 -6
  189. package/build/plugins/Cylinder/index.d.ts +4 -4
  190. package/build/plugins/Dimensions/DimContext.d.ts +10 -10
  191. package/build/plugins/Dimensions/Root.d.ts +6 -6
  192. package/build/plugins/Dimensions/View.d.ts +6 -6
  193. package/build/plugins/Dimensions/graphics/DimGraphics.d.ts +7 -7
  194. package/build/plugins/Dimensions/graphics/DimensionSet.d.ts +8 -8
  195. package/build/plugins/Dimensions/graphics/primitives.d.ts +35 -35
  196. package/build/plugins/Dimensions/index.d.ts +5 -5
  197. package/build/plugins/Dimensions/utils.d.ts +5 -5
  198. package/build/plugins/EntityDeletion/Root.d.ts +6 -6
  199. package/build/plugins/EntityDeletion/index.d.ts +4 -4
  200. package/build/plugins/Expressions/Root.d.ts +6 -6
  201. package/build/plugins/Expressions/index.d.ts +4 -4
  202. package/build/plugins/Expressions/useContextMenuItems.d.ts +5 -5
  203. package/build/plugins/Extrusion/Root.d.ts +6 -6
  204. package/build/plugins/Extrusion/View.d.ts +6 -6
  205. package/build/plugins/Extrusion/index.d.ts +10 -10
  206. package/build/plugins/Fillet/Root.d.ts +6 -6
  207. package/build/plugins/Fillet/index.d.ts +4 -4
  208. package/build/plugins/HLConstraints/CircularPattern/Root.d.ts +6 -6
  209. package/build/plugins/HLConstraints/CircularPattern/View.d.ts +6 -6
  210. package/build/plugins/HLConstraints/CircularPattern/index.d.ts +5 -5
  211. package/build/plugins/HLConstraints/Cylindrical/Root.d.ts +6 -6
  212. package/build/plugins/HLConstraints/Cylindrical/View.d.ts +6 -6
  213. package/build/plugins/HLConstraints/Cylindrical/index.d.ts +5 -5
  214. package/build/plugins/HLConstraints/Fastened/Root.d.ts +6 -6
  215. package/build/plugins/HLConstraints/Fastened/View.d.ts +6 -6
  216. package/build/plugins/HLConstraints/Fastened/index.d.ts +5 -5
  217. package/build/plugins/HLConstraints/FastenedOrigin/Root.d.ts +6 -6
  218. package/build/plugins/HLConstraints/FastenedOrigin/View.d.ts +6 -6
  219. package/build/plugins/HLConstraints/FastenedOrigin/index.d.ts +5 -5
  220. package/build/plugins/HLConstraints/Gear/Root.d.ts +6 -6
  221. package/build/plugins/HLConstraints/Gear/View.d.ts +6 -6
  222. package/build/plugins/HLConstraints/Gear/index.d.ts +5 -5
  223. package/build/plugins/HLConstraints/Group/Root.d.ts +6 -6
  224. package/build/plugins/HLConstraints/Group/index.d.ts +4 -4
  225. package/build/plugins/HLConstraints/LinearPattern/Root.d.ts +6 -6
  226. package/build/plugins/HLConstraints/LinearPattern/View.d.ts +6 -6
  227. package/build/plugins/HLConstraints/LinearPattern/index.d.ts +5 -5
  228. package/build/plugins/HLConstraints/Parallel/Root.d.ts +6 -6
  229. package/build/plugins/HLConstraints/Parallel/View.d.ts +6 -6
  230. package/build/plugins/HLConstraints/Parallel/index.d.ts +5 -5
  231. package/build/plugins/HLConstraints/Planar/Root.d.ts +6 -6
  232. package/build/plugins/HLConstraints/Planar/View.d.ts +6 -6
  233. package/build/plugins/HLConstraints/Planar/index.d.ts +5 -5
  234. package/build/plugins/HLConstraints/Revolute/Root.d.ts +6 -6
  235. package/build/plugins/HLConstraints/Revolute/View.d.ts +6 -6
  236. package/build/plugins/HLConstraints/Revolute/index.d.ts +5 -5
  237. package/build/plugins/HLConstraints/Slider/Root.d.ts +6 -6
  238. package/build/plugins/HLConstraints/Slider/View.d.ts +6 -6
  239. package/build/plugins/HLConstraints/Slider/index.d.ts +5 -5
  240. package/build/plugins/HLConstraints/Spherical/Root.d.ts +6 -6
  241. package/build/plugins/HLConstraints/Spherical/View.d.ts +6 -6
  242. package/build/plugins/HLConstraints/Spherical/index.d.ts +5 -5
  243. package/build/plugins/HLConstraints/components/CSysDisplayWrapper.d.ts +7 -7
  244. package/build/plugins/HLConstraints/components/HLConstrIcon.d.ts +7 -7
  245. package/build/plugins/HLConstraints/components/LimitedValue.d.ts +12 -12
  246. package/build/plugins/HLConstraints/components/Limits.d.ts +25 -25
  247. package/build/plugins/HLConstraints/components/LimitsCollapse.d.ts +8 -8
  248. package/build/plugins/HLConstraints/validators.d.ts +2 -2
  249. package/build/plugins/Import/Root.d.ts +6 -6
  250. package/build/plugins/Import/index.d.ts +4 -4
  251. package/build/plugins/LinearPattern/Root.d.ts +6 -6
  252. package/build/plugins/LinearPattern/index.d.ts +4 -4
  253. package/build/plugins/Measure/Digits.d.ts +6 -6
  254. package/build/plugins/Measure/Root.d.ts +6 -6
  255. package/build/plugins/Measure/View.d.ts +10 -10
  256. package/build/plugins/Measure/config.d.ts +1 -1
  257. package/build/plugins/Measure/graphics/MeasureGraphics.d.ts +24 -24
  258. package/build/plugins/Measure/index.d.ts +9 -9
  259. package/build/plugins/Measure/utils.d.ts +1 -1
  260. package/build/plugins/Mirror/Root.d.ts +6 -6
  261. package/build/plugins/Mirror/index.d.ts +4 -4
  262. package/build/plugins/Revolve/Root.d.ts +6 -6
  263. package/build/plugins/Revolve/index.d.ts +4 -4
  264. package/build/plugins/Rotate/Root.d.ts +6 -6
  265. package/build/plugins/Rotate/index.d.ts +4 -4
  266. package/build/plugins/Sketch/Root/Constraints/Constraints.d.ts +2 -2
  267. package/build/plugins/Sketch/Root/Constraints/constraintsHelpers.d.ts +21 -21
  268. package/build/plugins/Sketch/Root/Constraints/index.d.ts +2 -2
  269. package/build/plugins/Sketch/Root/Constraints/utils.d.ts +6 -6
  270. package/build/plugins/Sketch/Root/CopyPatterns.d.ts +2 -2
  271. package/build/plugins/Sketch/Root/Details.d.ts +2 -2
  272. package/build/plugins/Sketch/Root/Handlers.d.ts +3 -3
  273. package/build/plugins/Sketch/Root/PlaneSelection.d.ts +7 -7
  274. package/build/plugins/Sketch/Root/Position.d.ts +2 -2
  275. package/build/plugins/Sketch/Root/Regions.d.ts +2 -2
  276. package/build/plugins/Sketch/Root/Root.d.ts +6 -6
  277. package/build/plugins/Sketch/Root/RootContext.d.ts +7 -7
  278. package/build/plugins/Sketch/Root/SketchGroup.d.ts +9 -9
  279. package/build/plugins/Sketch/Root/index.d.ts +1 -1
  280. package/build/plugins/Sketch/Root/useContextMenuItems.d.ts +5 -5
  281. package/build/plugins/Sketch/Root/useLayoutSize.d.ts +11 -11
  282. package/build/plugins/Sketch/View/View.d.ts +6 -6
  283. package/build/plugins/Sketch/View/ViewContext.d.ts +8 -8
  284. package/build/plugins/Sketch/View/graphics/Constraints.d.ts +5 -5
  285. package/build/plugins/Sketch/View/graphics/IconGroups.d.ts +7 -7
  286. package/build/plugins/Sketch/View/graphics/Merged/Arc.d.ts +12 -12
  287. package/build/plugins/Sketch/View/graphics/Merged/ArcGeometry.d.ts +2 -2
  288. package/build/plugins/Sketch/View/graphics/Merged/ArcMaterial.d.ts +2 -2
  289. package/build/plugins/Sketch/View/graphics/Merged/Circle.d.ts +8 -8
  290. package/build/plugins/Sketch/View/graphics/Merged/Line.d.ts +10 -10
  291. package/build/plugins/Sketch/View/graphics/Merged/MergedWrapper.d.ts +24 -24
  292. package/build/plugins/Sketch/View/graphics/Merged/Point.d.ts +8 -8
  293. package/build/plugins/Sketch/View/graphics/MousePosition.d.ts +2 -2
  294. package/build/plugins/Sketch/View/graphics/Regions.d.ts +5 -5
  295. package/build/plugins/Sketch/View/graphics/TmpAngularDimension.d.ts +8 -8
  296. package/build/plugins/Sketch/View/graphics/graphics.d.ts +5 -5
  297. package/build/plugins/Sketch/View/graphics/hooks.d.ts +38 -38
  298. package/build/plugins/Sketch/View/graphics/primitives.d.ts +34 -34
  299. package/build/plugins/Sketch/View/graphics/scale.d.ts +5 -5
  300. package/build/plugins/Sketch/View/graphics/tmpGraphics.d.ts +3 -3
  301. package/build/plugins/Sketch/View/handlers/CreateAngle.d.ts +3 -3
  302. package/build/plugins/Sketch/View/handlers/Drag.d.ts +3 -3
  303. package/build/plugins/Sketch/View/handlers/DrawArc.d.ts +3 -3
  304. package/build/plugins/Sketch/View/handlers/DrawCircle.d.ts +3 -3
  305. package/build/plugins/Sketch/View/handlers/DrawLine.d.ts +3 -3
  306. package/build/plugins/Sketch/View/handlers/DrawPoint.d.ts +3 -3
  307. package/build/plugins/Sketch/View/handlers/DrawRectangle.d.ts +3 -3
  308. package/build/plugins/Sketch/View/handlers/Fillet.d.ts +3 -3
  309. package/build/plugins/Sketch/View/handlers/HandlersConstructors.d.ts +28 -28
  310. package/build/plugins/Sketch/View/handlers/Hover.d.ts +3 -3
  311. package/build/plugins/Sketch/View/handlers/SSelect.d.ts +3 -3
  312. package/build/plugins/Sketch/View/handlers/Split.d.ts +3 -3
  313. package/build/plugins/Sketch/View/handlers/Trim.d.ts +3 -3
  314. package/build/plugins/Sketch/View/handlers/Use.d.ts +3 -3
  315. package/build/plugins/Sketch/View/handlers/filletHelpers.d.ts +22 -22
  316. package/build/plugins/Sketch/View/handlers/hoverHelpers.d.ts +3 -3
  317. package/build/plugins/Sketch/View/handlers/snapper.d.ts +11 -11
  318. package/build/plugins/Sketch/View/handlers/splitHelpers.d.ts +19 -19
  319. package/build/plugins/Sketch/View/index.d.ts +1 -1
  320. package/build/plugins/Sketch/constants.d.ts +5 -5
  321. package/build/plugins/Sketch/description.d.ts +2 -2
  322. package/build/plugins/Sketch/index.d.ts +4 -4
  323. package/build/plugins/Sketch/resources.d.ts +5 -5
  324. package/build/plugins/Sketch/types.d.ts +133 -133
  325. package/build/plugins/Sketch/utils/Interaction.d.ts +7 -7
  326. package/build/plugins/Sketch/utils/OverdefinedStateManager.d.ts +6 -6
  327. package/build/plugins/Sketch/utils/getSketchState.d.ts +3 -3
  328. package/build/plugins/Sketch/utils/useSketchRegions.d.ts +2 -2
  329. package/build/plugins/Sketch/utils/useSketchState.d.ts +4 -4
  330. package/build/plugins/Slice/Root.d.ts +6 -6
  331. package/build/plugins/Slice/index.d.ts +4 -4
  332. package/build/plugins/SliceBySheet/Root.d.ts +6 -6
  333. package/build/plugins/SliceBySheet/index.d.ts +4 -4
  334. package/build/plugins/Sphere/Root.d.ts +6 -6
  335. package/build/plugins/Sphere/index.d.ts +4 -4
  336. package/build/plugins/TransformByCsys/Root.d.ts +6 -6
  337. package/build/plugins/TransformByCsys/index.d.ts +4 -4
  338. package/build/plugins/Translate/Root.d.ts +6 -6
  339. package/build/plugins/Translate/index.d.ts +4 -4
  340. package/build/plugins/Twist/Root.d.ts +6 -6
  341. package/build/plugins/Twist/View.d.ts +6 -6
  342. package/build/plugins/Twist/index.d.ts +10 -10
  343. package/build/plugins/WorkAxis/Root.d.ts +6 -6
  344. package/build/plugins/WorkAxis/View.d.ts +6 -6
  345. package/build/plugins/WorkAxis/index.d.ts +5 -5
  346. package/build/plugins/WorkCSys/Root.d.ts +6 -6
  347. package/build/plugins/WorkCSys/View.d.ts +6 -6
  348. package/build/plugins/WorkCSys/index.d.ts +14 -14
  349. package/build/plugins/WorkCoordSystem/Root.d.ts +6 -6
  350. package/build/plugins/WorkCoordSystem/View.d.ts +6 -6
  351. package/build/plugins/WorkCoordSystem/index.d.ts +14 -14
  352. package/build/plugins/WorkPlane/Root.d.ts +6 -6
  353. package/build/plugins/WorkPlane/View.d.ts +6 -6
  354. package/build/plugins/WorkPlane/index.d.ts +5 -5
  355. package/build/plugins/WorkPlane/validators.d.ts +1 -1
  356. package/build/plugins/WorkPoint/Root.d.ts +6 -6
  357. package/build/plugins/WorkPoint/View.d.ts +6 -6
  358. package/build/plugins/WorkPoint/index.d.ts +5 -5
  359. package/build/plugins/components/PluginForm.d.ts +24 -24
  360. package/build/plugins/utils/useRefsReset.d.ts +2 -2
  361. package/build/types.d.ts +17 -17
  362. package/build/utils/FileUtils.d.ts +18 -18
  363. package/build/utils/conversionUtils.d.ts +16 -16
  364. package/build/utils/defaultValues.d.ts +3 -3
  365. package/build/utils/drawing/index.d.ts +3 -3
  366. package/build/utils/drawing/useDrawingArr.d.ts +10 -10
  367. package/build/utils/drawing/useDrawingCCId.d.ts +10 -10
  368. package/build/utils/drawing/useDrawingStr.d.ts +10 -10
  369. package/build/utils/getHighlightedColor.d.ts +1 -1
  370. package/build/utils/getMatePath.d.ts +2 -2
  371. package/build/utils/getMateRefIds.d.ts +2 -2
  372. package/build/utils/helpers.d.ts +18 -18
  373. package/build/utils/mateUtils.d.ts +2 -2
  374. package/build/utils/selection/filters.d.ts +12 -12
  375. package/build/utils/selection/scopes/mateSelection.d.ts +29 -29
  376. package/build/utils/selection/scopes/treeObjInteraction.d.ts +37 -37
  377. package/build/utils/selection/useSelectorsOrder.d.ts +12 -12
  378. package/build/utils/sketchIntersectionUtils.d.ts +29 -29
  379. package/build/utils/sketchUtils.d.ts +173 -173
  380. package/build/utils/useAllObjects.d.ts +2 -2
  381. package/build/utils/useIsUncommited.d.ts +2 -2
  382. package/build/utils/useRetainVisibility.d.ts +2 -2
  383. package/build/utils/useScale.d.ts +4 -4
  384. package/build/utils/validation.d.ts +11 -11
  385. package/package.json +107 -107
package/build/index.js CHANGED
@@ -16,7 +16,6 @@ import 'antd/dist/antd.css';
16
16
  import styled, { css, keyframes } from 'styled-components';
17
17
  import Dropdown from 'antd/lib/dropdown';
18
18
  import DOMPurify from 'dompurify';
19
- import styleInject from '../node_modules/style-inject/dist/style-inject.es.js';
20
19
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
21
20
  import { findDOMNode } from 'react-dom';
22
21
  import { Tooltip, Input as Input$3, Typography, Tag, Divider as Divider$2, Space, Button as Button$1, Badge, Modal, Dropdown as Dropdown$1, Skeleton as Skeleton$1, Tabs as Tabs$1 } from 'antd';
@@ -45,39 +44,39 @@ const EMPTYARRAY = [];
45
44
  const NOCCID = Number.MIN_SAFE_INTEGER;
46
45
  const EMPTYSTR = '';
47
46
 
48
- /**
49
- * Wrapper around useDrawing which allows to avoid ReferenceErrors.
50
- * Use useDrawingArr if you want to get an array from store. It returns EMPTYARRAY if requested one is undefined.
51
- *
52
- * @param drawingId
53
- * @param selector
54
- * @returns requested by selector array or EMPTYARRAY if requested is undefined or null
47
+ /**
48
+ * Wrapper around useDrawing which allows to avoid ReferenceErrors.
49
+ * Use useDrawingArr if you want to get an array from store. It returns EMPTYARRAY if requested one is undefined.
50
+ *
51
+ * @param drawingId
52
+ * @param selector
53
+ * @returns requested by selector array or EMPTYARRAY if requested is undefined or null
55
54
  */
56
55
  function useDrawingArr(drawingId, selector) {
57
56
  const res = useDrawing(drawingId, selector);
58
57
  return res || EMPTYARRAY;
59
58
  }
60
59
 
61
- /**
62
- * Wrapper around useDrawing which allows to avoid ReferenceErrors.
63
- * Use useDrawingCCId if you want to get an object id from store. It returns NOCCID if requested one is undefined or null.
64
- *
65
- * @param drawingId
66
- * @param selector
67
- * @returns requested by selector object id or NOCCID if requested is undefined or null
60
+ /**
61
+ * Wrapper around useDrawing which allows to avoid ReferenceErrors.
62
+ * Use useDrawingCCId if you want to get an object id from store. It returns NOCCID if requested one is undefined or null.
63
+ *
64
+ * @param drawingId
65
+ * @param selector
66
+ * @returns requested by selector object id or NOCCID if requested is undefined or null
68
67
  */
69
68
  function useDrawingCCId(drawingId, selector) {
70
69
  const res = useDrawing(drawingId, selector);
71
70
  return res || NOCCID;
72
71
  }
73
72
 
74
- /**
75
- * Wrapper around useDrawing which allows to avoid ReferenceErrors.
76
- * Use useDrawingStr if you want to get a string from store. It returns EMPTYSTR if requested one is undefined.
77
- *
78
- * @param drawingId
79
- * @param selector
80
- * @returns requested by selector string or EMPTYSTRING if requested one is undefined or null
73
+ /**
74
+ * Wrapper around useDrawing which allows to avoid ReferenceErrors.
75
+ * Use useDrawingStr if you want to get a string from store. It returns EMPTYSTR if requested one is undefined.
76
+ *
77
+ * @param drawingId
78
+ * @param selector
79
+ * @returns requested by selector string or EMPTYSTRING if requested one is undefined or null
81
80
  */
82
81
  function useDrawingStr(drawingId, selector) {
83
82
  const res = useDrawing(drawingId, selector);
@@ -112,17 +111,17 @@ function getGraphicId(tree, refOrObjId) {
112
111
  return res;
113
112
  }
114
113
 
115
- /**
116
- * Creates Selected Items for the feature references and id of a geometry.
117
- * If there is no corresponding graphics in the cache the empty array will be returned.
118
- * This hook check cache stamp,
119
- * so when the new graphics will be downloaded this hook returns refreshed array.
120
- *
121
- * An array of @see SelectedItem will be returned.
122
- *
123
- * @param drawingId The drawing id.
124
- * @param refOrObjIds The ids of the objects or references to find.
125
- * @returns An array of @see SelectedItem
114
+ /**
115
+ * Creates Selected Items for the feature references and id of a geometry.
116
+ * If there is no corresponding graphics in the cache the empty array will be returned.
117
+ * This hook check cache stamp,
118
+ * so when the new graphics will be downloaded this hook returns refreshed array.
119
+ *
120
+ * An array of @see SelectedItem will be returned.
121
+ *
122
+ * @param drawingId The drawing id.
123
+ * @param refOrObjIds The ids of the objects or references to find.
124
+ * @returns An array of @see SelectedItem
126
125
  */
127
126
 
128
127
  function useSelectedItems(drawingId, refOrObjIds) {
@@ -134,11 +133,11 @@ function useSelectedItems(drawingId, refOrObjIds) {
134
133
  const cacheStamp = useDrawing(drawingId, d => d.geometry.stamp);
135
134
  const cache = getDrawing(drawingId).geometry.cache;
136
135
  const sortedContainerIds = React__default.useMemo(() => {
137
- /**
138
- * The containers must be sorted according to the following rules:
139
- 1. In descending order (historical)
140
- 2. The visible containers must be treated first
141
- 3. Remove duplicats from elems array
136
+ /**
137
+ * The containers must be sorted according to the following rules:
138
+ 1. In descending order (historical)
139
+ 2. The visible containers must be treated first
140
+ 3. Remove duplicats from elems array
142
141
  */
143
142
  const allContainers = Object.getOwnPropertyNames(cache).map(n => Number(n)).sort((a, b) => b - a);
144
143
  const sortedContainerIds_ = [...activeContainers, ...visibleContainers, ...allContainers];
@@ -646,7 +645,34 @@ const Wrapper = ({
646
645
  }, children);
647
646
  };
648
647
 
649
- var css_248z$6 = ".expression-text-wrapper, .expression-text-wrapper-focused {\r\n display: block;\r\n box-sizing: border-box;\r\n position: relative;\r\n width: 100%;\r\n height: 25px;\r\n min-width: 0px;\r\n flex: 1 1 25%;\r\n border: 1px solid rgb(217, 217, 217);\r\n border-radius: 2px;\r\n background-color: rgb(255, 255, 255);\r\n padding: 1px 18px 4px 11px;\r\n margin: 2px 1px;\r\n overflow: hidden;\r\n text-wrap-mode: nowrap;\r\n transition: all 0.3s;\r\n}\r\n\r\n.expression-text-wrapper:hover {\r\n border-color: rgb(64, 169, 255);\r\n}\r\n\r\n.expression-text-wrapper-focused, .expression-text-wrapper-menu-open {\r\n border-color: rgb(64, 169, 255);\r\n box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);\r\n}\r\n\r\n.expression-text-input {\r\n display: block;\r\n box-sizing: border-box;\r\n width: 100%;\r\n height: 18px;\r\n min-width: 0px;\r\n flex: 1 1 25%;\r\n line-height: 18px;\r\n outline: none;\r\n color: rgba(0, 0, 0, 0.85);\r\n margin: 2px 0px;\r\n line-clamp: 1;\r\n overflow-wrap: break-word;\r\n text-wrap-mode: nowrap;\r\n word-break: break-all;\r\n white-space: nowrap;\r\n overflow-x: auto;\r\n\t-webkit-scrollbar-width: none;\r\n\tscrollbar-width: none; \r\n\t-ms-overflow-style: none;\r\n}\r\n\r\n.expression-text-input .expression-span {\r\n display: inline-block;\r\n padding: 0px 1px;\r\n background: rgb(212, 212, 212);\r\n border-radius: 4px;\r\n cursor: pointer;\r\n transition: all 0.3s;\r\n}\r\n\r\n.expression-text-input .expression-span-selected {\r\n background: rgb(184, 184, 184);\r\n /* background: rgb(149, 122, 184); */\r\n cursor: text;\r\n}\r\n\r\n.expression-text-input .expression-span-inactive {\r\n cursor: text;\r\n}\r\n\r\n.expression-text-input .expression-span:hover {\r\n background: rgb(184, 184, 184);\r\n}\r\n\r\n.expression-text-input .expression-span-inactive:hover {\r\n background: rgb(212, 212, 212);\r\n}\r\n\r\n.expression-text-input .expression-span .expression-tag {\r\n font-size: 12px;\r\n color: rgba(0, 0, 0, 0.6);\r\n}\r\n ";
648
+ function styleInject(css, ref) {
649
+ if ( ref === void 0 ) ref = {};
650
+ var insertAt = ref.insertAt;
651
+
652
+ if (!css || typeof document === 'undefined') { return; }
653
+
654
+ var head = document.head || document.getElementsByTagName('head')[0];
655
+ var style = document.createElement('style');
656
+ style.type = 'text/css';
657
+
658
+ if (insertAt === 'top') {
659
+ if (head.firstChild) {
660
+ head.insertBefore(style, head.firstChild);
661
+ } else {
662
+ head.appendChild(style);
663
+ }
664
+ } else {
665
+ head.appendChild(style);
666
+ }
667
+
668
+ if (style.styleSheet) {
669
+ style.styleSheet.cssText = css;
670
+ } else {
671
+ style.appendChild(document.createTextNode(css));
672
+ }
673
+ }
674
+
675
+ var css_248z$6 = ".expression-text-wrapper, .expression-text-wrapper-focused {\n display: block;\n box-sizing: border-box;\n position: relative;\n width: 100%;\n height: 25px;\n min-width: 0px;\n flex: 1 1 25%;\n border: 1px solid rgb(217, 217, 217);\n border-radius: 2px;\n background-color: rgb(255, 255, 255);\n padding: 1px 18px 4px 11px;\n margin: 2px 1px;\n overflow: hidden;\n text-wrap-mode: nowrap;\n transition: all 0.3s;\n}\n\n.expression-text-wrapper:hover {\n border-color: rgb(64, 169, 255);\n}\n\n.expression-text-wrapper-focused, .expression-text-wrapper-menu-open {\n border-color: rgb(64, 169, 255);\n box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);\n}\n\n.expression-text-input {\n display: block;\n box-sizing: border-box;\n width: 100%;\n height: 18px;\n min-width: 0px;\n flex: 1 1 25%;\n line-height: 18px;\n outline: none;\n color: rgba(0, 0, 0, 0.85);\n margin: 2px 0px;\n line-clamp: 1;\n overflow-wrap: break-word;\n text-wrap-mode: nowrap;\n word-break: break-all;\n white-space: nowrap;\n overflow-x: auto;\n\t-webkit-scrollbar-width: none;\n\tscrollbar-width: none; \n\t-ms-overflow-style: none;\n}\n\n.expression-text-input .expression-span {\n display: inline-block;\n padding: 0px 1px;\n background: rgb(212, 212, 212);\n border-radius: 4px;\n cursor: pointer;\n transition: all 0.3s;\n}\n\n.expression-text-input .expression-span-selected {\n background: rgb(184, 184, 184);\n /* background: rgb(149, 122, 184); */\n cursor: text;\n}\n\n.expression-text-input .expression-span-inactive {\n cursor: text;\n}\n\n.expression-text-input .expression-span:hover {\n background: rgb(184, 184, 184);\n}\n\n.expression-text-input .expression-span-inactive:hover {\n background: rgb(212, 212, 212);\n}\n\n.expression-text-input .expression-span .expression-tag {\n font-size: 12px;\n color: rgba(0, 0, 0, 0.6);\n}\n ";
650
676
  styleInject(css_248z$6);
651
677
 
652
678
  function ownKeys$v(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -1070,24 +1096,24 @@ const Mentions = ({
1070
1096
  ref.current.focus();
1071
1097
  }, [onChange, curExprLink]);
1072
1098
 
1073
- /* const onBlur = React.useCallback(() => {
1074
- window.console.log('inputblur')
1075
- let i = 0
1076
- const textContent = ref.current.textContent || ''
1077
- const textArr = textContent.split(/(@expr\.\w*)/)
1078
- for (const fragment of textArr) {
1079
- if (fragment.length > 0 && fragment.indexOf('@expr.') === 0) {
1080
- const exprLink = fragment.slice(6)
1081
- if (options.findIndex(option => option.key === exprLink) === -1) {
1082
- const { start, end } = linkRangeRef.current[i]
1083
- const textContentNew = textContent.slice(0, start) + textContent.slice(end)
1084
- setCurExprLink(-1)
1085
- setActiveMenuIndex(0)
1086
- onChange(textContentNew)
1087
- }
1088
- i++
1089
- }
1090
- }
1099
+ /* const onBlur = React.useCallback(() => {
1100
+ window.console.log('inputblur')
1101
+ let i = 0
1102
+ const textContent = ref.current.textContent || ''
1103
+ const textArr = textContent.split(/(@expr\.\w*)/)
1104
+ for (const fragment of textArr) {
1105
+ if (fragment.length > 0 && fragment.indexOf('@expr.') === 0) {
1106
+ const exprLink = fragment.slice(6)
1107
+ if (options.findIndex(option => option.key === exprLink) === -1) {
1108
+ const { start, end } = linkRangeRef.current[i]
1109
+ const textContentNew = textContent.slice(0, start) + textContent.slice(end)
1110
+ setCurExprLink(-1)
1111
+ setActiveMenuIndex(0)
1112
+ onChange(textContentNew)
1113
+ }
1114
+ i++
1115
+ }
1116
+ }
1091
1117
  }, [onChange, options]) */
1092
1118
 
1093
1119
  const [isFocused, setIsFocused] = React__default.useState(false);
@@ -1553,18 +1579,18 @@ function useValidation(userValue) {
1553
1579
  };
1554
1580
  }
1555
1581
 
1556
- /**
1557
- * Wrapper for a parameter which will be used in an editor.
1558
- * @param param - an object which should contain next props:
1559
- * {
1560
- * userValue - value shown for the user
1561
- * setUserValue - userValue setter
1562
- defaults - default value
1563
- isChanged - function shows whether value is changed or not
1564
- * }
1565
- * @param getServValue - if value should be converted (e.g. deg -> rad) pass this function, it will be called right before classCAD API call.
1566
- * @param validation - Custom validation (used in useMateParam, useRefsParam. - these params has an array in userValue, so we need to apply validateF for each element from array).
1567
- * @returns
1582
+ /**
1583
+ * Wrapper for a parameter which will be used in an editor.
1584
+ * @param param - an object which should contain next props:
1585
+ * {
1586
+ * userValue - value shown for the user
1587
+ * setUserValue - userValue setter
1588
+ defaults - default value
1589
+ isChanged - function shows whether value is changed or not
1590
+ * }
1591
+ * @param getServValue - if value should be converted (e.g. deg -> rad) pass this function, it will be called right before classCAD API call.
1592
+ * @param validation - Custom validation (used in useMateParam, useRefsParam. - these params has an array in userValue, so we need to apply validateF for each element from array).
1593
+ * @returns
1568
1594
  */
1569
1595
  function useParam(param, getServValue, validation, options) {
1570
1596
  // TODO: use validator functions here
@@ -1805,8 +1831,8 @@ const createAppState = (set, get) => ({
1805
1831
  api: appApi(set, get)
1806
1832
  });
1807
1833
  const CADApi = vanilla((set, get) => createAppState(set, get));
1808
- /**
1809
- * We need separate store for CAD components. It might contain auxiliary information like stack of current products or camera api.
1834
+ /**
1835
+ * We need separate store for CAD components. It might contain auxiliary information like stack of current products or camera api.
1810
1836
  */
1811
1837
  const useCADStore = create(CADApi);
1812
1838
  const useVisibleMap = () => useCADStore(s => s.assemblyTree.visibleMap);
@@ -2637,16 +2663,16 @@ const DimensionSet = ({
2637
2663
  }))));
2638
2664
  };
2639
2665
 
2640
- /**
2641
- * @see https://reactjs.org/docs/error-boundaries.html
2666
+ /**
2667
+ * @see https://reactjs.org/docs/error-boundaries.html
2642
2668
  */
2643
2669
  const isDev = process.env.NODE_ENV === 'development';
2644
2670
 
2645
- /**
2646
- * Wrapper for components which are exported from package.
2647
- * It's intended to catch all errors and show friendly fallback to the user instead of error log.
2648
- * By default it returns null in error case. You have to pass showHtml prop to show message to the user.
2649
- * TODO: implement message showing.
2671
+ /**
2672
+ * Wrapper for components which are exported from package.
2673
+ * It's intended to catch all errors and show friendly fallback to the user instead of error log.
2674
+ * By default it returns null in error case. You have to pass showHtml prop to show message to the user.
2675
+ * TODO: implement message showing.
2650
2676
  */
2651
2677
  class ErrorBoundary extends React__default.Component {
2652
2678
  constructor(props) {
@@ -2916,11 +2942,11 @@ function useRefsParam(drawingId, objId, memberName) {
2916
2942
  });
2917
2943
  }
2918
2944
 
2919
- /**
2920
- * Checks if the currently active plugin is CC_Sketch.
2921
- *
2922
- * @param drawingId The drawing id.
2923
- * @returns True if CC_Sketch is active, false otherwise.
2945
+ /**
2946
+ * Checks if the currently active plugin is CC_Sketch.
2947
+ *
2948
+ * @param drawingId The drawing id.
2949
+ * @returns True if CC_Sketch is active, false otherwise.
2924
2950
  */
2925
2951
  const isSketchActive = drawingId => {
2926
2952
  var _drawing$structure$tr;
@@ -2930,13 +2956,13 @@ const isSketchActive = drawingId => {
2930
2956
  return ccUtils.base.isA(objClass, ScgClassType.CCSketch);
2931
2957
  };
2932
2958
 
2933
- /**
2934
- * Calculates the tangent vector of a CC_Line / CC_Arc / CC_Circle at the specified point.
2935
- *
2936
- * @param drawingId The drawing id.
2937
- * @param curveId Id of a CC_Line / CC_Arc / CC_Circle.
2938
- * @param point Point at which the tangent touches a curve.
2939
- * @returns Tangent vector value.
2959
+ /**
2960
+ * Calculates the tangent vector of a CC_Line / CC_Arc / CC_Circle at the specified point.
2961
+ *
2962
+ * @param drawingId The drawing id.
2963
+ * @param curveId Id of a CC_Line / CC_Arc / CC_Circle.
2964
+ * @param point Point at which the tangent touches a curve.
2965
+ * @returns Tangent vector value.
2940
2966
  */
2941
2967
  const calculateTangent = (drawingId, curveId, point) => {
2942
2968
  var _curve$children;
@@ -2970,11 +2996,11 @@ const calculateTangent = (drawingId, curveId, point) => {
2970
2996
  return undefined;
2971
2997
  };
2972
2998
 
2973
- /**
2974
- * Checks if the object represents a sketch geometry.
2975
- *
2976
- * @param arg A structure object or CCClass of a structure object.
2977
- * @returns True if the object represents a sketch geometry, false otherwise.
2999
+ /**
3000
+ * Checks if the object represents a sketch geometry.
3001
+ *
3002
+ * @param arg A structure object or CCClass of a structure object.
3003
+ * @returns True if the object represents a sketch geometry, false otherwise.
2978
3004
  */
2979
3005
  const isSketchGeometry = arg => {
2980
3006
  if (arg === undefined) {
@@ -2985,11 +3011,11 @@ const isSketchGeometry = arg => {
2985
3011
  return ccUtils.base.isA(objClass, ScgClassType.CCPoint) || ccUtils.base.isA(objClass, ScgClassType.CCLine) || ccUtils.base.isA(objClass, ScgClassType.CCArc) || ccUtils.base.isA(objClass, ScgClassType.CCCircle);
2986
3012
  };
2987
3013
 
2988
- /**
2989
- * Checks if the object represents a 2d constraint.
2990
- *
2991
- * @param arg A structure object or CCClass of a structure object.
2992
- * @returns True if the object represents a 2d constraint, false otherwise.
3014
+ /**
3015
+ * Checks if the object represents a 2d constraint.
3016
+ *
3017
+ * @param arg A structure object or CCClass of a structure object.
3018
+ * @returns True if the object represents a 2d constraint, false otherwise.
2993
3019
  */
2994
3020
  const is2DConstraint = arg => {
2995
3021
  if (arg === undefined) {
@@ -2999,11 +3025,11 @@ const is2DConstraint = arg => {
2999
3025
  return ccUtils.base.isA(objClass, ScgClassType.CC2DConstraint);
3000
3026
  };
3001
3027
 
3002
- /**
3003
- * Checks if the object represents a sketch geometry or 2d constraint or a sketch itself.
3004
- *
3005
- * @param arg A structure object or CCClass of a structure object.
3006
- * @returns True if the object represents a sketch or a sketch geometry or a 2d constraint, false otherwise.
3028
+ /**
3029
+ * Checks if the object represents a sketch geometry or 2d constraint or a sketch itself.
3030
+ *
3031
+ * @param arg A structure object or CCClass of a structure object.
3032
+ * @returns True if the object represents a sketch or a sketch geometry or a 2d constraint, false otherwise.
3007
3033
  */
3008
3034
  const isSketchObj = arg => {
3009
3035
  if (arg === undefined) {
@@ -3013,11 +3039,11 @@ const isSketchObj = arg => {
3013
3039
  return ccUtils.base.isA(objClass, ScgClassType.CCSketch) || isSketchGeometry(objClass) || is2DConstraint(objClass);
3014
3040
  };
3015
3041
 
3016
- /**
3017
- * Checks if the object represents a sketch region.
3018
- *
3019
- * @param arg A structure object or CCClass of a structure object.
3020
- * @returns True if the object represents a sketch region, false otherwise.
3042
+ /**
3043
+ * Checks if the object represents a sketch region.
3044
+ *
3045
+ * @param arg A structure object or CCClass of a structure object.
3046
+ * @returns True if the object represents a sketch region, false otherwise.
3021
3047
  */
3022
3048
  const isSketchRegion = arg => {
3023
3049
  if (arg === undefined) {
@@ -3027,12 +3053,12 @@ const isSketchRegion = arg => {
3027
3053
  return ccUtils.base.isA(objClass, ScgClassType.CCSketchRegion);
3028
3054
  };
3029
3055
 
3030
- /**
3031
- * Searches for the sketch which nests the specified object.
3032
- *
3033
- * @param drawingId The drawing id.
3034
- * @param objId Id of an object which (supposedly) is nested within some sketch.
3035
- * @returns Id of the sketch which nests the specified object, or -1 if it wasn't found.
3056
+ /**
3057
+ * Searches for the sketch which nests the specified object.
3058
+ *
3059
+ * @param drawingId The drawing id.
3060
+ * @param objId Id of an object which (supposedly) is nested within some sketch.
3061
+ * @returns Id of the sketch which nests the specified object, or -1 if it wasn't found.
3036
3062
  */
3037
3063
  const getSketchId = (drawingId, objId) => {
3038
3064
  const tree = getDrawing(drawingId).structure.tree;
@@ -3043,13 +3069,13 @@ const getSketchId = (drawingId, objId) => {
3043
3069
  return objId && isSketchObj(obj) && ccUtils.base.getAncestorIdByClass(drawingId, objId, ScgClassType.CCSketch) || -1;
3044
3070
  };
3045
3071
 
3046
- /**
3047
- * Takes ids of 2 CC_Points and if they belong to the same line, returns the id of that line; otherwise, returns ids of these points.
3048
- *
3049
- * @param drawingId The drawing id.
3050
- * @param id1 Id of the first CC_Point.
3051
- * @param id2 Id of the seconds CC_Point.
3052
- * @returns An array with a single id of the CC_Line if both points belong to the same one, or an array [id1, id2] otherwise.
3072
+ /**
3073
+ * Takes ids of 2 CC_Points and if they belong to the same line, returns the id of that line; otherwise, returns ids of these points.
3074
+ *
3075
+ * @param drawingId The drawing id.
3076
+ * @param id1 Id of the first CC_Point.
3077
+ * @param id2 Id of the seconds CC_Point.
3078
+ * @returns An array with a single id of the CC_Line if both points belong to the same one, or an array [id1, id2] otherwise.
3053
3079
  */
3054
3080
  const rollUpPoints = (drawingId, id1, id2) => {
3055
3081
  const tree = getDrawing(drawingId).structure.tree;
@@ -3059,12 +3085,12 @@ const rollUpPoints = (drawingId, id1, id2) => {
3059
3085
  return ccUtils.base.isA(obj1 == null ? void 0 : obj1.class, ScgClassType.CCPoint) && ccUtils.base.isA(obj2 == null ? void 0 : obj2.class, ScgClassType.CCPoint) && obj1.parent === obj2.parent && ccUtils.base.isA((parent == null ? void 0 : parent.class) || '', ScgClassType.CCLine) ? [obj1.parent] : [id1, id2];
3060
3086
  };
3061
3087
 
3062
- /**
3063
- * Looks up for entities of a 2d constraint / sketch region.
3064
- *
3065
- * @param drawingId The drawing id.
3066
- * @param objectId Id of a 2d constraint / sketch region.
3067
- * @returns Ids of geometry entities linked to the specified 2d constraint / sketch region.
3088
+ /**
3089
+ * Looks up for entities of a 2d constraint / sketch region.
3090
+ *
3091
+ * @param drawingId The drawing id.
3092
+ * @param objectId Id of a 2d constraint / sketch region.
3093
+ * @returns Ids of geometry entities linked to the specified 2d constraint / sketch region.
3068
3094
  */
3069
3095
  const getEntities = (drawingId, objectId) => {
3070
3096
  var _obj$members2;
@@ -3107,11 +3133,11 @@ const getEntities = (drawingId, objectId) => {
3107
3133
  return entities;
3108
3134
  };
3109
3135
 
3110
- /**
3111
- * Defines a numeric priority of sketch objects and regions, which may be used for sorting them or as a polygon offset for rendering.
3112
- *
3113
- * @param arg A structure object or CCClass of a structure object.
3114
- * @returns A number value (1-5) which represents the sketch object's priority, or -1 if arg is not a sketch object.
3136
+ /**
3137
+ * Defines a numeric priority of sketch objects and regions, which may be used for sorting them or as a polygon offset for rendering.
3138
+ *
3139
+ * @param arg A structure object or CCClass of a structure object.
3140
+ * @returns A number value (1-5) which represents the sketch object's priority, or -1 if arg is not a sketch object.
3115
3141
  */
3116
3142
  const getSketchPriority = arg => {
3117
3143
  if (arg === undefined) {
@@ -3136,13 +3162,13 @@ const getSketchPriority = arg => {
3136
3162
  return -1;
3137
3163
  };
3138
3164
 
3139
- /**
3140
- * Projects a point onto the specified sketch geometry.
3141
- *
3142
- * @param drawingId The drawing id.
3143
- * @param geometryId Id of a sketch geometry.
3144
- * @param point A point to be projected.
3145
- * @returns A projected point.
3165
+ /**
3166
+ * Projects a point onto the specified sketch geometry.
3167
+ *
3168
+ * @param drawingId The drawing id.
3169
+ * @param geometryId Id of a sketch geometry.
3170
+ * @param point A point to be projected.
3171
+ * @returns A projected point.
3146
3172
  */
3147
3173
  const projectPointOnGeometry = (drawingId, geometryId, point) => {
3148
3174
  const tree = getDrawing(drawingId).structure.tree;
@@ -3168,12 +3194,12 @@ const projectPointOnGeometry = (drawingId, geometryId, point) => {
3168
3194
  return point.clone();
3169
3195
  };
3170
3196
 
3171
- /**
3172
- * Calculates an object's center point.
3173
- *
3174
- * @param drawingId The drawing id.
3175
- * @param geometryId Id of a sketch geometry.
3176
- * @returns A center point of specified sketch geometry.
3197
+ /**
3198
+ * Calculates an object's center point.
3199
+ *
3200
+ * @param drawingId The drawing id.
3201
+ * @param geometryId Id of a sketch geometry.
3202
+ * @returns A center point of specified sketch geometry.
3177
3203
  */
3178
3204
  const getObjCenterPoint = (drawingId, geometryId) => {
3179
3205
  const tree = getDrawing(drawingId).structure.tree;
@@ -3196,14 +3222,14 @@ const getObjCenterPoint = (drawingId, geometryId) => {
3196
3222
  return new THREE.Vector3();
3197
3223
  };
3198
3224
 
3199
- /**
3200
- * Calculates arc midpoint, radius, startAngle, endAngle and bulge values.
3201
- *
3202
- * @param start Start point of an arc.
3203
- * @param end End point of an arc.
3204
- * @param center Center point of an arc.
3205
- * @param clockwise True if the direction from start to end is clockwise, false otherwise.
3206
- * @returns An object with center, mid, radius, startAngle, endAngle and bulge values.
3225
+ /**
3226
+ * Calculates arc midpoint, radius, startAngle, endAngle and bulge values.
3227
+ *
3228
+ * @param start Start point of an arc.
3229
+ * @param end End point of an arc.
3230
+ * @param center Center point of an arc.
3231
+ * @param clockwise True if the direction from start to end is clockwise, false otherwise.
3232
+ * @returns An object with center, mid, radius, startAngle, endAngle and bulge values.
3207
3233
  */
3208
3234
  const getArcInfo = (start, end, center, clockwise) => {
3209
3235
  const vecStart = start.clone().sub(center);
@@ -3231,14 +3257,14 @@ const getArcInfo = (start, end, center, clockwise) => {
3231
3257
  };
3232
3258
  };
3233
3259
 
3234
- /**
3235
- * Finds the sector (indexed 0-3) to which the dimPos belongs to. Sectors are divided by dir0 and dir1 vectors and their negations.
3236
- *
3237
- * @param dimPos A point
3238
- * @param dir0 The first direction.
3239
- * @param dir1 The second direction.
3240
- * @param center A center point of the arc.
3241
- * @returns A sector index (0-3) to which the dimPos belongs to.
3260
+ /**
3261
+ * Finds the sector (indexed 0-3) to which the dimPos belongs to. Sectors are divided by dir0 and dir1 vectors and their negations.
3262
+ *
3263
+ * @param dimPos A point
3264
+ * @param dir0 The first direction.
3265
+ * @param dir1 The second direction.
3266
+ * @param center A center point of the arc.
3267
+ * @returns A sector index (0-3) to which the dimPos belongs to.
3242
3268
  */
3243
3269
  const getArcSector = (dimPos, dir0, dir1, center) => {
3244
3270
  const dir = dimPos.clone().sub(center).normalize();
@@ -3260,14 +3286,14 @@ const getArcSector = (dimPos, dir0, dir1, center) => {
3260
3286
  return angleToDir0IsNegative ? angleToDir1IsPositive ? 0 : 1 : angleToDir1IsPositive ? 3 : 2;
3261
3287
  };
3262
3288
 
3263
- /**
3264
- * Calculates the angle between dir0 and dir1 or their negations depending on sector and reflex values.
3265
- *
3266
- * @param dir0 The first direction.
3267
- * @param dir1 The second direction.
3268
- * @param sector The sector index (0-3).
3269
- * @param reflex A flag for changing angle coverage from the current sector to the opposite 3.
3270
- * @returns The resulting angle between dir0 and dir1.
3289
+ /**
3290
+ * Calculates the angle between dir0 and dir1 or their negations depending on sector and reflex values.
3291
+ *
3292
+ * @param dir0 The first direction.
3293
+ * @param dir1 The second direction.
3294
+ * @param sector The sector index (0-3).
3295
+ * @param reflex A flag for changing angle coverage from the current sector to the opposite 3.
3296
+ * @returns The resulting angle between dir0 and dir1.
3271
3297
  */
3272
3298
  const getArcPreviewValue = (dir0, dir1, sector, reflex) => {
3273
3299
  let previewValue = dir0.angleTo(dir1);
@@ -3277,11 +3303,11 @@ const getArcPreviewValue = (dir0, dir1, sector, reflex) => {
3277
3303
  return Math.abs(previewValue);
3278
3304
  };
3279
3305
 
3280
- /**
3281
- * Looks up for sketch's bounds values.
3282
- *
3283
- * @param boundsMember The sketch.boundingBox member.
3284
- * @returns An object containing the center, radius and box values.
3306
+ /**
3307
+ * Looks up for sketch's bounds values.
3308
+ *
3309
+ * @param boundsMember The sketch.boundingBox member.
3310
+ * @returns An object containing the center, radius and box values.
3285
3311
  */
3286
3312
  const getSketchBounds = boundsMember => {
3287
3313
  const [min, max] = boundsMember.members.map(memb => convertToVector(memb));
@@ -3327,13 +3353,13 @@ const getSketchBoundsInfo = (drawingId, sketchId) => {
3327
3353
  };
3328
3354
  };
3329
3355
 
3330
- /**
3331
- * Calculates the global bounding box, camera position, camera target and camera up vector to fit the camera for the given sketch.
3332
- *
3333
- * @param drawingId The drawing id.
3334
- * @param sketchId Id of the sketch.
3335
- * @param radiusMultiplier A multiplier for the distance between camera and sketch.
3336
- * @returns An object with globBox, position, target and up values.
3356
+ /**
3357
+ * Calculates the global bounding box, camera position, camera target and camera up vector to fit the camera for the given sketch.
3358
+ *
3359
+ * @param drawingId The drawing id.
3360
+ * @param sketchId Id of the sketch.
3361
+ * @param radiusMultiplier A multiplier for the distance between camera and sketch.
3362
+ * @returns An object with globBox, position, target and up values.
3337
3363
  */
3338
3364
  const getSketchFitInfo = (drawingId, sketchId, radiusMultiplier = 1) => {
3339
3365
  const drawing = getDrawing(drawingId);
@@ -3358,14 +3384,14 @@ const getSketchFitInfo = (drawingId, sketchId, radiusMultiplier = 1) => {
3358
3384
  };
3359
3385
  };
3360
3386
 
3361
- /**
3362
- * Calculates the global bounding box, camera position, camera target and camera up vector for the given sketch to target some point with camera oriented orthogonally to it.
3363
- *
3364
- * @param drawingId The drawing id.
3365
- * @param sketchId Id of the sketch.
3366
- * @param targetPos A point near the sketch plane to use as the camera target.
3367
- * @param distance The distance value to set between camera and sketch.
3368
- * @returns An object with globBox, position, target and up values.
3387
+ /**
3388
+ * Calculates the global bounding box, camera position, camera target and camera up vector for the given sketch to target some point with camera oriented orthogonally to it.
3389
+ *
3390
+ * @param drawingId The drawing id.
3391
+ * @param sketchId Id of the sketch.
3392
+ * @param targetPos A point near the sketch plane to use as the camera target.
3393
+ * @param distance The distance value to set between camera and sketch.
3394
+ * @returns An object with globBox, position, target and up values.
3369
3395
  */
3370
3396
  const getSketchNormalViewInfo = (drawingId, sketchId, targetPos, distance) => {
3371
3397
  const drawing = getDrawing(drawingId);
@@ -3561,14 +3587,14 @@ const useEditMode = drawingId => {
3561
3587
  function ownKeys$t(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3562
3588
  function _objectSpread$t(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$t(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$t(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3563
3589
 
3564
- /**
3565
- * Implies the following data structure:
3566
- * data: {
3567
- * path: ObjectID[],
3568
- * csys: ScgObject,
3569
- * flip: FlipType,
3570
- * reorient: ReorientedType,
3571
- * }
3590
+ /**
3591
+ * Implies the following data structure:
3592
+ * data: {
3593
+ * path: ObjectID[],
3594
+ * csys: ScgObject,
3595
+ * flip: FlipType,
3596
+ * reorient: ReorientedType,
3597
+ * }
3572
3598
  */
3573
3599
  const MateScope = 'HLConstraintScope';
3574
3600
  const createMateItem = (path, csys, flip, reorient) => {
@@ -3707,11 +3733,11 @@ const useGlobalMateInfo = (drawingId, instances, includeSelected) => {
3707
3733
  }, [drawingId, currentProduct, instanceChildren, instances, selectors, activeSelector, includeSelected]);
3708
3734
  };
3709
3735
 
3710
- /**
3711
- * Check if ClassCAD is busy with one or multiple pending requests.
3712
- *
3713
- * @param drawingId The drawing id
3714
- * @returns true, if some requests are pending
3736
+ /**
3737
+ * Check if ClassCAD is busy with one or multiple pending requests.
3738
+ *
3739
+ * @param drawingId The drawing id
3740
+ * @returns true, if some requests are pending
3715
3741
  */
3716
3742
  const useHasPending = drawingId => {
3717
3743
  return useDrawing(drawingId, d => d.cad.pending.length > 0);
@@ -3719,11 +3745,11 @@ const useHasPending = drawingId => {
3719
3745
 
3720
3746
  const EMPTYARR = [];
3721
3747
 
3722
- /**
3723
- * Check if ClassCAD is busy with loading something.
3724
- *
3725
- * @param drawingId The drawing id
3726
- * @returns true, if something is loading
3748
+ /**
3749
+ * Check if ClassCAD is busy with loading something.
3750
+ *
3751
+ * @param drawingId The drawing id
3752
+ * @returns true, if something is loading
3727
3753
  */
3728
3754
  const useIsLoading = drawingId => {
3729
3755
  const pending = useDrawing(drawingId, d => d.cad.pending) || EMPTYARR;
@@ -3863,11 +3889,11 @@ const MultiSelect = ({
3863
3889
  function ownKeys$s(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3864
3890
  function _objectSpread$s(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$s(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$s(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3865
3891
 
3866
- /**
3867
- * Implies the following data structure:
3868
- * data: {
3869
- * object: ScgObject
3870
- * }
3892
+ /**
3893
+ * Implies the following data structure:
3894
+ * data: {
3895
+ * object: ScgObject
3896
+ * }
3871
3897
  */
3872
3898
  const TreeObjScope = 'TreeObjScope';
3873
3899
  const createTreeObjSelItem = (productId, object) => {
@@ -4052,17 +4078,17 @@ function useIsSHovered(drawingId, objId) {
4052
4078
  return isSelectable && isHovered;
4053
4079
  }
4054
4080
 
4055
- /**
4056
- * Returns true if object in tree is currently selected in active selection.
4057
- *
4058
- * This hook leads to re-rendering of each element uses it.
4059
- * It happens because it uses items of the active selection,
4060
- * and it's not possible to check if objId is selected inside of useDrawing selector
4061
- * because of performance reasone (it requires traversing through all of selectedItems).
4062
- *
4063
- * @param drawingId
4064
- * @param objId
4065
- * @returns
4081
+ /**
4082
+ * Returns true if object in tree is currently selected in active selection.
4083
+ *
4084
+ * This hook leads to re-rendering of each element uses it.
4085
+ * It happens because it uses items of the active selection,
4086
+ * and it's not possible to check if objId is selected inside of useDrawing selector
4087
+ * because of performance reasone (it requires traversing through all of selectedItems).
4088
+ *
4089
+ * @param drawingId
4090
+ * @param objId
4091
+ * @returns
4066
4092
  */
4067
4093
  function useIsSSelected(drawingId, objId) {
4068
4094
  // Re-render if selItems is changed
@@ -5238,16 +5264,16 @@ function validateParams(params) {
5238
5264
  return warnings;
5239
5265
  }
5240
5266
 
5241
- /**
5242
- * @param drawingId - id of the drawing.
5243
- * @param update - a function which will be called when user presses "Update" button.
5244
- * @param params - all params which should be sent to the server. PluginForm validates each of them.
5245
- * @param validator - smart validation (check https://awv-informatik.atlassian.net/wiki/spaces/CLAS/pages/2428076033/Validation for mor details)
5246
- * @param autoClose - (optional) if true plugin will closed after update. Default is true.
5247
- * @param forceUpdateEnabled - if plugin is opened for the recently created feature it contains default values.
5248
- * User should be able to click "Update" button (clicking on close will remove the feature). Since there is no params changed by the user validator disables "Update" button.
5249
- * To make "Update" button enabled with default values pass true to forceUpdateEnabled
5250
- * @returns
5267
+ /**
5268
+ * @param drawingId - id of the drawing.
5269
+ * @param update - a function which will be called when user presses "Update" button.
5270
+ * @param params - all params which should be sent to the server. PluginForm validates each of them.
5271
+ * @param validator - smart validation (check https://awv-informatik.atlassian.net/wiki/spaces/CLAS/pages/2428076033/Validation for mor details)
5272
+ * @param autoClose - (optional) if true plugin will closed after update. Default is true.
5273
+ * @param forceUpdateEnabled - if plugin is opened for the recently created feature it contains default values.
5274
+ * User should be able to click "Update" button (clicking on close will remove the feature). Since there is no params changed by the user validator disables "Update" button.
5275
+ * To make "Update" button enabled with default values pass true to forceUpdateEnabled
5276
+ * @returns
5251
5277
  */
5252
5278
  const PluginForm = ({
5253
5279
  update,
@@ -5369,10 +5395,10 @@ const TypeEditor = ({
5369
5395
  }, Object.keys(types).filter(t => readonlyTypes.indexOf(parseInt(t)) === -1).map(t => types[parseInt(t)]));
5370
5396
  };
5371
5397
 
5372
- /**
5373
- * Allows to automatically enable all selectors in form one by one.
5374
- * @param drawingId
5375
- * @returns
5398
+ /**
5399
+ * Allows to automatically enable all selectors in form one by one.
5400
+ * @param drawingId
5401
+ * @returns
5376
5402
  */
5377
5403
  function useSelectorsOrder(drawingId) {
5378
5404
  const selectors = React__default.useRef([]);
@@ -5408,23 +5434,23 @@ function useSelectorsOrder(drawingId) {
5408
5434
  }), [addSelector, removeSelector, switchToNext]);
5409
5435
  }
5410
5436
 
5411
- /**
5412
- * !!! Important !!!
5413
- *
5414
- * Functions in this file are called outside of ErrorBoundary,
5415
- * so an error appearing in such function will break whole application.
5416
- *
5417
- * This is why all point operators should be guarded by question mark.
5418
- * And this is the reasone why we should not use any "regular" hooks, or just functions
5419
- * which are already used in components exported from @buerli.io/react-cad.
5420
- *
5421
- * There should not be any hard logic, verifiers are just checking if tree contains particular data
5422
- * (e.g. useCurProductVerifier checks if currentProduct exists in drawing.structure, and corresponding
5423
- * object exists in drawing.structure.tree, otherwise it adds warning).
5424
- *
5425
- * If you need to reuse non trivial existing function, it's better to copypaste code of the function
5426
- * and guard all access operator by question marks like it's already done in usePartAndAssemblyContVerifier
5427
- * for useAllObjects.
5437
+ /**
5438
+ * !!! Important !!!
5439
+ *
5440
+ * Functions in this file are called outside of ErrorBoundary,
5441
+ * so an error appearing in such function will break whole application.
5442
+ *
5443
+ * This is why all point operators should be guarded by question mark.
5444
+ * And this is the reasone why we should not use any "regular" hooks, or just functions
5445
+ * which are already used in components exported from @buerli.io/react-cad.
5446
+ *
5447
+ * There should not be any hard logic, verifiers are just checking if tree contains particular data
5448
+ * (e.g. useCurProductVerifier checks if currentProduct exists in drawing.structure, and corresponding
5449
+ * object exists in drawing.structure.tree, otherwise it adds warning).
5450
+ *
5451
+ * If you need to reuse non trivial existing function, it's better to copypaste code of the function
5452
+ * and guard all access operator by question marks like it's already done in usePartAndAssemblyContVerifier
5453
+ * for useAllObjects.
5428
5454
  */
5429
5455
 
5430
5456
  function useDrawingVerifier(drawingId, warnings) {
@@ -5610,13 +5636,13 @@ function useExprSetVerifier(drawingId, warnings) {
5610
5636
  }
5611
5637
  }
5612
5638
 
5613
- /**
5614
- * Validator for feature plugins. Checks drawing, currentProduct and corresponding feature existance.
5615
- *
5616
- * @param drawingId
5617
- * @param pluginId
5618
- * @param isCanvas used for showing different output for DOM component and for threeJS component.
5619
- * @returns
5639
+ /**
5640
+ * Validator for feature plugins. Checks drawing, currentProduct and corresponding feature existance.
5641
+ *
5642
+ * @param drawingId
5643
+ * @param pluginId
5644
+ * @param isCanvas used for showing different output for DOM component and for threeJS component.
5645
+ * @returns
5620
5646
  */
5621
5647
  const FtPluginValidator = ({
5622
5648
  drawingId,
@@ -9311,8 +9337,8 @@ const ViewContext = /*#__PURE__*/React__default.createContext({
9311
9337
 
9312
9338
  const tolerance$8 = 1e-6;
9313
9339
 
9314
- /**
9315
- * Allowed pixel offset for onClick handler events in case the pointer was slightly moved
9340
+ /**
9341
+ * Allowed pixel offset for onClick handler events in case the pointer was slightly moved
9316
9342
  */
9317
9343
  const deltaTolerance = 4;
9318
9344
 
@@ -12440,10 +12466,10 @@ const getColor = (object, objState) => {
12440
12466
  return 0x000000;
12441
12467
  };
12442
12468
 
12443
- /**
12444
- * Return pointerHandlers of currently enabled sketch Handler.
12445
- * @param objId
12446
- * @returns
12469
+ /**
12470
+ * Return pointerHandlers of currently enabled sketch Handler.
12471
+ * @param objId
12472
+ * @returns
12447
12473
  */
12448
12474
  const useSketchHandlers = objId => {
12449
12475
  const {
@@ -12570,14 +12596,14 @@ function useScale(drawingId, pluginId, getVector) {
12570
12596
  return ref;
12571
12597
  }
12572
12598
 
12573
- /*
12574
- * For correct drawing of objects that lie in the same plane, polygonOffset is used.
12575
- * https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glPolygonOffset.xhtml
12576
- * offset = factor * DZ + r * units
12577
- * Where DZ is a measurement of the change in depth relative to the screen area of the polygon,
12578
- * and r is the smallest value that is guaranteed to produce a resolvable offset for a given implementation.
12579
- * The offset is added before the depth test is performed and before the value is written into the depth buffer.
12580
- * factor parameter is redundant for this purpose, so only units parameter is used.
12599
+ /*
12600
+ * For correct drawing of objects that lie in the same plane, polygonOffset is used.
12601
+ * https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glPolygonOffset.xhtml
12602
+ * offset = factor * DZ + r * units
12603
+ * Where DZ is a measurement of the change in depth relative to the screen area of the polygon,
12604
+ * and r is the smallest value that is guaranteed to produce a resolvable offset for a given implementation.
12605
+ * The offset is added before the depth test is performed and before the value is written into the depth buffer.
12606
+ * factor parameter is redundant for this purpose, so only units parameter is used.
12581
12607
  */
12582
12608
 
12583
12609
  const iconSize = 2.5;
@@ -12992,10 +13018,10 @@ const InstancedGeometry = ({
12992
13018
  }, children));
12993
13019
  };
12994
13020
 
12995
- /**
12996
- * Component which implements InstancedMesh from three.js.
12997
- * Merged component from drei takes globaly created meshes and then passes corresponding "mocked" components via function props (MockCylinder and MockSphere) to children.
12998
- * "mocked" components are used for saying drei where to draw instances.
13021
+ /**
13022
+ * Component which implements InstancedMesh from three.js.
13023
+ * Merged component from drei takes globaly created meshes and then passes corresponding "mocked" components via function props (MockCylinder and MockSphere) to children.
13024
+ * "mocked" components are used for saying drei where to draw instances.
12999
13025
  */
13000
13026
  const MergedWrapper = ({
13001
13027
  children
@@ -13253,70 +13279,70 @@ const Point = ({
13253
13279
  };
13254
13280
 
13255
13281
  // Another raycast approach, should be more performant (not really in practice) but less precise
13256
- /* const arcRaycast = React.useCallback(
13257
- function (this: THREE.Mesh, raycaster: THREE.Raycaster, intersects: THREE.Intersection[]) {
13258
- const matrixWtoL = this.matrixWorld.clone().invert()
13259
- const rayL = raycaster.ray.clone().applyMatrix4(matrixWtoL)
13260
-
13261
- const sketchScale = getScale(drawingId, pluginId)
13262
- const tubeRadius_ = arcCoef * sketchScale
13263
-
13264
- const halfWidth = radius + tubeRadius_
13265
- bBoxMin.set(-halfWidth, -halfWidth, -tubeRadius_)
13266
- bBoxMax.set(halfWidth, halfWidth, tubeRadius_)
13267
- bBox.set(bBoxMin, bBoxMax)
13268
-
13269
- const mayIntersect = rayL.intersectBox(bBox, target) !== null
13270
- if (!mayIntersect) {
13271
- return
13272
- }
13273
-
13274
- let intersections: THREE.Vector3[]
13275
- if (1 - Math.abs(rayL.direction.z) < 1e-6) {
13276
- const intersection = rayL.origin.clone().setZ(0.0).normalize().multiplyScalar(radius)
13277
- intersections = [intersection]
13278
- } else {
13279
- // Origin and direction projected on the arc plane
13280
- const originP = rayL.origin.clone().setZ(0.0)
13281
- const dirP = rayL.direction.clone().setZ(0.0)
13282
-
13283
- const a = dirP.lengthSq()
13284
- const b = 2 * dirP.dot(originP)
13285
- const c = originP.lengthSq() - radius * radius
13286
-
13287
- const v1 = b * b - 4 * a * c
13288
- if (v1 < 0) {
13289
- return
13290
- }
13291
-
13292
- const w = Math.sqrt(v1)
13293
- const t1 = (-b - w) / (2 * a)
13294
- const t2 = (-b + w) / (2 * a)
13295
-
13296
- intersections = [t1, t2].map(t => originP.clone().addScaledVector(dirP, t))
13297
- }
13298
-
13299
- intersections = intersections.filter(posL => {
13300
- let angle = Math.atan2(posL.y, posL.x)
13301
- angle = angularLength >= 0 && angle < 0 ? angle + 2 * Math.PI : angle
13302
- angle = angularLength < 0 && angle >= 0 ? angle - 2 * Math.PI : angle
13303
- const u = angle / angularLength
13304
- return u >= 0 && u <= 1
13305
- })
13306
- const distances = intersections.map(posL => rayL.distanceToPoint(posL))
13307
- const dist = distances.sort()[0]
13308
-
13309
- if (dist !== undefined && dist < arcCoef * sketchScale) {
13310
- const pos = raycaster.ray.origin.clone().addScaledVector(raycaster.ray.direction, dist)
13311
- intersects.push({
13312
- distance: dist,
13313
- point: pos,
13314
- face: null,
13315
- object: this,
13316
- })
13317
- }
13318
- },
13319
- [radius, angularLength, drawingId, pluginId],
13282
+ /* const arcRaycast = React.useCallback(
13283
+ function (this: THREE.Mesh, raycaster: THREE.Raycaster, intersects: THREE.Intersection[]) {
13284
+ const matrixWtoL = this.matrixWorld.clone().invert()
13285
+ const rayL = raycaster.ray.clone().applyMatrix4(matrixWtoL)
13286
+
13287
+ const sketchScale = getScale(drawingId, pluginId)
13288
+ const tubeRadius_ = arcCoef * sketchScale
13289
+
13290
+ const halfWidth = radius + tubeRadius_
13291
+ bBoxMin.set(-halfWidth, -halfWidth, -tubeRadius_)
13292
+ bBoxMax.set(halfWidth, halfWidth, tubeRadius_)
13293
+ bBox.set(bBoxMin, bBoxMax)
13294
+
13295
+ const mayIntersect = rayL.intersectBox(bBox, target) !== null
13296
+ if (!mayIntersect) {
13297
+ return
13298
+ }
13299
+
13300
+ let intersections: THREE.Vector3[]
13301
+ if (1 - Math.abs(rayL.direction.z) < 1e-6) {
13302
+ const intersection = rayL.origin.clone().setZ(0.0).normalize().multiplyScalar(radius)
13303
+ intersections = [intersection]
13304
+ } else {
13305
+ // Origin and direction projected on the arc plane
13306
+ const originP = rayL.origin.clone().setZ(0.0)
13307
+ const dirP = rayL.direction.clone().setZ(0.0)
13308
+
13309
+ const a = dirP.lengthSq()
13310
+ const b = 2 * dirP.dot(originP)
13311
+ const c = originP.lengthSq() - radius * radius
13312
+
13313
+ const v1 = b * b - 4 * a * c
13314
+ if (v1 < 0) {
13315
+ return
13316
+ }
13317
+
13318
+ const w = Math.sqrt(v1)
13319
+ const t1 = (-b - w) / (2 * a)
13320
+ const t2 = (-b + w) / (2 * a)
13321
+
13322
+ intersections = [t1, t2].map(t => originP.clone().addScaledVector(dirP, t))
13323
+ }
13324
+
13325
+ intersections = intersections.filter(posL => {
13326
+ let angle = Math.atan2(posL.y, posL.x)
13327
+ angle = angularLength >= 0 && angle < 0 ? angle + 2 * Math.PI : angle
13328
+ angle = angularLength < 0 && angle >= 0 ? angle - 2 * Math.PI : angle
13329
+ const u = angle / angularLength
13330
+ return u >= 0 && u <= 1
13331
+ })
13332
+ const distances = intersections.map(posL => rayL.distanceToPoint(posL))
13333
+ const dist = distances.sort()[0]
13334
+
13335
+ if (dist !== undefined && dist < arcCoef * sketchScale) {
13336
+ const pos = raycaster.ray.origin.clone().addScaledVector(raycaster.ray.direction, dist)
13337
+ intersects.push({
13338
+ distance: dist,
13339
+ point: pos,
13340
+ face: null,
13341
+ object: this,
13342
+ })
13343
+ }
13344
+ },
13345
+ [radius, angularLength, drawingId, pluginId],
13320
13346
  )*/
13321
13347
 
13322
13348
  const bBox$1 = new THREE.Box3();
@@ -13548,16 +13574,16 @@ const Regions$1 = ({
13548
13574
  function ownKeys$f(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
13549
13575
  function _objectSpread$f(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
13550
13576
 
13551
- /*
13552
- * !polygonOffset!
13553
- * For correct drawing of objects that lie in the same plane, polygonOffset is used.
13554
- * https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glPolygonOffset.xhtml
13555
- * offset = factor * DZ + r * units
13556
- * Where DZ is a measurement of the change in depth relative to the screen area of the polygon,
13557
- * and r is an implementation-specific value to create a constant depth offset.
13558
- * The offset is added before the depth test is performed and before the value is written into the depth buffer.
13559
- *
13560
- * Factor parameter is redundant for this purpose, so only units parameter is used.
13577
+ /*
13578
+ * !polygonOffset!
13579
+ * For correct drawing of objects that lie in the same plane, polygonOffset is used.
13580
+ * https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glPolygonOffset.xhtml
13581
+ * offset = factor * DZ + r * units
13582
+ * Where DZ is a measurement of the change in depth relative to the screen area of the polygon,
13583
+ * and r is an implementation-specific value to create a constant depth offset.
13584
+ * The offset is added before the depth test is performed and before the value is written into the depth buffer.
13585
+ *
13586
+ * Factor parameter is redundant for this purpose, so only units parameter is used.
13561
13587
  */
13562
13588
 
13563
13589
  extend({
@@ -14996,10 +15022,10 @@ const SketchGroup = ({
14996
15022
  }))), isDisplayed && /*#__PURE__*/React__default.createElement(ContentSpace, null, children));
14997
15023
  };
14998
15024
 
14999
- /**
15000
- *
15001
- * @param ref reference to a div element; Its size will be used for calculations
15002
- * @returns object containing width, proposed side padding and margin for icons
15025
+ /**
15026
+ *
15027
+ * @param ref reference to a div element; Its size will be used for calculations
15028
+ * @returns object containing width, proposed side padding and margin for icons
15003
15029
  */
15004
15030
  const useLayoutSize = ref => {
15005
15031
  const {
@@ -16039,7 +16065,7 @@ const Constraints$1 = () => {
16039
16065
  })))));
16040
16066
  };
16041
16067
 
16042
- var css_248z$5 = ".handlers-dropdown .ant-dropdown-menu-root {\r\n border: 1px solid rgba(127, 127, 127, 1);\r\n border-top: 1px solid rgba(255, 255, 255, 1);\r\n border-radius: 0px;\r\n padding: 0px;\r\n margin-top: -2px;\r\n margin-left: -3px;\r\n}\r\n\r\n.handlers-dropdown .ant-dropdown-menu-root .ant-dropdown-menu-item {\r\n background-color: initial;\r\n padding: 0px;\r\n margin-top: 0px;\r\n}\r\n";
16068
+ var css_248z$5 = ".handlers-dropdown .ant-dropdown-menu-root {\n border: 1px solid rgba(127, 127, 127, 1);\n border-top: 1px solid rgba(255, 255, 255, 1);\n border-radius: 0px;\n padding: 0px;\n margin-top: -2px;\n margin-left: -3px;\n}\n\n.handlers-dropdown .ant-dropdown-menu-root .ant-dropdown-menu-item {\n background-color: initial;\n padding: 0px;\n margin-top: 0px;\n}\n";
16043
16069
  styleInject(css_248z$5);
16044
16070
 
16045
16071
  const _excluded$4 = ["handlerName", "sideEffect"];
@@ -16295,7 +16321,7 @@ const PlaneSelection = ({
16295
16321
  }));
16296
16322
  };
16297
16323
 
16298
- var css_248z$4 = ".contextmenu-submenu .ant-dropdown-menu-sub {\r\n border: 1px solid #e0e0e0;\r\n margin: -5px 0px 0px -2px;\r\n padding: 2px 0px;\r\n}\r\n\r\n.contextmenu-submenu .ant-dropdown-menu-sub .ant-dropdown-menu-item {\r\n padding: 2px 12px;\r\n}\r\n";
16324
+ var css_248z$4 = ".contextmenu-submenu .ant-dropdown-menu-sub {\n border: 1px solid #e0e0e0;\n margin: -5px 0px 0px -2px;\n padding: 2px 0px;\n}\n\n.contextmenu-submenu .ant-dropdown-menu-sub .ant-dropdown-menu-item {\n padding: 2px 12px;\n}\n";
16299
16325
  styleInject(css_248z$4);
16300
16326
 
16301
16327
  const _excluded$3 = ["items", "menuInfo", "caption", "icon", "onHide", "children"];
@@ -16887,8 +16913,8 @@ const ObjTitle = ({
16887
16913
  e.preventDefault();
16888
16914
  }, []);
16889
16915
 
16890
- /* const onMouseEnter = React.useCallback(() => {
16891
- hover(drawingId, pluginId, [objId])
16916
+ /* const onMouseEnter = React.useCallback(() => {
16917
+ hover(drawingId, pluginId, [objId])
16892
16918
  }, [drawingId, pluginId, objId]) */
16893
16919
 
16894
16920
  const onMouseLeave = React__default.useCallback(() => {
@@ -20138,11 +20164,11 @@ function useExpressionsParam() {
20138
20164
  });
20139
20165
  }
20140
20166
 
20141
- /**
20142
- * Validator for Expressions plugin. Checks drawing and currentProduct existance.
20143
- *
20144
- * @param drawingId
20145
- * @returns
20167
+ /**
20168
+ * Validator for Expressions plugin. Checks drawing and currentProduct existance.
20169
+ *
20170
+ * @param drawingId
20171
+ * @returns
20146
20172
  */
20147
20173
  const ExpressionsValidator = ({
20148
20174
  drawingId,
@@ -20212,11 +20238,11 @@ const SolverState = ({
20212
20238
  }, component);
20213
20239
  };
20214
20240
 
20215
- /**
20216
- * Shows list of 3d constraints which are contained by currentProduct.
20217
- *
20218
- * @param drawingId - id of a drawing in which currentProduct will be found.
20219
- * @returns
20241
+ /**
20242
+ * Shows list of 3d constraints which are contained by currentProduct.
20243
+ *
20244
+ * @param drawingId - id of a drawing in which currentProduct will be found.
20245
+ * @returns
20220
20246
  */
20221
20247
  const Constraints = ({
20222
20248
  drawingId
@@ -20390,11 +20416,11 @@ const List$2 = ({
20390
20416
  }))));
20391
20417
  };
20392
20418
 
20393
- /**
20394
- * Validator for Drawing component. Checks drawing existence.
20395
- *
20396
- * @param drawingId
20397
- * @returns
20419
+ /**
20420
+ * Validator for Drawing component. Checks drawing existence.
20421
+ *
20422
+ * @param drawingId
20423
+ * @returns
20398
20424
  */
20399
20425
  const DrawingValidator = ({
20400
20426
  drawingId,
@@ -20632,9 +20658,9 @@ function getMenuHeader(drawingId, objId) {
20632
20658
  };
20633
20659
  }
20634
20660
 
20635
- /**
20636
- * Goal of this component is to manage visibility of individual features when interacting with RollbackBar
20637
- * TODO: change the component name?
20661
+ /**
20662
+ * Goal of this component is to manage visibility of individual features when interacting with RollbackBar
20663
+ * TODO: change the component name?
20638
20664
  */
20639
20665
  const VisibilityController = ({
20640
20666
  drawingId,
@@ -20658,8 +20684,8 @@ const VisibilityController = ({
20658
20684
  return null;
20659
20685
  };
20660
20686
 
20661
- /**
20662
- * Goal of this component is to manage visibility of existing features when interacting with Selection or RollbackBar
20687
+ /**
20688
+ * Goal of this component is to manage visibility of existing features when interacting with Selection or RollbackBar
20663
20689
  */
20664
20690
  const FtVisibilityControllerImpl = ({
20665
20691
  drawingId
@@ -21580,7 +21606,7 @@ const draggableModalReducer = (state, action) => {
21580
21606
  }
21581
21607
  };
21582
21608
 
21583
- var css_248z$3 = "/**\r\n * NOTE: This is not compiled.\r\n */\r\n\r\n.ant-design-draggable-modal {\r\n pointer-events: none;\r\n overflow: hidden !important;\r\n}\r\n\r\n.ant-design-draggable-modal .ant-modal {\r\n display: flex;\r\n max-width: none;\r\n transform-origin: 50% 50% !important;\r\n}\r\n\r\n.ant-design-draggable-modal .ant-modal-content {\r\n flex: 1;\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.ant-design-draggable-modal .ant-modal-header {\r\n flex: 0;\r\n padding: 0;\r\n}\r\n\r\n.ant-design-draggable-modal .ant-modal-footer {\r\n flex: 0;\r\n padding: 16px;\r\n}\r\n\r\n.ant-design-draggable-modal .ant-design-draggable-modal-title {\r\n cursor: move;\r\n padding: 16px;\r\n}\r\n\r\n.ant-design-draggable-modal .ant-design-draggable-modal-title::before {\r\n content: '\\00a0';\r\n}\r\n\r\n.ant-design-draggable-modal .ant-modal-body {\r\n flex: 1;\r\n overflow-x: hidden;\r\n overflow-y: auto;\r\n padding: 16px;\r\n}\r\n\r\n.ant-design-draggable-modal-resize-handle-inner {\r\n width: 12px;\r\n right: 14px;\r\n border: 2px solid grey;\r\n height: 12px;\r\n bottom: 14px;\r\n position: absolute;\r\n border-top: 0;\r\n border-left: 0;\r\n}\r\n\r\n.ant-design-draggable-modal-resize-handle {\r\n right: -10px;\r\n width: 44px;\r\n bottom: -10px;\r\n cursor: se-resize;\r\n height: 44px;\r\n position: absolute;\r\n}\r\n";
21609
+ var css_248z$3 = "/**\n * NOTE: This is not compiled.\n */\n\n.ant-design-draggable-modal {\n pointer-events: none;\n overflow: hidden !important;\n}\n\n.ant-design-draggable-modal .ant-modal {\n display: flex;\n max-width: none;\n transform-origin: 50% 50% !important;\n}\n\n.ant-design-draggable-modal .ant-modal-content {\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n\n.ant-design-draggable-modal .ant-modal-header {\n flex: 0;\n padding: 0;\n}\n\n.ant-design-draggable-modal .ant-modal-footer {\n flex: 0;\n padding: 16px;\n}\n\n.ant-design-draggable-modal .ant-design-draggable-modal-title {\n cursor: move;\n padding: 16px;\n}\n\n.ant-design-draggable-modal .ant-design-draggable-modal-title::before {\n content: '\\00a0';\n}\n\n.ant-design-draggable-modal .ant-modal-body {\n flex: 1;\n overflow-x: hidden;\n overflow-y: auto;\n padding: 16px;\n}\n\n.ant-design-draggable-modal-resize-handle-inner {\n width: 12px;\n right: 14px;\n border: 2px solid grey;\n height: 12px;\n bottom: 14px;\n position: absolute;\n border-top: 0;\n border-left: 0;\n}\n\n.ant-design-draggable-modal-resize-handle {\n right: -10px;\n width: 44px;\n bottom: -10px;\n cursor: se-resize;\n height: 44px;\n position: absolute;\n}\n";
21584
21610
  styleInject(css_248z$3);
21585
21611
 
21586
21612
  function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -21984,11 +22010,11 @@ const Feature = ({
21984
22010
  }, content) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, content);
21985
22011
  };
21986
22012
 
21987
- /**
21988
- * Validator for FeatureList component. Checks drawing and currentProduct existance.
21989
- *
21990
- * @param drawingId
21991
- * @returns
22013
+ /**
22014
+ * Validator for FeatureList component. Checks drawing and currentProduct existance.
22015
+ *
22016
+ * @param drawingId
22017
+ * @returns
21992
22018
  */
21993
22019
  const FeatureListValidator = ({
21994
22020
  drawingId,
@@ -22804,7 +22830,7 @@ const ListPlaceholder = () => {
22804
22830
  })));
22805
22831
  };
22806
22832
 
22807
- var css_248z$2 = ".header-dropdown .ant-dropdown-menu-root {\r\n margin-left: -10px;\r\n}\r\n";
22833
+ var css_248z$2 = ".header-dropdown .ant-dropdown-menu-root {\n margin-left: -10px;\n}\n";
22808
22834
  styleInject(css_248z$2);
22809
22835
 
22810
22836
  // TODO: Move to buerli/packages/react or buerli/packages/core
@@ -22838,16 +22864,16 @@ function readFile(file, type) {
22838
22864
  });
22839
22865
  }
22840
22866
 
22841
- /**
22842
- * Simple helper functions for file interaction.
22867
+ /**
22868
+ * Simple helper functions for file interaction.
22843
22869
  */
22844
22870
  const FileUtils = {
22845
- /**
22846
- * Loads a file from the file system.
22847
- * It uses @see document and is therefore directly dependent on the DOM.
22848
- *
22849
- * @param onLoad The callback.
22850
- * @param type The content type.
22871
+ /**
22872
+ * Loads a file from the file system.
22873
+ * It uses @see document and is therefore directly dependent on the DOM.
22874
+ *
22875
+ * @param onLoad The callback.
22876
+ * @param type The content type.
22851
22877
  */
22852
22878
  loadFile: (onLoad, type, multiple) => {
22853
22879
  const handler = event => {
@@ -22905,15 +22931,15 @@ const FileUtils = {
22905
22931
 
22906
22932
  const fileTypes = ['ofb', 'stp', 'stl'];
22907
22933
 
22908
- /**
22909
- * The model tree header.
22910
- *
22911
- * Responsibility:
22912
- * - Show name of current instance
22913
- * - Show back button
22914
- * - Show assembly node menu
22915
- * - Provide convert to template functionality
22916
- * - Provide import/add functionality
22934
+ /**
22935
+ * The model tree header.
22936
+ *
22937
+ * Responsibility:
22938
+ * - Show name of current instance
22939
+ * - Show back button
22940
+ * - Show assembly node menu
22941
+ * - Provide convert to template functionality
22942
+ * - Provide import/add functionality
22917
22943
  */
22918
22944
  const ModelTreeHeader = ({
22919
22945
  drawingId
@@ -23038,8 +23064,8 @@ const ModelTreeHeader = ({
23038
23064
  }));
23039
23065
  };
23040
23066
 
23041
- /**
23042
- * Modal dialog to define the name of the new created assembly tempate.
23067
+ /**
23068
+ * Modal dialog to define the name of the new created assembly tempate.
23043
23069
  */
23044
23070
  const NameChoice = ({
23045
23071
  drawingId,
@@ -23093,13 +23119,13 @@ const ModelTreeImpl = ({
23093
23119
  })), mode === EditMode.None && /*#__PURE__*/React__default.createElement(ListPlaceholder, null));
23094
23120
  };
23095
23121
 
23096
- /**
23097
- * Component which shows structure of model.
23098
- * In part mode a list of part features is shown. In assembly mode a tree of assembly nodes is shown.
23099
- * It checks root and currentProduct to understand which mode is currently enabled. Check useEditMode hook for more details.
23100
- *
23101
- * @param drawingId
23102
- * @returns
23122
+ /**
23123
+ * Component which shows structure of model.
23124
+ * In part mode a list of part features is shown. In assembly mode a tree of assembly nodes is shown.
23125
+ * It checks root and currentProduct to understand which mode is currently enabled. Check useEditMode hook for more details.
23126
+ *
23127
+ * @param drawingId
23128
+ * @returns
23103
23129
  */
23104
23130
  const ModelTree = ({
23105
23131
  drawingId
@@ -23437,11 +23463,11 @@ const List = ({
23437
23463
  }))));
23438
23464
  };
23439
23465
 
23440
- /**
23441
- * Shows list of solids available in the current application context.
23442
- *
23443
- * @param drawingId - id of a drawing.
23444
- * @returns
23466
+ /**
23467
+ * Shows list of solids available in the current application context.
23468
+ *
23469
+ * @param drawingId - id of a drawing.
23470
+ * @returns
23445
23471
  */
23446
23472
  const Solids = ({
23447
23473
  drawingId
@@ -23502,7 +23528,7 @@ const SideBar = ({
23502
23528
  }));
23503
23529
  };
23504
23530
 
23505
- var css_248z$1 = ".toolbar-dropdown .ant-dropdown-menu-root {\r\n margin-left: -24px;\r\n}\r\n";
23531
+ var css_248z$1 = ".toolbar-dropdown .ant-dropdown-menu-root {\n margin-left: -24px;\n}\n";
23506
23532
  styleInject(css_248z$1);
23507
23533
 
23508
23534
  var img$B = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='100' height='100' version='1.1' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3e %3cg stroke='black' stroke-width='5'%3e %3cpath d='m20 20 20 20c-37.015 3.8681-19.657 36.676 0 30l20-40c27.5 15 15 15 0 30l20 20' fill='none' stroke-linecap='round' stroke-linejoin='round' style='paint-order:stroke markers fill'/%3e %3cpath d='m88 80a8 8 0 0 1-8 8 8 8 0 0 1-8-8 8 8 0 0 1 8-8 8 8 0 0 1 8 8zm-60-60a8 8 0 0 1-8 8 8 8 0 0 1-8-8 8 8 0 0 1 8-8 8 8 0 0 1 8 8z' fill='white' style='paint-order:markers fill stroke'/%3e %3cpath d='m63 60a3 3 0 0 1-3 3 3 3 0 0 1-3-3 3 3 0 0 1 3-3 3 3 0 0 1 3 3zm0-30a3 3 0 0 1-3 3 3 3 0 0 1-3-3 3 3 0 0 1 3-3 3 3 0 0 1 3 3zm-20 40a3 3 0 0 1-3 3 3 3 0 0 1-3-3 3 3 0 0 1 3-3 3 3 0 0 1 3 3zm0-30a3 3 0 0 1-3 3 3 3 0 0 1-3-3 3 3 0 0 1 3-3 3 3 0 0 1 3 3z' style='paint-order:markers fill stroke'/%3e %3c/g%3e%3c/svg%3e";
@@ -24238,13 +24264,13 @@ const Header = ({
24238
24264
  })));
24239
24265
  };
24240
24266
 
24241
- /**
24242
- * Component which provides convenient UI for working with models which is loaded to existing drawing.
24243
- * It includes ModelTree, Constraints and Solids components and toolbar for creating new features/3dconstraints
24244
- * Drawing doesn't contain canvas component, so all graphics should be provided as children.
24245
- *
24246
- * @param drawingId - id of an existing drawing.
24247
- * @param Menu - you can pass custom file menu which will be shown at the left top corner.
24267
+ /**
24268
+ * Component which provides convenient UI for working with models which is loaded to existing drawing.
24269
+ * It includes ModelTree, Constraints and Solids components and toolbar for creating new features/3dconstraints
24270
+ * Drawing doesn't contain canvas component, so all graphics should be provided as children.
24271
+ *
24272
+ * @param drawingId - id of an existing drawing.
24273
+ * @param Menu - you can pass custom file menu which will be shown at the left top corner.
24248
24274
  */
24249
24275
  const Drawing = ({
24250
24276
  drawingId,
@@ -24282,16 +24308,16 @@ const Drawing = ({
24282
24308
  };
24283
24309
 
24284
24310
  const _excluded$1 = ["items", "children"];
24285
- /**
24286
- * Context menu. By default it's rendered as thee dots "...", when user hovers it the menuitems is shown.
24287
- * It's possible to show an icon instead of "..." - just render an icon you whant to show as a Menu child.
24288
- *
24289
- * If you want to have nested level of menu items you need to fill children prop of a menu item with SubMenuItems (check src/components/UI/CAD/plugin/ProductManagement/useMenuItems.tsx:"export")
24290
- *
24291
- * @param items - Object contains items you whant to show in the menu. An item should contain caption and callback, it also migh has optional props: icon and children.
24292
- * @param children - Any component which will be shown as a button which opens menu, if no children passed three dots "..." are shown.
24293
- * @param DropDownProps - Since Menu is implemented using DropDown from "antd" you can pass any of DropDown props (except 'overltay') to customize the menu.
24294
- * @returns
24311
+ /**
24312
+ * Context menu. By default it's rendered as thee dots "...", when user hovers it the menuitems is shown.
24313
+ * It's possible to show an icon instead of "..." - just render an icon you whant to show as a Menu child.
24314
+ *
24315
+ * If you want to have nested level of menu items you need to fill children prop of a menu item with SubMenuItems (check src/components/UI/CAD/plugin/ProductManagement/useMenuItems.tsx:"export")
24316
+ *
24317
+ * @param items - Object contains items you whant to show in the menu. An item should contain caption and callback, it also migh has optional props: icon and children.
24318
+ * @param children - Any component which will be shown as a button which opens menu, if no children passed three dots "..." are shown.
24319
+ * @param DropDownProps - Since Menu is implemented using DropDown from "antd" you can pass any of DropDown props (except 'overltay') to customize the menu.
24320
+ * @returns
24295
24321
  */
24296
24322
 
24297
24323
  const Menu = _ref => {
@@ -24645,7 +24671,7 @@ var index$g = /*#__PURE__*/Object.freeze({
24645
24671
  description: description$g
24646
24672
  });
24647
24673
 
24648
- var css_248z = "/*\r\n The only way to customize color picker from react-colorful is using css classes, so we need this file here.\r\n*/\r\n.colorPicker {\r\n padding: 6px;\r\n}\r\n\r\n.colorPicker .react-colorful {\r\n width: 100%;\r\n height: auto;\r\n}\r\n\r\n.colorPicker .react-colorful__saturation {\r\n width: 100%;\r\n height: auto !important;\r\n aspect-ratio: 1 / 1;\r\n border-radius: 4px 4px 0 0;\r\n}\r\n\r\n.colorPicker .react-colorful__hue {\r\n height: 20px;\r\n}\r\n\r\n.colorPicker .react-colorful__pointer {\r\n width: 20px;\r\n height: 20px;\r\n}\r\n\r\n.colorPicker .react-colorful__last-control {\r\n border-radius: 0 0 4px 4px;\r\n}\r\n";
24674
+ var css_248z = "/*\n The only way to customize color picker from react-colorful is using css classes, so we need this file here.\n*/\n.colorPicker {\n padding: 6px;\n}\n\n.colorPicker .react-colorful {\n width: 100%;\n height: auto;\n}\n\n.colorPicker .react-colorful__saturation {\n width: 100%;\n height: auto !important;\n aspect-ratio: 1 / 1;\n border-radius: 4px 4px 0 0;\n}\n\n.colorPicker .react-colorful__hue {\n height: 20px;\n}\n\n.colorPicker .react-colorful__pointer {\n width: 20px;\n height: 20px;\n}\n\n.colorPicker .react-colorful__last-control {\n border-radius: 0 0 4px 4px;\n}\n";
24649
24675
  styleInject(css_248z);
24650
24676
 
24651
24677
  function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -25186,11 +25212,11 @@ const Root$e = ({
25186
25212
  }));
25187
25213
  };
25188
25214
 
25189
- /**
25190
- * Validator for CSysDisplay component. Checks drawing and currentInstance existance.
25191
- *
25192
- * @param drawingId
25193
- * @returns
25215
+ /**
25216
+ * Validator for CSysDisplay component. Checks drawing and currentInstance existance.
25217
+ *
25218
+ * @param drawingId
25219
+ * @returns
25194
25220
  */
25195
25221
  const CSysDisplayValidator = ({
25196
25222
  drawingId,
@@ -28294,11 +28320,11 @@ const ProdList = ({
28294
28320
  }));
28295
28321
  };
28296
28322
 
28297
- /**
28298
- * Validator for ProductManagement plugin. Checks drawing, root, partContainer and AssemblyContainer existance.
28299
- *
28300
- * @param drawingId
28301
- * @returns
28323
+ /**
28324
+ * Validator for ProductManagement plugin. Checks drawing, root, partContainer and AssemblyContainer existance.
28325
+ *
28326
+ * @param drawingId
28327
+ * @returns
28302
28328
  */
28303
28329
  const ProductManagementValidator = ({
28304
28330
  drawingId,
@@ -28595,8 +28621,8 @@ const View = ({
28595
28621
  }));
28596
28622
  };
28597
28623
 
28598
- /**
28599
- * ProductManagement plugin is responsible for showing/creation/deletion parts and assemblies
28624
+ /**
28625
+ * ProductManagement plugin is responsible for showing/creation/deletion parts and assemblies
28600
28626
  */
28601
28627
  const description = {
28602
28628
  name: 'Product Management',
@@ -28708,8 +28734,8 @@ const RecalcIfChanged = ({
28708
28734
  return null;
28709
28735
  };
28710
28736
 
28711
- /**
28712
- * Contains combined visible plugin geometry bounding box
28737
+ /**
28738
+ * Contains combined visible plugin geometry bounding box
28713
28739
  */
28714
28740
  const PluginGeometryBounds = ({
28715
28741
  drawingId