@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.
- package/README.md +2 -2
- package/dist/LICENSE-InterFont +92 -0
- package/dist/assets/style.css +1 -1
- package/dist/export.d.ts +73 -0
- package/dist/export.js +219 -0
- package/dist/exportFonts-DxO9jrR1.js +19 -0
- package/dist/exportStyles-Wcc8N8Xj.js +5 -0
- package/dist/fontStack-DOtVH2j8.js +5 -0
- package/dist/index.d.ts +151 -92
- package/dist/index.js +34925 -8009
- package/dist/internals.d.ts +136 -93
- package/dist/internals.js +16 -10
- package/dist/react/App.d.ts +1 -1
- package/dist/react/LICENSE-InterFont +92 -0
- package/dist/react/apollon-editor.d.ts +19 -0
- package/dist/react/components/AlignmentGuides.d.ts +1 -1
- package/dist/react/components/AssessmentSelectionDebug.d.ts +1 -1
- package/dist/react/components/CustomBackground.d.ts +1 -1
- package/dist/react/components/CustomControls.d.ts +1 -1
- package/dist/react/components/CustomMiniMap.d.ts +1 -1
- package/dist/react/components/DraggableGhost.d.ts +5 -0
- package/dist/react/components/Icon/ArrowBackIcon.d.ts +1 -1
- package/dist/react/components/Icon/ArrowForwardIcon.d.ts +1 -1
- package/dist/react/components/Icon/CheckIcon.d.ts +1 -1
- package/dist/react/components/Icon/CrossIcon.d.ts +1 -1
- package/dist/react/components/Icon/DeleteIcon.d.ts +1 -1
- package/dist/react/components/Icon/DragHandleIcon.d.ts +1 -1
- package/dist/react/components/Icon/EditIcon.d.ts +1 -1
- package/dist/react/components/Icon/ExclamationIcon.d.ts +1 -1
- package/dist/react/components/Icon/InfiniteIcon.d.ts +1 -1
- package/dist/react/components/Icon/MapIcon.d.ts +1 -1
- package/dist/react/components/Icon/PaintRollerIcon.d.ts +1 -1
- package/dist/react/components/Icon/RedoIcon.d.ts +1 -1
- package/dist/react/components/Icon/SouthEastArrowIcon.d.ts +1 -1
- package/dist/react/components/Icon/SwapHorizIcon.d.ts +1 -1
- package/dist/react/components/Icon/UndoIcon.d.ts +1 -1
- package/dist/react/components/ReconnectConnectionLine.d.ts +1 -1
- package/dist/react/components/Sidebar.d.ts +2 -1
- package/dist/react/components/collaboration/CollaborationLayer.d.ts +1 -1
- package/dist/react/components/popovers/DefaultNodeGiveFeedbackPopover.d.ts +1 -1
- package/dist/react/components/popovers/DefaultNodeSeeFeedbackPopover.d.ts +1 -1
- package/dist/react/components/popovers/GenericPopover.d.ts +1 -1
- package/dist/react/components/popovers/GiveFeedbackAssessmentBox.d.ts +1 -1
- package/dist/react/components/popovers/PopoverManager.d.ts +2 -2
- package/dist/react/components/popovers/SeeFeedbackAssessmentBox.d.ts +1 -1
- package/dist/react/components/popovers/bpmnDiagram/BPMNPoolEditPopover.d.ts +1 -1
- package/dist/react/components/popovers/classDiagram/ClassGiveFeedbackPopover.d.ts +1 -1
- package/dist/react/components/popovers/classDiagram/ClassSeeFeedbackPopover.d.ts +1 -1
- package/dist/react/components/popovers/communicationDiagram/CommunicationObjectNameGiveFeedbackPopover.d.ts +1 -1
- package/dist/react/components/popovers/communicationDiagram/CommunicationObjectNameSeeFeedbackPopover.d.ts +1 -1
- package/dist/react/components/popovers/edgePopovers/EdgeGiveFeedbackPopover.d.ts +1 -1
- package/dist/react/components/popovers/edgePopovers/EdgeSeeFeedbackPopover.d.ts +1 -1
- package/dist/react/components/popovers/edgePopovers/EdgeTypePreviewIcon.d.ts +1 -1
- package/dist/react/components/popovers/edgePopovers/EdgeTypeSelect.d.ts +1 -1
- package/dist/react/components/popovers/edgePopovers/SwapEndsButton.d.ts +9 -0
- package/dist/react/components/popovers/objectDiagram/ObjectGiveFeedbackPopover.d.ts +1 -1
- package/dist/react/components/popovers/objectDiagram/ObjectSeeFeedbackPopover.d.ts +1 -1
- package/dist/react/components/react/Apollon.d.ts +7 -2
- package/dist/react/components/react/context.d.ts +1 -1
- package/dist/react/components/svgs/edges/InlineMarker.d.ts +2 -2
- package/dist/react/components/svgs/nodes/classDiagram/ClassSVG.d.ts +1 -1
- package/dist/react/components/svgs/nodes/classDiagram/ColorDescriptionSVG.d.ts +1 -1
- package/dist/react/components/svgs/nodes/communicationDiagram/CommunicationObjectNameSVG.d.ts +1 -1
- package/dist/react/components/svgs/nodes/objectDiagram/ObjectNameSVG.d.ts +1 -1
- package/dist/react/components/toolbars/edgeToolBar/CustomEdgeToolBar.d.ts +1 -1
- package/dist/react/components/ui/StyleEditor/ColorButtons.d.ts +1 -1
- package/dist/react/constants.d.ts +17 -6
- package/dist/react/edges/GenericEdge.d.ts +5 -6
- package/dist/react/edges/edgeTypes/ActivityDiagramEdge.d.ts +1 -1
- package/dist/react/edges/edgeTypes/BPMNDiagramEdge.d.ts +1 -1
- package/dist/react/edges/edgeTypes/ClassDiagramEdge.d.ts +1 -1
- package/dist/react/edges/edgeTypes/CommunicationDiagramEdge.d.ts +1 -1
- package/dist/react/edges/edgeTypes/ComponentDiagramEdge.d.ts +1 -1
- package/dist/react/edges/edgeTypes/DeploymentDiagramEdge.d.ts +1 -1
- package/dist/react/edges/edgeTypes/FlowChartEdge.d.ts +1 -1
- package/dist/react/edges/edgeTypes/ObjectDiagramEdge.d.ts +1 -1
- package/dist/react/edges/edgeTypes/PetriNetEdge.d.ts +1 -1
- package/dist/react/edges/edgeTypes/ReachabilityGraphArc.d.ts +1 -1
- package/dist/react/edges/edgeTypes/SfcDiagramEdge.d.ts +1 -1
- package/dist/react/edges/edgeTypes/SyntaxTreeEdge.d.ts +1 -1
- package/dist/react/edges/edgeTypes/UseCaseDiagramEdge.d.ts +1 -1
- package/dist/react/edges/labelTypes/EdgeEndLabels.d.ts +1 -1
- package/dist/react/edges/labelTypes/EdgeIncludeExtendLabel.d.ts +1 -1
- package/dist/react/edges/labelTypes/EdgeMiddleLabels.d.ts +1 -1
- package/dist/react/edges/labelTypes/EdgeMultipleLabels.d.ts +1 -1
- package/dist/react/edges/types.d.ts +34 -34
- package/dist/react/export/exportErrors.d.ts +10 -0
- package/dist/react/export/index.d.ts +13 -0
- package/dist/react/export/normalizeExportSvg.d.ts +16 -0
- package/dist/react/export/preProcessSvgForPdf.d.ts +20 -0
- package/dist/react/export/svgToPdf.d.ts +17 -0
- package/dist/react/export/svgToPng.d.ts +38 -0
- package/dist/react/exportFonts-DSRUaduf.js +20 -0
- package/dist/react/exportStyles-CH2hautV.js +6 -0
- package/dist/react/fontStack.d.ts +14 -0
- package/dist/react/hooks/index.d.ts +1 -0
- package/dist/react/hooks/useEdgeLineJumps.d.ts +3 -1
- package/dist/react/hooks/useEdgeToolbar.d.ts +1 -1
- package/dist/react/hooks/usePopoverAnchor.d.ts +26 -0
- package/dist/react/hooks/useReactiveElement.d.ts +10 -0
- package/dist/react/hooks/useRemoteDraggingNodes.d.ts +20 -0
- package/dist/react/hooks/useStepPathEdge.d.ts +1 -1
- package/dist/react/hooks/useStraightPathEdge.d.ts +1 -1
- package/dist/react/index.d.ts +1 -0
- package/dist/react/nodes/TitleAndDescriptionNode.d.ts +1 -1
- package/dist/react/nodes/activityDiagram/Activity.d.ts +1 -1
- package/dist/react/nodes/activityDiagram/ActivityActionNode.d.ts +1 -1
- package/dist/react/nodes/activityDiagram/ActivityFinalNode.d.ts +1 -1
- package/dist/react/nodes/activityDiagram/ActivityForkNode.d.ts +1 -1
- package/dist/react/nodes/activityDiagram/ActivityForkNodeHorizontal.d.ts +1 -1
- package/dist/react/nodes/activityDiagram/ActivityInitialNode.d.ts +1 -1
- package/dist/react/nodes/activityDiagram/ActivityMergeNode.d.ts +1 -1
- package/dist/react/nodes/activityDiagram/ActivityObjectNode.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNAnnotation.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNCallActivity.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNDataObject.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNDataStore.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNEndEvent.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNGateway.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNGroup.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNIntermediateEvent.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNPool.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNStartEvent.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNSubprocess.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNTask.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNTransaction.d.ts +1 -1
- package/dist/react/nodes/classDiagram/Class.d.ts +1 -1
- package/dist/react/nodes/classDiagram/ColorDescription.d.ts +1 -1
- package/dist/react/nodes/classDiagram/Package.d.ts +1 -1
- package/dist/react/nodes/communicationDiagram/CommunicationObjectName.d.ts +1 -1
- package/dist/react/nodes/componentDiagram/Component.d.ts +1 -1
- package/dist/react/nodes/componentDiagram/ComponentInterface.d.ts +1 -1
- package/dist/react/nodes/componentDiagram/ComponentSubsystem.d.ts +1 -1
- package/dist/react/nodes/deploymentDiagram/DeploymentArtifact.d.ts +1 -1
- package/dist/react/nodes/deploymentDiagram/DeploymentComponent.d.ts +1 -1
- package/dist/react/nodes/deploymentDiagram/DeploymentInterface.d.ts +1 -1
- package/dist/react/nodes/deploymentDiagram/DeploymentNode.d.ts +1 -1
- package/dist/react/nodes/flowchart/FlowchartDecision.d.ts +1 -1
- package/dist/react/nodes/flowchart/FlowchartFunctionCall.d.ts +1 -1
- package/dist/react/nodes/flowchart/FlowchartInputOutput.d.ts +1 -1
- package/dist/react/nodes/flowchart/FlowchartProcess.d.ts +1 -1
- package/dist/react/nodes/flowchart/FlowchartTerminal.d.ts +1 -1
- package/dist/react/nodes/objectDiagram/ObjectName.d.ts +1 -1
- package/dist/react/nodes/petriNetDiagram/PetriNetPlace.d.ts +1 -1
- package/dist/react/nodes/petriNetDiagram/PetriNetTransition.d.ts +1 -1
- package/dist/react/nodes/reachabilityGraphDiagram/ReachabilityGraphMarking.d.ts +1 -1
- package/dist/react/nodes/sfcDiagram/SfcActionTable.d.ts +1 -1
- package/dist/react/nodes/sfcDiagram/SfcJump.d.ts +1 -1
- package/dist/react/nodes/sfcDiagram/SfcStart.d.ts +1 -1
- package/dist/react/nodes/sfcDiagram/SfcStep.d.ts +1 -1
- package/dist/react/nodes/sfcDiagram/SfcTransitionBranch.d.ts +1 -1
- package/dist/react/nodes/syntaxTreeDiagram/SyntaxTreeNonterminal.d.ts +1 -1
- package/dist/react/nodes/syntaxTreeDiagram/SyntaxTreeTerminal.d.ts +1 -1
- package/dist/react/nodes/useCaseDiagram/UseCase.d.ts +1 -1
- package/dist/react/nodes/useCaseDiagram/UseCaseActor.d.ts +1 -1
- package/dist/react/nodes/useCaseDiagram/UseCaseSystem.d.ts +1 -1
- package/dist/react/nodes/wrappers/DefaultNodeWrapper.d.ts +1 -1
- package/dist/react/react.js +23599 -24829
- package/dist/react/store/assessmentSelectionStore.d.ts +2 -0
- package/dist/react/store/diagramStore.d.ts +17 -1
- package/dist/react/sync/perfCounters.d.ts +6 -0
- package/dist/react/sync/ydoc.d.ts +2 -0
- package/dist/react/sync/yjsSync.d.ts +3 -2
- package/dist/react/types/nodes/NodeProps.d.ts +3 -3
- package/dist/react/typings.d.ts +23 -2
- package/dist/react/utils/collaboration.d.ts +10 -1
- package/dist/react/utils/exportFonts.d.ts +11 -0
- package/dist/react/utils/exportStyles.d.ts +30 -0
- package/dist/react/utils/exportUtils.d.ts +1 -101
- package/dist/react/utils/paletteLayout.d.ts +66 -0
- package/dist/yjsSync-CqmgRwRE.js +51038 -0
- package/package.json +38 -16
- package/schema/uml-model-4.schema.json +363 -0
- 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
|
|
3
|
-
ClassInheritance: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
4
|
-
ClassRealization: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
5
|
-
ClassComposition: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
6
|
-
ClassBidirectional: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
7
|
-
ClassUnidirectional: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
8
|
-
ClassDependency: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
9
|
-
ActivityControlFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
10
|
-
ObjectLink: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
11
|
-
FlowChartFlowline: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
12
|
-
SyntaxTreeLink: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
13
|
-
CommunicationLink: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
14
|
-
PetriNetArc: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
15
|
-
UseCaseAssociation: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
16
|
-
UseCaseInclude: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
17
|
-
UseCaseExtend: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
18
|
-
UseCaseGeneralization: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
19
|
-
ComponentDependency: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
20
|
-
ComponentProvidedInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
21
|
-
ComponentRequiredInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
22
|
-
ComponentRequiredThreeQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
23
|
-
ComponentRequiredQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
24
|
-
DeploymentAssociation: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
25
|
-
DeploymentDependency: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
26
|
-
DeploymentProvidedInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
27
|
-
DeploymentRequiredInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
28
|
-
DeploymentRequiredThreeQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
29
|
-
DeploymentRequiredQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
30
|
-
SfcDiagramEdge: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
31
|
-
ReachabilityGraphArc: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
32
|
-
BPMNSequenceFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
33
|
-
BPMNMessageFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
34
|
-
BPMNAssociationFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
35
|
-
BPMNDataAssociationFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: import('./GenericEdge').BaseEdgeProps) => import("react
|
|
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>;
|