@tumaet/apollon 4.9.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (410) hide show
  1. package/README.md +27 -63
  2. package/dist/assets/style.css +2 -1
  3. package/dist/export.js +189 -205
  4. package/dist/exportFonts-B_CLIgms.js +5 -0
  5. package/dist/exportStyles-sXOp3rln.js +5 -0
  6. package/dist/fontStack-BKkvgDI3.js +4 -0
  7. package/dist/index.d.ts +237 -58
  8. package/dist/index.js +16850 -36346
  9. package/dist/internals.d.ts +2 -10
  10. package/dist/internals.js +28 -46
  11. package/dist/versionConverter-C-s36Ory.js +4769 -0
  12. package/package.json +33 -79
  13. package/dist/exportFonts-DxO9jrR1.js +0 -19
  14. package/dist/exportStyles-Co-WBqTa.js +0 -5
  15. package/dist/external/LICENSE-InterFont +0 -92
  16. package/dist/external/exportFonts-DxO9jrR1.js +0 -19
  17. package/dist/external/exportStyles-Co-WBqTa.js +0 -5
  18. package/dist/external/index.js +0 -22191
  19. package/dist/fontStack-DOtVH2j8.js +0 -5
  20. package/dist/react/App.d.ts +0 -9
  21. package/dist/react/LICENSE-InterFont +0 -92
  22. package/dist/react/apollon-editor.d.ts +0 -184
  23. package/dist/react/components/AlignmentGuides.d.ts +0 -1
  24. package/dist/react/components/AssessmentSelectableElement.d.ts +0 -10
  25. package/dist/react/components/AssessmentSelectionDebug.d.ts +0 -1
  26. package/dist/react/components/CustomBackground.d.ts +0 -1
  27. package/dist/react/components/CustomControls.d.ts +0 -8
  28. package/dist/react/components/CustomMiniMap.d.ts +0 -1
  29. package/dist/react/components/DraggableGhost.d.ts +0 -13
  30. package/dist/react/components/Icon/ArrowBackIcon.d.ts +0 -4
  31. package/dist/react/components/Icon/ArrowForwardIcon.d.ts +0 -4
  32. package/dist/react/components/Icon/CheckIcon.d.ts +0 -4
  33. package/dist/react/components/Icon/CrossIcon.d.ts +0 -4
  34. package/dist/react/components/Icon/DeleteIcon.d.ts +0 -4
  35. package/dist/react/components/Icon/DragHandleIcon.d.ts +0 -4
  36. package/dist/react/components/Icon/EditIcon.d.ts +0 -4
  37. package/dist/react/components/Icon/ExclamationIcon.d.ts +0 -4
  38. package/dist/react/components/Icon/InfiniteIcon.d.ts +0 -4
  39. package/dist/react/components/Icon/MapIcon.d.ts +0 -4
  40. package/dist/react/components/Icon/PaintRollerIcon.d.ts +0 -2
  41. package/dist/react/components/Icon/RedoIcon.d.ts +0 -2
  42. package/dist/react/components/Icon/SouthEastArrowIcon.d.ts +0 -4
  43. package/dist/react/components/Icon/SwapHorizIcon.d.ts +0 -4
  44. package/dist/react/components/Icon/UndoIcon.d.ts +0 -2
  45. package/dist/react/components/Icon/index.d.ts +0 -14
  46. package/dist/react/components/ReconnectConnectionLine.d.ts +0 -2
  47. package/dist/react/components/ScrollOverlay.d.ts +0 -7
  48. package/dist/react/components/Sidebar.d.ts +0 -2
  49. package/dist/react/components/collaboration/CollaborationLayer.d.ts +0 -25
  50. package/dist/react/components/collaboration/coordinates.d.ts +0 -7
  51. package/dist/react/components/index.d.ts +0 -18
  52. package/dist/react/components/popovers/DefaultNodeEditPopover.d.ts +0 -2
  53. package/dist/react/components/popovers/DefaultNodeGiveFeedbackPopover.d.ts +0 -2
  54. package/dist/react/components/popovers/DefaultNodeSeeFeedbackPopover.d.ts +0 -2
  55. package/dist/react/components/popovers/GenericPopover.d.ts +0 -17
  56. package/dist/react/components/popovers/GiveFeedbackAssessmentBox.d.ts +0 -7
  57. package/dist/react/components/popovers/PopoverManager.d.ts +0 -10
  58. package/dist/react/components/popovers/SeeFeedbackAssessmentBox.d.ts +0 -5
  59. package/dist/react/components/popovers/activityDiagram/ActivitySwimlaneEditPopover.d.ts +0 -2
  60. package/dist/react/components/popovers/activityDiagram/index.d.ts +0 -1
  61. package/dist/react/components/popovers/bpmnDiagram/BPMNEndEventEditPopover.d.ts +0 -2
  62. package/dist/react/components/popovers/bpmnDiagram/BPMNGatewayEditPopover.d.ts +0 -2
  63. package/dist/react/components/popovers/bpmnDiagram/BPMNIntermediateEventEditPopover.d.ts +0 -2
  64. package/dist/react/components/popovers/bpmnDiagram/BPMNPoolEditPopover.d.ts +0 -2
  65. package/dist/react/components/popovers/bpmnDiagram/BPMNStartEventEditPopover.d.ts +0 -2
  66. package/dist/react/components/popovers/bpmnDiagram/BPMNTaskEditPopover.d.ts +0 -2
  67. package/dist/react/components/popovers/bpmnDiagram/index.d.ts +0 -6
  68. package/dist/react/components/popovers/classDiagram/ClassEditPopover.d.ts +0 -2
  69. package/dist/react/components/popovers/classDiagram/ClassGiveFeedbackPopover.d.ts +0 -2
  70. package/dist/react/components/popovers/classDiagram/ClassSeeFeedbackPopover.d.ts +0 -2
  71. package/dist/react/components/popovers/classDiagram/EditableAttributesList.d.ts +0 -6
  72. package/dist/react/components/popovers/classDiagram/EditableMethodsList.d.ts +0 -6
  73. package/dist/react/components/popovers/classDiagram/index.d.ts +0 -6
  74. package/dist/react/components/popovers/communicationDiagram/CommunicationObjectNameEditPopover.d.ts +0 -2
  75. package/dist/react/components/popovers/communicationDiagram/CommunicationObjectNameGiveFeedbackPopover.d.ts +0 -2
  76. package/dist/react/components/popovers/communicationDiagram/CommunicationObjectNameSeeFeedbackPopover.d.ts +0 -2
  77. package/dist/react/components/popovers/communicationDiagram/index.d.ts +0 -3
  78. package/dist/react/components/popovers/componentDiagram/ComponentEditPopover.d.ts +0 -2
  79. package/dist/react/components/popovers/componentDiagram/ComponentSubsystemEditPopover.d.ts +0 -2
  80. package/dist/react/components/popovers/componentDiagram/index.d.ts +0 -2
  81. package/dist/react/components/popovers/deploymentDiagram/DeploymentComponentEditPopover.d.ts +0 -2
  82. package/dist/react/components/popovers/deploymentDiagram/DeploymentNodeEditPopover.d.ts +0 -2
  83. package/dist/react/components/popovers/deploymentDiagram/index.d.ts +0 -2
  84. package/dist/react/components/popovers/edgePopovers/ActivityDiagramEdgeEditPopover.d.ts +0 -2
  85. package/dist/react/components/popovers/edgePopovers/BPMNDiagramEdgeEditPopover.d.ts +0 -2
  86. package/dist/react/components/popovers/edgePopovers/ClassDiagramEdgeEditPopover.d.ts +0 -2
  87. package/dist/react/components/popovers/edgePopovers/CommunicationDiagramEdgeEditPopover.d.ts +0 -2
  88. package/dist/react/components/popovers/edgePopovers/ComponentDiagramEdgeEditPopover.d.ts +0 -2
  89. package/dist/react/components/popovers/edgePopovers/DeploymentDiagramEdgeEditPopover.d.ts +0 -2
  90. package/dist/react/components/popovers/edgePopovers/EdgeGiveFeedbackPopover.d.ts +0 -2
  91. package/dist/react/components/popovers/edgePopovers/EdgeSeeFeedbackPopover.d.ts +0 -2
  92. package/dist/react/components/popovers/edgePopovers/EdgeTypePreviewIcon.d.ts +0 -3
  93. package/dist/react/components/popovers/edgePopovers/EdgeTypeSelect.d.ts +0 -9
  94. package/dist/react/components/popovers/edgePopovers/FlowChartEdgeEditPopover.d.ts +0 -2
  95. package/dist/react/components/popovers/edgePopovers/ObjectDiagramEdgeEditPopover.d.ts +0 -2
  96. package/dist/react/components/popovers/edgePopovers/PetriNetEdgeEditPopover.d.ts +0 -2
  97. package/dist/react/components/popovers/edgePopovers/ReachabilityGraphEdgeEditPopover.d.ts +0 -2
  98. package/dist/react/components/popovers/edgePopovers/SwapEndsButton.d.ts +0 -9
  99. package/dist/react/components/popovers/edgePopovers/SyntaxTreeEdgeEditPopover.d.ts +0 -2
  100. package/dist/react/components/popovers/edgePopovers/UseCaseDiagramEdgeEditPopover.d.ts +0 -2
  101. package/dist/react/components/popovers/edgePopovers/index.d.ts +0 -8
  102. package/dist/react/components/popovers/index.d.ts +0 -3
  103. package/dist/react/components/popovers/objectDiagram/ObjectEditPopover.d.ts +0 -2
  104. package/dist/react/components/popovers/objectDiagram/ObjectGiveFeedbackPopover.d.ts +0 -2
  105. package/dist/react/components/popovers/objectDiagram/ObjectSeeFeedbackPopover.d.ts +0 -2
  106. package/dist/react/components/popovers/objectDiagram/index.d.ts +0 -3
  107. package/dist/react/components/popovers/petriNetDiagram/PetriNetPlaceEditPopover.d.ts +0 -2
  108. package/dist/react/components/popovers/petriNetDiagram/index.d.ts +0 -1
  109. package/dist/react/components/popovers/reachabilityGraphDiagram/ReachabilityGraphMarkingEditPopover.d.ts +0 -2
  110. package/dist/react/components/popovers/reachabilityGraphDiagram/index.d.ts +0 -1
  111. package/dist/react/components/popovers/sfcDiagram/SfcActionTableEditPopover.d.ts +0 -3
  112. package/dist/react/components/popovers/sfcDiagram/SfcEdgeEditPopover.d.ts +0 -2
  113. package/dist/react/components/popovers/sfcDiagram/index.d.ts +0 -2
  114. package/dist/react/components/popovers/syntaxTreeDiagram/SyntaxTreeNonterminalEditPopover.d.ts +0 -2
  115. package/dist/react/components/popovers/syntaxTreeDiagram/SyntaxTreeTerminalEditPopover.d.ts +0 -2
  116. package/dist/react/components/popovers/syntaxTreeDiagram/index.d.ts +0 -2
  117. package/dist/react/components/popovers/types.d.ts +0 -6
  118. package/dist/react/components/react/Apollon.d.ts +0 -50
  119. package/dist/react/components/react/ApollonControl.d.ts +0 -18
  120. package/dist/react/components/react/context.d.ts +0 -16
  121. package/dist/react/components/react/useApollonSubscription.d.ts +0 -17
  122. package/dist/react/components/svgs/AssessmentIcon.d.ts +0 -8
  123. package/dist/react/components/svgs/StyledElements.d.ts +0 -2
  124. package/dist/react/components/svgs/edges/InlineMarker.d.ts +0 -70
  125. package/dist/react/components/svgs/edges/index.d.ts +0 -1
  126. package/dist/react/components/svgs/index.d.ts +0 -3
  127. package/dist/react/components/svgs/nodes/CustomText.d.ts +0 -10
  128. package/dist/react/components/svgs/nodes/HeaderSection.d.ts +0 -14
  129. package/dist/react/components/svgs/nodes/InterfaceLabel.d.ts +0 -26
  130. package/dist/react/components/svgs/nodes/MultilineText.d.ts +0 -51
  131. package/dist/react/components/svgs/nodes/RowBlockSection.d.ts +0 -15
  132. package/dist/react/components/svgs/nodes/SeparationLine.d.ts +0 -8
  133. package/dist/react/components/svgs/nodes/StereotypeAndName.d.ts +0 -54
  134. package/dist/react/components/svgs/nodes/activityDiagram/ActivityActionNodeSVG.d.ts +0 -6
  135. package/dist/react/components/svgs/nodes/activityDiagram/ActivityFinalNodeSVG.d.ts +0 -2
  136. package/dist/react/components/svgs/nodes/activityDiagram/ActivityForkNodeHorizontalSVG.d.ts +0 -7
  137. package/dist/react/components/svgs/nodes/activityDiagram/ActivityForkNodeSVG.d.ts +0 -7
  138. package/dist/react/components/svgs/nodes/activityDiagram/ActivityInitialNodeSVG.d.ts +0 -2
  139. package/dist/react/components/svgs/nodes/activityDiagram/ActivityMergeNodeSVG.d.ts +0 -7
  140. package/dist/react/components/svgs/nodes/activityDiagram/ActivityObjectNodeSVG.d.ts +0 -7
  141. package/dist/react/components/svgs/nodes/activityDiagram/ActivitySVG.d.ts +0 -6
  142. package/dist/react/components/svgs/nodes/activityDiagram/ActivitySwimlaneSVG.d.ts +0 -9
  143. package/dist/react/components/svgs/nodes/activityDiagram/index.d.ts +0 -9
  144. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNAnnotationNodeSVG.d.ts +0 -7
  145. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNDataObjectNodeSVG.d.ts +0 -7
  146. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNDataStoreNodeSVG.d.ts +0 -7
  147. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNEventNodeSVG.d.ts +0 -8
  148. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNGatewayNodeSVG.d.ts +0 -7
  149. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNGroupNodeSVG.d.ts +0 -7
  150. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNPoolNodeSVG.d.ts +0 -7
  151. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNSubprocessNodeSVG.d.ts +0 -8
  152. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNTaskNodeSVG.d.ts +0 -6
  153. package/dist/react/components/svgs/nodes/bpmnDiagram/index.d.ts +0 -9
  154. package/dist/react/components/svgs/nodes/classDiagram/ClassSVG.d.ts +0 -10
  155. package/dist/react/components/svgs/nodes/classDiagram/ColorDescriptionSVG.d.ts +0 -10
  156. package/dist/react/components/svgs/nodes/classDiagram/PackageSVG.d.ts +0 -6
  157. package/dist/react/components/svgs/nodes/classDiagram/TitleAndDescriptionSVG.d.ts +0 -11
  158. package/dist/react/components/svgs/nodes/classDiagram/index.d.ts +0 -4
  159. package/dist/react/components/svgs/nodes/communicationDiagram/CommunicationObjectNameSVG.d.ts +0 -6
  160. package/dist/react/components/svgs/nodes/communicationDiagram/index.d.ts +0 -1
  161. package/dist/react/components/svgs/nodes/componentDiagram/ComponentInterfaceNodeSVG.d.ts +0 -9
  162. package/dist/react/components/svgs/nodes/componentDiagram/ComponentNodeSVG.d.ts +0 -7
  163. package/dist/react/components/svgs/nodes/componentDiagram/ComponentSubsystemNodeSVG.d.ts +0 -7
  164. package/dist/react/components/svgs/nodes/componentDiagram/index.d.ts +0 -3
  165. package/dist/react/components/svgs/nodes/deploymentDiagram/DeploymentArtifactSVG.d.ts +0 -7
  166. package/dist/react/components/svgs/nodes/deploymentDiagram/DeploymentComponentSVG.d.ts +0 -7
  167. package/dist/react/components/svgs/nodes/deploymentDiagram/DeploymentInterfaceSVG.d.ts +0 -9
  168. package/dist/react/components/svgs/nodes/deploymentDiagram/DeploymentNodeSVG.d.ts +0 -7
  169. package/dist/react/components/svgs/nodes/deploymentDiagram/index.d.ts +0 -4
  170. package/dist/react/components/svgs/nodes/flowchartDiagram/FlowchartDecisionNodeSVG.d.ts +0 -7
  171. package/dist/react/components/svgs/nodes/flowchartDiagram/FlowchartFunctionCallNodeSVG.d.ts +0 -7
  172. package/dist/react/components/svgs/nodes/flowchartDiagram/FlowchartInputOutputNodeSVG.d.ts +0 -7
  173. package/dist/react/components/svgs/nodes/flowchartDiagram/FlowchartProcessNodeSVG.d.ts +0 -7
  174. package/dist/react/components/svgs/nodes/flowchartDiagram/FlowchartTerminalNodeSVG.d.ts +0 -7
  175. package/dist/react/components/svgs/nodes/flowchartDiagram/index.d.ts +0 -5
  176. package/dist/react/components/svgs/nodes/index.d.ts +0 -13
  177. package/dist/react/components/svgs/nodes/objectDiagram/ObjectNameSVG.d.ts +0 -7
  178. package/dist/react/components/svgs/nodes/objectDiagram/index.d.ts +0 -1
  179. package/dist/react/components/svgs/nodes/petriNetDiagram/PetriNetPlaceSVG.d.ts +0 -7
  180. package/dist/react/components/svgs/nodes/petriNetDiagram/PetriNetTransitionSVG.d.ts +0 -7
  181. package/dist/react/components/svgs/nodes/petriNetDiagram/index.d.ts +0 -2
  182. package/dist/react/components/svgs/nodes/reachabilityGraphDiagram/ReachabilityGraphMarkingSVG.d.ts +0 -7
  183. package/dist/react/components/svgs/nodes/reachabilityGraphDiagram/index.d.ts +0 -1
  184. package/dist/react/components/svgs/nodes/sfcDiagram/SfcActionTableNodeSVG.d.ts +0 -7
  185. package/dist/react/components/svgs/nodes/sfcDiagram/SfcJumpNodeSVG.d.ts +0 -7
  186. package/dist/react/components/svgs/nodes/sfcDiagram/SfcStartNodeSVG.d.ts +0 -7
  187. package/dist/react/components/svgs/nodes/sfcDiagram/SfcStepNodeSVG.d.ts +0 -7
  188. package/dist/react/components/svgs/nodes/sfcDiagram/SfcTransitionBranchNodeSVG.d.ts +0 -7
  189. package/dist/react/components/svgs/nodes/sfcDiagram/index.d.ts +0 -5
  190. package/dist/react/components/svgs/nodes/syntaxTreeDiagram/SyntaxTreeNonterminalNodeSVG.d.ts +0 -7
  191. package/dist/react/components/svgs/nodes/syntaxTreeDiagram/SyntaxTreeTerminalNodeSVG.d.ts +0 -7
  192. package/dist/react/components/svgs/nodes/syntaxTreeDiagram/index.d.ts +0 -2
  193. package/dist/react/components/svgs/nodes/useCaseDiagram/UseCaseActorNodeSVG.d.ts +0 -7
  194. package/dist/react/components/svgs/nodes/useCaseDiagram/UseCaseNodeSVG.d.ts +0 -7
  195. package/dist/react/components/svgs/nodes/useCaseDiagram/UseCaseSystemNodeSVG.d.ts +0 -7
  196. package/dist/react/components/svgs/nodes/useCaseDiagram/index.d.ts +0 -3
  197. package/dist/react/components/toolbars/NodeToolbar.d.ts +0 -7
  198. package/dist/react/components/toolbars/edgeToolBar/CustomEdgeToolBar.d.ts +0 -12
  199. package/dist/react/components/toolbars/edgeToolBar/index.d.ts +0 -1
  200. package/dist/react/components/toolbars/index.d.ts +0 -1
  201. package/dist/react/components/ui/DividerLine.d.ts +0 -9
  202. package/dist/react/components/ui/HeaderSwitchElement.d.ts +0 -7
  203. package/dist/react/components/ui/PrimaryButton.d.ts +0 -8
  204. package/dist/react/components/ui/StereotypeButtonGroup.d.ts +0 -8
  205. package/dist/react/components/ui/StyleEditor/ColorButtons.d.ts +0 -11
  206. package/dist/react/components/ui/StyleEditor/EdgeStyleEditor.d.ts +0 -11
  207. package/dist/react/components/ui/StyleEditor/NodeStyleEditor.d.ts +0 -22
  208. package/dist/react/components/ui/StyleEditor/index.d.ts +0 -2
  209. package/dist/react/components/ui/TextField.d.ts +0 -3
  210. package/dist/react/components/ui/Typography.d.ts +0 -3
  211. package/dist/react/components/ui/index.d.ts +0 -7
  212. package/dist/react/components/wrapper/AssessmentSelectableWrapper.d.ts +0 -11
  213. package/dist/react/components/wrapper/FeedbackDropzone.d.ts +0 -10
  214. package/dist/react/components/wrapper/index.d.ts +0 -2
  215. package/dist/react/constants.d.ts +0 -261
  216. package/dist/react/edges/Connection.d.ts +0 -36
  217. package/dist/react/edges/EdgeProps.d.ts +0 -24
  218. package/dist/react/edges/GenericEdge.d.ts +0 -78
  219. package/dist/react/edges/edgeTypes/ActivityDiagramEdge.d.ts +0 -2
  220. package/dist/react/edges/edgeTypes/BPMNDiagramEdge.d.ts +0 -2
  221. package/dist/react/edges/edgeTypes/ClassDiagramEdge.d.ts +0 -2
  222. package/dist/react/edges/edgeTypes/CommunicationDiagramEdge.d.ts +0 -2
  223. package/dist/react/edges/edgeTypes/ComponentDiagramEdge.d.ts +0 -2
  224. package/dist/react/edges/edgeTypes/DeploymentDiagramEdge.d.ts +0 -2
  225. package/dist/react/edges/edgeTypes/FlowChartEdge.d.ts +0 -2
  226. package/dist/react/edges/edgeTypes/ObjectDiagramEdge.d.ts +0 -2
  227. package/dist/react/edges/edgeTypes/PetriNetEdge.d.ts +0 -2
  228. package/dist/react/edges/edgeTypes/ReachabilityGraphArc.d.ts +0 -2
  229. package/dist/react/edges/edgeTypes/SfcDiagramEdge.d.ts +0 -2
  230. package/dist/react/edges/edgeTypes/SyntaxTreeEdge.d.ts +0 -2
  231. package/dist/react/edges/edgeTypes/UseCaseDiagramEdge.d.ts +0 -2
  232. package/dist/react/edges/edgeTypes/index.d.ts +0 -6
  233. package/dist/react/edges/index.d.ts +0 -3
  234. package/dist/react/edges/labelTypes/EdgeEndLabels.d.ts +0 -19
  235. package/dist/react/edges/labelTypes/EdgeIncludeExtendLabel.d.ts +0 -10
  236. package/dist/react/edges/labelTypes/EdgeMiddleLabels.d.ts +0 -18
  237. package/dist/react/edges/labelTypes/EdgeMultipleLabels.d.ts +0 -14
  238. package/dist/react/edges/labelTypes/messageLayout.d.ts +0 -51
  239. package/dist/react/edges/types.d.ts +0 -153
  240. package/dist/react/enums/Quadrant.d.ts +0 -6
  241. package/dist/react/enums/index.d.ts +0 -1
  242. package/dist/react/export/exportErrors.d.ts +0 -10
  243. package/dist/react/export/index.d.ts +0 -13
  244. package/dist/react/export/normalizeExportSvg.d.ts +0 -16
  245. package/dist/react/export/preProcessSvgForPdf.d.ts +0 -20
  246. package/dist/react/export/svgToPdf.d.ts +0 -17
  247. package/dist/react/export/svgToPng.d.ts +0 -38
  248. package/dist/react/exportFonts-DSRUaduf.js +0 -20
  249. package/dist/react/exportStyles-yVX7Dykt.js +0 -6
  250. package/dist/react/fontStack.d.ts +0 -14
  251. package/dist/react/hooks/index.d.ts +0 -18
  252. package/dist/react/hooks/useAssessmentSelection.d.ts +0 -13
  253. package/dist/react/hooks/useConnect.d.ts +0 -7
  254. package/dist/react/hooks/useDiagramModifiable.d.ts +0 -1
  255. package/dist/react/hooks/useDragOver.d.ts +0 -2
  256. package/dist/react/hooks/useDropFeedback.d.ts +0 -7
  257. package/dist/react/hooks/useEdgeConfig.d.ts +0 -83
  258. package/dist/react/hooks/useEdgeLineJumps.d.ts +0 -27
  259. package/dist/react/hooks/useEdgeToolbar.d.ts +0 -6
  260. package/dist/react/hooks/useEdges.d.ts +0 -9
  261. package/dist/react/hooks/useElementInteractions.d.ts +0 -6
  262. package/dist/react/hooks/useGoToNextAssessment.d.ts +0 -1
  263. package/dist/react/hooks/useHandleDelete.d.ts +0 -1
  264. package/dist/react/hooks/useHandleFinder.d.ts +0 -11
  265. package/dist/react/hooks/useHandleOnResize.d.ts +0 -4
  266. package/dist/react/hooks/useIsOnlyThisElementSelected.d.ts +0 -1
  267. package/dist/react/hooks/useKeyboardShortcuts.d.ts +0 -1
  268. package/dist/react/hooks/useNodeDrag.d.ts +0 -2
  269. package/dist/react/hooks/useNodeDragStop.d.ts +0 -2
  270. package/dist/react/hooks/usePaneClicked.d.ts +0 -3
  271. package/dist/react/hooks/usePopoverAnchor.d.ts +0 -26
  272. package/dist/react/hooks/useReactiveElement.d.ts +0 -10
  273. package/dist/react/hooks/useReconnect.d.ts +0 -2
  274. package/dist/react/hooks/useRemoteDraggingNodes.d.ts +0 -20
  275. package/dist/react/hooks/useSelectionForCopyPaste.d.ts +0 -10
  276. package/dist/react/hooks/useStepPathEdge.d.ts +0 -62
  277. package/dist/react/hooks/useStraightPathEdge.d.ts +0 -23
  278. package/dist/react/hooks/useViewPointCenter.d.ts +0 -2
  279. package/dist/react/index.d.ts +0 -9
  280. package/dist/react/internals.d.ts +0 -5
  281. package/dist/react/logger.d.ts +0 -10
  282. package/dist/react/nodes/TitleAndDescriptionNode.d.ts +0 -7
  283. package/dist/react/nodes/activityDiagram/Activity.d.ts +0 -3
  284. package/dist/react/nodes/activityDiagram/ActivityActionNode.d.ts +0 -3
  285. package/dist/react/nodes/activityDiagram/ActivityFinalNode.d.ts +0 -3
  286. package/dist/react/nodes/activityDiagram/ActivityForkNode.d.ts +0 -3
  287. package/dist/react/nodes/activityDiagram/ActivityForkNodeHorizontal.d.ts +0 -3
  288. package/dist/react/nodes/activityDiagram/ActivityInitialNode.d.ts +0 -3
  289. package/dist/react/nodes/activityDiagram/ActivityMergeNode.d.ts +0 -3
  290. package/dist/react/nodes/activityDiagram/ActivityObjectNode.d.ts +0 -3
  291. package/dist/react/nodes/activityDiagram/ActivitySwimlane.d.ts +0 -3
  292. package/dist/react/nodes/activityDiagram/index.d.ts +0 -9
  293. package/dist/react/nodes/bpmn/BPMNAnnotation.d.ts +0 -3
  294. package/dist/react/nodes/bpmn/BPMNCallActivity.d.ts +0 -3
  295. package/dist/react/nodes/bpmn/BPMNDataObject.d.ts +0 -3
  296. package/dist/react/nodes/bpmn/BPMNDataStore.d.ts +0 -3
  297. package/dist/react/nodes/bpmn/BPMNEndEvent.d.ts +0 -3
  298. package/dist/react/nodes/bpmn/BPMNGateway.d.ts +0 -3
  299. package/dist/react/nodes/bpmn/BPMNGroup.d.ts +0 -3
  300. package/dist/react/nodes/bpmn/BPMNIntermediateEvent.d.ts +0 -3
  301. package/dist/react/nodes/bpmn/BPMNPool.d.ts +0 -3
  302. package/dist/react/nodes/bpmn/BPMNStartEvent.d.ts +0 -3
  303. package/dist/react/nodes/bpmn/BPMNSubprocess.d.ts +0 -3
  304. package/dist/react/nodes/bpmn/BPMNTask.d.ts +0 -3
  305. package/dist/react/nodes/bpmn/BPMNTransaction.d.ts +0 -3
  306. package/dist/react/nodes/bpmn/index.d.ts +0 -13
  307. package/dist/react/nodes/classDiagram/Class.d.ts +0 -3
  308. package/dist/react/nodes/classDiagram/ColorDescription.d.ts +0 -3
  309. package/dist/react/nodes/classDiagram/Package.d.ts +0 -3
  310. package/dist/react/nodes/classDiagram/index.d.ts +0 -3
  311. package/dist/react/nodes/communicationDiagram/CommunicationObjectName.d.ts +0 -3
  312. package/dist/react/nodes/communicationDiagram/index.d.ts +0 -1
  313. package/dist/react/nodes/componentDiagram/Component.d.ts +0 -3
  314. package/dist/react/nodes/componentDiagram/ComponentInterface.d.ts +0 -3
  315. package/dist/react/nodes/componentDiagram/ComponentSubsystem.d.ts +0 -3
  316. package/dist/react/nodes/componentDiagram/index.d.ts +0 -3
  317. package/dist/react/nodes/deploymentDiagram/DeploymentArtifact.d.ts +0 -3
  318. package/dist/react/nodes/deploymentDiagram/DeploymentComponent.d.ts +0 -3
  319. package/dist/react/nodes/deploymentDiagram/DeploymentInterface.d.ts +0 -3
  320. package/dist/react/nodes/deploymentDiagram/DeploymentNode.d.ts +0 -3
  321. package/dist/react/nodes/deploymentDiagram/index.d.ts +0 -4
  322. package/dist/react/nodes/flowchart/FlowchartDecision.d.ts +0 -3
  323. package/dist/react/nodes/flowchart/FlowchartFunctionCall.d.ts +0 -3
  324. package/dist/react/nodes/flowchart/FlowchartInputOutput.d.ts +0 -3
  325. package/dist/react/nodes/flowchart/FlowchartProcess.d.ts +0 -3
  326. package/dist/react/nodes/flowchart/FlowchartTerminal.d.ts +0 -3
  327. package/dist/react/nodes/flowchart/index.d.ts +0 -5
  328. package/dist/react/nodes/index.d.ts +0 -8
  329. package/dist/react/nodes/objectDiagram/ObjectName.d.ts +0 -3
  330. package/dist/react/nodes/objectDiagram/index.d.ts +0 -1
  331. package/dist/react/nodes/petriNetDiagram/PetriNetPlace.d.ts +0 -3
  332. package/dist/react/nodes/petriNetDiagram/PetriNetTransition.d.ts +0 -3
  333. package/dist/react/nodes/petriNetDiagram/index.d.ts +0 -2
  334. package/dist/react/nodes/reachabilityGraphDiagram/ReachabilityGraphMarking.d.ts +0 -3
  335. package/dist/react/nodes/reachabilityGraphDiagram/index.d.ts +0 -1
  336. package/dist/react/nodes/sfcDiagram/SfcActionTable.d.ts +0 -3
  337. package/dist/react/nodes/sfcDiagram/SfcJump.d.ts +0 -3
  338. package/dist/react/nodes/sfcDiagram/SfcStart.d.ts +0 -3
  339. package/dist/react/nodes/sfcDiagram/SfcStep.d.ts +0 -3
  340. package/dist/react/nodes/sfcDiagram/SfcTransitionBranch.d.ts +0 -3
  341. package/dist/react/nodes/sfcDiagram/index.d.ts +0 -5
  342. package/dist/react/nodes/syntaxTreeDiagram/SyntaxTreeNonterminal.d.ts +0 -3
  343. package/dist/react/nodes/syntaxTreeDiagram/SyntaxTreeTerminal.d.ts +0 -3
  344. package/dist/react/nodes/types.d.ts +0 -73
  345. package/dist/react/nodes/useCaseDiagram/UseCase.d.ts +0 -3
  346. package/dist/react/nodes/useCaseDiagram/UseCaseActor.d.ts +0 -3
  347. package/dist/react/nodes/useCaseDiagram/UseCaseSystem.d.ts +0 -3
  348. package/dist/react/nodes/useCaseDiagram/index.d.ts +0 -3
  349. package/dist/react/nodes/wrappers/DefaultNodeWrapper.d.ts +0 -49
  350. package/dist/react/nodes/wrappers/index.d.ts +0 -1
  351. package/dist/react/overlay/OverlayLayer.d.ts +0 -8
  352. package/dist/react/overlay/RegionMount.d.ts +0 -10
  353. package/dist/react/overlay/overlayStore.d.ts +0 -20
  354. package/dist/react/overlay/types.d.ts +0 -48
  355. package/dist/react/react.d.ts +0 -5
  356. package/dist/react/react.js +0 -28177
  357. package/dist/react/services/migration/EdgeTransformer.d.ts +0 -11
  358. package/dist/react/store/alignmentGuidesStore.d.ts +0 -13
  359. package/dist/react/store/assessmentSelectionStore.d.ts +0 -17
  360. package/dist/react/store/context.d.ts +0 -22
  361. package/dist/react/store/diagramStore.d.ts +0 -70
  362. package/dist/react/store/edgeGeometryStore.d.ts +0 -18
  363. package/dist/react/store/index.d.ts +0 -7
  364. package/dist/react/store/metadataStore.d.ts +0 -39
  365. package/dist/react/store/popoverStore.d.ts +0 -9
  366. package/dist/react/styles/theme.d.ts +0 -51
  367. package/dist/react/sync/headless.d.ts +0 -16
  368. package/dist/react/sync/perfCounters.d.ts +0 -6
  369. package/dist/react/sync/ydoc.d.ts +0 -9
  370. package/dist/react/sync/yjsSync.d.ts +0 -63
  371. package/dist/react/types/DiagramType.d.ts +0 -16
  372. package/dist/react/types/SVG.d.ts +0 -8
  373. package/dist/react/types/index.d.ts +0 -3
  374. package/dist/react/types/locationPopover.d.ts +0 -5
  375. package/dist/react/types/nodes/DropNodeDate.d.ts +0 -7
  376. package/dist/react/types/nodes/NodeProps.d.ts +0 -101
  377. package/dist/react/types/nodes/enums/ClassType.d.ts +0 -5
  378. package/dist/react/types/nodes/enums/index.d.ts +0 -1
  379. package/dist/react/types/nodes/index.d.ts +0 -3
  380. package/dist/react/typings.d.ts +0 -186
  381. package/dist/react/utils/alignmentUtils.d.ts +0 -32
  382. package/dist/react/utils/bpmnConstraints.d.ts +0 -5
  383. package/dist/react/utils/collaboration.d.ts +0 -19
  384. package/dist/react/utils/copyPasteUtils.d.ts +0 -32
  385. package/dist/react/utils/deepPartial.d.ts +0 -3
  386. package/dist/react/utils/diagramTypeUtils.d.ts +0 -6
  387. package/dist/react/utils/edgeUtils.d.ts +0 -167
  388. package/dist/react/utils/exportFonts.d.ts +0 -11
  389. package/dist/react/utils/exportStyles.d.ts +0 -30
  390. package/dist/react/utils/exportUtils.d.ts +0 -11
  391. package/dist/react/utils/geometry/bendHandles.d.ts +0 -42
  392. package/dist/react/utils/geometry/edgeLabelLayout.d.ts +0 -123
  393. package/dist/react/utils/geometry/interfaceLabelLayout.d.ts +0 -44
  394. package/dist/react/utils/helpers.d.ts +0 -14
  395. package/dist/react/utils/index.d.ts +0 -19
  396. package/dist/react/utils/interactiveUtils.d.ts +0 -6
  397. package/dist/react/utils/layoutUtils.d.ts +0 -30
  398. package/dist/react/utils/nodeUtils.d.ts +0 -15
  399. package/dist/react/utils/paletteLayout.d.ts +0 -70
  400. package/dist/react/utils/pathParsing.d.ts +0 -54
  401. package/dist/react/utils/popoverUtils.d.ts +0 -3
  402. package/dist/react/utils/quadrantUtils.d.ts +0 -3
  403. package/dist/react/utils/requiredInterfaceUtils.d.ts +0 -18
  404. package/dist/react/utils/storeUtils.d.ts +0 -1
  405. package/dist/react/utils/svgTextLayout.d.ts +0 -86
  406. package/dist/react/utils/swimlaneUtils.d.ts +0 -58
  407. package/dist/react/utils/textUtils.d.ts +0 -1
  408. package/dist/react/utils/v3Typings.d.ts +0 -135
  409. package/dist/react/utils/versionConverter.d.ts +0 -60
  410. package/dist/yjsSync-BCNFF_EI.js +0 -45418
@@ -1 +0,0 @@
1
- export * from './edgeToolBar';
@@ -1,9 +0,0 @@
1
- import { default as React } from 'react';
2
- interface DividerLineProps {
3
- width?: string | number;
4
- height?: string | number;
5
- style?: React.CSSProperties;
6
- backgroundColor?: string;
7
- }
8
- export declare const DividerLine: React.FC<DividerLineProps>;
9
- export {};
@@ -1,7 +0,0 @@
1
- import { default as React } from 'react';
2
- interface Props {
3
- onClick: () => void;
4
- isComponentHeaderShown: boolean;
5
- }
6
- export declare const HeaderSwitchElement: React.FC<Props>;
7
- export {};
@@ -1,8 +0,0 @@
1
- interface Props {
2
- children: React.ReactNode;
3
- isSelected: boolean;
4
- onClick: () => void;
5
- style?: React.CSSProperties;
6
- }
7
- export declare const PrimaryButton: React.FC<Props>;
8
- export {};
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- import { ClassType } from '../../types';
3
- interface StereotypeButtonGroupProps {
4
- nodeId: string;
5
- selectedStereotype?: ClassType;
6
- }
7
- export declare const StereotypeButtonGroup: React.FC<StereotypeButtonGroupProps>;
8
- export {};
@@ -1,11 +0,0 @@
1
- import { default as React } from 'react';
2
- interface ColorButtonsProps {
3
- onSelect: (color: string) => void;
4
- }
5
- export declare const ColorButtons: React.FC<ColorButtonsProps>;
6
- interface ColorButtonProps {
7
- color: string;
8
- onSelect: (color: string) => void;
9
- }
10
- export declare const ColorButton: ({ color, onSelect }: ColorButtonProps) => React.JSX.Element;
11
- export {};
@@ -1,11 +0,0 @@
1
- import { default as React } from 'react';
2
- import { CustomEdgeProps } from '../../../edges';
3
- type updateEdgeDataColorsKeys = "strokeColor" | "textColor";
4
- interface EdgeStyleEditorProps {
5
- edgeData?: CustomEdgeProps;
6
- handleDataFieldUpdate: (key: updateEdgeDataColorsKeys, value: string) => void;
7
- sideElements?: React.ReactNode[];
8
- label: string;
9
- }
10
- export declare const EdgeStyleEditor: React.FC<EdgeStyleEditorProps>;
11
- export {};
@@ -1,22 +0,0 @@
1
- import { default as React } from 'react';
2
- import { DefaultNodeProps } from '../../../types';
3
- interface NodeStyleEditorProps {
4
- nodeData: DefaultNodeProps;
5
- handleDataFieldUpdate: (key: keyof DefaultNodeProps, value: string) => void;
6
- preElements?: React.ReactNode[];
7
- sideElements?: React.ReactNode[];
8
- inputPlaceholder?: string;
9
- noStrokeUpdate?: boolean;
10
- showNameInputChange?: boolean;
11
- title?: string;
12
- /**
13
- * Whether the name input accepts newlines (Enter inserts a hard break).
14
- * Default `false`. Set to `true` ONLY for node types whose SVG actually
15
- * renders wrapped labels — otherwise typing a newline would save a
16
- * character that never repaints. See `supportsMultilineName()` in
17
- * `utils/nodeUtils.ts` for the canonical per-type list.
18
- */
19
- isMultilineName?: boolean;
20
- }
21
- export declare const NodeStyleEditor: React.FC<NodeStyleEditorProps>;
22
- export {};
@@ -1,2 +0,0 @@
1
- export * from './NodeStyleEditor';
2
- export * from './EdgeStyleEditor';
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- import { TextFieldProps } from '@mui/material';
3
- export declare const TextField: React.FC<TextFieldProps>;
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- import { TypographyProps } from '@mui/material';
3
- export declare const Typography: React.FC<TypographyProps>;
@@ -1,7 +0,0 @@
1
- export * from './StereotypeButtonGroup';
2
- export * from './PrimaryButton';
3
- export * from './TextField';
4
- export * from './DividerLine';
5
- export * from './Typography';
6
- export * from './HeaderSwitchElement';
7
- export * from './StyleEditor';
@@ -1,11 +0,0 @@
1
- import { default as React } from 'react';
2
- interface AssessmentSelectableWrapperProps {
3
- elementId: string;
4
- children: React.ReactNode;
5
- asElement?: "div" | "g";
6
- }
7
- /**
8
- * Wrapper component that adds assessment selection capabilities to any element
9
- */
10
- export declare const AssessmentSelectableWrapper: React.FC<AssessmentSelectableWrapperProps>;
11
- export {};
@@ -1,10 +0,0 @@
1
- import { default as React } from 'react';
2
- interface Props {
3
- children: React.ReactNode;
4
- elementId: string;
5
- elementType?: string;
6
- asElement?: "g" | "div" | "path";
7
- className?: string;
8
- }
9
- export declare const FeedbackDropzone: React.FC<Props>;
10
- export {};
@@ -1,2 +0,0 @@
1
- export * from './AssessmentSelectableWrapper';
2
- export * from './FeedbackDropzone';
@@ -1,261 +0,0 @@
1
- import { default as React } from 'react';
2
- import { FONT_FAMILY, DEFAULT_FONT_SIZE } from './fontStack';
3
- import { DiagramNodeType } from './nodes';
4
- import { UMLDiagramType } from './types';
5
- export declare const CANVAS: Readonly<{
6
- readonly MIN_SCALE_TO_ZOOM_OUT: 0.4;
7
- readonly MAX_SCALE_TO_ZOOM_IN: 2.5;
8
- readonly MOUSE_UP_OFFSET_PX: 5;
9
- readonly SNAP_TO_GRID_PX: 5;
10
- readonly EXTRA_SPACE_FOR_EXTENSION: 10;
11
- readonly PASTE_OFFSET_PX: 20;
12
- }>;
13
- export declare const CSS_VARIABLE_FALLBACKS: Readonly<Record<string, string>>;
14
- export declare const STROKE_COLOR: string;
15
- export declare const FILL_COLOR: string;
16
- export { FONT_FAMILY, DEFAULT_FONT_SIZE };
17
- export declare const INTERACTIVE_SELECTION_COLOR: string;
18
- export declare const INTERACTIVE_SELECTION_FILL: string;
19
- export declare const LAYOUT: Readonly<{
20
- readonly DEFAULT_FONT: "400 16px Inter, system-ui, Avenir, Helvetica, Arial, sans-serif";
21
- readonly DEFAULT_HEADER_HEIGHT: 40;
22
- readonly DEFAULT_HEADER_HEIGHT_WITH_STEREOTYPE: 50;
23
- readonly DEFAULT_ATTRIBUTE_HEIGHT: 30;
24
- readonly DEFAULT_METHOD_HEIGHT: 30;
25
- readonly DEFAULT_PADDING: 10;
26
- readonly LINE_WIDTH: 2;
27
- readonly LINE_WIDTH_INTERFACE: 2;
28
- readonly LINE_WIDTH_EDGE: 2;
29
- readonly ICON_LINE_WIDTH: 1.5;
30
- /**
31
- * Typography tokens for wrapped node labels. `NAME_FONT_SIZE` is the shared
32
- * diagram text size (so measured and rendered labels agree); `NAME_LINE_HEIGHT`
33
- * is `round(size * 1.2)` — what pretext uses internally and what `MultilineText`
34
- * falls back to when no explicit line-height is passed.
35
- */
36
- readonly NAME_FONT_SIZE: 16;
37
- readonly NAME_LINE_HEIGHT: number;
38
- /** Stereotype tspans like `«component»` render at 0.8em of the name font. */
39
- readonly STEREOTYPE_LINE_HEIGHT: 15;
40
- readonly STEREOTYPE_NAME_GAP: 4;
41
- }>;
42
- /**
43
- * Treat narrow portrait viewports and short phone-landscape viewports as
44
- * mobile. The portrait bound stops just below 768px so iPads (768px portrait)
45
- * keep the regular desktop layout; the second clause catches phones in
46
- * landscape, where the short height distinguishes them from tablets.
47
- *
48
- * NOTE: mirrored in standalone/webapp/src/constants/responsive.ts (the webapp
49
- * can't import the library's curated public surface). Keep both in sync.
50
- */
51
- export declare const MOBILE_VIEW_QUERY = "(max-width: 767.95px), (max-width: 950px) and (max-height: 500px)";
52
- export declare const INTERFACE: Readonly<{
53
- readonly SIZE: 30;
54
- readonly RADIUS: number;
55
- readonly STROKE_WIDTH: 2;
56
- readonly SOCKET_GAP: 4;
57
- }>;
58
- export declare const MARKER_BASE_SIZE = 18;
59
- export declare const EDGES: Readonly<{
60
- /** Negative padding extends target point to node boundary (React Flow handles are offset 3px) */
61
- readonly MARKER_PADDING: -3;
62
- /** Positive padding pulls source point back to node boundary (React Flow handles are offset 3px from node edge) */
63
- readonly SOURCE_CONNECTION_POINT_PADDING: 3;
64
- /** Border radius for step-style edge corners */
65
- readonly STEP_BORDER_RADIUS: 0;
66
- /** Width of the invisible stroke used for edge selection/highlighting */
67
- readonly EDGE_HIGHLIGHT_STROKE_WIDTH: 15;
68
- /** Height of the line-jump bridge used when edges cross */
69
- readonly EDGE_LINE_JUMP_HEIGHT: 10;
70
- /** Length of the line-jump bridge along the crossed segment */
71
- readonly EDGE_LINE_JUMP_WIDTH: 16;
72
- /** Stub length locked to node, matches getSmoothStepPath offset */
73
- readonly STUB_LENGTH: 30;
74
- /** Minimum total edge length (screen px) for the endpoint reconnect handles
75
- * to be active. Short edges fall back to always-editable (see
76
- * useStepPathEdge), so this only gates medium/long edges. */
77
- readonly BEND_MIN_LENGTH: 100;
78
- /** Bend handle long-axis size, in screen px (the minimum kept across zoom). */
79
- readonly BEND_HANDLE_SCREEN_LENGTH_PX: 34;
80
- /** Minimum clearance, in screen px, between a bend handle and the segment's
81
- * corners — how close a handle is allowed to sit to a corner. */
82
- readonly BEND_HANDLE_CORNER_CLEARANCE_PX: 10;
83
- /** A segment shows a bend handle once its ON-SCREEN length can host the
84
- * handle with corner clearance on both sides: 34 + 2*10 = 54px. Screen-based
85
- * so zooming in reveals handles on shorter segments (and never hides them). */
86
- readonly BEND_HANDLE_MIN_SEGMENT_SCREEN_PX: number;
87
- /** "Safe area" next to a node, in flow px: a bend handle is never placed
88
- * within this distance of a node connection point, and that part of a
89
- * terminal segment is excluded when deciding whether a handle fits. Keeps
90
- * handles out of the locked stub so dragging never produces a detached
91
- * slim sliver near the node. */
92
- readonly BEND_HANDLE_SAFE_AREA_PX: 25;
93
- /** Size of the invisible endpoint hit target used for edge reconnection */
94
- readonly ENDPOINT_HIT_TARGET_SIZE: 24;
95
- /** Grid step a dragged bend snaps to; matches the canvas grid so bends line
96
- * up with grid-snapped node handles. */
97
- readonly BEND_SNAP_GRID_PX: 5;
98
- /** Connector length at/below which a *monotonic* orthogonal stair-step (a
99
- * same-direction dogleg) is treated as a rounding artifact and flattened.
100
- * Must stay strictly below BEND_SNAP_GRID_PX, otherwise the smallest
101
- * deliberate single-step bend would be flattened and the edge would snap
102
- * back to a straight line on release. */
103
- readonly ORTHOGONAL_DOGLEG_TOLERANCE_PX: 2;
104
- /** Gap at/below which two parallel arms that double back over each other
105
- * (an opposite-direction U-turn) are treated as a degenerate self-overlap
106
- * and the route is reset. Independent of the snap grid: a doubled-back
107
- * U-turn is never a deliberate edit, so this stays at the visual-merge
108
- * threshold rather than the per-step threshold. */
109
- readonly ORTHOGONAL_ARM_OVERLAP_PX: 10;
110
- /** Perpendicular gap (flow px) between an edge's mid-segment line and the
111
- * near edge of its relationship/stereotype label. The label sits this far
112
- * off the line on whichever side is clearer. */
113
- readonly LABEL_GAP: 14;
114
- /** Nominal label line height (flow px) used as the across-text depth of the
115
- * candidate box when scoring which side a label sits on. Constant by
116
- * construction — placement never measures the rendered text (mirrors the
117
- * messageLayout.ts invariant). */
118
- readonly LABEL_LINE_HEIGHT: 14;
119
- /** Nominal half-width (flow px) of a label along its text axis, used only to
120
- * build the candidate box for side scoring. Coarse on purpose: we choose a
121
- * side, not a pixel-perfect fit. */
122
- readonly LABEL_NOMINAL_HALF_EXTENT: 40;
123
- }>;
124
- export declare const ZINDEX: Readonly<{
125
- readonly BASE: 0;
126
- readonly HEADER_SWITCH: 1;
127
- readonly DRAGGABLE_GHOST: 2;
128
- readonly MINIMAP: 5;
129
- readonly PANEL: 10;
130
- readonly MODAL: 9998;
131
- readonly LABEL: 9998;
132
- readonly DRAGGABLE_ELEMENT: 9999;
133
- readonly TOOLTIP: 10000;
134
- }>;
135
- export type MarkerShape = "triangle" | "arrow" | "rhombus" | "circle" | "semicircle";
136
- export interface MarkerConfig {
137
- readonly type: MarkerShape;
138
- readonly filled: boolean;
139
- readonly size: number;
140
- readonly widthFactor: number;
141
- readonly heightFactor: number;
142
- readonly arcSpanDegrees?: number;
143
- }
144
- export declare const MARKER_CONFIGS: Readonly<{
145
- readonly "black-rhombus": {
146
- readonly type: "rhombus";
147
- readonly filled: true;
148
- readonly size: 18;
149
- readonly widthFactor: 1;
150
- readonly heightFactor: 0.618;
151
- };
152
- readonly "white-rhombus": {
153
- readonly type: "rhombus";
154
- readonly filled: false;
155
- readonly size: 18;
156
- readonly widthFactor: 1;
157
- readonly heightFactor: 0.618;
158
- };
159
- readonly "white-triangle": {
160
- readonly type: "triangle";
161
- readonly filled: false;
162
- readonly size: 18;
163
- readonly widthFactor: 1;
164
- readonly heightFactor: 0.866;
165
- };
166
- readonly "black-triangle": {
167
- readonly type: "triangle";
168
- readonly filled: true;
169
- readonly size: 18;
170
- readonly widthFactor: 1;
171
- readonly heightFactor: 0.866;
172
- };
173
- readonly "black-arrow": {
174
- readonly type: "arrow";
175
- readonly filled: false;
176
- readonly size: 18;
177
- readonly widthFactor: 1;
178
- readonly heightFactor: 0.866;
179
- };
180
- readonly "required-interface": {
181
- readonly type: "semicircle";
182
- readonly filled: false;
183
- readonly size: number;
184
- readonly widthFactor: 1;
185
- readonly heightFactor: 1;
186
- readonly arcSpanDegrees: 150;
187
- };
188
- readonly "required-interface-quarter": {
189
- readonly type: "semicircle";
190
- readonly filled: false;
191
- readonly size: number;
192
- readonly widthFactor: 1;
193
- readonly heightFactor: 1;
194
- readonly arcSpanDegrees: 90;
195
- };
196
- readonly "required-interface-threequarter": {
197
- readonly type: "semicircle";
198
- readonly filled: false;
199
- readonly size: number;
200
- readonly widthFactor: 1;
201
- readonly heightFactor: 1;
202
- readonly arcSpanDegrees: 270;
203
- };
204
- readonly "bpmn-white-triangle": {
205
- readonly type: "triangle";
206
- readonly filled: false;
207
- readonly size: 11;
208
- readonly widthFactor: 1;
209
- readonly heightFactor: 0.866;
210
- };
211
- readonly "bpmn-black-triangle": {
212
- readonly type: "triangle";
213
- readonly filled: true;
214
- readonly size: 11;
215
- readonly widthFactor: 1;
216
- readonly heightFactor: 0.866;
217
- };
218
- readonly "bpmn-white-circle": {
219
- readonly type: "circle";
220
- readonly filled: false;
221
- readonly size: 11;
222
- readonly widthFactor: 1;
223
- readonly heightFactor: 1;
224
- };
225
- readonly "bpmn-arrow": {
226
- readonly type: "arrow";
227
- readonly filled: false;
228
- readonly size: 11;
229
- readonly widthFactor: 1;
230
- readonly heightFactor: 0.866;
231
- };
232
- }>;
233
- export type MarkerId = keyof typeof MARKER_CONFIGS;
234
- export declare const MARKERS: Readonly<{
235
- readonly STROKE_WIDTH: Readonly<{
236
- readonly triangle: 1.3;
237
- readonly arrow: 1.5;
238
- readonly rhombus: 1.3;
239
- readonly circle: 1.3;
240
- readonly semicircle: 2;
241
- }>;
242
- }>;
243
- export declare const DROPS: Readonly<{
244
- readonly SIDEBAR_PREVIEW_SCALE: 0.8;
245
- readonly DEFAULT_ELEMENT_WIDTH: 160;
246
- }>;
247
- export type DropElementConfig = {
248
- readonly type: DiagramNodeType;
249
- readonly width: number;
250
- readonly height: number;
251
- /** Size of the node when dropped on the canvas, if it should differ from the
252
- * sidebar preview size (`width`/`height`). Lets a large element preview small
253
- * in the palette without shrinking the rest of the picker. */
254
- readonly dropWidth?: number;
255
- readonly dropHeight?: number;
256
- readonly defaultData?: Record<string, unknown>;
257
- readonly svg: React.FC<any>;
258
- readonly marginTop?: number;
259
- };
260
- export declare const dropElementConfigs: Readonly<Record<UMLDiagramType, ReadonlyArray<DropElementConfig>>>;
261
- export declare const ColorDescriptionConfig: DropElementConfig;
@@ -1,36 +0,0 @@
1
- import { Position } from '@xyflow/react';
2
- export interface IPoint {
3
- x: number;
4
- y: number;
5
- }
6
- export interface NodeBounds {
7
- x: number;
8
- y: number;
9
- width: number;
10
- height: number;
11
- }
12
- export declare function getPortsForElement(bounds: NodeBounds): Record<Position, IPoint>;
13
- export declare function computeOverlap(range1: [number, number], range2: [number, number]): [number, number] | null;
14
- export declare function pointsToSvgPath(points: IPoint[]): string;
15
- export declare function tryFindStraightPath(source: {
16
- position: {
17
- x: number;
18
- y: number;
19
- };
20
- width: number;
21
- height: number;
22
- direction: Position;
23
- }, target: {
24
- position: {
25
- x: number;
26
- y: number;
27
- };
28
- width: number;
29
- height: number;
30
- direction: Position;
31
- }, targetPadding: number, handleCoords?: {
32
- sourceX: number;
33
- sourceY: number;
34
- targetX: number;
35
- targetY: number;
36
- }): IPoint[] | null;
@@ -1,24 +0,0 @@
1
- import { Edge, EdgeProps } from '@xyflow/react';
2
- import { IPoint } from './Connection';
3
- export interface MessageData {
4
- id: string;
5
- text: string;
6
- direction: "target" | "source";
7
- }
8
- export type CustomEdgeProps = {
9
- sourceRole: string | null;
10
- sourceMultiplicity: string | null;
11
- targetRole: string | null;
12
- targetMultiplicity: string | null;
13
- points: IPoint[];
14
- label?: string | null;
15
- messages?: MessageData[];
16
- strokeColor?: string;
17
- textColor?: string;
18
- };
19
- export type ExtendedEdgeProps = EdgeProps<Edge<CustomEdgeProps>> & {
20
- markerEnd?: string;
21
- markerPadding?: number;
22
- strokeDashArray?: string;
23
- type: string;
24
- };
@@ -1,78 +0,0 @@
1
- import { ReactNode, PointerEvent as ReactPointerEvent } from 'react';
2
- import { Position } from '@xyflow/react';
3
- import { ExtendedEdgeProps } from './EdgeProps';
4
- import { IPoint } from './Connection';
5
- import { Assessment } from '../typings';
6
- import { BendHandle } from '../utils/geometry/bendHandles';
7
- export declare const getHandleScreenScale: (zoom: number) => number;
8
- export type BaseEdgeProps = ExtendedEdgeProps;
9
- export declare const useEdgeState: (initialPoints?: IPoint[]) => {
10
- customPoints: IPoint[];
11
- setCustomPoints: import('react').Dispatch<import('react').SetStateAction<IPoint[]>>;
12
- };
13
- type EndpointSide = Position;
14
- export declare const getEndpointHitTargetRect: (point: IPoint, side?: EndpointSide, screenScale?: number) => {
15
- x: number;
16
- y: number;
17
- width: number;
18
- height: number;
19
- radius: number;
20
- };
21
- export declare const EdgeEndpointMarkers: ({ sourcePoint, targetPoint, sourcePosition, targetPosition, isDiagramModifiable, canEditEndpoint, }: {
22
- sourcePoint: IPoint;
23
- targetPoint: IPoint;
24
- sourcePosition?: EndpointSide;
25
- targetPosition?: EndpointSide;
26
- isDiagramModifiable: boolean;
27
- canEditEndpoint?: boolean;
28
- }) => import("react").JSX.Element | null;
29
- export declare const EdgeBendHandle: ({ id, segmentIndex, position, orientation, onPointerDown, }: {
30
- id: string;
31
- segmentIndex: number;
32
- position: IPoint;
33
- orientation: "H" | "V";
34
- onPointerDown: (e: ReactPointerEvent<SVGRectElement>) => void;
35
- }) => import("react").JSX.Element;
36
- /**
37
- * The shared SVG body for every orthogonal (step-path) edge: the base path,
38
- * inline export markers, the interaction overlay, endpoint reconnect targets,
39
- * and the bend handles. Diagram-specific decorations (e.g. the SFC transition
40
- * bar) are passed as `children` and render inside the same group. Per-type
41
- * files keep only their own config, labels, and `CommonEdgeElements`.
42
- */
43
- export declare const StepEdgeBody: ({ id, markerKey, currentPath, overlayPath, pathRef, strokeColor, strokeDashArray, hasInitialCalculation, isReconnecting, isBendDragging, draggingHandleSegmentIndex, markerStart, markerEnd, sourcePoint, targetPoint, sourcePosition, targetPosition, isDiagramModifiable, canEditEndpoint, allowMidpointDragging, bendHandles, handlePointerDown, children, }: {
44
- id: string;
45
- markerKey: string;
46
- currentPath: string;
47
- overlayPath: string;
48
- pathRef: React.Ref<SVGPathElement>;
49
- strokeColor: string;
50
- strokeDashArray?: string;
51
- hasInitialCalculation: boolean;
52
- isReconnecting: boolean;
53
- isBendDragging: boolean;
54
- draggingHandleSegmentIndex: number | null;
55
- markerStart?: string;
56
- markerEnd?: string;
57
- sourcePoint: IPoint;
58
- targetPoint: IPoint;
59
- sourcePosition?: Position;
60
- targetPosition?: Position;
61
- isDiagramModifiable: boolean;
62
- canEditEndpoint: boolean;
63
- allowMidpointDragging: boolean;
64
- bendHandles: BendHandle[];
65
- handlePointerDown: (event: ReactPointerEvent<SVGRectElement>, handle: BendHandle) => void;
66
- children?: ReactNode;
67
- }) => import("react").JSX.Element;
68
- export declare const CommonEdgeElements: ({ id, pathMiddlePosition, toolbarPosition, isDiagramModifiable, assessments, handleDelete, setPopOverElementId, type, }: {
69
- id: string;
70
- pathMiddlePosition: IPoint;
71
- toolbarPosition?: IPoint;
72
- isDiagramModifiable: boolean;
73
- assessments: Record<string, Assessment>;
74
- handleDelete: () => void;
75
- setPopOverElementId: (id: string) => void;
76
- type: string;
77
- }) => import("react").JSX.Element;
78
- export {};
@@ -1,2 +0,0 @@
1
- import { BaseEdgeProps } from '../GenericEdge';
2
- export declare const ActivityDiagramEdge: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { BaseEdgeProps } from '../GenericEdge';
2
- export declare const BPMNDiagramEdge: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { BaseEdgeProps } from '../GenericEdge';
2
- export declare const ClassDiagramEdge: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { BaseEdgeProps } from '../GenericEdge';
2
- export declare const CommunicationDiagramEdge: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { BaseEdgeProps } from '../GenericEdge';
2
- export declare const ComponentDiagramEdge: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { BaseEdgeProps } from '../GenericEdge';
2
- export declare const DeploymentDiagramEdge: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { BaseEdgeProps } from '../GenericEdge';
2
- export declare const FlowChartEdge: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { BaseEdgeProps } from '../GenericEdge';
2
- export declare const ObjectDiagramEdge: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { BaseEdgeProps } from '../GenericEdge';
2
- export declare const PetriNetEdge: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { BaseEdgeProps } from '../GenericEdge';
2
- export declare const ReachabilityGraphEdge: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { BaseEdgeProps } from '../GenericEdge';
2
- export declare const SfcDiagramEdge: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { BaseEdgeProps } from '../GenericEdge';
2
- export declare const SyntaxTreeEdge: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { BaseEdgeProps } from '../GenericEdge';
2
- export declare const UseCaseEdge: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => import("react").JSX.Element;
@@ -1,6 +0,0 @@
1
- export * from './ActivityDiagramEdge';
2
- export * from './ClassDiagramEdge';
3
- export * from './UseCaseDiagramEdge';
4
- export * from './ComponentDiagramEdge';
5
- export * from './SyntaxTreeEdge';
6
- export * from './SfcDiagramEdge';
@@ -1,3 +0,0 @@
1
- export * from './types';
2
- export * from './EdgeProps';
3
- export * from './edgeTypes';
@@ -1,19 +0,0 @@
1
- import { IPoint } from '../Connection';
2
- interface EdgeEndLabelsProps {
3
- data?: {
4
- sourceRole?: string | null;
5
- targetRole?: string | null;
6
- sourceMultiplicity?: string | null;
7
- targetMultiplicity?: string | null;
8
- };
9
- activePoints: IPoint[];
10
- sourceX: number;
11
- sourceY: number;
12
- targetX: number;
13
- targetY: number;
14
- sourcePosition: string;
15
- targetPosition: string;
16
- textColor?: string;
17
- }
18
- export declare const EdgeEndLabels: ({ data, activePoints, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, textColor, }: EdgeEndLabelsProps) => import("react").JSX.Element;
19
- export {};
@@ -1,10 +0,0 @@
1
- import { IPoint } from '../Connection';
2
- interface EdgeIncludeExtendLabelsProps {
3
- sourcePoint?: IPoint;
4
- targetPoint?: IPoint;
5
- showRelationshipLabels?: boolean;
6
- relationshipType?: "include" | "extend";
7
- textColor?: string;
8
- }
9
- export declare const EdgeIncludeExtendLabel: ({ sourcePoint, targetPoint, showRelationshipLabels, relationshipType, textColor, }: EdgeIncludeExtendLabelsProps) => import("react").JSX.Element | null;
10
- export {};