@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.
- package/README.md +30 -41
- package/dist/assets/style.css +2 -1
- package/dist/export.js +189 -205
- package/dist/exportFonts-B_CLIgms.js +5 -0
- package/dist/exportStyles-ob7cmOn_.js +5 -0
- package/dist/fontStack-BKkvgDI3.js +4 -0
- package/dist/index.d.ts +368 -61
- package/dist/index.js +16853 -35703
- package/dist/internals.d.ts +31 -10
- package/dist/internals.js +28 -45
- package/dist/versionConverter-C-s36Ory.js +4769 -0
- package/package.json +37 -72
- package/schema/uml-model-4.schema.json +1 -0
- package/dist/exportFonts-DxO9jrR1.js +0 -19
- package/dist/exportStyles-Wcc8N8Xj.js +0 -5
- package/dist/fontStack-DOtVH2j8.js +0 -5
- package/dist/react/App.d.ts +0 -9
- package/dist/react/LICENSE-InterFont +0 -92
- package/dist/react/apollon-editor.d.ts +0 -131
- package/dist/react/components/AlignmentGuides.d.ts +0 -1
- package/dist/react/components/AssessmentSelectableElement.d.ts +0 -10
- package/dist/react/components/AssessmentSelectionDebug.d.ts +0 -1
- package/dist/react/components/CustomBackground.d.ts +0 -1
- package/dist/react/components/CustomControls.d.ts +0 -1
- package/dist/react/components/CustomMiniMap.d.ts +0 -1
- package/dist/react/components/DraggableGhost.d.ts +0 -13
- package/dist/react/components/Icon/ArrowBackIcon.d.ts +0 -4
- package/dist/react/components/Icon/ArrowForwardIcon.d.ts +0 -4
- package/dist/react/components/Icon/CheckIcon.d.ts +0 -4
- package/dist/react/components/Icon/CrossIcon.d.ts +0 -4
- package/dist/react/components/Icon/DeleteIcon.d.ts +0 -4
- package/dist/react/components/Icon/DragHandleIcon.d.ts +0 -4
- package/dist/react/components/Icon/EditIcon.d.ts +0 -4
- package/dist/react/components/Icon/ExclamationIcon.d.ts +0 -4
- package/dist/react/components/Icon/InfiniteIcon.d.ts +0 -4
- package/dist/react/components/Icon/MapIcon.d.ts +0 -4
- package/dist/react/components/Icon/PaintRollerIcon.d.ts +0 -2
- package/dist/react/components/Icon/RedoIcon.d.ts +0 -2
- package/dist/react/components/Icon/SouthEastArrowIcon.d.ts +0 -4
- package/dist/react/components/Icon/SwapHorizIcon.d.ts +0 -4
- package/dist/react/components/Icon/UndoIcon.d.ts +0 -2
- package/dist/react/components/Icon/index.d.ts +0 -14
- package/dist/react/components/ReconnectConnectionLine.d.ts +0 -2
- package/dist/react/components/ScrollOverlay.d.ts +0 -7
- package/dist/react/components/Sidebar.d.ts +0 -2
- package/dist/react/components/collaboration/CollaborationLayer.d.ts +0 -25
- package/dist/react/components/collaboration/coordinates.d.ts +0 -7
- package/dist/react/components/index.d.ts +0 -18
- package/dist/react/components/popovers/DefaultNodeEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/DefaultNodeGiveFeedbackPopover.d.ts +0 -2
- package/dist/react/components/popovers/DefaultNodeSeeFeedbackPopover.d.ts +0 -2
- package/dist/react/components/popovers/GenericPopover.d.ts +0 -17
- package/dist/react/components/popovers/GiveFeedbackAssessmentBox.d.ts +0 -7
- package/dist/react/components/popovers/PopoverManager.d.ts +0 -10
- package/dist/react/components/popovers/SeeFeedbackAssessmentBox.d.ts +0 -5
- package/dist/react/components/popovers/bpmnDiagram/BPMNEndEventEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/bpmnDiagram/BPMNGatewayEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/bpmnDiagram/BPMNIntermediateEventEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/bpmnDiagram/BPMNPoolEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/bpmnDiagram/BPMNStartEventEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/bpmnDiagram/BPMNTaskEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/bpmnDiagram/index.d.ts +0 -6
- package/dist/react/components/popovers/classDiagram/ClassEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/classDiagram/ClassGiveFeedbackPopover.d.ts +0 -2
- package/dist/react/components/popovers/classDiagram/ClassSeeFeedbackPopover.d.ts +0 -2
- package/dist/react/components/popovers/classDiagram/EditableAttributesList.d.ts +0 -6
- package/dist/react/components/popovers/classDiagram/EditableMethodsList.d.ts +0 -6
- package/dist/react/components/popovers/classDiagram/index.d.ts +0 -6
- package/dist/react/components/popovers/communicationDiagram/CommunicationObjectNameEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/communicationDiagram/CommunicationObjectNameGiveFeedbackPopover.d.ts +0 -2
- package/dist/react/components/popovers/communicationDiagram/CommunicationObjectNameSeeFeedbackPopover.d.ts +0 -2
- package/dist/react/components/popovers/communicationDiagram/index.d.ts +0 -3
- package/dist/react/components/popovers/componentDiagram/ComponentEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/componentDiagram/ComponentSubsystemEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/componentDiagram/index.d.ts +0 -2
- package/dist/react/components/popovers/deploymentDiagram/DeploymentComponentEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/deploymentDiagram/DeploymentNodeEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/deploymentDiagram/index.d.ts +0 -2
- package/dist/react/components/popovers/edgePopovers/ActivityDiagramEdgeEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/edgePopovers/BPMNDiagramEdgeEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/edgePopovers/ClassDiagramEdgeEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/edgePopovers/CommunicationDiagramEdgeEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/edgePopovers/ComponentDiagramEdgeEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/edgePopovers/DeploymentDiagramEdgeEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/edgePopovers/EdgeGiveFeedbackPopover.d.ts +0 -2
- package/dist/react/components/popovers/edgePopovers/EdgeSeeFeedbackPopover.d.ts +0 -2
- package/dist/react/components/popovers/edgePopovers/EdgeTypePreviewIcon.d.ts +0 -3
- package/dist/react/components/popovers/edgePopovers/EdgeTypeSelect.d.ts +0 -9
- package/dist/react/components/popovers/edgePopovers/FlowChartEdgeEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/edgePopovers/ObjectDiagramEdgeEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/edgePopovers/PetriNetEdgeEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/edgePopovers/ReachabilityGraphEdgeEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/edgePopovers/SwapEndsButton.d.ts +0 -9
- package/dist/react/components/popovers/edgePopovers/SyntaxTreeEdgeEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/edgePopovers/UseCaseDiagramEdgeEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/edgePopovers/index.d.ts +0 -8
- package/dist/react/components/popovers/index.d.ts +0 -3
- package/dist/react/components/popovers/objectDiagram/ObjectEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/objectDiagram/ObjectGiveFeedbackPopover.d.ts +0 -2
- package/dist/react/components/popovers/objectDiagram/ObjectSeeFeedbackPopover.d.ts +0 -2
- package/dist/react/components/popovers/objectDiagram/index.d.ts +0 -3
- package/dist/react/components/popovers/petriNetDiagram/PetriNetPlaceEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/petriNetDiagram/index.d.ts +0 -1
- package/dist/react/components/popovers/reachabilityGraphDiagram/ReachabilityGraphMarkingEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/reachabilityGraphDiagram/index.d.ts +0 -1
- package/dist/react/components/popovers/sfcDiagram/SfcActionTableEditPopover.d.ts +0 -3
- package/dist/react/components/popovers/sfcDiagram/SfcEdgeEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/sfcDiagram/index.d.ts +0 -2
- package/dist/react/components/popovers/syntaxTreeDiagram/SyntaxTreeNonterminalEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/syntaxTreeDiagram/SyntaxTreeTerminalEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/syntaxTreeDiagram/index.d.ts +0 -2
- package/dist/react/components/popovers/types.d.ts +0 -6
- package/dist/react/components/react/Apollon.d.ts +0 -50
- package/dist/react/components/react/context.d.ts +0 -16
- package/dist/react/components/react/useApollonSubscription.d.ts +0 -17
- package/dist/react/components/svgs/AssessmentIcon.d.ts +0 -8
- package/dist/react/components/svgs/StyledElements.d.ts +0 -2
- package/dist/react/components/svgs/edges/InlineMarker.d.ts +0 -70
- package/dist/react/components/svgs/edges/index.d.ts +0 -1
- package/dist/react/components/svgs/index.d.ts +0 -3
- package/dist/react/components/svgs/nodes/CustomText.d.ts +0 -10
- package/dist/react/components/svgs/nodes/HeaderSection.d.ts +0 -14
- package/dist/react/components/svgs/nodes/MultilineText.d.ts +0 -51
- package/dist/react/components/svgs/nodes/RowBlockSection.d.ts +0 -15
- package/dist/react/components/svgs/nodes/SeparationLine.d.ts +0 -8
- package/dist/react/components/svgs/nodes/StereotypeAndName.d.ts +0 -54
- package/dist/react/components/svgs/nodes/activityDiagram/ActivityActionNodeSVG.d.ts +0 -6
- package/dist/react/components/svgs/nodes/activityDiagram/ActivityFinalNodeSVG.d.ts +0 -2
- package/dist/react/components/svgs/nodes/activityDiagram/ActivityForkNodeHorizontalSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/activityDiagram/ActivityForkNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/activityDiagram/ActivityInitialNodeSVG.d.ts +0 -2
- package/dist/react/components/svgs/nodes/activityDiagram/ActivityMergeNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/activityDiagram/ActivityObjectNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/activityDiagram/ActivitySVG.d.ts +0 -6
- package/dist/react/components/svgs/nodes/activityDiagram/index.d.ts +0 -8
- package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNAnnotationNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNDataObjectNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNDataStoreNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNEventNodeSVG.d.ts +0 -8
- package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNGatewayNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNGroupNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNPoolNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNSubprocessNodeSVG.d.ts +0 -8
- package/dist/react/components/svgs/nodes/bpmnDiagram/BPMNTaskNodeSVG.d.ts +0 -6
- package/dist/react/components/svgs/nodes/bpmnDiagram/index.d.ts +0 -9
- package/dist/react/components/svgs/nodes/classDiagram/ClassSVG.d.ts +0 -10
- package/dist/react/components/svgs/nodes/classDiagram/ColorDescriptionSVG.d.ts +0 -10
- package/dist/react/components/svgs/nodes/classDiagram/PackageSVG.d.ts +0 -6
- package/dist/react/components/svgs/nodes/classDiagram/TitleAndDescriptionSVG.d.ts +0 -11
- package/dist/react/components/svgs/nodes/classDiagram/index.d.ts +0 -4
- package/dist/react/components/svgs/nodes/communicationDiagram/CommunicationObjectNameSVG.d.ts +0 -6
- package/dist/react/components/svgs/nodes/communicationDiagram/index.d.ts +0 -1
- package/dist/react/components/svgs/nodes/componentDiagram/ComponentInterfaceNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/componentDiagram/ComponentNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/componentDiagram/ComponentSubsystemNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/componentDiagram/index.d.ts +0 -3
- package/dist/react/components/svgs/nodes/deploymentDiagram/DeploymentArtifactSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/deploymentDiagram/DeploymentComponentSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/deploymentDiagram/DeploymentInterfaceSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/deploymentDiagram/DeploymentNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/deploymentDiagram/index.d.ts +0 -4
- package/dist/react/components/svgs/nodes/flowchartDiagram/FlowchartDecisionNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/flowchartDiagram/FlowchartFunctionCallNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/flowchartDiagram/FlowchartInputOutputNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/flowchartDiagram/FlowchartProcessNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/flowchartDiagram/FlowchartTerminalNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/flowchartDiagram/index.d.ts +0 -5
- package/dist/react/components/svgs/nodes/index.d.ts +0 -13
- package/dist/react/components/svgs/nodes/objectDiagram/ObjectNameSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/objectDiagram/index.d.ts +0 -1
- package/dist/react/components/svgs/nodes/petriNetDiagram/PetriNetPlaceSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/petriNetDiagram/PetriNetTransitionSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/petriNetDiagram/index.d.ts +0 -2
- package/dist/react/components/svgs/nodes/reachabilityGraphDiagram/ReachabilityGraphMarkingSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/reachabilityGraphDiagram/index.d.ts +0 -1
- package/dist/react/components/svgs/nodes/sfcDiagram/SfcActionTableNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/sfcDiagram/SfcJumpNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/sfcDiagram/SfcStartNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/sfcDiagram/SfcStepNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/sfcDiagram/SfcTransitionBranchNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/sfcDiagram/index.d.ts +0 -5
- package/dist/react/components/svgs/nodes/syntaxTreeDiagram/SyntaxTreeNonterminalNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/syntaxTreeDiagram/SyntaxTreeTerminalNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/syntaxTreeDiagram/index.d.ts +0 -2
- package/dist/react/components/svgs/nodes/useCaseDiagram/UseCaseActorNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/useCaseDiagram/UseCaseNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/useCaseDiagram/UseCaseSystemNodeSVG.d.ts +0 -7
- package/dist/react/components/svgs/nodes/useCaseDiagram/index.d.ts +0 -3
- package/dist/react/components/toolbars/NodeToolbar.d.ts +0 -7
- package/dist/react/components/toolbars/edgeToolBar/CustomEdgeToolBar.d.ts +0 -12
- package/dist/react/components/toolbars/edgeToolBar/index.d.ts +0 -1
- package/dist/react/components/toolbars/index.d.ts +0 -1
- package/dist/react/components/ui/DividerLine.d.ts +0 -9
- package/dist/react/components/ui/HeaderSwitchElement.d.ts +0 -7
- package/dist/react/components/ui/PrimaryButton.d.ts +0 -8
- package/dist/react/components/ui/StereotypeButtonGroup.d.ts +0 -8
- package/dist/react/components/ui/StyleEditor/ColorButtons.d.ts +0 -11
- package/dist/react/components/ui/StyleEditor/EdgeStyleEditor.d.ts +0 -11
- package/dist/react/components/ui/StyleEditor/NodeStyleEditor.d.ts +0 -22
- package/dist/react/components/ui/StyleEditor/index.d.ts +0 -2
- package/dist/react/components/ui/TextField.d.ts +0 -3
- package/dist/react/components/ui/Typography.d.ts +0 -3
- package/dist/react/components/ui/index.d.ts +0 -7
- package/dist/react/components/wrapper/AssessmentSelectableWrapper.d.ts +0 -11
- package/dist/react/components/wrapper/FeedbackDropzone.d.ts +0 -10
- package/dist/react/components/wrapper/index.d.ts +0 -2
- package/dist/react/constants.d.ts +0 -243
- package/dist/react/edges/Connection.d.ts +0 -36
- package/dist/react/edges/EdgeProps.d.ts +0 -24
- package/dist/react/edges/GenericEdge.d.ts +0 -78
- package/dist/react/edges/edgeTypes/ActivityDiagramEdge.d.ts +0 -2
- package/dist/react/edges/edgeTypes/BPMNDiagramEdge.d.ts +0 -2
- package/dist/react/edges/edgeTypes/ClassDiagramEdge.d.ts +0 -2
- package/dist/react/edges/edgeTypes/CommunicationDiagramEdge.d.ts +0 -2
- package/dist/react/edges/edgeTypes/ComponentDiagramEdge.d.ts +0 -2
- package/dist/react/edges/edgeTypes/DeploymentDiagramEdge.d.ts +0 -2
- package/dist/react/edges/edgeTypes/FlowChartEdge.d.ts +0 -2
- package/dist/react/edges/edgeTypes/ObjectDiagramEdge.d.ts +0 -2
- package/dist/react/edges/edgeTypes/PetriNetEdge.d.ts +0 -2
- package/dist/react/edges/edgeTypes/ReachabilityGraphArc.d.ts +0 -2
- package/dist/react/edges/edgeTypes/SfcDiagramEdge.d.ts +0 -2
- package/dist/react/edges/edgeTypes/SyntaxTreeEdge.d.ts +0 -2
- package/dist/react/edges/edgeTypes/UseCaseDiagramEdge.d.ts +0 -2
- package/dist/react/edges/edgeTypes/index.d.ts +0 -6
- package/dist/react/edges/index.d.ts +0 -3
- package/dist/react/edges/labelTypes/EdgeEndLabels.d.ts +0 -19
- package/dist/react/edges/labelTypes/EdgeIncludeExtendLabel.d.ts +0 -13
- package/dist/react/edges/labelTypes/EdgeMiddleLabels.d.ts +0 -15
- package/dist/react/edges/labelTypes/EdgeMultipleLabels.d.ts +0 -15
- package/dist/react/edges/types.d.ts +0 -153
- package/dist/react/enums/Quadrant.d.ts +0 -6
- package/dist/react/enums/index.d.ts +0 -1
- package/dist/react/export/exportErrors.d.ts +0 -10
- package/dist/react/export/index.d.ts +0 -13
- package/dist/react/export/normalizeExportSvg.d.ts +0 -16
- package/dist/react/export/preProcessSvgForPdf.d.ts +0 -20
- package/dist/react/export/svgToPdf.d.ts +0 -17
- package/dist/react/export/svgToPng.d.ts +0 -38
- package/dist/react/exportFonts-DSRUaduf.js +0 -20
- package/dist/react/exportStyles-CH2hautV.js +0 -6
- package/dist/react/fontStack.d.ts +0 -14
- package/dist/react/hooks/index.d.ts +0 -19
- package/dist/react/hooks/useAssessmentSelection.d.ts +0 -13
- package/dist/react/hooks/useConnect.d.ts +0 -7
- package/dist/react/hooks/useDiagramModifiable.d.ts +0 -1
- package/dist/react/hooks/useDragOver.d.ts +0 -2
- package/dist/react/hooks/useDropFeedback.d.ts +0 -7
- package/dist/react/hooks/useEdgeConfig.d.ts +0 -83
- package/dist/react/hooks/useEdgeLineJumps.d.ts +0 -27
- package/dist/react/hooks/useEdgeToolbar.d.ts +0 -6
- package/dist/react/hooks/useEdges.d.ts +0 -9
- package/dist/react/hooks/useElementInteractions.d.ts +0 -6
- package/dist/react/hooks/useGoToNextAssessment.d.ts +0 -1
- package/dist/react/hooks/useHandleDelete.d.ts +0 -1
- package/dist/react/hooks/useHandleFinder.d.ts +0 -11
- package/dist/react/hooks/useHandleOnResize.d.ts +0 -4
- package/dist/react/hooks/useIsOnlyThisElementSelected.d.ts +0 -1
- package/dist/react/hooks/useKeyboardShortcuts.d.ts +0 -1
- package/dist/react/hooks/useMessagePositioning.d.ts +0 -30
- package/dist/react/hooks/useNodeDrag.d.ts +0 -2
- package/dist/react/hooks/useNodeDragStop.d.ts +0 -2
- package/dist/react/hooks/usePaneClicked.d.ts +0 -3
- package/dist/react/hooks/usePopoverAnchor.d.ts +0 -26
- package/dist/react/hooks/useReactiveElement.d.ts +0 -10
- package/dist/react/hooks/useReconnect.d.ts +0 -2
- package/dist/react/hooks/useRemoteDraggingNodes.d.ts +0 -20
- package/dist/react/hooks/useSelectionForCopyPaste.d.ts +0 -10
- package/dist/react/hooks/useStepPathEdge.d.ts +0 -51
- package/dist/react/hooks/useStraightPathEdge.d.ts +0 -23
- package/dist/react/hooks/useViewPointCenter.d.ts +0 -2
- package/dist/react/index.d.ts +0 -8
- package/dist/react/internals.d.ts +0 -5
- package/dist/react/logger.d.ts +0 -10
- package/dist/react/nodes/TitleAndDescriptionNode.d.ts +0 -7
- package/dist/react/nodes/activityDiagram/Activity.d.ts +0 -3
- package/dist/react/nodes/activityDiagram/ActivityActionNode.d.ts +0 -3
- package/dist/react/nodes/activityDiagram/ActivityFinalNode.d.ts +0 -3
- package/dist/react/nodes/activityDiagram/ActivityForkNode.d.ts +0 -3
- package/dist/react/nodes/activityDiagram/ActivityForkNodeHorizontal.d.ts +0 -3
- package/dist/react/nodes/activityDiagram/ActivityInitialNode.d.ts +0 -3
- package/dist/react/nodes/activityDiagram/ActivityMergeNode.d.ts +0 -3
- package/dist/react/nodes/activityDiagram/ActivityObjectNode.d.ts +0 -3
- package/dist/react/nodes/activityDiagram/index.d.ts +0 -8
- package/dist/react/nodes/bpmn/BPMNAnnotation.d.ts +0 -3
- package/dist/react/nodes/bpmn/BPMNCallActivity.d.ts +0 -3
- package/dist/react/nodes/bpmn/BPMNDataObject.d.ts +0 -3
- package/dist/react/nodes/bpmn/BPMNDataStore.d.ts +0 -3
- package/dist/react/nodes/bpmn/BPMNEndEvent.d.ts +0 -3
- package/dist/react/nodes/bpmn/BPMNGateway.d.ts +0 -3
- package/dist/react/nodes/bpmn/BPMNGroup.d.ts +0 -3
- package/dist/react/nodes/bpmn/BPMNIntermediateEvent.d.ts +0 -3
- package/dist/react/nodes/bpmn/BPMNPool.d.ts +0 -3
- package/dist/react/nodes/bpmn/BPMNStartEvent.d.ts +0 -3
- package/dist/react/nodes/bpmn/BPMNSubprocess.d.ts +0 -3
- package/dist/react/nodes/bpmn/BPMNTask.d.ts +0 -3
- package/dist/react/nodes/bpmn/BPMNTransaction.d.ts +0 -3
- package/dist/react/nodes/bpmn/index.d.ts +0 -13
- package/dist/react/nodes/classDiagram/Class.d.ts +0 -3
- package/dist/react/nodes/classDiagram/ColorDescription.d.ts +0 -3
- package/dist/react/nodes/classDiagram/Package.d.ts +0 -3
- package/dist/react/nodes/classDiagram/index.d.ts +0 -3
- package/dist/react/nodes/communicationDiagram/CommunicationObjectName.d.ts +0 -3
- package/dist/react/nodes/communicationDiagram/index.d.ts +0 -1
- package/dist/react/nodes/componentDiagram/Component.d.ts +0 -3
- package/dist/react/nodes/componentDiagram/ComponentInterface.d.ts +0 -3
- package/dist/react/nodes/componentDiagram/ComponentSubsystem.d.ts +0 -3
- package/dist/react/nodes/componentDiagram/index.d.ts +0 -3
- package/dist/react/nodes/deploymentDiagram/DeploymentArtifact.d.ts +0 -3
- package/dist/react/nodes/deploymentDiagram/DeploymentComponent.d.ts +0 -3
- package/dist/react/nodes/deploymentDiagram/DeploymentInterface.d.ts +0 -3
- package/dist/react/nodes/deploymentDiagram/DeploymentNode.d.ts +0 -3
- package/dist/react/nodes/deploymentDiagram/index.d.ts +0 -4
- package/dist/react/nodes/flowchart/FlowchartDecision.d.ts +0 -3
- package/dist/react/nodes/flowchart/FlowchartFunctionCall.d.ts +0 -3
- package/dist/react/nodes/flowchart/FlowchartInputOutput.d.ts +0 -3
- package/dist/react/nodes/flowchart/FlowchartProcess.d.ts +0 -3
- package/dist/react/nodes/flowchart/FlowchartTerminal.d.ts +0 -3
- package/dist/react/nodes/flowchart/index.d.ts +0 -5
- package/dist/react/nodes/index.d.ts +0 -8
- package/dist/react/nodes/objectDiagram/ObjectName.d.ts +0 -3
- package/dist/react/nodes/objectDiagram/index.d.ts +0 -1
- package/dist/react/nodes/petriNetDiagram/PetriNetPlace.d.ts +0 -3
- package/dist/react/nodes/petriNetDiagram/PetriNetTransition.d.ts +0 -3
- package/dist/react/nodes/petriNetDiagram/index.d.ts +0 -2
- package/dist/react/nodes/reachabilityGraphDiagram/ReachabilityGraphMarking.d.ts +0 -3
- package/dist/react/nodes/reachabilityGraphDiagram/index.d.ts +0 -1
- package/dist/react/nodes/sfcDiagram/SfcActionTable.d.ts +0 -3
- package/dist/react/nodes/sfcDiagram/SfcJump.d.ts +0 -3
- package/dist/react/nodes/sfcDiagram/SfcStart.d.ts +0 -3
- package/dist/react/nodes/sfcDiagram/SfcStep.d.ts +0 -3
- package/dist/react/nodes/sfcDiagram/SfcTransitionBranch.d.ts +0 -3
- package/dist/react/nodes/sfcDiagram/index.d.ts +0 -5
- package/dist/react/nodes/syntaxTreeDiagram/SyntaxTreeNonterminal.d.ts +0 -3
- package/dist/react/nodes/syntaxTreeDiagram/SyntaxTreeTerminal.d.ts +0 -3
- package/dist/react/nodes/types.d.ts +0 -72
- package/dist/react/nodes/useCaseDiagram/UseCase.d.ts +0 -3
- package/dist/react/nodes/useCaseDiagram/UseCaseActor.d.ts +0 -3
- package/dist/react/nodes/useCaseDiagram/UseCaseSystem.d.ts +0 -3
- package/dist/react/nodes/useCaseDiagram/index.d.ts +0 -3
- package/dist/react/nodes/wrappers/DefaultNodeWrapper.d.ts +0 -49
- package/dist/react/nodes/wrappers/index.d.ts +0 -1
- package/dist/react/react.d.ts +0 -4
- package/dist/react/react.js +0 -33449
- package/dist/react/services/migration/EdgeTransformer.d.ts +0 -11
- package/dist/react/store/alignmentGuidesStore.d.ts +0 -13
- package/dist/react/store/assessmentSelectionStore.d.ts +0 -17
- package/dist/react/store/context.d.ts +0 -19
- package/dist/react/store/diagramStore.d.ts +0 -70
- package/dist/react/store/edgeGeometryStore.d.ts +0 -18
- package/dist/react/store/index.d.ts +0 -7
- package/dist/react/store/metadataStore.d.ts +0 -39
- package/dist/react/store/popoverStore.d.ts +0 -9
- package/dist/react/styles/theme.d.ts +0 -51
- package/dist/react/sync/headless.d.ts +0 -16
- package/dist/react/sync/perfCounters.d.ts +0 -6
- package/dist/react/sync/ydoc.d.ts +0 -9
- package/dist/react/sync/yjsSync.d.ts +0 -63
- package/dist/react/types/DiagramType.d.ts +0 -16
- package/dist/react/types/SVG.d.ts +0 -8
- package/dist/react/types/index.d.ts +0 -3
- package/dist/react/types/locationPopover.d.ts +0 -5
- package/dist/react/types/nodes/DropNodeDate.d.ts +0 -7
- package/dist/react/types/nodes/NodeProps.d.ts +0 -77
- package/dist/react/types/nodes/enums/ClassType.d.ts +0 -5
- package/dist/react/types/nodes/enums/index.d.ts +0 -1
- package/dist/react/types/nodes/index.d.ts +0 -3
- package/dist/react/typings.d.ts +0 -186
- package/dist/react/utils/alignmentUtils.d.ts +0 -32
- package/dist/react/utils/bpmnConstraints.d.ts +0 -5
- package/dist/react/utils/collaboration.d.ts +0 -19
- package/dist/react/utils/copyPasteUtils.d.ts +0 -32
- package/dist/react/utils/deepPartial.d.ts +0 -3
- package/dist/react/utils/diagramTypeUtils.d.ts +0 -6
- package/dist/react/utils/edgeUtils.d.ts +0 -167
- package/dist/react/utils/exportFonts.d.ts +0 -11
- package/dist/react/utils/exportStyles.d.ts +0 -30
- package/dist/react/utils/exportUtils.d.ts +0 -11
- package/dist/react/utils/geometry/bendHandles.d.ts +0 -42
- package/dist/react/utils/helpers.d.ts +0 -14
- package/dist/react/utils/index.d.ts +0 -18
- package/dist/react/utils/interactiveUtils.d.ts +0 -6
- package/dist/react/utils/layoutUtils.d.ts +0 -30
- package/dist/react/utils/nodeUtils.d.ts +0 -15
- package/dist/react/utils/paletteLayout.d.ts +0 -66
- package/dist/react/utils/pathParsing.d.ts +0 -54
- package/dist/react/utils/popoverUtils.d.ts +0 -3
- package/dist/react/utils/quadrantUtils.d.ts +0 -3
- package/dist/react/utils/requiredInterfaceUtils.d.ts +0 -18
- package/dist/react/utils/storeUtils.d.ts +0 -1
- package/dist/react/utils/svgTextLayout.d.ts +0 -86
- package/dist/react/utils/textUtils.d.ts +0 -1
- package/dist/react/utils/v3Typings.d.ts +0 -135
- package/dist/react/utils/versionConverter.d.ts +0 -60
- 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,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 {};
|