@tumaet/apollon 4.9.0 → 5.0.0

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-ob7cmOn_.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,123 +0,0 @@
1
- import { IPoint } from '../../edges/Connection';
2
- /**
3
- * Pure geometry for edge-label placement, in flow space. No React, no DOM —
4
- * every output is derived synchronously from the edge's polyline so it is
5
- * identical interactively and in headless (resvg) export, and unit-testable on
6
- * its own (mirrors edges/labelTypes/messageLayout.ts, the #645 gold standard).
7
- *
8
- * The model follows the cross-tool consensus (yEd / ELK CENTER / mxGraph /
9
- * JointJS): keep the text horizontal and offset it by a constant gap onto a
10
- * perpendicular side. The label is hosted on whichever ARM of the (possibly
11
- * stepped) edge has room — scored against the edge's own arms, nodes, and
12
- * neighbour edges — defaulting to centered-on-top of the arc-mid segment when
13
- * that is already clear. Deterministic scoring, not a continuous optimizer.
14
- */
15
- export interface Rect {
16
- x: number;
17
- y: number;
18
- width: number;
19
- height: number;
20
- }
21
- export interface MidSegment {
22
- /** Rounded midpoint of the chosen mid-segment (flow space). */
23
- point: IPoint;
24
- /** Orientation of the chosen mid-segment. */
25
- isHorizontal: boolean;
26
- /** Index of the chosen segment in the collapsed polyline. */
27
- segmentIndex: number;
28
- /** The chosen segment's endpoints in source->target order. Useful to derive
29
- * the LOCAL flow direction at the middle (e.g. communication arrows) instead
30
- * of the raw node anchors, which can disagree on a bent edge. */
31
- start: IPoint;
32
- end: IPoint;
33
- }
34
- export type LabelSide = "above" | "below" | "left" | "right";
35
- export interface PlacedLabel {
36
- x: number;
37
- y: number;
38
- textAnchor: "start" | "middle" | "end";
39
- dominantBaseline: "auto" | "middle" | "hanging";
40
- /** Exposed for unit assertions; not needed for rendering. */
41
- side: LabelSide;
42
- }
43
- /**
44
- * The mid-SEGMENT midpoint and orientation, computed purely from the polyline.
45
- *
46
- * Walks the collapsed polyline accumulating Manhattan segment length (exact
47
- * because EDGES.STEP_BORDER_RADIUS === 0, so getSmoothStepPath emits no corner
48
- * arcs and the rendered path equals the polyline). The "middle" is the first
49
- * segment whose cumulative length reaches half the total; the midpoint is lerped
50
- * strictly INSIDE that one segment, so it is corner-safe — unlike sampling the
51
- * rendered path with getPointAtLength(total/2), which can land on a bend or, if
52
- * line-jump bridges are present, on a bridge arc off the straight line.
53
- */
54
- export declare function getMidSegment(renderPoints: IPoint[], fallbackSource: IPoint, fallbackTarget: IPoint): MidSegment;
55
- /**
56
- * Rough single-line text width (flow px). Deterministic — a pure character-count
57
- * estimate, never canvas measurement — so the chosen placement is identical
58
- * interactively and in headless export, and SSR-safe. Slightly generous so the
59
- * scoring box errs toward MORE clearance.
60
- */
61
- export declare function estimateLabelWidth(text: string, fontSize: number): number;
62
- /**
63
- * The text box (flow space) for a label anchored at `point` on the chosen side,
64
- * sized to the actual label (`w` × `h`). Used to score overlap against the
65
- * edge's own arms, neighbour edges, and nodes.
66
- */
67
- export declare function candidateBox(point: IPoint, side: LabelSide, w: number, h: number): Rect;
68
- /**
69
- * The other edges' polylines whose bounding box comes within `radius` of
70
- * `center`, excluding `selfId`. Bounds the neighbour scan to edges actually near
71
- * the label so placement stays O(nearby), not O(all edges) per label.
72
- */
73
- export declare function collectNeighborPolylines(geometryById: Record<string, IPoint[]>, selfId: string, center: IPoint, radius: number): IPoint[][];
74
- export interface MiddleLabelInput {
75
- /** The edge's full rendered polyline (source → target). */
76
- renderPoints: IPoint[];
77
- /** The label text — used for a width fallback when measuredWidth is absent. */
78
- labelText: string;
79
- /** Render font size (px) of the label. */
80
- fontSize: number;
81
- /** Real measured label width (px), from the rendering context. Preferred over
82
- * the character-count estimate so the scored box equals the rendered ink. */
83
- measuredWidth?: number;
84
- /** Node rects to avoid — NOT only source/target: every node the edge routes
85
- * near, so the label never lands on an unrelated node's body. */
86
- nodeRects?: Rect[];
87
- /** Nearby other-edge polylines (see collectNeighborPolylines), collected over
88
- * the WHOLE edge so they cover any arm the label may land on. */
89
- neighborGeometry?: IPoint[][];
90
- }
91
- /**
92
- * Places the relationship/stereotype middle label so it overlaps nothing it can
93
- * avoid. The label is hosted on whichever arm of the edge — and on whichever
94
- * perpendicular side — has room: each candidate (every segment × its two sides)
95
- * is scored lexicographically by
96
- * [ overlaps (own other arms + nodes + neighbour edges),
97
- * does-not-fit-within-the-segment,
98
- * distance from the arc-midpoint (keep it central),
99
- * side preference (on top / right) ].
100
- * For a simple edge the arc-mid segment wins with zero overlaps, so the label
101
- * stays centered on top exactly as before; on a zig-zag/stepped edge it moves to
102
- * a longer arm with clearance instead of crossing the short mid-segment's
103
- * neighbouring arms. All inputs are static geometry, so the placement is stable
104
- * across selection and identical in headless export.
105
- */
106
- export declare function computeMiddleLabelLayout(input: MiddleLabelInput): PlacedLabel;
107
- export interface RotatedLabelPlacement {
108
- x: number;
109
- y: number;
110
- /** Degrees; the label is rotated to lie along the connector, flipped to stay
111
- * upright. */
112
- rotation: number;
113
- }
114
- /**
115
- * Placement for a label that lies ALONG a straight (possibly diagonal)
116
- * connector — use-case association names and the <<include>>/<<extend>>
117
- * stereotype. The text is rotated to the line's slope (flipped to stay upright)
118
- * and pushed `perpendicularOffset` px off the line on the upper-left normal.
119
- * Pass 0 to center it on the line (e.g. include/extend, which sits in the gap
120
- * carved by calculateStraightPath). Centralises the rotation math that was
121
- * duplicated across the use-case label components.
122
- */
123
- export declare function computeUseCaseLabelLayout(source: IPoint, target: IPoint, perpendicularOffset: number): RotatedLabelPlacement;
@@ -1,44 +0,0 @@
1
- /**
2
- * Pure side-selection for the provided/required interface node label. The
3
- * interface is a small circle that connects only at its four directional
4
- * handles ("top"/"right"/"bottom"/"left"). The name sits centered below by
5
- * default (see InterfaceLabel), but must move off any side a connecting edge
6
- * attaches to — otherwise the label overlaps that edge. Pure and unit-testable
7
- * in the spirit of edgeLabelLayout.ts; no React, no DOM, no constants.
8
- */
9
- /** A side an edge can attach to (the four directional interface handles). */
10
- export type CardinalSide = "top" | "right" | "bottom" | "left";
11
- /**
12
- * Where the label sits relative to the circle: one of the four sides, or — when
13
- * every side has a connecting edge — a diagonal quadrant (which no cardinal edge
14
- * passes through).
15
- */
16
- export type InterfaceLabelSide = CardinalSide | "top-left" | "top-right" | "bottom-left" | "bottom-right";
17
- /** Minimal structural view of a React Flow edge (the store's `Edge[]` fits). */
18
- interface InterfaceEdgeLike {
19
- source: string;
20
- target: string;
21
- sourceHandle?: string | null;
22
- targetHandle?: string | null;
23
- }
24
- /** The sides of `nodeId` that a connecting edge attaches to. */
25
- export declare function getOccupiedInterfaceSides(edges: ReadonlyArray<InterfaceEdgeLike>, nodeId: string): Set<CardinalSide>;
26
- /**
27
- * Picks where the label sits. Prefers a free cardinal side by priority — reads
28
- * naturally under a small circle (bottom, then top, then a horizontal side).
29
- * When the assessment badge occupies the top-right corner, "top" and "right"
30
- * are demoted last so a label can't graze the badge.
31
- *
32
- * If every cardinal side has a connecting edge, the label moves into a DIAGONAL
33
- * quadrant: each cardinal edge leaves along an axis, so a corner label sits in
34
- * the gap between two of them and crosses none. Prefer a corner away from the
35
- * top-right badge.
36
- */
37
- export declare function pickInterfaceLabelSide(occupied: ReadonlySet<CardinalSide>, opts?: {
38
- badgeTopRight?: boolean;
39
- }): InterfaceLabelSide;
40
- /** Convenience: the interface label side for `nodeId` given the current edges. */
41
- export declare function computeInterfaceLabelSide(edges: ReadonlyArray<InterfaceEdgeLike>, nodeId: string, opts?: {
42
- badgeTopRight?: boolean;
43
- }): InterfaceLabelSide;
44
- export {};
@@ -1,14 +0,0 @@
1
- import { UMLModel } from '../typings';
2
- export type AssessmentViewData = {
3
- elementId: string;
4
- elementType: string;
5
- name: string;
6
- feedback: string;
7
- score: number;
8
- };
9
- export declare const getAssessmentNameForArtemis: (elementId: string, model: UMLModel) => {
10
- name: string;
11
- type: string;
12
- } | undefined;
13
- export declare const getEdgeAssessmentDataById: (edgeId: string, model: UMLModel) => AssessmentViewData | undefined;
14
- export declare const getNodeAssessmentDataByNodeElementId: (nodeElementId: string, model: UMLModel) => AssessmentViewData | undefined;
@@ -1,19 +0,0 @@
1
- export declare const generateUUID: () => string;
2
- export * from './layoutUtils';
3
- export * from './textUtils';
4
- export * from './popoverUtils';
5
- export * from './quadrantUtils';
6
- export * from './nodeUtils';
7
- export * from './edgeUtils';
8
- export * from './exportUtils';
9
- export * from './diagramTypeUtils';
10
- export * from './storeUtils';
11
- export * from './deepPartial';
12
- export * from './bpmnConstraints';
13
- export * from './swimlaneUtils';
14
- export { importDiagram } from './versionConverter';
15
- export * from './alignmentUtils';
16
- export * from './requiredInterfaceUtils';
17
- export * from './collaboration';
18
- export { wrapTextInRect, layoutTextInEllipse, layoutTextInDiamond, maxLinesForHeight, } from './svgTextLayout';
19
- export type { WrappedText, ShapeLayout, SvgFontSpec, WhiteSpaceMode, } from './svgTextLayout';
@@ -1,6 +0,0 @@
1
- import { ApollonEdge, ApollonNode, InteractiveElements } from '../typings';
2
- type InteractivePruneNode = Pick<ApollonNode, "id"> & Partial<Pick<ApollonNode, "data">>;
3
- export declare function getNestedNodeElementIds(nodes: InteractivePruneNode[]): Set<string>;
4
- export declare function pruneInteractiveElements(interactive: InteractiveElements | undefined, nodes: InteractivePruneNode[], edges: Array<Pick<ApollonEdge, "id">>): InteractiveElements | undefined;
5
- export declare function toggleInteractiveRecord(record: Record<string, boolean>, id: string): Record<string, boolean>;
6
- export {};
@@ -1,30 +0,0 @@
1
- import { DefaultNodeProps } from '../types';
2
- /**
3
- * Calculates the minimum width required to fit the text with specified padding and margin.
4
- * @param maxTextWidth - The maximum width of the text.
5
- * @param padding - The inner padding for text.
6
- * @returns The calculated minimum width.
7
- */
8
- export declare const calculateMinWidth: (maxTextWidth: number, padding: number) => number;
9
- /**
10
- * Calculates the minimum height based on header, attributes, methods, and margins.
11
- * @param headerHeight - The height of the header section.
12
- * @param attributesCount - Number of attributes.
13
- * @param methodsCount - Number of methods.
14
- * @param attributeHeight - Height per attribute.
15
- * @param methodHeight - Height per method.
16
- * @returns The calculated minimum height.
17
- */
18
- export declare const calculateMinHeight: (headerHeight: number, attributesCount: number, methodsCount: number, attributeHeight: number, methodHeight: number) => number;
19
- export declare const getCustomColorsFromData: (data: DefaultNodeProps) => {
20
- strokeColor: string;
21
- fillColor: string;
22
- textColor: string;
23
- };
24
- export declare const getCustomColorsFromDataForEdge: (data?: {
25
- strokeColor?: string;
26
- textColor?: string;
27
- }) => {
28
- strokeColor: string;
29
- textColor: string;
30
- };
@@ -1,15 +0,0 @@
1
- import { XYPosition, Node } from '@xyflow/react';
2
- export declare const getPositionOnCanvas: (node: Node, allNodes: ReadonlyArray<Node>) => XYPosition;
3
- export declare const resizeAllParents: (node: Node, allNodes: Node[]) => Node[];
4
- export declare function sortNodesTopologically(nodes: Node[]): Node[];
5
- /**
6
- * Does this node's SVG renderer wrap its label? Drives whether the rename
7
- * popover accepts multiline input — see `NODE_LABEL_CAPABILITIES`.
8
- */
9
- export declare const supportsMultilineName: (nodeType?: string) => boolean;
10
- /**
11
- * Does this node render a user-editable text label at all? False for
12
- * pure-symbol nodes so the rename popover hides its input for them.
13
- */
14
- export declare const rendersNameLabel: (nodeType?: string) => boolean;
15
- export declare const isParentNodeType: (nodeType?: string) => boolean;
@@ -1,70 +0,0 @@
1
- /**
2
- * Layout math for the floating element palette. The palette is an overlay on
3
- * the canvas (all viewports — there is no docked variant), so it must lay every
4
- * element out in a grid that fits the available canvas WITHOUT scrolling.
5
- *
6
- * Objective (in priority order):
7
- * 1. Use the FEWEST columns — a tall, narrow card preserves horizontal canvas
8
- * space, which is what you actually draw in.
9
- * 2. Fill the available VERTICAL space — a single column down the side reads
10
- * like a classic palette and wastes no height.
11
- * 3. Shrink the cells down to the `COMFORT_MIN_H` LEGIBILITY threshold BEFORE
12
- * adding a column — but no smaller: below that, spill to another column so
13
- * the node types stay distinguishable (rather than collapsing to an
14
- * illegible sliver). Cap at `CELL_MAX_H` so they're never too large. The
15
- * `CELL_MIN_H` touch floor is the last-resort fallback on a tiny canvas.
16
- *
17
- * So: walk column counts low→high and take the first one whose cells, sized to
18
- * fill the height (capped), are still at least the legibility threshold. One
19
- * column of legible cells is preferred over two columns of bigger ones; cells
20
- * shrink toward the legibility threshold first, and only spill to another column
21
- * when staying legible in fewer columns no longer fits the height.
22
- *
23
- * `availH` is the palette's REAL available band (the caller measures the space
24
- * between the palette's top and the bottom controls), so this math does NOT
25
- * re-subtract any top/bottom chrome reserve — it fills the band it is given.
26
- *
27
- * Cells are rectangular (the dominant elements — class boxes, BPMN tasks — are
28
- * ~1.6:1 wide); narrower/square elements letterbox centered inside. Sizing the
29
- * cell, not the SVG, keeps the node components untouched.
30
- */
31
- export declare const PALETTE: Readonly<{
32
- /** Absolute floor (HIG/WCAG touch) — only reached on a tiny canvas where even
33
- * spilling to more columns can't keep cells legible; never shrink past it. */
34
- readonly CELL_MIN_H: 44;
35
- /** Legibility threshold: shrink a column's cells down to here BEFORE adding
36
- * another column, but spill (rather than go smaller) so the node types stay
37
- * distinguishable. ~a comfortably legible node-preview cell. */
38
- readonly COMFORT_MIN_H: 64;
39
- /** Upper bound so few-element palettes don't get absurdly tall cells;
40
- * ~a 0.8-scale class-box preview. */
41
- readonly CELL_MAX_H: 88;
42
- /** cellW = round(CELL_RATIO * cellH); ~matches the 160×100 class box. */
43
- readonly CELL_RATIO: 1.6;
44
- readonly GAP: 8;
45
- readonly PAD: 6;
46
- /** Keep the palette horizontally narrow so the canvas keeps its width. */
47
- readonly MAX_FRAC_W: 0.5;
48
- /** Letterbox padding around the preview inside a cell. */
49
- readonly CONTENT_INSET: 6;
50
- }>;
51
- export interface PaletteLayout {
52
- cols: number;
53
- cellW: number;
54
- cellH: number;
55
- /** True only in the rare case all items can't fit even at the floor size. */
56
- scroll: boolean;
57
- }
58
- /**
59
- * @param itemCount total grid cells (drag elements + the color-description cell)
60
- * @param availW measured canvas width
61
- * @param availH measured canvas height
62
- * @param chromeH height of non-grid palette chrome (view switch / hint), 0 if none
63
- */
64
- export declare function computePaletteLayout(itemCount: number, availW: number, availH: number, chromeH: number): PaletteLayout;
65
- /**
66
- * Preview scale that fits an element's natural size into a cell's content box.
67
- * Elements fill their cell (so they read "big"); wide boxes fit width, tall/
68
- * square nodes fit height and letterbox.
69
- */
70
- export declare function previewScaleForCell(naturalWidth: number, naturalHeight: number, cellW: number, cellH: number): number;
@@ -1,54 +0,0 @@
1
- /**
2
- * SVG Path Parsing Utilities
3
- *
4
- * Parses SVG path commands to extract endpoint positions and directions.
5
- * Used by InlineMarker to correctly position and orient edge markers.
6
- *
7
- * Supports all SVG path commands including relative coordinates.
8
- */
9
- export interface Point {
10
- readonly x: number;
11
- readonly y: number;
12
- }
13
- export interface PathEndInfo {
14
- /** The endpoint coordinates */
15
- readonly endPoint: Point;
16
- /** Direction angle in radians (from previous point to endpoint) */
17
- readonly direction: number;
18
- }
19
- export interface PathStartInfo {
20
- /** The start point coordinates */
21
- readonly startPoint: Point;
22
- /** Direction angle in radians (pointing into the start, away from second point) */
23
- readonly direction: number;
24
- }
25
- /**
26
- * Calculate the direction angle from point A to point B.
27
- */
28
- export declare function calculateDirection(from: Point, to: Point): number;
29
- /**
30
- * Extract endpoint information from an SVG path.
31
- *
32
- * Parses the path to find the final position and the direction of approach.
33
- * The direction is calculated from the control point (or previous point) to the endpoint.
34
- *
35
- * @param pathD - SVG path data string (e.g., "M0,0 L100,100")
36
- * @returns Endpoint info or null if path is invalid
37
- */
38
- export declare function getPathEndInfo(pathD: string): PathEndInfo | null;
39
- /**
40
- * Extract start point information from an SVG path.
41
- *
42
- * @param pathD - SVG path data string
43
- * @returns Start point info or null if path is invalid
44
- */
45
- export declare function getPathStartInfo(pathD: string): PathStartInfo | null;
46
- /**
47
- * Extract marker ID from a url() reference.
48
- *
49
- * @example
50
- * extractMarkerId("url(#black-arrow)") // "black-arrow"
51
- * extractMarkerId("url('#my-marker')") // "my-marker"
52
- * extractMarkerId(undefined) // null
53
- */
54
- export declare function extractMarkerId(markerUrl: string | undefined): string | null;
@@ -1,3 +0,0 @@
1
- import { Quadrant } from '../enums';
2
- import { LocationPopover } from '../types';
3
- export declare const getPopoverOrigin: (quadrant: Quadrant) => LocationPopover;
@@ -1,3 +0,0 @@
1
- import { Quadrant } from '../enums';
2
- import { XYPosition } from '@xyflow/react';
3
- export declare const getQuadrant: (target: XYPosition, reference: XYPosition) => Quadrant;
@@ -1,18 +0,0 @@
1
- type RequiredInterfaceLikeEdge = {
2
- id: string;
3
- target: string;
4
- type?: string | null;
5
- targetHandle?: string | null;
6
- };
7
- type ResolveRequiredInterfaceEdgeTypeParams = {
8
- type: string;
9
- id: string;
10
- target: string;
11
- targetHandleId?: string | null;
12
- edges: RequiredInterfaceLikeEdge[];
13
- requiredTypes: readonly string[];
14
- defaultType: string;
15
- reducedType: string;
16
- };
17
- export declare function resolveRequiredInterfaceEdgeType({ type, id, target, targetHandleId, edges, requiredTypes, defaultType, reducedType, }: ResolveRequiredInterfaceEdgeTypeParams): string;
18
- export {};
@@ -1 +0,0 @@
1
- export declare const deepEqual: (a: unknown, b: unknown) => boolean;
@@ -1,86 +0,0 @@
1
- /** Compact spec for a text style. Converted into a canvas `font` shorthand. */
2
- export type SvgFontSpec = {
3
- fontSize: number;
4
- fontWeight?: string | number;
5
- fontFamily?: string;
6
- fontStyle?: string;
7
- };
8
- export declare const toCanvasFont: (spec: SvgFontSpec) => string;
9
- /** How to treat whitespace during layout. Mirrors a CSS `white-space` subset. */
10
- export type WhiteSpaceMode = "normal" | "pre-wrap";
11
- /**
12
- * Invalidate every cached preparation. Call this when the set of available
13
- * fonts changes (e.g. a webfont just finished loading) so that subsequent
14
- * measurements use the real font metrics rather than the fallback's.
15
- */
16
- export declare const clearPrepareCache: () => void;
17
- /**
18
- * Convenience: the most lines of `lineHeight` that can stack vertically in
19
- * `availableHeight` pixels. Always returns at least 1. Useful for SVG nodes
20
- * whose inner drawable area has a known vertical budget (rectangle height
21
- * minus top/bottom padding, for instance) and who want to cap
22
- * `MultilineText`'s `maxLines` so wrapping never overflows the shape.
23
- */
24
- export declare const maxLinesForHeight: (availableHeight: number, lineHeight: number) => number;
25
- export type WrappedText = {
26
- lines: string[];
27
- /**
28
- * Measured width of the widest laid-out line, in CSS px. Does not account
29
- * for any ellipsis a caller may append after truncation.
30
- */
31
- maxLineWidth: number;
32
- /** Whether every grapheme of the input was consumed by the layout. */
33
- overflow: boolean;
34
- };
35
- /**
36
- * Wrap text inside a rectangle of `maxWidth`. Word-break is CSS `normal`.
37
- * When `whiteSpace` is `"pre-wrap"` (the default), literal `\n` characters in
38
- * the input become hard line breaks; when it is `"normal"` whitespace runs
39
- * collapse the way CSS normally collapses them.
40
- *
41
- * Returns the resulting lines, the widest line's measured width, and whether
42
- * any content was dropped (i.e. could not fit within `maxLines`).
43
- */
44
- export declare const wrapTextInRect: (text: string, maxWidth: number, font: SvgFontSpec | string, options?: {
45
- maxLines?: number;
46
- lineHeight?: number;
47
- whiteSpace?: WhiteSpaceMode;
48
- }) => WrappedText;
49
- export type ShapeLayout = {
50
- /** Materialized lines (from pretext). `text` already includes any ellipsis. */
51
- lines: {
52
- text: string;
53
- width: number;
54
- }[];
55
- lineHeight: number;
56
- /** Signed y-offsets (relative to shape center) of each line's visual center. */
57
- lineOffsets: number[];
58
- /** Total vertical span of the laid-out block. */
59
- blockHeight: number;
60
- /** True when input text exceeded the shape's capacity and was truncated. */
61
- overflow: boolean;
62
- };
63
- type ShapeOptions = {
64
- paddingX?: number;
65
- paddingY?: number;
66
- /** Cap on how many lines we will try to fit. Defaults to a generous value. */
67
- maxLines?: number;
68
- /** Same semantics as `wrapTextInRect`'s `whiteSpace`. */
69
- whiteSpace?: WhiteSpaceMode;
70
- };
71
- /**
72
- * Lay out `text` inside an ellipse of size `width`×`height`, respecting the
73
- * ellipse's curvature so lines near the top and bottom get a narrower max
74
- * width than lines near the middle. When the text does not fit, the final
75
- * visible line is suffixed with a horizontal ellipsis.
76
- */
77
- export declare const layoutTextInEllipse: (text: string, width: number, height: number, font: SvgFontSpec | string, lineHeight: number, options?: ShapeOptions) => ShapeLayout;
78
- /**
79
- * Lay out `text` inside a rhombus / diamond of size `width`×`height`. The
80
- * inner width varies linearly with the distance from the vertical center
81
- * (full width at the middle, zero at the top and bottom vertices). Lines
82
- * near the vertices therefore get narrower line boxes, and overflow is
83
- * marked with a horizontal ellipsis on the last visible line.
84
- */
85
- export declare const layoutTextInDiamond: (text: string, width: number, height: number, font: SvgFontSpec | string, lineHeight: number, options?: ShapeOptions) => ShapeLayout;
86
- export {};
@@ -1,58 +0,0 @@
1
- import { SwimlaneLane } from '../types';
2
- /** Smallest a lane may be shrunk to (flow px) when dragging a separator. */
3
- export declare const MIN_LANE_EXTENT = 40;
4
- /**
5
- * Pixel `start`/`extent` of every lane along the primary axis.
6
- *
7
- * Lane sizes are stored as absolute flow px. The **last** lane is elastic: it
8
- * always fills the remaining space. That way resizing the whole swimlane only
9
- * grows/shrinks the last lane — the interior separators stay put — instead of
10
- * rescaling every lane (which would move every separator). Lanes with no size
11
- * at all (a freshly dropped swimlane) divide the axis equally.
12
- */
13
- export declare const getLaneOffsets: (lanes: {
14
- size?: number;
15
- }[], primaryExtent: number) => {
16
- start: number;
17
- extent: number;
18
- }[];
19
- /**
20
- * Pin every lane's current rendered extent as its `size`, so the elastic last
21
- * lane gets a concrete value before an operation (reorder/add/remove) that
22
- * changes which lane is last.
23
- */
24
- export declare const materializeLaneSizes: (lanes: SwimlaneLane[], primaryExtent: number) => SwimlaneLane[];
25
- /** Index of the lane whose range contains the primary-axis coordinate `pos`. */
26
- export declare const laneIndexAtOffset: (offsets: {
27
- start: number;
28
- extent: number;
29
- }[], pos: number) => number;
30
- /**
31
- * Balanced resize of the divider between lane `index` and `index + 1`: move the
32
- * shared boundary by `deltaPx`, growing one lane and shrinking the other by the
33
- * same amount so the swimlane's outer size never changes. Neither lane drops
34
- * below `MIN_LANE_EXTENT`. Returns lanes with an explicit `size` on every entry.
35
- *
36
- * When `snapGridPx > 0` the moved boundary is snapped to that grid, so a lane
37
- * separator lands on the same grid that nodes and edge bends snap to. The lane
38
- * offsets are measured from the swimlane's own origin, which React Flow already
39
- * keeps grid-aligned, so the snapped boundary lines up with the absolute grid.
40
- */
41
- export declare const resizeLaneDivider: (lanes: SwimlaneLane[], index: number, deltaPx: number, primaryExtent: number, snapGridPx?: number) => SwimlaneLane[];
42
- /**
43
- * Reposition a swimlane child when orientation flips and the swimlane's
44
- * width/height swap: transpose the child's corner (x,y)->(y,x), then clamp it
45
- * into the swapped frame by its own size so it can't be stranded off the new
46
- * (shorter) cross-axis. `newWidth`/`newHeight` are the post-swap dimensions.
47
- */
48
- export declare const flipSwimlaneChildPosition: (child: {
49
- position: {
50
- x: number;
51
- y: number;
52
- };
53
- width?: number;
54
- height?: number;
55
- }, newWidth: number, newHeight: number) => {
56
- x: number;
57
- y: number;
58
- };
@@ -1 +0,0 @@
1
- export declare const measureTextWidth: (text: string, font?: string) => number;