@tumaet/apollon 4.6.0 → 4.8.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 (174) hide show
  1. package/README.md +2 -2
  2. package/dist/LICENSE-InterFont +92 -0
  3. package/dist/assets/style.css +1 -1
  4. package/dist/export.d.ts +73 -0
  5. package/dist/export.js +219 -0
  6. package/dist/exportFonts-DxO9jrR1.js +19 -0
  7. package/dist/exportStyles-Wcc8N8Xj.js +5 -0
  8. package/dist/fontStack-DOtVH2j8.js +5 -0
  9. package/dist/index.d.ts +151 -92
  10. package/dist/index.js +34925 -8009
  11. package/dist/internals.d.ts +136 -93
  12. package/dist/internals.js +16 -10
  13. package/dist/react/App.d.ts +1 -1
  14. package/dist/react/LICENSE-InterFont +92 -0
  15. package/dist/react/apollon-editor.d.ts +19 -0
  16. package/dist/react/components/AlignmentGuides.d.ts +1 -1
  17. package/dist/react/components/AssessmentSelectionDebug.d.ts +1 -1
  18. package/dist/react/components/CustomBackground.d.ts +1 -1
  19. package/dist/react/components/CustomControls.d.ts +1 -1
  20. package/dist/react/components/CustomMiniMap.d.ts +1 -1
  21. package/dist/react/components/DraggableGhost.d.ts +5 -0
  22. package/dist/react/components/Icon/ArrowBackIcon.d.ts +1 -1
  23. package/dist/react/components/Icon/ArrowForwardIcon.d.ts +1 -1
  24. package/dist/react/components/Icon/CheckIcon.d.ts +1 -1
  25. package/dist/react/components/Icon/CrossIcon.d.ts +1 -1
  26. package/dist/react/components/Icon/DeleteIcon.d.ts +1 -1
  27. package/dist/react/components/Icon/DragHandleIcon.d.ts +1 -1
  28. package/dist/react/components/Icon/EditIcon.d.ts +1 -1
  29. package/dist/react/components/Icon/ExclamationIcon.d.ts +1 -1
  30. package/dist/react/components/Icon/InfiniteIcon.d.ts +1 -1
  31. package/dist/react/components/Icon/MapIcon.d.ts +1 -1
  32. package/dist/react/components/Icon/PaintRollerIcon.d.ts +1 -1
  33. package/dist/react/components/Icon/RedoIcon.d.ts +1 -1
  34. package/dist/react/components/Icon/SouthEastArrowIcon.d.ts +1 -1
  35. package/dist/react/components/Icon/SwapHorizIcon.d.ts +1 -1
  36. package/dist/react/components/Icon/UndoIcon.d.ts +1 -1
  37. package/dist/react/components/ReconnectConnectionLine.d.ts +1 -1
  38. package/dist/react/components/Sidebar.d.ts +2 -1
  39. package/dist/react/components/collaboration/CollaborationLayer.d.ts +1 -1
  40. package/dist/react/components/popovers/DefaultNodeGiveFeedbackPopover.d.ts +1 -1
  41. package/dist/react/components/popovers/DefaultNodeSeeFeedbackPopover.d.ts +1 -1
  42. package/dist/react/components/popovers/GenericPopover.d.ts +1 -1
  43. package/dist/react/components/popovers/GiveFeedbackAssessmentBox.d.ts +1 -1
  44. package/dist/react/components/popovers/PopoverManager.d.ts +2 -2
  45. package/dist/react/components/popovers/SeeFeedbackAssessmentBox.d.ts +1 -1
  46. package/dist/react/components/popovers/bpmnDiagram/BPMNPoolEditPopover.d.ts +1 -1
  47. package/dist/react/components/popovers/classDiagram/ClassGiveFeedbackPopover.d.ts +1 -1
  48. package/dist/react/components/popovers/classDiagram/ClassSeeFeedbackPopover.d.ts +1 -1
  49. package/dist/react/components/popovers/communicationDiagram/CommunicationObjectNameGiveFeedbackPopover.d.ts +1 -1
  50. package/dist/react/components/popovers/communicationDiagram/CommunicationObjectNameSeeFeedbackPopover.d.ts +1 -1
  51. package/dist/react/components/popovers/edgePopovers/EdgeGiveFeedbackPopover.d.ts +1 -1
  52. package/dist/react/components/popovers/edgePopovers/EdgeSeeFeedbackPopover.d.ts +1 -1
  53. package/dist/react/components/popovers/edgePopovers/EdgeTypePreviewIcon.d.ts +1 -1
  54. package/dist/react/components/popovers/edgePopovers/EdgeTypeSelect.d.ts +1 -1
  55. package/dist/react/components/popovers/edgePopovers/SwapEndsButton.d.ts +9 -0
  56. package/dist/react/components/popovers/objectDiagram/ObjectGiveFeedbackPopover.d.ts +1 -1
  57. package/dist/react/components/popovers/objectDiagram/ObjectSeeFeedbackPopover.d.ts +1 -1
  58. package/dist/react/components/react/Apollon.d.ts +7 -2
  59. package/dist/react/components/react/context.d.ts +1 -1
  60. package/dist/react/components/svgs/edges/InlineMarker.d.ts +2 -2
  61. package/dist/react/components/svgs/nodes/classDiagram/ClassSVG.d.ts +1 -1
  62. package/dist/react/components/svgs/nodes/classDiagram/ColorDescriptionSVG.d.ts +1 -1
  63. package/dist/react/components/svgs/nodes/communicationDiagram/CommunicationObjectNameSVG.d.ts +1 -1
  64. package/dist/react/components/svgs/nodes/objectDiagram/ObjectNameSVG.d.ts +1 -1
  65. package/dist/react/components/toolbars/edgeToolBar/CustomEdgeToolBar.d.ts +1 -1
  66. package/dist/react/components/ui/StyleEditor/ColorButtons.d.ts +1 -1
  67. package/dist/react/constants.d.ts +17 -6
  68. package/dist/react/edges/GenericEdge.d.ts +5 -6
  69. package/dist/react/edges/edgeTypes/ActivityDiagramEdge.d.ts +1 -1
  70. package/dist/react/edges/edgeTypes/BPMNDiagramEdge.d.ts +1 -1
  71. package/dist/react/edges/edgeTypes/ClassDiagramEdge.d.ts +1 -1
  72. package/dist/react/edges/edgeTypes/CommunicationDiagramEdge.d.ts +1 -1
  73. package/dist/react/edges/edgeTypes/ComponentDiagramEdge.d.ts +1 -1
  74. package/dist/react/edges/edgeTypes/DeploymentDiagramEdge.d.ts +1 -1
  75. package/dist/react/edges/edgeTypes/FlowChartEdge.d.ts +1 -1
  76. package/dist/react/edges/edgeTypes/ObjectDiagramEdge.d.ts +1 -1
  77. package/dist/react/edges/edgeTypes/PetriNetEdge.d.ts +1 -1
  78. package/dist/react/edges/edgeTypes/ReachabilityGraphArc.d.ts +1 -1
  79. package/dist/react/edges/edgeTypes/SfcDiagramEdge.d.ts +1 -1
  80. package/dist/react/edges/edgeTypes/SyntaxTreeEdge.d.ts +1 -1
  81. package/dist/react/edges/edgeTypes/UseCaseDiagramEdge.d.ts +1 -1
  82. package/dist/react/edges/labelTypes/EdgeEndLabels.d.ts +1 -1
  83. package/dist/react/edges/labelTypes/EdgeIncludeExtendLabel.d.ts +1 -1
  84. package/dist/react/edges/labelTypes/EdgeMiddleLabels.d.ts +1 -1
  85. package/dist/react/edges/labelTypes/EdgeMultipleLabels.d.ts +1 -1
  86. package/dist/react/edges/types.d.ts +34 -34
  87. package/dist/react/export/exportErrors.d.ts +10 -0
  88. package/dist/react/export/index.d.ts +13 -0
  89. package/dist/react/export/normalizeExportSvg.d.ts +16 -0
  90. package/dist/react/export/preProcessSvgForPdf.d.ts +20 -0
  91. package/dist/react/export/svgToPdf.d.ts +17 -0
  92. package/dist/react/export/svgToPng.d.ts +38 -0
  93. package/dist/react/exportFonts-DSRUaduf.js +20 -0
  94. package/dist/react/exportStyles-CH2hautV.js +6 -0
  95. package/dist/react/fontStack.d.ts +14 -0
  96. package/dist/react/hooks/index.d.ts +1 -0
  97. package/dist/react/hooks/useEdgeLineJumps.d.ts +3 -1
  98. package/dist/react/hooks/useEdgeToolbar.d.ts +1 -1
  99. package/dist/react/hooks/usePopoverAnchor.d.ts +26 -0
  100. package/dist/react/hooks/useReactiveElement.d.ts +10 -0
  101. package/dist/react/hooks/useRemoteDraggingNodes.d.ts +20 -0
  102. package/dist/react/hooks/useStepPathEdge.d.ts +1 -1
  103. package/dist/react/hooks/useStraightPathEdge.d.ts +1 -1
  104. package/dist/react/index.d.ts +1 -0
  105. package/dist/react/nodes/TitleAndDescriptionNode.d.ts +1 -1
  106. package/dist/react/nodes/activityDiagram/Activity.d.ts +1 -1
  107. package/dist/react/nodes/activityDiagram/ActivityActionNode.d.ts +1 -1
  108. package/dist/react/nodes/activityDiagram/ActivityFinalNode.d.ts +1 -1
  109. package/dist/react/nodes/activityDiagram/ActivityForkNode.d.ts +1 -1
  110. package/dist/react/nodes/activityDiagram/ActivityForkNodeHorizontal.d.ts +1 -1
  111. package/dist/react/nodes/activityDiagram/ActivityInitialNode.d.ts +1 -1
  112. package/dist/react/nodes/activityDiagram/ActivityMergeNode.d.ts +1 -1
  113. package/dist/react/nodes/activityDiagram/ActivityObjectNode.d.ts +1 -1
  114. package/dist/react/nodes/bpmn/BPMNAnnotation.d.ts +1 -1
  115. package/dist/react/nodes/bpmn/BPMNCallActivity.d.ts +1 -1
  116. package/dist/react/nodes/bpmn/BPMNDataObject.d.ts +1 -1
  117. package/dist/react/nodes/bpmn/BPMNDataStore.d.ts +1 -1
  118. package/dist/react/nodes/bpmn/BPMNEndEvent.d.ts +1 -1
  119. package/dist/react/nodes/bpmn/BPMNGateway.d.ts +1 -1
  120. package/dist/react/nodes/bpmn/BPMNGroup.d.ts +1 -1
  121. package/dist/react/nodes/bpmn/BPMNIntermediateEvent.d.ts +1 -1
  122. package/dist/react/nodes/bpmn/BPMNPool.d.ts +1 -1
  123. package/dist/react/nodes/bpmn/BPMNStartEvent.d.ts +1 -1
  124. package/dist/react/nodes/bpmn/BPMNSubprocess.d.ts +1 -1
  125. package/dist/react/nodes/bpmn/BPMNTask.d.ts +1 -1
  126. package/dist/react/nodes/bpmn/BPMNTransaction.d.ts +1 -1
  127. package/dist/react/nodes/classDiagram/Class.d.ts +1 -1
  128. package/dist/react/nodes/classDiagram/ColorDescription.d.ts +1 -1
  129. package/dist/react/nodes/classDiagram/Package.d.ts +1 -1
  130. package/dist/react/nodes/communicationDiagram/CommunicationObjectName.d.ts +1 -1
  131. package/dist/react/nodes/componentDiagram/Component.d.ts +1 -1
  132. package/dist/react/nodes/componentDiagram/ComponentInterface.d.ts +1 -1
  133. package/dist/react/nodes/componentDiagram/ComponentSubsystem.d.ts +1 -1
  134. package/dist/react/nodes/deploymentDiagram/DeploymentArtifact.d.ts +1 -1
  135. package/dist/react/nodes/deploymentDiagram/DeploymentComponent.d.ts +1 -1
  136. package/dist/react/nodes/deploymentDiagram/DeploymentInterface.d.ts +1 -1
  137. package/dist/react/nodes/deploymentDiagram/DeploymentNode.d.ts +1 -1
  138. package/dist/react/nodes/flowchart/FlowchartDecision.d.ts +1 -1
  139. package/dist/react/nodes/flowchart/FlowchartFunctionCall.d.ts +1 -1
  140. package/dist/react/nodes/flowchart/FlowchartInputOutput.d.ts +1 -1
  141. package/dist/react/nodes/flowchart/FlowchartProcess.d.ts +1 -1
  142. package/dist/react/nodes/flowchart/FlowchartTerminal.d.ts +1 -1
  143. package/dist/react/nodes/objectDiagram/ObjectName.d.ts +1 -1
  144. package/dist/react/nodes/petriNetDiagram/PetriNetPlace.d.ts +1 -1
  145. package/dist/react/nodes/petriNetDiagram/PetriNetTransition.d.ts +1 -1
  146. package/dist/react/nodes/reachabilityGraphDiagram/ReachabilityGraphMarking.d.ts +1 -1
  147. package/dist/react/nodes/sfcDiagram/SfcActionTable.d.ts +1 -1
  148. package/dist/react/nodes/sfcDiagram/SfcJump.d.ts +1 -1
  149. package/dist/react/nodes/sfcDiagram/SfcStart.d.ts +1 -1
  150. package/dist/react/nodes/sfcDiagram/SfcStep.d.ts +1 -1
  151. package/dist/react/nodes/sfcDiagram/SfcTransitionBranch.d.ts +1 -1
  152. package/dist/react/nodes/syntaxTreeDiagram/SyntaxTreeNonterminal.d.ts +1 -1
  153. package/dist/react/nodes/syntaxTreeDiagram/SyntaxTreeTerminal.d.ts +1 -1
  154. package/dist/react/nodes/useCaseDiagram/UseCase.d.ts +1 -1
  155. package/dist/react/nodes/useCaseDiagram/UseCaseActor.d.ts +1 -1
  156. package/dist/react/nodes/useCaseDiagram/UseCaseSystem.d.ts +1 -1
  157. package/dist/react/nodes/wrappers/DefaultNodeWrapper.d.ts +1 -1
  158. package/dist/react/react.js +23599 -24829
  159. package/dist/react/store/assessmentSelectionStore.d.ts +2 -0
  160. package/dist/react/store/diagramStore.d.ts +17 -1
  161. package/dist/react/sync/perfCounters.d.ts +6 -0
  162. package/dist/react/sync/ydoc.d.ts +2 -0
  163. package/dist/react/sync/yjsSync.d.ts +3 -2
  164. package/dist/react/types/nodes/NodeProps.d.ts +3 -3
  165. package/dist/react/typings.d.ts +23 -2
  166. package/dist/react/utils/collaboration.d.ts +10 -1
  167. package/dist/react/utils/exportFonts.d.ts +11 -0
  168. package/dist/react/utils/exportStyles.d.ts +30 -0
  169. package/dist/react/utils/exportUtils.d.ts +1 -101
  170. package/dist/react/utils/paletteLayout.d.ts +66 -0
  171. package/dist/yjsSync-CqmgRwRE.js +51038 -0
  172. package/package.json +38 -16
  173. package/schema/uml-model-4.schema.json +363 -0
  174. package/dist/yjsSync-CK5cmd5z.js +0 -71308
@@ -1,38 +1,38 @@
1
1
  export declare const diagramEdgeTypes: {
2
- ClassAggregation: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
3
- ClassInheritance: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
4
- ClassRealization: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
5
- ClassComposition: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
6
- ClassBidirectional: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
7
- ClassUnidirectional: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
8
- ClassDependency: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
9
- ActivityControlFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
10
- ObjectLink: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
11
- FlowChartFlowline: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
12
- SyntaxTreeLink: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
13
- CommunicationLink: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
14
- PetriNetArc: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
15
- UseCaseAssociation: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
16
- UseCaseInclude: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
17
- UseCaseExtend: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
18
- UseCaseGeneralization: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
19
- ComponentDependency: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
20
- ComponentProvidedInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
21
- ComponentRequiredInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
22
- ComponentRequiredThreeQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
23
- ComponentRequiredQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
24
- DeploymentAssociation: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
25
- DeploymentDependency: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
26
- DeploymentProvidedInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
27
- DeploymentRequiredInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
28
- DeploymentRequiredThreeQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
29
- DeploymentRequiredQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
30
- SfcDiagramEdge: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
31
- ReachabilityGraphArc: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
32
- BPMNSequenceFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
33
- BPMNMessageFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
34
- BPMNAssociationFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
35
- BPMNDataAssociationFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react/jsx-runtime").JSX.Element;
2
+ ClassAggregation: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
3
+ ClassInheritance: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
4
+ ClassRealization: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
5
+ ClassComposition: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
6
+ ClassBidirectional: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
7
+ ClassUnidirectional: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
8
+ ClassDependency: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
9
+ ActivityControlFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
10
+ ObjectLink: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
11
+ FlowChartFlowline: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
12
+ SyntaxTreeLink: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
13
+ CommunicationLink: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
14
+ PetriNetArc: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
15
+ UseCaseAssociation: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
16
+ UseCaseInclude: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
17
+ UseCaseExtend: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
18
+ UseCaseGeneralization: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
19
+ ComponentDependency: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
20
+ ComponentProvidedInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
21
+ ComponentRequiredInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
22
+ ComponentRequiredThreeQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
23
+ ComponentRequiredQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
24
+ DeploymentAssociation: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
25
+ DeploymentDependency: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
26
+ DeploymentProvidedInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
27
+ DeploymentRequiredInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
28
+ DeploymentRequiredThreeQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
29
+ DeploymentRequiredQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
30
+ SfcDiagramEdge: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
31
+ ReachabilityGraphArc: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
32
+ BPMNSequenceFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
33
+ BPMNMessageFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
34
+ BPMNAssociationFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
35
+ BPMNDataAssociationFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react").JSX.Element;
36
36
  };
37
37
  export declare const edgeConfig: {
38
38
  readonly ClassAggregation: {
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Typed error for the raster (PNG) export path so callers can show an
3
+ * actionable "diagram too large" message instead of the silent 0-byte file the
4
+ * old canvas path produced (#667).
5
+ */
6
+ export declare class RasterTooLargeError extends Error {
7
+ readonly canvasWidth: number;
8
+ readonly canvasHeight: number;
9
+ constructor(message: string, canvasWidth: number, canvasHeight: number);
10
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * `@tumaet/apollon/export` — reliable browser raster/vector export of a
3
+ * compat-mode Apollon SVG. PNG via resvg (wasm); PDF via svg2pdf.js on jsPDF.
4
+ * Both fix the canvas-area-cap silent failure of the old client path (#667).
5
+ *
6
+ * The heavy renderers (`@resvg/resvg-wasm`, `jspdf`, `svg2pdf.js`) are optional
7
+ * dependencies, loaded lazily, so importing the editor never pulls them in.
8
+ */
9
+ export { svgToPng, computeAppliedScale } from './svgToPng';
10
+ export type { SvgToPngOptions, SvgToPngResult } from './svgToPng';
11
+ export { svgToPdf } from './svgToPdf';
12
+ export type { SvgToPdfOptions } from './svgToPdf';
13
+ export { RasterTooLargeError } from './exportErrors';
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Drop `font-style="italic"` from every element of an export SVG.
3
+ *
4
+ * Apollon emits italic for abstract-class headers, but the editor itself ships
5
+ * only upright Inter (Regular + Bold) — on screen the slant is the browser's
6
+ * *synthetic* oblique, and text width is measured with the upright metrics.
7
+ * The raster (resvg) and PDF (jsPDF) paths carry the same two upright faces, so
8
+ * a real italic face would change advance widths and break the editor↔export
9
+ * determinism guarantee (and risk overflowing label boxes). We therefore render
10
+ * abstract names upright by design — matching the server export — and strip the
11
+ * attribute so the SVG no longer *claims* an italic it doesn't deliver. Abstract
12
+ * classes stay distinguishable by their «Abstract» stereotype label.
13
+ *
14
+ * Mutates `root` in place.
15
+ */
16
+ export declare function normalizeExportSvg(root: Element): void;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Adapt a compat-mode Apollon SVG to the three svg2pdf.js limitations that the
3
+ * library's own compat passes (in exportUtils.ts) do NOT already cover.
4
+ * Relative font-sizes, `tspan` `dy` and `dominant-baseline` are resolved
5
+ * upstream by `getSVG`, so they are intentionally absent here.
6
+ *
7
+ * 1. Nested `<svg>` clips its content despite `overflow="visible"` — svg2pdf
8
+ * treats the intrinsic size as a clip rect. Apollon wraps each node in
9
+ * `<svg width viewBox>`; replace those with `<g>` (layout-equivalent since
10
+ * the viewBox is always `0 0 w h`), translating any non-zero origin.
11
+ * 2. A `<text>` with 2+ `<tspan>` children renders with wrong glyph widths in
12
+ * svg2pdf; split it into independent `<text>` elements. Each tspan already
13
+ * carries an absolute `y` (resolved by `resolveTspanDy`).
14
+ * 3. svg2pdf looks up `font-family` as a literal string, so the CSS list
15
+ * `"Inter, system-ui, …"` misses the registered "Inter" and falls back to a
16
+ * standard font; collapse any Inter-led list to plain `"Inter"`.
17
+ *
18
+ * Mutates `root` in place and returns it.
19
+ */
20
+ export declare function preProcessSvgForPdf(root: Element): Element;
@@ -0,0 +1,17 @@
1
+ export type SvgToPdfOptions = {
2
+ /** Document title metadata; does not affect layout. */
3
+ title?: string;
4
+ /**
5
+ * Inter Regular + Bold as ttf/otf bytes, for hosts without `fetch` of the
6
+ * bundled `?url` font asset (e.g. tests, headless Node). Defaults to the
7
+ * bundled Inter.
8
+ */
9
+ fonts?: {
10
+ regular: Uint8Array;
11
+ bold: Uint8Array;
12
+ };
13
+ };
14
+ export declare function svgToPdf(svg: string, clip: {
15
+ width: number;
16
+ height: number;
17
+ }, opts?: SvgToPdfOptions): Promise<Blob>;
@@ -0,0 +1,38 @@
1
+ export type SvgToPngOptions = {
2
+ /** Multiplier applied to the diagram clip dimensions. Default 1.5. */
3
+ scale?: number;
4
+ /** CSS colour (e.g. "#ffffff") or null for transparent. Default null. */
5
+ background?: string | null;
6
+ /** Override the 75 MP area budget. */
7
+ maxAreaPx?: number;
8
+ /** Override the 16,384 px per-side cap. */
9
+ maxDimensionPx?: number;
10
+ /**
11
+ * The `@resvg/resvg-wasm` binary, as anything resvg's `initWasm` accepts.
12
+ * Required: where the wasm lives is the host bundler's concern, not the
13
+ * library's (resvg-wasm doesn't export it under a portable URL specifier).
14
+ * In Vite:
15
+ * `import url from "@resvg/resvg-wasm/index_bg.wasm?url"`
16
+ * `svgToPng(svg, clip, { wasmInput: fetch(url) })`
17
+ */
18
+ wasmInput?: WebAssembly.Module | BufferSource | Response | Promise<Response>;
19
+ /** Font buffers (ttf/otf) to use instead of the bundled Inter. */
20
+ fontBuffers?: Uint8Array[];
21
+ };
22
+ export type SvgToPngResult = {
23
+ blob: Blob;
24
+ /** The scale actually used — below the requested one when clamped. */
25
+ appliedScale: number;
26
+ clamped: boolean;
27
+ width: number;
28
+ height: number;
29
+ };
30
+ /**
31
+ * Largest scale that fits both the area budget and the per-side cap. Pure, so
32
+ * the clamp can be unit-tested without booting wasm.
33
+ */
34
+ export declare function computeAppliedScale(width: number, height: number, requestedScale: number, maxAreaPx: number, maxDimensionPx: number): number;
35
+ export declare function svgToPng(svg: string, clip: {
36
+ width: number;
37
+ height: number;
38
+ }, opts?: SvgToPngOptions): Promise<SvgToPngResult>;