@tumaet/apollon 4.8.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 (394) hide show
  1. package/README.md +30 -41
  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 +368 -61
  8. package/dist/index.js +16853 -35703
  9. package/dist/internals.d.ts +31 -10
  10. package/dist/internals.js +28 -45
  11. package/dist/versionConverter-C-s36Ory.js +4769 -0
  12. package/package.json +37 -72
  13. package/schema/uml-model-4.schema.json +1 -0
  14. package/dist/exportFonts-DxO9jrR1.js +0 -19
  15. package/dist/exportStyles-Wcc8N8Xj.js +0 -5
  16. package/dist/fontStack-DOtVH2j8.js +0 -5
  17. package/dist/react/App.d.ts +0 -9
  18. package/dist/react/LICENSE-InterFont +0 -92
  19. package/dist/react/apollon-editor.d.ts +0 -131
  20. package/dist/react/components/AlignmentGuides.d.ts +0 -1
  21. package/dist/react/components/AssessmentSelectableElement.d.ts +0 -10
  22. package/dist/react/components/AssessmentSelectionDebug.d.ts +0 -1
  23. package/dist/react/components/CustomBackground.d.ts +0 -1
  24. package/dist/react/components/CustomControls.d.ts +0 -1
  25. package/dist/react/components/CustomMiniMap.d.ts +0 -1
  26. package/dist/react/components/DraggableGhost.d.ts +0 -13
  27. package/dist/react/components/Icon/ArrowBackIcon.d.ts +0 -4
  28. package/dist/react/components/Icon/ArrowForwardIcon.d.ts +0 -4
  29. package/dist/react/components/Icon/CheckIcon.d.ts +0 -4
  30. package/dist/react/components/Icon/CrossIcon.d.ts +0 -4
  31. package/dist/react/components/Icon/DeleteIcon.d.ts +0 -4
  32. package/dist/react/components/Icon/DragHandleIcon.d.ts +0 -4
  33. package/dist/react/components/Icon/EditIcon.d.ts +0 -4
  34. package/dist/react/components/Icon/ExclamationIcon.d.ts +0 -4
  35. package/dist/react/components/Icon/InfiniteIcon.d.ts +0 -4
  36. package/dist/react/components/Icon/MapIcon.d.ts +0 -4
  37. package/dist/react/components/Icon/PaintRollerIcon.d.ts +0 -2
  38. package/dist/react/components/Icon/RedoIcon.d.ts +0 -2
  39. package/dist/react/components/Icon/SouthEastArrowIcon.d.ts +0 -4
  40. package/dist/react/components/Icon/SwapHorizIcon.d.ts +0 -4
  41. package/dist/react/components/Icon/UndoIcon.d.ts +0 -2
  42. package/dist/react/components/Icon/index.d.ts +0 -14
  43. package/dist/react/components/ReconnectConnectionLine.d.ts +0 -2
  44. package/dist/react/components/ScrollOverlay.d.ts +0 -7
  45. package/dist/react/components/Sidebar.d.ts +0 -2
  46. package/dist/react/components/collaboration/CollaborationLayer.d.ts +0 -25
  47. package/dist/react/components/collaboration/coordinates.d.ts +0 -7
  48. package/dist/react/components/index.d.ts +0 -18
  49. package/dist/react/components/popovers/DefaultNodeEditPopover.d.ts +0 -2
  50. package/dist/react/components/popovers/DefaultNodeGiveFeedbackPopover.d.ts +0 -2
  51. package/dist/react/components/popovers/DefaultNodeSeeFeedbackPopover.d.ts +0 -2
  52. package/dist/react/components/popovers/GenericPopover.d.ts +0 -17
  53. package/dist/react/components/popovers/GiveFeedbackAssessmentBox.d.ts +0 -7
  54. package/dist/react/components/popovers/PopoverManager.d.ts +0 -10
  55. package/dist/react/components/popovers/SeeFeedbackAssessmentBox.d.ts +0 -5
  56. package/dist/react/components/popovers/bpmnDiagram/BPMNEndEventEditPopover.d.ts +0 -2
  57. package/dist/react/components/popovers/bpmnDiagram/BPMNGatewayEditPopover.d.ts +0 -2
  58. package/dist/react/components/popovers/bpmnDiagram/BPMNIntermediateEventEditPopover.d.ts +0 -2
  59. package/dist/react/components/popovers/bpmnDiagram/BPMNPoolEditPopover.d.ts +0 -2
  60. package/dist/react/components/popovers/bpmnDiagram/BPMNStartEventEditPopover.d.ts +0 -2
  61. package/dist/react/components/popovers/bpmnDiagram/BPMNTaskEditPopover.d.ts +0 -2
  62. package/dist/react/components/popovers/bpmnDiagram/index.d.ts +0 -6
  63. package/dist/react/components/popovers/classDiagram/ClassEditPopover.d.ts +0 -2
  64. package/dist/react/components/popovers/classDiagram/ClassGiveFeedbackPopover.d.ts +0 -2
  65. package/dist/react/components/popovers/classDiagram/ClassSeeFeedbackPopover.d.ts +0 -2
  66. package/dist/react/components/popovers/classDiagram/EditableAttributesList.d.ts +0 -6
  67. package/dist/react/components/popovers/classDiagram/EditableMethodsList.d.ts +0 -6
  68. package/dist/react/components/popovers/classDiagram/index.d.ts +0 -6
  69. package/dist/react/components/popovers/communicationDiagram/CommunicationObjectNameEditPopover.d.ts +0 -2
  70. package/dist/react/components/popovers/communicationDiagram/CommunicationObjectNameGiveFeedbackPopover.d.ts +0 -2
  71. package/dist/react/components/popovers/communicationDiagram/CommunicationObjectNameSeeFeedbackPopover.d.ts +0 -2
  72. package/dist/react/components/popovers/communicationDiagram/index.d.ts +0 -3
  73. package/dist/react/components/popovers/componentDiagram/ComponentEditPopover.d.ts +0 -2
  74. package/dist/react/components/popovers/componentDiagram/ComponentSubsystemEditPopover.d.ts +0 -2
  75. package/dist/react/components/popovers/componentDiagram/index.d.ts +0 -2
  76. package/dist/react/components/popovers/deploymentDiagram/DeploymentComponentEditPopover.d.ts +0 -2
  77. package/dist/react/components/popovers/deploymentDiagram/DeploymentNodeEditPopover.d.ts +0 -2
  78. package/dist/react/components/popovers/deploymentDiagram/index.d.ts +0 -2
  79. package/dist/react/components/popovers/edgePopovers/ActivityDiagramEdgeEditPopover.d.ts +0 -2
  80. package/dist/react/components/popovers/edgePopovers/BPMNDiagramEdgeEditPopover.d.ts +0 -2
  81. package/dist/react/components/popovers/edgePopovers/ClassDiagramEdgeEditPopover.d.ts +0 -2
  82. package/dist/react/components/popovers/edgePopovers/CommunicationDiagramEdgeEditPopover.d.ts +0 -2
  83. package/dist/react/components/popovers/edgePopovers/ComponentDiagramEdgeEditPopover.d.ts +0 -2
  84. package/dist/react/components/popovers/edgePopovers/DeploymentDiagramEdgeEditPopover.d.ts +0 -2
  85. package/dist/react/components/popovers/edgePopovers/EdgeGiveFeedbackPopover.d.ts +0 -2
  86. package/dist/react/components/popovers/edgePopovers/EdgeSeeFeedbackPopover.d.ts +0 -2
  87. package/dist/react/components/popovers/edgePopovers/EdgeTypePreviewIcon.d.ts +0 -3
  88. package/dist/react/components/popovers/edgePopovers/EdgeTypeSelect.d.ts +0 -9
  89. package/dist/react/components/popovers/edgePopovers/FlowChartEdgeEditPopover.d.ts +0 -2
  90. package/dist/react/components/popovers/edgePopovers/ObjectDiagramEdgeEditPopover.d.ts +0 -2
  91. package/dist/react/components/popovers/edgePopovers/PetriNetEdgeEditPopover.d.ts +0 -2
  92. package/dist/react/components/popovers/edgePopovers/ReachabilityGraphEdgeEditPopover.d.ts +0 -2
  93. package/dist/react/components/popovers/edgePopovers/SwapEndsButton.d.ts +0 -9
  94. package/dist/react/components/popovers/edgePopovers/SyntaxTreeEdgeEditPopover.d.ts +0 -2
  95. package/dist/react/components/popovers/edgePopovers/UseCaseDiagramEdgeEditPopover.d.ts +0 -2
  96. package/dist/react/components/popovers/edgePopovers/index.d.ts +0 -8
  97. package/dist/react/components/popovers/index.d.ts +0 -3
  98. package/dist/react/components/popovers/objectDiagram/ObjectEditPopover.d.ts +0 -2
  99. package/dist/react/components/popovers/objectDiagram/ObjectGiveFeedbackPopover.d.ts +0 -2
  100. package/dist/react/components/popovers/objectDiagram/ObjectSeeFeedbackPopover.d.ts +0 -2
  101. package/dist/react/components/popovers/objectDiagram/index.d.ts +0 -3
  102. package/dist/react/components/popovers/petriNetDiagram/PetriNetPlaceEditPopover.d.ts +0 -2
  103. package/dist/react/components/popovers/petriNetDiagram/index.d.ts +0 -1
  104. package/dist/react/components/popovers/reachabilityGraphDiagram/ReachabilityGraphMarkingEditPopover.d.ts +0 -2
  105. package/dist/react/components/popovers/reachabilityGraphDiagram/index.d.ts +0 -1
  106. package/dist/react/components/popovers/sfcDiagram/SfcActionTableEditPopover.d.ts +0 -3
  107. package/dist/react/components/popovers/sfcDiagram/SfcEdgeEditPopover.d.ts +0 -2
  108. package/dist/react/components/popovers/sfcDiagram/index.d.ts +0 -2
  109. package/dist/react/components/popovers/syntaxTreeDiagram/SyntaxTreeNonterminalEditPopover.d.ts +0 -2
  110. package/dist/react/components/popovers/syntaxTreeDiagram/SyntaxTreeTerminalEditPopover.d.ts +0 -2
  111. package/dist/react/components/popovers/syntaxTreeDiagram/index.d.ts +0 -2
  112. package/dist/react/components/popovers/types.d.ts +0 -6
  113. package/dist/react/components/react/Apollon.d.ts +0 -50
  114. package/dist/react/components/react/context.d.ts +0 -16
  115. package/dist/react/components/react/useApollonSubscription.d.ts +0 -17
  116. package/dist/react/components/svgs/AssessmentIcon.d.ts +0 -8
  117. package/dist/react/components/svgs/StyledElements.d.ts +0 -2
  118. package/dist/react/components/svgs/edges/InlineMarker.d.ts +0 -70
  119. package/dist/react/components/svgs/edges/index.d.ts +0 -1
  120. package/dist/react/components/svgs/index.d.ts +0 -3
  121. package/dist/react/components/svgs/nodes/CustomText.d.ts +0 -10
  122. package/dist/react/components/svgs/nodes/HeaderSection.d.ts +0 -14
  123. package/dist/react/components/svgs/nodes/MultilineText.d.ts +0 -51
  124. package/dist/react/components/svgs/nodes/RowBlockSection.d.ts +0 -15
  125. package/dist/react/components/svgs/nodes/SeparationLine.d.ts +0 -8
  126. package/dist/react/components/svgs/nodes/StereotypeAndName.d.ts +0 -54
  127. package/dist/react/components/svgs/nodes/activityDiagram/ActivityActionNodeSVG.d.ts +0 -6
  128. package/dist/react/components/svgs/nodes/activityDiagram/ActivityFinalNodeSVG.d.ts +0 -2
  129. package/dist/react/components/svgs/nodes/activityDiagram/ActivityForkNodeHorizontalSVG.d.ts +0 -7
  130. package/dist/react/components/svgs/nodes/activityDiagram/ActivityForkNodeSVG.d.ts +0 -7
  131. package/dist/react/components/svgs/nodes/activityDiagram/ActivityInitialNodeSVG.d.ts +0 -2
  132. package/dist/react/components/svgs/nodes/activityDiagram/ActivityMergeNodeSVG.d.ts +0 -7
  133. package/dist/react/components/svgs/nodes/activityDiagram/ActivityObjectNodeSVG.d.ts +0 -7
  134. package/dist/react/components/svgs/nodes/activityDiagram/ActivitySVG.d.ts +0 -6
  135. package/dist/react/components/svgs/nodes/activityDiagram/index.d.ts +0 -8
  136. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNAnnotationNodeSVG.d.ts +0 -7
  137. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNDataObjectNodeSVG.d.ts +0 -7
  138. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNDataStoreNodeSVG.d.ts +0 -7
  139. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNEventNodeSVG.d.ts +0 -8
  140. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNGatewayNodeSVG.d.ts +0 -7
  141. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNGroupNodeSVG.d.ts +0 -7
  142. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNPoolNodeSVG.d.ts +0 -7
  143. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNSubprocessNodeSVG.d.ts +0 -8
  144. package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNTaskNodeSVG.d.ts +0 -6
  145. package/dist/react/components/svgs/nodes/bpmnDiagram/index.d.ts +0 -9
  146. package/dist/react/components/svgs/nodes/classDiagram/ClassSVG.d.ts +0 -10
  147. package/dist/react/components/svgs/nodes/classDiagram/ColorDescriptionSVG.d.ts +0 -10
  148. package/dist/react/components/svgs/nodes/classDiagram/PackageSVG.d.ts +0 -6
  149. package/dist/react/components/svgs/nodes/classDiagram/TitleAndDescriptionSVG.d.ts +0 -11
  150. package/dist/react/components/svgs/nodes/classDiagram/index.d.ts +0 -4
  151. package/dist/react/components/svgs/nodes/communicationDiagram/CommunicationObjectNameSVG.d.ts +0 -6
  152. package/dist/react/components/svgs/nodes/communicationDiagram/index.d.ts +0 -1
  153. package/dist/react/components/svgs/nodes/componentDiagram/ComponentInterfaceNodeSVG.d.ts +0 -7
  154. package/dist/react/components/svgs/nodes/componentDiagram/ComponentNodeSVG.d.ts +0 -7
  155. package/dist/react/components/svgs/nodes/componentDiagram/ComponentSubsystemNodeSVG.d.ts +0 -7
  156. package/dist/react/components/svgs/nodes/componentDiagram/index.d.ts +0 -3
  157. package/dist/react/components/svgs/nodes/deploymentDiagram/DeploymentArtifactSVG.d.ts +0 -7
  158. package/dist/react/components/svgs/nodes/deploymentDiagram/DeploymentComponentSVG.d.ts +0 -7
  159. package/dist/react/components/svgs/nodes/deploymentDiagram/DeploymentInterfaceSVG.d.ts +0 -7
  160. package/dist/react/components/svgs/nodes/deploymentDiagram/DeploymentNodeSVG.d.ts +0 -7
  161. package/dist/react/components/svgs/nodes/deploymentDiagram/index.d.ts +0 -4
  162. package/dist/react/components/svgs/nodes/flowchartDiagram/FlowchartDecisionNodeSVG.d.ts +0 -7
  163. package/dist/react/components/svgs/nodes/flowchartDiagram/FlowchartFunctionCallNodeSVG.d.ts +0 -7
  164. package/dist/react/components/svgs/nodes/flowchartDiagram/FlowchartInputOutputNodeSVG.d.ts +0 -7
  165. package/dist/react/components/svgs/nodes/flowchartDiagram/FlowchartProcessNodeSVG.d.ts +0 -7
  166. package/dist/react/components/svgs/nodes/flowchartDiagram/FlowchartTerminalNodeSVG.d.ts +0 -7
  167. package/dist/react/components/svgs/nodes/flowchartDiagram/index.d.ts +0 -5
  168. package/dist/react/components/svgs/nodes/index.d.ts +0 -13
  169. package/dist/react/components/svgs/nodes/objectDiagram/ObjectNameSVG.d.ts +0 -7
  170. package/dist/react/components/svgs/nodes/objectDiagram/index.d.ts +0 -1
  171. package/dist/react/components/svgs/nodes/petriNetDiagram/PetriNetPlaceSVG.d.ts +0 -7
  172. package/dist/react/components/svgs/nodes/petriNetDiagram/PetriNetTransitionSVG.d.ts +0 -7
  173. package/dist/react/components/svgs/nodes/petriNetDiagram/index.d.ts +0 -2
  174. package/dist/react/components/svgs/nodes/reachabilityGraphDiagram/ReachabilityGraphMarkingSVG.d.ts +0 -7
  175. package/dist/react/components/svgs/nodes/reachabilityGraphDiagram/index.d.ts +0 -1
  176. package/dist/react/components/svgs/nodes/sfcDiagram/SfcActionTableNodeSVG.d.ts +0 -7
  177. package/dist/react/components/svgs/nodes/sfcDiagram/SfcJumpNodeSVG.d.ts +0 -7
  178. package/dist/react/components/svgs/nodes/sfcDiagram/SfcStartNodeSVG.d.ts +0 -7
  179. package/dist/react/components/svgs/nodes/sfcDiagram/SfcStepNodeSVG.d.ts +0 -7
  180. package/dist/react/components/svgs/nodes/sfcDiagram/SfcTransitionBranchNodeSVG.d.ts +0 -7
  181. package/dist/react/components/svgs/nodes/sfcDiagram/index.d.ts +0 -5
  182. package/dist/react/components/svgs/nodes/syntaxTreeDiagram/SyntaxTreeNonterminalNodeSVG.d.ts +0 -7
  183. package/dist/react/components/svgs/nodes/syntaxTreeDiagram/SyntaxTreeTerminalNodeSVG.d.ts +0 -7
  184. package/dist/react/components/svgs/nodes/syntaxTreeDiagram/index.d.ts +0 -2
  185. package/dist/react/components/svgs/nodes/useCaseDiagram/UseCaseActorNodeSVG.d.ts +0 -7
  186. package/dist/react/components/svgs/nodes/useCaseDiagram/UseCaseNodeSVG.d.ts +0 -7
  187. package/dist/react/components/svgs/nodes/useCaseDiagram/UseCaseSystemNodeSVG.d.ts +0 -7
  188. package/dist/react/components/svgs/nodes/useCaseDiagram/index.d.ts +0 -3
  189. package/dist/react/components/toolbars/NodeToolbar.d.ts +0 -7
  190. package/dist/react/components/toolbars/edgeToolBar/CustomEdgeToolBar.d.ts +0 -12
  191. package/dist/react/components/toolbars/edgeToolBar/index.d.ts +0 -1
  192. package/dist/react/components/toolbars/index.d.ts +0 -1
  193. package/dist/react/components/ui/DividerLine.d.ts +0 -9
  194. package/dist/react/components/ui/HeaderSwitchElement.d.ts +0 -7
  195. package/dist/react/components/ui/PrimaryButton.d.ts +0 -8
  196. package/dist/react/components/ui/StereotypeButtonGroup.d.ts +0 -8
  197. package/dist/react/components/ui/StyleEditor/ColorButtons.d.ts +0 -11
  198. package/dist/react/components/ui/StyleEditor/EdgeStyleEditor.d.ts +0 -11
  199. package/dist/react/components/ui/StyleEditor/NodeStyleEditor.d.ts +0 -22
  200. package/dist/react/components/ui/StyleEditor/index.d.ts +0 -2
  201. package/dist/react/components/ui/TextField.d.ts +0 -3
  202. package/dist/react/components/ui/Typography.d.ts +0 -3
  203. package/dist/react/components/ui/index.d.ts +0 -7
  204. package/dist/react/components/wrapper/AssessmentSelectableWrapper.d.ts +0 -11
  205. package/dist/react/components/wrapper/FeedbackDropzone.d.ts +0 -10
  206. package/dist/react/components/wrapper/index.d.ts +0 -2
  207. package/dist/react/constants.d.ts +0 -243
  208. package/dist/react/edges/Connection.d.ts +0 -36
  209. package/dist/react/edges/EdgeProps.d.ts +0 -24
  210. package/dist/react/edges/GenericEdge.d.ts +0 -78
  211. package/dist/react/edges/edgeTypes/ActivityDiagramEdge.d.ts +0 -2
  212. package/dist/react/edges/edgeTypes/BPMNDiagramEdge.d.ts +0 -2
  213. package/dist/react/edges/edgeTypes/ClassDiagramEdge.d.ts +0 -2
  214. package/dist/react/edges/edgeTypes/CommunicationDiagramEdge.d.ts +0 -2
  215. package/dist/react/edges/edgeTypes/ComponentDiagramEdge.d.ts +0 -2
  216. package/dist/react/edges/edgeTypes/DeploymentDiagramEdge.d.ts +0 -2
  217. package/dist/react/edges/edgeTypes/FlowChartEdge.d.ts +0 -2
  218. package/dist/react/edges/edgeTypes/ObjectDiagramEdge.d.ts +0 -2
  219. package/dist/react/edges/edgeTypes/PetriNetEdge.d.ts +0 -2
  220. package/dist/react/edges/edgeTypes/ReachabilityGraphArc.d.ts +0 -2
  221. package/dist/react/edges/edgeTypes/SfcDiagramEdge.d.ts +0 -2
  222. package/dist/react/edges/edgeTypes/SyntaxTreeEdge.d.ts +0 -2
  223. package/dist/react/edges/edgeTypes/UseCaseDiagramEdge.d.ts +0 -2
  224. package/dist/react/edges/edgeTypes/index.d.ts +0 -6
  225. package/dist/react/edges/index.d.ts +0 -3
  226. package/dist/react/edges/labelTypes/EdgeEndLabels.d.ts +0 -19
  227. package/dist/react/edges/labelTypes/EdgeIncludeExtendLabel.d.ts +0 -13
  228. package/dist/react/edges/labelTypes/EdgeMiddleLabels.d.ts +0 -15
  229. package/dist/react/edges/labelTypes/EdgeMultipleLabels.d.ts +0 -15
  230. package/dist/react/edges/types.d.ts +0 -153
  231. package/dist/react/enums/Quadrant.d.ts +0 -6
  232. package/dist/react/enums/index.d.ts +0 -1
  233. package/dist/react/export/exportErrors.d.ts +0 -10
  234. package/dist/react/export/index.d.ts +0 -13
  235. package/dist/react/export/normalizeExportSvg.d.ts +0 -16
  236. package/dist/react/export/preProcessSvgForPdf.d.ts +0 -20
  237. package/dist/react/export/svgToPdf.d.ts +0 -17
  238. package/dist/react/export/svgToPng.d.ts +0 -38
  239. package/dist/react/exportFonts-DSRUaduf.js +0 -20
  240. package/dist/react/exportStyles-CH2hautV.js +0 -6
  241. package/dist/react/fontStack.d.ts +0 -14
  242. package/dist/react/hooks/index.d.ts +0 -19
  243. package/dist/react/hooks/useAssessmentSelection.d.ts +0 -13
  244. package/dist/react/hooks/useConnect.d.ts +0 -7
  245. package/dist/react/hooks/useDiagramModifiable.d.ts +0 -1
  246. package/dist/react/hooks/useDragOver.d.ts +0 -2
  247. package/dist/react/hooks/useDropFeedback.d.ts +0 -7
  248. package/dist/react/hooks/useEdgeConfig.d.ts +0 -83
  249. package/dist/react/hooks/useEdgeLineJumps.d.ts +0 -27
  250. package/dist/react/hooks/useEdgeToolbar.d.ts +0 -6
  251. package/dist/react/hooks/useEdges.d.ts +0 -9
  252. package/dist/react/hooks/useElementInteractions.d.ts +0 -6
  253. package/dist/react/hooks/useGoToNextAssessment.d.ts +0 -1
  254. package/dist/react/hooks/useHandleDelete.d.ts +0 -1
  255. package/dist/react/hooks/useHandleFinder.d.ts +0 -11
  256. package/dist/react/hooks/useHandleOnResize.d.ts +0 -4
  257. package/dist/react/hooks/useIsOnlyThisElementSelected.d.ts +0 -1
  258. package/dist/react/hooks/useKeyboardShortcuts.d.ts +0 -1
  259. package/dist/react/hooks/useMessagePositioning.d.ts +0 -30
  260. package/dist/react/hooks/useNodeDrag.d.ts +0 -2
  261. package/dist/react/hooks/useNodeDragStop.d.ts +0 -2
  262. package/dist/react/hooks/usePaneClicked.d.ts +0 -3
  263. package/dist/react/hooks/usePopoverAnchor.d.ts +0 -26
  264. package/dist/react/hooks/useReactiveElement.d.ts +0 -10
  265. package/dist/react/hooks/useReconnect.d.ts +0 -2
  266. package/dist/react/hooks/useRemoteDraggingNodes.d.ts +0 -20
  267. package/dist/react/hooks/useSelectionForCopyPaste.d.ts +0 -10
  268. package/dist/react/hooks/useStepPathEdge.d.ts +0 -51
  269. package/dist/react/hooks/useStraightPathEdge.d.ts +0 -23
  270. package/dist/react/hooks/useViewPointCenter.d.ts +0 -2
  271. package/dist/react/index.d.ts +0 -8
  272. package/dist/react/internals.d.ts +0 -5
  273. package/dist/react/logger.d.ts +0 -10
  274. package/dist/react/nodes/TitleAndDescriptionNode.d.ts +0 -7
  275. package/dist/react/nodes/activityDiagram/Activity.d.ts +0 -3
  276. package/dist/react/nodes/activityDiagram/ActivityActionNode.d.ts +0 -3
  277. package/dist/react/nodes/activityDiagram/ActivityFinalNode.d.ts +0 -3
  278. package/dist/react/nodes/activityDiagram/ActivityForkNode.d.ts +0 -3
  279. package/dist/react/nodes/activityDiagram/ActivityForkNodeHorizontal.d.ts +0 -3
  280. package/dist/react/nodes/activityDiagram/ActivityInitialNode.d.ts +0 -3
  281. package/dist/react/nodes/activityDiagram/ActivityMergeNode.d.ts +0 -3
  282. package/dist/react/nodes/activityDiagram/ActivityObjectNode.d.ts +0 -3
  283. package/dist/react/nodes/activityDiagram/index.d.ts +0 -8
  284. package/dist/react/nodes/bpmn/BPMNAnnotation.d.ts +0 -3
  285. package/dist/react/nodes/bpmn/BPMNCallActivity.d.ts +0 -3
  286. package/dist/react/nodes/bpmn/BPMNDataObject.d.ts +0 -3
  287. package/dist/react/nodes/bpmn/BPMNDataStore.d.ts +0 -3
  288. package/dist/react/nodes/bpmn/BPMNEndEvent.d.ts +0 -3
  289. package/dist/react/nodes/bpmn/BPMNGateway.d.ts +0 -3
  290. package/dist/react/nodes/bpmn/BPMNGroup.d.ts +0 -3
  291. package/dist/react/nodes/bpmn/BPMNIntermediateEvent.d.ts +0 -3
  292. package/dist/react/nodes/bpmn/BPMNPool.d.ts +0 -3
  293. package/dist/react/nodes/bpmn/BPMNStartEvent.d.ts +0 -3
  294. package/dist/react/nodes/bpmn/BPMNSubprocess.d.ts +0 -3
  295. package/dist/react/nodes/bpmn/BPMNTask.d.ts +0 -3
  296. package/dist/react/nodes/bpmn/BPMNTransaction.d.ts +0 -3
  297. package/dist/react/nodes/bpmn/index.d.ts +0 -13
  298. package/dist/react/nodes/classDiagram/Class.d.ts +0 -3
  299. package/dist/react/nodes/classDiagram/ColorDescription.d.ts +0 -3
  300. package/dist/react/nodes/classDiagram/Package.d.ts +0 -3
  301. package/dist/react/nodes/classDiagram/index.d.ts +0 -3
  302. package/dist/react/nodes/communicationDiagram/CommunicationObjectName.d.ts +0 -3
  303. package/dist/react/nodes/communicationDiagram/index.d.ts +0 -1
  304. package/dist/react/nodes/componentDiagram/Component.d.ts +0 -3
  305. package/dist/react/nodes/componentDiagram/ComponentInterface.d.ts +0 -3
  306. package/dist/react/nodes/componentDiagram/ComponentSubsystem.d.ts +0 -3
  307. package/dist/react/nodes/componentDiagram/index.d.ts +0 -3
  308. package/dist/react/nodes/deploymentDiagram/DeploymentArtifact.d.ts +0 -3
  309. package/dist/react/nodes/deploymentDiagram/DeploymentComponent.d.ts +0 -3
  310. package/dist/react/nodes/deploymentDiagram/DeploymentInterface.d.ts +0 -3
  311. package/dist/react/nodes/deploymentDiagram/DeploymentNode.d.ts +0 -3
  312. package/dist/react/nodes/deploymentDiagram/index.d.ts +0 -4
  313. package/dist/react/nodes/flowchart/FlowchartDecision.d.ts +0 -3
  314. package/dist/react/nodes/flowchart/FlowchartFunctionCall.d.ts +0 -3
  315. package/dist/react/nodes/flowchart/FlowchartInputOutput.d.ts +0 -3
  316. package/dist/react/nodes/flowchart/FlowchartProcess.d.ts +0 -3
  317. package/dist/react/nodes/flowchart/FlowchartTerminal.d.ts +0 -3
  318. package/dist/react/nodes/flowchart/index.d.ts +0 -5
  319. package/dist/react/nodes/index.d.ts +0 -8
  320. package/dist/react/nodes/objectDiagram/ObjectName.d.ts +0 -3
  321. package/dist/react/nodes/objectDiagram/index.d.ts +0 -1
  322. package/dist/react/nodes/petriNetDiagram/PetriNetPlace.d.ts +0 -3
  323. package/dist/react/nodes/petriNetDiagram/PetriNetTransition.d.ts +0 -3
  324. package/dist/react/nodes/petriNetDiagram/index.d.ts +0 -2
  325. package/dist/react/nodes/reachabilityGraphDiagram/ReachabilityGraphMarking.d.ts +0 -3
  326. package/dist/react/nodes/reachabilityGraphDiagram/index.d.ts +0 -1
  327. package/dist/react/nodes/sfcDiagram/SfcActionTable.d.ts +0 -3
  328. package/dist/react/nodes/sfcDiagram/SfcJump.d.ts +0 -3
  329. package/dist/react/nodes/sfcDiagram/SfcStart.d.ts +0 -3
  330. package/dist/react/nodes/sfcDiagram/SfcStep.d.ts +0 -3
  331. package/dist/react/nodes/sfcDiagram/SfcTransitionBranch.d.ts +0 -3
  332. package/dist/react/nodes/sfcDiagram/index.d.ts +0 -5
  333. package/dist/react/nodes/syntaxTreeDiagram/SyntaxTreeNonterminal.d.ts +0 -3
  334. package/dist/react/nodes/syntaxTreeDiagram/SyntaxTreeTerminal.d.ts +0 -3
  335. package/dist/react/nodes/types.d.ts +0 -72
  336. package/dist/react/nodes/useCaseDiagram/UseCase.d.ts +0 -3
  337. package/dist/react/nodes/useCaseDiagram/UseCaseActor.d.ts +0 -3
  338. package/dist/react/nodes/useCaseDiagram/UseCaseSystem.d.ts +0 -3
  339. package/dist/react/nodes/useCaseDiagram/index.d.ts +0 -3
  340. package/dist/react/nodes/wrappers/DefaultNodeWrapper.d.ts +0 -49
  341. package/dist/react/nodes/wrappers/index.d.ts +0 -1
  342. package/dist/react/react.d.ts +0 -4
  343. package/dist/react/react.js +0 -33449
  344. package/dist/react/services/migration/EdgeTransformer.d.ts +0 -11
  345. package/dist/react/store/alignmentGuidesStore.d.ts +0 -13
  346. package/dist/react/store/assessmentSelectionStore.d.ts +0 -17
  347. package/dist/react/store/context.d.ts +0 -19
  348. package/dist/react/store/diagramStore.d.ts +0 -70
  349. package/dist/react/store/edgeGeometryStore.d.ts +0 -18
  350. package/dist/react/store/index.d.ts +0 -7
  351. package/dist/react/store/metadataStore.d.ts +0 -39
  352. package/dist/react/store/popoverStore.d.ts +0 -9
  353. package/dist/react/styles/theme.d.ts +0 -51
  354. package/dist/react/sync/headless.d.ts +0 -16
  355. package/dist/react/sync/perfCounters.d.ts +0 -6
  356. package/dist/react/sync/ydoc.d.ts +0 -9
  357. package/dist/react/sync/yjsSync.d.ts +0 -63
  358. package/dist/react/types/DiagramType.d.ts +0 -16
  359. package/dist/react/types/SVG.d.ts +0 -8
  360. package/dist/react/types/index.d.ts +0 -3
  361. package/dist/react/types/locationPopover.d.ts +0 -5
  362. package/dist/react/types/nodes/DropNodeDate.d.ts +0 -7
  363. package/dist/react/types/nodes/NodeProps.d.ts +0 -77
  364. package/dist/react/types/nodes/enums/ClassType.d.ts +0 -5
  365. package/dist/react/types/nodes/enums/index.d.ts +0 -1
  366. package/dist/react/types/nodes/index.d.ts +0 -3
  367. package/dist/react/typings.d.ts +0 -186
  368. package/dist/react/utils/alignmentUtils.d.ts +0 -32
  369. package/dist/react/utils/bpmnConstraints.d.ts +0 -5
  370. package/dist/react/utils/collaboration.d.ts +0 -19
  371. package/dist/react/utils/copyPasteUtils.d.ts +0 -32
  372. package/dist/react/utils/deepPartial.d.ts +0 -3
  373. package/dist/react/utils/diagramTypeUtils.d.ts +0 -6
  374. package/dist/react/utils/edgeUtils.d.ts +0 -167
  375. package/dist/react/utils/exportFonts.d.ts +0 -11
  376. package/dist/react/utils/exportStyles.d.ts +0 -30
  377. package/dist/react/utils/exportUtils.d.ts +0 -11
  378. package/dist/react/utils/geometry/bendHandles.d.ts +0 -42
  379. package/dist/react/utils/helpers.d.ts +0 -14
  380. package/dist/react/utils/index.d.ts +0 -18
  381. package/dist/react/utils/interactiveUtils.d.ts +0 -6
  382. package/dist/react/utils/layoutUtils.d.ts +0 -30
  383. package/dist/react/utils/nodeUtils.d.ts +0 -15
  384. package/dist/react/utils/paletteLayout.d.ts +0 -66
  385. package/dist/react/utils/pathParsing.d.ts +0 -54
  386. package/dist/react/utils/popoverUtils.d.ts +0 -3
  387. package/dist/react/utils/quadrantUtils.d.ts +0 -3
  388. package/dist/react/utils/requiredInterfaceUtils.d.ts +0 -18
  389. package/dist/react/utils/storeUtils.d.ts +0 -1
  390. package/dist/react/utils/svgTextLayout.d.ts +0 -86
  391. package/dist/react/utils/textUtils.d.ts +0 -1
  392. package/dist/react/utils/v3Typings.d.ts +0 -135
  393. package/dist/react/utils/versionConverter.d.ts +0 -60
  394. package/dist/yjsSync-CqmgRwRE.js +0 -51038
@@ -1,66 +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. Keep cells comfortably large — never below `COMFORT_MIN_H` just to save a
12
- * column, and never below the HIG `CELL_MIN_H` touch floor at all.
13
- *
14
- * So: walk column counts low→high and take the first one whose cells, sized to
15
- * fill the height, are still comfortable. Few elements get big capped cells in
16
- * one column; many elements get a taller single column of moderate cells before
17
- * a second column is ever added.
18
- *
19
- * Cells are rectangular (the dominant elements — class boxes, BPMN tasks — are
20
- * ~1.6:1 wide); narrower/square elements letterbox centered inside. Sizing the
21
- * cell, not the SVG, keeps the node components untouched.
22
- */
23
- export declare const PALETTE: Readonly<{
24
- /** HIG/WCAG touch + legibility floor — never shrink a cell past this. */
25
- readonly CELL_MIN_H: 44;
26
- /** Bias toward fewer columns: keep a single (or narrower) column as long as
27
- * its height-filling cells stay at least this big; only add a column when
28
- * that would drop below it. Just above the touch floor, so the strong
29
- * preference is fewer columns + filling the height. */
30
- readonly COMFORT_MIN_H: 48;
31
- /** Upper bound so few-element palettes don't get absurdly tall cells. */
32
- readonly CELL_MAX_H: 78;
33
- /** cellW = round(CELL_RATIO * cellH); ~matches the 160×100 class box. */
34
- readonly CELL_RATIO: 1.6;
35
- readonly GAP: 8;
36
- readonly PAD: 6;
37
- /** Keep the palette horizontally narrow so the canvas keeps its width … */
38
- readonly MAX_FRAC_W: 0.5;
39
- /** … but let it use most of the height. */
40
- readonly MAX_FRAC_H: 0.9;
41
- /** Letterbox padding around the preview inside a cell. */
42
- readonly CONTENT_INSET: 6;
43
- /** Space kept clear above (top offset) and below (zoom controls) the palette. */
44
- readonly TOP_RESERVE: 10;
45
- readonly BOTTOM_RESERVE: 84;
46
- }>;
47
- export interface PaletteLayout {
48
- cols: number;
49
- cellW: number;
50
- cellH: number;
51
- /** True only in the rare case all items can't fit even at the floor size. */
52
- scroll: boolean;
53
- }
54
- /**
55
- * @param itemCount total grid cells (drag elements + the color-description cell)
56
- * @param availW measured canvas width
57
- * @param availH measured canvas height
58
- * @param chromeH height of non-grid palette chrome (view switch / hint), 0 if none
59
- */
60
- export declare function computePaletteLayout(itemCount: number, availW: number, availH: number, chromeH: number): PaletteLayout;
61
- /**
62
- * Preview scale that fits an element's natural size into a cell's content box.
63
- * Elements fill their cell (so they read "big"); wide boxes fit width, tall/
64
- * square nodes fit height and letterbox.
65
- */
66
- 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 +0,0 @@
1
- export declare const measureTextWidth: (text: string, font?: string) => number;
@@ -1,135 +0,0 @@
1
- import { IPoint } from '../edges/Connection';
2
- export type V3Selection = {
3
- elements: {
4
- [id: string]: boolean;
5
- };
6
- relationships: {
7
- [id: string]: boolean;
8
- };
9
- };
10
- export type V3UMLClassifier = {
11
- attributes: string[];
12
- methods: string[];
13
- };
14
- export type V3UMLDeploymentNode = {
15
- stereotype: string;
16
- displayStereotype: boolean;
17
- };
18
- export type V3UMLDeploymentComponent = {
19
- displayStereotype: boolean;
20
- };
21
- export type V3UMLComponentSubsystem = {
22
- stereotype: string;
23
- displayStereotype: boolean;
24
- };
25
- export type V3UMLComponentComponent = {
26
- displayStereotype: boolean;
27
- };
28
- export type V3UMLPetriNetPlace = {
29
- amountOfTokens: number;
30
- capacity: number | string;
31
- };
32
- export type V3BPMNTask = {
33
- taskType: "default" | "user" | "send" | "receive" | "manual" | "business-rule" | "script";
34
- marker: "none" | "parallel multi instance" | "sequential multi instance" | "loop";
35
- };
36
- export type V3BPMNGateway = {
37
- gatewayType: "complex" | "event-based" | "exclusive" | "inclusive" | "parallel";
38
- };
39
- export type V3BPMNStartEvent = {
40
- eventType: "default" | "message" | "timer" | "conditional" | "signal";
41
- };
42
- export type V3BPMNIntermediateEvent = {
43
- eventType: "default" | "message-catch" | "message-throw" | "timer-catch" | "escalation-throw" | "conditional-catch" | "link-catch" | "link-throw" | "compensation-throw" | "signal-catch" | "signal-throw";
44
- };
45
- export type V3BPMNEndEvent = {
46
- eventType: "default" | "message" | "escalation" | "error" | "compensation" | "signal" | "terminate";
47
- };
48
- export type V3UMLReachabilityGraphMarking = {
49
- isInitialMarking: boolean;
50
- };
51
- export interface V3UMLModel {
52
- version: string;
53
- type: string;
54
- size: {
55
- width: number;
56
- height: number;
57
- };
58
- interactive: {
59
- elements: Record<string, boolean>;
60
- relationships: Record<string, boolean>;
61
- };
62
- elements: Record<string, V3UMLElement>;
63
- relationships: Record<string, V3UMLRelationship>;
64
- assessments: Record<string, V3Assessment>;
65
- }
66
- export type V3UMLModelElementType = string;
67
- export type V3UMLModelElement = {
68
- id: string;
69
- name: string;
70
- type: V3UMLModelElementType;
71
- owner: string | null;
72
- bounds: {
73
- x: number;
74
- y: number;
75
- width: number;
76
- height: number;
77
- };
78
- highlight?: string;
79
- fillColor?: string;
80
- strokeColor?: string;
81
- textColor?: string;
82
- assessmentNote?: string;
83
- };
84
- export type V3UMLElement = V3UMLModelElement & Partial<V3UMLClassifier> & Partial<V3UMLDeploymentNode> & Partial<V3UMLDeploymentComponent> & Partial<V3UMLComponentSubsystem> & Partial<V3UMLComponentComponent> & Partial<V3UMLPetriNetPlace> & Partial<V3BPMNTask> & Partial<V3BPMNGateway> & Partial<V3BPMNStartEvent> & Partial<V3BPMNIntermediateEvent> & Partial<V3BPMNEndEvent> & Partial<V3UMLReachabilityGraphMarking>;
85
- export type V3UMLRelationship = V3UMLModelElement & {
86
- path: IPoint[];
87
- source: {
88
- element: string;
89
- direction: string;
90
- multiplicity?: string;
91
- role?: string;
92
- };
93
- target: {
94
- element: string;
95
- direction: string;
96
- multiplicity?: string;
97
- role?: string;
98
- };
99
- isManuallyLayouted?: boolean;
100
- messages?: {
101
- [id: string]: {
102
- id: string;
103
- name: string;
104
- direction: "source" | "target";
105
- };
106
- };
107
- flowType?: string;
108
- };
109
- export type V3Assessment = {
110
- modelElementId: string;
111
- elementType: string;
112
- score: number;
113
- feedback?: string;
114
- dropInfo?: any;
115
- label?: string;
116
- labelColor?: string;
117
- correctionStatus?: {
118
- description?: string;
119
- status: "CORRECT" | "INCORRECT" | "NOT_VALIDATED";
120
- };
121
- };
122
- export type V3DiagramFormat = {
123
- id: string;
124
- title: string;
125
- model: V3UMLModel;
126
- lastUpdate?: string;
127
- };
128
- export type V3Message = {
129
- id: string;
130
- name: string;
131
- direction: "source" | "target";
132
- };
133
- export type V3Messages = {
134
- [id: string]: V3Message;
135
- };
@@ -1,60 +0,0 @@
1
- import { UMLModel } from '../typings';
2
- import { V3DiagramFormat, V3UMLModel, V3UMLElement, V3UMLRelationship, V3Assessment, V3Messages } from './v3Typings';
3
- import { MessageData } from '../edges/EdgeProps';
4
- interface V2DiagramFormat {
5
- version: string;
6
- size: {
7
- width: number;
8
- height: number;
9
- };
10
- type: string;
11
- interactive: {
12
- elements: string[];
13
- relationships: string[];
14
- };
15
- elements: V3UMLElement[];
16
- relationships: V3UMLRelationship[];
17
- assessments: V3Assessment[];
18
- }
19
- /**
20
- * Convert v2 format to v4 format
21
- */
22
- export declare function convertV2ToV4(v2Data: V2DiagramFormat): UMLModel;
23
- /**
24
- * Check if data is in v2 format
25
- */
26
- export declare function isV2Format(data: any): data is V2DiagramFormat;
27
- /**
28
- * Convert v3 handle directions to v4 handle IDs
29
- * V3 uses Direction enum, V4 uses HandleId enum
30
- */
31
- export declare function convertV3HandleToV4(v3Handle: string): string;
32
- /**
33
- * Convert v3 node types to v4 node types
34
- */
35
- export declare function convertV3NodeTypeToV4(v3Type: string): string;
36
- /**
37
- * Convert v3 edge types to v4 edge types
38
- */
39
- export declare function convertV3EdgeTypeToV4(v3Type: string, flowType?: string): string;
40
- /**
41
- * Convert V3 messages format to V4 MessageData array
42
- */
43
- export declare function convertV3MessagesToV4(messages: V3Messages | MessageData[] | undefined): MessageData[];
44
- /**
45
- * Main conversion function from v3 to v4 format
46
- */
47
- export declare function convertV3ToV4(v3Data: V3DiagramFormat | V3UMLModel): UMLModel;
48
- /**
49
- * Check if data is in v3 format
50
- */
51
- export declare function isV3Format(data: any): data is V3DiagramFormat;
52
- /**
53
- * Check if data is in v4 format
54
- */
55
- export declare function isV4Format(data: any): data is UMLModel;
56
- /**
57
- * Universal import function that handles v2, v3 and v4 formats
58
- */
59
- export declare function importDiagram(data: any | V3UMLModel): UMLModel;
60
- export {};