@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
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
1
2
|
import { Edge } from '@xyflow/react';
|
|
2
3
|
import { EdgeProps } from '@xyflow/react';
|
|
3
4
|
import { JSX } from 'react';
|
|
4
5
|
import { Node as Node_2 } from '@xyflow/react';
|
|
5
6
|
import { NodeProps } from '@xyflow/react';
|
|
7
|
+
import { ReactNode } from 'react';
|
|
8
|
+
import { Ref } from 'react';
|
|
6
9
|
import { XYPosition } from '@xyflow/react';
|
|
7
10
|
|
|
8
11
|
declare function Activity({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
@@ -21,12 +24,29 @@ declare function ActivityMergeNode({ id, width, height, data, parentId, }: NodeP
|
|
|
21
24
|
|
|
22
25
|
declare function ActivityObjectNode({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
23
26
|
|
|
24
|
-
declare
|
|
27
|
+
declare function ActivitySwimlane({ id, width, height, data, parentId, }: NodeProps<Node_2<ActivitySwimlaneProps>>): JSX.Element | null;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Activity-partition (swimlane) container. Lanes are equal divisions along the
|
|
31
|
+
* primary axis (columns when vertical, rows when horizontal). Elements dropped
|
|
32
|
+
* into the swimlane become its children and move with it; which lane an element
|
|
33
|
+
* belongs to is expressed by where the modeller places it, matching the UML
|
|
34
|
+
* activity-partition notation where partition membership is positional rather
|
|
35
|
+
* than stored per element.
|
|
36
|
+
*/
|
|
37
|
+
declare type ActivitySwimlaneProps = DefaultNodeProps & {
|
|
38
|
+
orientation: "vertical" | "horizontal";
|
|
39
|
+
lanes: SwimlaneLane[];
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** React wrapper around {@link ApollonEditor}. See `@tumaet/apollon` docs. */
|
|
43
|
+
export declare function Apollon(props: ApollonProps): JSX.Element;
|
|
44
|
+
|
|
45
|
+
declare namespace Apollon_2 {
|
|
25
46
|
export {
|
|
26
47
|
UMLDiagramType,
|
|
27
48
|
DiagramNodeType,
|
|
28
49
|
DiagramEdgeType,
|
|
29
|
-
Styles,
|
|
30
50
|
Unsubscriber,
|
|
31
51
|
Subscribers,
|
|
32
52
|
UMLModelElementType,
|
|
@@ -63,6 +83,24 @@ export declare type ApollonCollaborationOptions = {
|
|
|
63
83
|
showFollow?: boolean;
|
|
64
84
|
};
|
|
65
85
|
|
|
86
|
+
/**
|
|
87
|
+
* Declarative façade over `editor.addControl`. Registers a control that renders
|
|
88
|
+
* a stable host node into the chosen region, and portals `children` into that
|
|
89
|
+
* node — so children render INSIDE the canvas while React owns their
|
|
90
|
+
* reconciliation. Children changes therefore never touch the overlay store; only
|
|
91
|
+
* real option changes (region/inset/order/…) push an update. Returns null in the
|
|
92
|
+
* host tree.
|
|
93
|
+
*/
|
|
94
|
+
export declare function ApollonControl({ children, ...options }: ApollonControlProps): ReactNode;
|
|
95
|
+
|
|
96
|
+
/** Props for {@link ApollonControl}: every {@link OverlayControlOptions} field
|
|
97
|
+
* (id, region, inset, order, …) plus the children to render in-canvas. */
|
|
98
|
+
export declare type ApollonControlProps = OverlayControlOptions & {
|
|
99
|
+
/** Portaled into the control's host node inside the chosen region. Children
|
|
100
|
+
* changes never re-register the control; only real option changes do. */
|
|
101
|
+
children: ReactNode;
|
|
102
|
+
};
|
|
103
|
+
|
|
66
104
|
export declare type ApollonEdge = {
|
|
67
105
|
id: string;
|
|
68
106
|
source: string;
|
|
@@ -82,10 +120,10 @@ export declare class ApollonEditor {
|
|
|
82
120
|
private readonly metadataStore;
|
|
83
121
|
private readonly popoverStore;
|
|
84
122
|
private readonly assessmentSelectionStore;
|
|
85
|
-
private readonly
|
|
86
|
-
private readonly
|
|
123
|
+
private readonly overlayStore;
|
|
124
|
+
private readonly hostRegionEls;
|
|
87
125
|
private subscribers;
|
|
88
|
-
constructor(element: HTMLElement, options?:
|
|
126
|
+
constructor(element: HTMLElement, options?: Apollon_2.ApollonOptions);
|
|
89
127
|
private setReactFlowInstance;
|
|
90
128
|
getNodes(): Node_2[];
|
|
91
129
|
getEdges(): Edge[];
|
|
@@ -102,26 +140,78 @@ export declare class ApollonEditor {
|
|
|
102
140
|
x: number;
|
|
103
141
|
y: number;
|
|
104
142
|
}): XYPosition | null;
|
|
143
|
+
/**
|
|
144
|
+
* Zoom/pan so the whole diagram fits, capped at `maxZoom: 1.0`. Retries up to
|
|
145
|
+
* 10 animation frames until every node is measured.
|
|
146
|
+
* @param options.padding - Scalar fraction (default `0.15`), or per-side px
|
|
147
|
+
* that adds to a 16px gutter. A per-side object forces the inset-aware path.
|
|
148
|
+
* @param options.duration - Animation duration in ms (default `200`).
|
|
149
|
+
* @param options.respectInsets - Pad the fit by reserved overlay insets
|
|
150
|
+
* (header, rails, …). Default `true`.
|
|
151
|
+
*/
|
|
105
152
|
fitView(options?: {
|
|
106
|
-
padding?: number
|
|
153
|
+
padding?: number | Partial<Record<OverlaySide, number>>;
|
|
107
154
|
duration?: number;
|
|
155
|
+
/** Pad the fit by the reserved overlay insets (header, rails, …). */
|
|
156
|
+
respectInsets?: boolean;
|
|
108
157
|
}): void;
|
|
158
|
+
/**
|
|
159
|
+
* Register a floating control, returning a disposer. Re-using an id replaces
|
|
160
|
+
* (idempotent / StrictMode-safe). Pick a façade: a React host →
|
|
161
|
+
* `<ApollonControl>`; a non-React host (or one that needs its own React
|
|
162
|
+
* root/context) → `getRegionElement` + `createPortal`; a one-off imperative
|
|
163
|
+
* widget → `addControl`.
|
|
164
|
+
* @param control - id, target region, a `render` thunk, and optional layout
|
|
165
|
+
* options ({@link OverlayControlInput}).
|
|
166
|
+
* @returns A disposer that unregisters this control; safe to call twice.
|
|
167
|
+
* @throws If `id` is empty or `region` is not a known region — mistakes fail
|
|
168
|
+
* loudly at the edge, not silently in the renderer.
|
|
169
|
+
*/
|
|
170
|
+
addControl(control: OverlayControlInput): () => void;
|
|
171
|
+
/**
|
|
172
|
+
* Patch a registered control's options/renderer (a no-op if absent).
|
|
173
|
+
* @param id - The control's immutable id (an `id` in `patch` is ignored).
|
|
174
|
+
* @param patch - Partial options/renderer merged over the existing control.
|
|
175
|
+
*/
|
|
176
|
+
updateControl(id: string, patch: Partial<OverlayControlInput>): void;
|
|
177
|
+
/**
|
|
178
|
+
* @param id - A control id.
|
|
179
|
+
* @returns `true` if a control with this id is currently registered.
|
|
180
|
+
*/
|
|
181
|
+
hasControl(id: string): boolean;
|
|
182
|
+
/**
|
|
183
|
+
* A stable DOM node anchored in `region`, for hosts that render their own
|
|
184
|
+
* React into it (via `createPortal`) to keep host context. Auto-measured, so
|
|
185
|
+
* the diagram makes room for whatever the host mounts. Lifetime = the editor;
|
|
186
|
+
* `releaseRegionElement` unregisters it. Reserved id: `apollon:host:<region>`.
|
|
187
|
+
* @param region - The region to anchor the node in.
|
|
188
|
+
* @returns The same node for the lifetime of one acquire; `releaseRegionElement`
|
|
189
|
+
* drops it and the next call returns a fresh node.
|
|
190
|
+
* @throws If `region` is not a known region.
|
|
191
|
+
*/
|
|
192
|
+
getRegionElement(region: OverlayRegion): HTMLElement;
|
|
193
|
+
/**
|
|
194
|
+
* Release a region acquired via {@link getRegionElement} (unregister + drop
|
|
195
|
+
* the cached node); a later `getRegionElement(region)` creates a fresh node.
|
|
196
|
+
* @param region - The region whose host node to release.
|
|
197
|
+
*/
|
|
198
|
+
releaseRegionElement(region: OverlayRegion): void;
|
|
109
199
|
set diagramType(type: UMLDiagramType);
|
|
110
200
|
destroy(): void;
|
|
111
201
|
/** Renders a model to SVG via a hidden, off-screen mount. */
|
|
112
|
-
static exportModelAsSvg(model:
|
|
202
|
+
static exportModelAsSvg(model: Apollon_2.UMLModel, options?: Apollon_2.ExportOptions): Promise<Apollon_2.SVG>;
|
|
113
203
|
/**
|
|
114
204
|
* exports current model as svg
|
|
115
205
|
* @param options options to change the export behavior (add margin, exclude element ...)
|
|
116
206
|
*/
|
|
117
|
-
exportAsSVG(options?:
|
|
207
|
+
exportAsSVG(options?: Apollon_2.ExportOptions): Promise<Apollon_2.SVG>;
|
|
118
208
|
private getNewSubscriptionId;
|
|
119
|
-
subscribeToModelChange(callback: (state:
|
|
209
|
+
subscribeToModelChange(callback: (state: Apollon_2.UMLModel) => void): number;
|
|
120
210
|
subscribeToDiagramNameChange(callback: (diagramTitle: string) => void): number;
|
|
121
211
|
subscribeToAssessmentSelection(callback: (selectedElementIds: string[]) => void): number;
|
|
122
212
|
subscribeToSelectionChange(callback: (selectedElementIds: string[]) => void): number;
|
|
123
|
-
subscribeToAwarenessChanges(callback: (states: Map<number,
|
|
124
|
-
subscribeToCollaboratorChanges(callback: (collaborators:
|
|
213
|
+
subscribeToAwarenessChanges(callback: (states: Map<number, Apollon_2.CollaborationState>) => void): number;
|
|
214
|
+
subscribeToCollaboratorChanges(callback: (collaborators: Apollon_2.CollaboratorInfo[]) => void): number;
|
|
125
215
|
unsubscribe(subscriberId: number): void;
|
|
126
216
|
sendBroadcastMessage(sendFn: SendBroadcastMessage): void;
|
|
127
217
|
receiveBroadcastedMessage(base64Data: string): void;
|
|
@@ -131,12 +221,12 @@ export declare class ApollonEditor {
|
|
|
131
221
|
* absorbed by the room. See `YjsSync.broadcastFullState`.
|
|
132
222
|
*/
|
|
133
223
|
broadcastFullState(): void;
|
|
134
|
-
setLocalAwarenessUser(user:
|
|
135
|
-
setLocalAwarenessCursor(cursor:
|
|
224
|
+
setLocalAwarenessUser(user: Apollon_2.CollaborationUser): void;
|
|
225
|
+
setLocalAwarenessCursor(cursor: Apollon_2.CollaborationCursor | null): void;
|
|
136
226
|
setLocalAwarenessSelectedElement(selectedElementId: string | null): void;
|
|
137
|
-
setLocalAwarenessState(state: Partial<
|
|
227
|
+
setLocalAwarenessState(state: Partial<Apollon_2.CollaborationState>): void;
|
|
138
228
|
getLocalAwarenessClientId(): number;
|
|
139
|
-
getCollaborators():
|
|
229
|
+
getCollaborators(): Apollon_2.CollaboratorInfo[];
|
|
140
230
|
updateDiagramTitle(name: string): void;
|
|
141
231
|
/**
|
|
142
232
|
* Toggles the editor's read-only state at runtime. Used by hosting apps
|
|
@@ -146,7 +236,7 @@ export declare class ApollonEditor {
|
|
|
146
236
|
*/
|
|
147
237
|
setReadonly(readonly: boolean): void;
|
|
148
238
|
/** Live-toggle modeling vs assessment vs exporting mode. */
|
|
149
|
-
setMode(mode:
|
|
239
|
+
setMode(mode: Apollon_2.ApollonMode): void;
|
|
150
240
|
/** Live-toggle whether the canvas captures page scroll. */
|
|
151
241
|
setScrollLock(scrollLock: boolean): void;
|
|
152
242
|
/**
|
|
@@ -167,20 +257,18 @@ export declare class ApollonEditor {
|
|
|
167
257
|
*/
|
|
168
258
|
setPreviewMode(active: boolean): void;
|
|
169
259
|
toggleInteractiveElementsMode(forceEnabled?: boolean): void;
|
|
170
|
-
getInteractiveForSerialization():
|
|
260
|
+
getInteractiveForSerialization(): Apollon_2.InteractiveElements | undefined;
|
|
171
261
|
getDiagramMetadata(): {
|
|
172
262
|
diagramTitle: string;
|
|
173
263
|
diagramType: "ClassDiagram" | "ObjectDiagram" | "ActivityDiagram" | "UseCaseDiagram" | "CommunicationDiagram" | "ComponentDiagram" | "DeploymentDiagram" | "PetriNet" | "ReachabilityGraph" | "SyntaxTree" | "Flowchart" | "BPMN" | "Sfc";
|
|
174
264
|
};
|
|
175
|
-
get model():
|
|
176
|
-
set model(model:
|
|
265
|
+
get model(): Apollon_2.UMLModel;
|
|
266
|
+
set model(model: Apollon_2.UMLModel);
|
|
177
267
|
/**
|
|
178
268
|
* Host-driven element highlighting. Paints a translucent overlay over each
|
|
179
|
-
* given node / edge / class-member id in the supplied CSS color
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
* elements that are missing feedback, or Athena marking elements that have
|
|
183
|
-
* automatic-feedback suggestions.
|
|
269
|
+
* given node / edge / class-member id in the supplied CSS color. Typical
|
|
270
|
+
* hosts: an assessment editor marking elements that are missing feedback, or
|
|
271
|
+
* Athena marking elements that have automatic-feedback suggestions.
|
|
184
272
|
*
|
|
185
273
|
* The highlight is an ephemeral view overlay: it is NOT written into the
|
|
186
274
|
* model, NOT serialized by `get model`, and NOT shared with collaborators.
|
|
@@ -194,9 +282,9 @@ export declare class ApollonEditor {
|
|
|
194
282
|
/** Returns a copy of the current highlight record (id -> CSS color). */
|
|
195
283
|
getElementHighlights(): Record<string, string>;
|
|
196
284
|
getSelectedElements(): string[];
|
|
197
|
-
get view():
|
|
198
|
-
set view(view:
|
|
199
|
-
addOrUpdateAssessment(assessment:
|
|
285
|
+
get view(): Apollon_2.ApollonView;
|
|
286
|
+
set view(view: Apollon_2.ApollonView);
|
|
287
|
+
addOrUpdateAssessment(assessment: Apollon_2.Assessment): void;
|
|
200
288
|
static generateInitialSyncMessage(): string;
|
|
201
289
|
static generateInitialAwarenessSyncMessage(): string;
|
|
202
290
|
}
|
|
@@ -239,30 +327,159 @@ export declare type ApollonOptions = {
|
|
|
239
327
|
collaborationEnabled?: boolean;
|
|
240
328
|
collaboration?: ApollonCollaborationOptions;
|
|
241
329
|
scrollLock?: boolean;
|
|
330
|
+
/**
|
|
331
|
+
* Optional `--apollon-*` CSS custom properties applied to the editor's mount
|
|
332
|
+
* element. Build one with `createApollonTheme(...)`. Fully optional — an
|
|
333
|
+
* un-themed editor falls back to the library's built-in light/dark values.
|
|
334
|
+
*/
|
|
335
|
+
theme?: Partial<Record<`--apollon-${string}`, string>>;
|
|
336
|
+
/**
|
|
337
|
+
* Sets `data-theme` on the mount element. Optional — when omitted the editor
|
|
338
|
+
* keeps any `data-theme` already on the element / inherited from an ancestor.
|
|
339
|
+
* See `library/THEMING.md`.
|
|
340
|
+
*/
|
|
341
|
+
dataTheme?: "light" | "dark";
|
|
242
342
|
};
|
|
243
343
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
}
|
|
265
|
-
|
|
344
|
+
/**
|
|
345
|
+
* Props for the {@link Apollon} React component.
|
|
346
|
+
*
|
|
347
|
+
* - `default*` / `availableViews` / `enablePopups` / `collaborationEnabled` /
|
|
348
|
+
* `debug` are **snapshotted on mount** — re-key the component to apply
|
|
349
|
+
* changes against a new editor instance.
|
|
350
|
+
* - `readonly` / `view` / `mode` / `scrollLock` / `previewMode` / `model`
|
|
351
|
+
* are **reactive** — applied via the matching `ApollonEditor` setter when
|
|
352
|
+
* the prop changes. Passing `undefined` leaves the live value untouched;
|
|
353
|
+
* re-key the component to fully reset.
|
|
354
|
+
*/
|
|
355
|
+
export declare interface ApollonProps {
|
|
356
|
+
className?: string;
|
|
357
|
+
/** Inline styles. Needs an explicit non-zero height or the canvas renders blank. */
|
|
358
|
+
style?: CSSProperties;
|
|
359
|
+
/**
|
|
360
|
+
* Optional `--apollon-*` CSS custom properties spread onto the mount node's
|
|
361
|
+
* `style`. Build one with `createApollonTheme(...)`. Fully optional — an
|
|
362
|
+
* un-themed embed falls back to the library's built-in light/dark values.
|
|
363
|
+
*/
|
|
364
|
+
theme?: Partial<Record<`--apollon-${string}`, string>>;
|
|
365
|
+
/**
|
|
366
|
+
* Sets `data-theme` on the mount node. Optional — when omitted the editor
|
|
367
|
+
* inherits whatever `data-theme` an ancestor declares, or the default light
|
|
368
|
+
* values. See `library/THEMING.md`.
|
|
369
|
+
*/
|
|
370
|
+
dataTheme?: "light" | "dark";
|
|
371
|
+
/** Rendered inside the {@link ApollonInstanceContext} provider alongside the canvas. */
|
|
372
|
+
children?: ReactNode;
|
|
373
|
+
defaultModel?: UMLModel;
|
|
374
|
+
defaultType?: UMLDiagramType;
|
|
375
|
+
defaultMode?: ApollonMode;
|
|
376
|
+
defaultView?: ApollonView;
|
|
377
|
+
availableViews?: ApollonView[];
|
|
378
|
+
enablePopups?: boolean;
|
|
379
|
+
collaborationEnabled?: boolean;
|
|
380
|
+
collaboration?: ApollonCollaborationOptions;
|
|
381
|
+
debug?: boolean;
|
|
382
|
+
readonly?: boolean;
|
|
383
|
+
view?: ApollonView;
|
|
384
|
+
mode?: ApollonMode;
|
|
385
|
+
scrollLock?: boolean;
|
|
386
|
+
/** Local-only preview overlay. See {@link ApollonEditor.setPreviewMode}. */
|
|
387
|
+
previewMode?: boolean;
|
|
388
|
+
/**
|
|
389
|
+
* One-way reactive model push — each new value applies via
|
|
390
|
+
* `editor.model = value`. NOT a two-way controlled value: the editor's own
|
|
391
|
+
* edits are not mirrored back, and feeding `subscribeToModelChange` into this
|
|
392
|
+
* prop loops. For save-on-change use `defaultModel` + an `onMount` subscription.
|
|
393
|
+
*/
|
|
394
|
+
model?: UMLModel;
|
|
395
|
+
/**
|
|
396
|
+
* Called once with the instance after mount. The optional returned function
|
|
397
|
+
* runs as cleanup before destroy (React-19-style cleanup return).
|
|
398
|
+
*/
|
|
399
|
+
onMount?: (editor: ApollonEditor) => void | (() => void);
|
|
400
|
+
/**
|
|
401
|
+
* Imperative handle to the underlying {@link ApollonEditor}. Assigned once
|
|
402
|
+
* after mount and cleared on unmount.
|
|
403
|
+
*/
|
|
404
|
+
ref?: Ref<ApollonEditor | null>;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Make a host-owned {@link ApollonEditor} reachable to descendants via
|
|
409
|
+
* {@link useApollonEditor}. Use when the host constructs the editor directly
|
|
410
|
+
* (non-React adapter, test fixture) instead of rendering {@link Apollon}.
|
|
411
|
+
*/
|
|
412
|
+
export declare function ApollonProvider({ editor, children, }: {
|
|
413
|
+
editor: ApollonEditor;
|
|
414
|
+
children: ReactNode;
|
|
415
|
+
}): JSX.Element;
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* The documented, stable subset of the `--apollon-*` editor theming tokens.
|
|
419
|
+
*
|
|
420
|
+
* Every field is optional: provide only the tokens you want to override; the
|
|
421
|
+
* rest fall back to the library's built-in light/dark values. Values are any
|
|
422
|
+
* valid CSS color/length string (e.g. `"#3e8acc"`, `"rgb(62 138 204)"`,
|
|
423
|
+
* `"var(--my-brand)"`).
|
|
424
|
+
*
|
|
425
|
+
* See `library/THEMING.md` for the full variable contract and host patterns.
|
|
426
|
+
*/
|
|
427
|
+
export declare interface ApollonTheme {
|
|
428
|
+
/** Accent / brand color. Maps to `--apollon-primary`. */
|
|
429
|
+
primary?: string;
|
|
430
|
+
/** Foreground used on top of `background`. Maps to `--apollon-primary-contrast`. */
|
|
431
|
+
primaryContrast?: string;
|
|
432
|
+
/** Muted/secondary accent. Maps to `--apollon-secondary`. */
|
|
433
|
+
secondary?: string;
|
|
434
|
+
/** Canvas / surface background. Maps to `--apollon-background`. */
|
|
435
|
+
background?: string;
|
|
436
|
+
/** Inverse of `background` (e.g. tooltips). Maps to `--apollon-background-inverse`. */
|
|
437
|
+
backgroundInverse?: string;
|
|
438
|
+
/** Slightly raised surface variant. Maps to `--apollon-background-variant`. */
|
|
439
|
+
backgroundVariant?: string;
|
|
440
|
+
/** Neutral gray surface. Maps to `--apollon-gray`. */
|
|
441
|
+
gray?: string;
|
|
442
|
+
/** Stronger gray (borders/dividers). Maps to `--apollon-gray-variant`. */
|
|
443
|
+
grayVariant?: string;
|
|
444
|
+
/** Canvas grid line color. Maps to `--apollon-grid`. */
|
|
445
|
+
grid?: string;
|
|
446
|
+
/** Vertical alignment guide color. Maps to `--apollon-guide-vertical`. */
|
|
447
|
+
guideVertical?: string;
|
|
448
|
+
/** Horizontal alignment guide color. Maps to `--apollon-guide-horizontal`. */
|
|
449
|
+
guideHorizontal?: string;
|
|
450
|
+
/** Warning alert accent. Maps to `--apollon-alert-warning-yellow`. */
|
|
451
|
+
warning?: string;
|
|
452
|
+
/** Warning alert background. Maps to `--apollon-alert-warning-background`. */
|
|
453
|
+
warningBackground?: string;
|
|
454
|
+
/** Warning alert border. Maps to `--apollon-alert-warning-border`. */
|
|
455
|
+
warningBorder?: string;
|
|
456
|
+
/** Danger alert text color. Maps to `--apollon-alert-danger-color`. */
|
|
457
|
+
danger?: string;
|
|
458
|
+
/** Danger alert background. Maps to `--apollon-alert-danger-background`. */
|
|
459
|
+
dangerBackground?: string;
|
|
460
|
+
/** Danger alert border. Maps to `--apollon-alert-danger-border`. */
|
|
461
|
+
dangerBorder?: string;
|
|
462
|
+
/** Raised card/popover/menu surface. Maps to `--apollon-surface`. */
|
|
463
|
+
surface?: string;
|
|
464
|
+
/** Sunken/recessed surface (e.g. wells, muted areas). Maps to `--apollon-surface-sunken`. */
|
|
465
|
+
surfaceSunken?: string;
|
|
466
|
+
/** Hover state of the raised surface. Maps to `--apollon-surface-hover`. */
|
|
467
|
+
surfaceHover?: string;
|
|
468
|
+
/** Default border / divider color. Maps to `--apollon-border`. */
|
|
469
|
+
border?: string;
|
|
470
|
+
/** Subtle border / divider color. Maps to `--apollon-border-subtle`. */
|
|
471
|
+
borderSubtle?: string;
|
|
472
|
+
/** Base corner radius for shared primitives (CSS length). Maps to `--apollon-radius`. */
|
|
473
|
+
radius?: string;
|
|
474
|
+
/** Toggle/switch outline. Maps to `--apollon-switch-box-border-color`. */
|
|
475
|
+
switchBoxBorderColor?: string;
|
|
476
|
+
/** List-group surface color. Maps to `--apollon-list-group-color`. */
|
|
477
|
+
listGroupColor?: string;
|
|
478
|
+
/** Outline-secondary button color. Maps to `--apollon-btn-outline-secondary-color`. */
|
|
479
|
+
btnOutlineSecondaryColor?: string;
|
|
480
|
+
/** Modal footer divider. Maps to `--apollon-modal-bottom-border`. */
|
|
481
|
+
modalBottomBorder?: string;
|
|
482
|
+
}
|
|
266
483
|
|
|
267
484
|
export declare enum ApollonView {
|
|
268
485
|
Modelling = "Modelling",
|
|
@@ -418,10 +635,7 @@ declare function ColorDescription({ width, height, data, id, }: NodeProps<Node_2
|
|
|
418
635
|
|
|
419
636
|
declare function CommunicationObjectName({ id, width, height, data, }: NodeProps<Node_2<CommunicationObjectNodeProps>>): JSX.Element;
|
|
420
637
|
|
|
421
|
-
declare type CommunicationObjectNodeProps =
|
|
422
|
-
methods: ClassNodeElement[];
|
|
423
|
-
attributes: ClassNodeElement[];
|
|
424
|
-
} & DefaultNodeProps;
|
|
638
|
+
declare type CommunicationObjectNodeProps = ObjectNodeProps;
|
|
425
639
|
|
|
426
640
|
declare function Component({ id, width, height, data, parentId, }: NodeProps<Node_2<ComponentNodeProps>>): JSX.Element | null;
|
|
427
641
|
|
|
@@ -437,6 +651,23 @@ declare type ComponentSubsystemNodeProps = {
|
|
|
437
651
|
isComponentSubsystemHeaderShown: boolean;
|
|
438
652
|
} & DefaultNodeProps;
|
|
439
653
|
|
|
654
|
+
/**
|
|
655
|
+
* Build a framework-agnostic style object of `--apollon-*` CSS custom
|
|
656
|
+
* properties from a (partial) {@link ApollonTheme}.
|
|
657
|
+
*
|
|
658
|
+
* Only the keys you provide are emitted — undefined fields are skipped so the
|
|
659
|
+
* library's built-in fallbacks stay in effect. The result can be spread onto
|
|
660
|
+
* any `style` object/attribute:
|
|
661
|
+
*
|
|
662
|
+
* ```tsx
|
|
663
|
+
* <Apollon theme={createApollonTheme({ primary: "#ff5722" })} />
|
|
664
|
+
* ```
|
|
665
|
+
*
|
|
666
|
+
* @param theme partial token object; unset tokens fall back to the defaults.
|
|
667
|
+
* @returns a record of `--apollon-*` variables to their string values.
|
|
668
|
+
*/
|
|
669
|
+
export declare function createApollonTheme(theme: ApollonTheme): Record<`--apollon-${string}`, string>;
|
|
670
|
+
|
|
440
671
|
declare type CustomEdgeProps = {
|
|
441
672
|
sourceRole: string | null;
|
|
442
673
|
sourceMultiplicity: string | null;
|
|
@@ -529,6 +760,7 @@ declare const diagramNodeTypes: {
|
|
|
529
760
|
activityMergeNode: typeof ActivityMergeNode;
|
|
530
761
|
activityForkNode: typeof ActivityForkNode;
|
|
531
762
|
activityForkNodeHorizontal: typeof ActivityForkNodeHorizontal;
|
|
763
|
+
activitySwimlane: typeof ActivitySwimlane;
|
|
532
764
|
useCase: typeof UseCase;
|
|
533
765
|
useCaseActor: typeof UseCaseActor;
|
|
534
766
|
useCaseSystem: typeof UseCaseSystem;
|
|
@@ -653,6 +885,14 @@ export declare const getNodeAssessmentDataByNodeElementId: (nodeElementId: strin
|
|
|
653
885
|
*/
|
|
654
886
|
export declare function importDiagram(data: any | V3UMLModel): UMLModel;
|
|
655
887
|
|
|
888
|
+
/**
|
|
889
|
+
* How much room a control reserves so the diagram "makes way" (fed into
|
|
890
|
+
* `fitView` padding, MapLibre-style). `"auto"` measures the control via the
|
|
891
|
+
* shared ResizeObserver on the region's dominant axis; an object mixes explicit
|
|
892
|
+
* px with per-side `"auto"` (e.g. `{ top: "auto" }`).
|
|
893
|
+
*/
|
|
894
|
+
export declare type InsetContribution = "auto" | Partial<Record<OverlaySide, number | "auto">>;
|
|
895
|
+
|
|
656
896
|
export declare type InteractiveElements = {
|
|
657
897
|
elements: {
|
|
658
898
|
[id: string]: boolean;
|
|
@@ -667,11 +907,6 @@ declare interface IPoint {
|
|
|
667
907
|
y: number;
|
|
668
908
|
}
|
|
669
909
|
|
|
670
|
-
declare interface IPoint_2 {
|
|
671
|
-
x: number;
|
|
672
|
-
y: number;
|
|
673
|
-
}
|
|
674
|
-
|
|
675
910
|
export declare enum Locale {
|
|
676
911
|
en = "en",
|
|
677
912
|
de = "de"
|
|
@@ -700,9 +935,46 @@ declare type ObjectNodeProps = {
|
|
|
700
935
|
|
|
701
936
|
export declare interface OrthogonalEdgeData {
|
|
702
937
|
[key: string]: unknown;
|
|
703
|
-
points:
|
|
938
|
+
points: IPoint[];
|
|
704
939
|
}
|
|
705
940
|
|
|
941
|
+
/** The public registration payload (options + renderer). */
|
|
942
|
+
export declare type OverlayControlInput = OverlayControlOptions & {
|
|
943
|
+
render: () => ReactNode;
|
|
944
|
+
};
|
|
945
|
+
|
|
946
|
+
export declare interface OverlayControlOptions {
|
|
947
|
+
/** Stable id. Re-adding the same id REPLACES (idempotent, StrictMode-safe). */
|
|
948
|
+
id: string;
|
|
949
|
+
/** Which band/corner the control is anchored in. */
|
|
950
|
+
region: OverlayRegion;
|
|
951
|
+
/** Reserve viewport room. Default: reserves nothing (the control floats). */
|
|
952
|
+
inset?: InsetContribution;
|
|
953
|
+
/** Stacking within a region; lower renders toward the region's anchor edge. */
|
|
954
|
+
order?: number;
|
|
955
|
+
/** When false the region frame stays pointer-transparent here too. Default true. */
|
|
956
|
+
interactive?: boolean;
|
|
957
|
+
/** Wraps the control in a `role="group"` with this aria-label. No focus
|
|
958
|
+
* management is imposed. */
|
|
959
|
+
groupLabel?: string;
|
|
960
|
+
/** Hide without unregistering (reserves no inset while hidden). Default true. */
|
|
961
|
+
visible?: boolean;
|
|
962
|
+
/** Extra class on the control's wrapper element. */
|
|
963
|
+
className?: string;
|
|
964
|
+
/** Inline styles merged onto the control's wrapper element. */
|
|
965
|
+
style?: CSSProperties;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* Where a control is anchored. The six React Flow `<Panel>` corners are
|
|
970
|
+
* screen-space and rendered through React Flow; `header`/`left-rail`/`right-rail`
|
|
971
|
+
* are library-owned bands; `on-canvas` pans/zooms with the diagram.
|
|
972
|
+
*/
|
|
973
|
+
export declare type OverlayRegion = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | "header" | "left-rail" | "right-rail" | "on-canvas";
|
|
974
|
+
|
|
975
|
+
/** One of the four edges a control can sit against / reserve room on. */
|
|
976
|
+
export declare type OverlaySide = "top" | "right" | "bottom" | "left";
|
|
977
|
+
|
|
706
978
|
declare function Package({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
707
979
|
|
|
708
980
|
declare function PetriNetPlace({ id, width, height, data, }: NodeProps<Node_2<PetriNetPlaceProps>>): JSX.Element | null;
|
|
@@ -758,8 +1030,6 @@ declare type SfcTransitionBranchNodeProps = DefaultNodeProps & {
|
|
|
758
1030
|
|
|
759
1031
|
declare type Sink = Pick<Console, "error" | "warn" | "debug">;
|
|
760
1032
|
|
|
761
|
-
export declare type Styles = typeof apollonTheme;
|
|
762
|
-
|
|
763
1033
|
export declare type Subscribers = {
|
|
764
1034
|
[key: number]: Unsubscriber;
|
|
765
1035
|
};
|
|
@@ -776,6 +1046,19 @@ export declare type SVG = {
|
|
|
776
1046
|
|
|
777
1047
|
export declare type SvgExportMode = "web" | "compat";
|
|
778
1048
|
|
|
1049
|
+
/** A single partition (lane) inside an activity swimlane. */
|
|
1050
|
+
declare type SwimlaneLane = {
|
|
1051
|
+
id: string;
|
|
1052
|
+
name: string;
|
|
1053
|
+
/**
|
|
1054
|
+
* Lane's extent along the swimlane's primary axis, in absolute flow px. The
|
|
1055
|
+
* last lane is elastic (fills the remainder), so resizing the swimlane only
|
|
1056
|
+
* changes the last lane. Optional: lanes without it divide the space equally,
|
|
1057
|
+
* so existing saved swimlanes render as equal lanes until a separator moves.
|
|
1058
|
+
*/
|
|
1059
|
+
size?: number;
|
|
1060
|
+
};
|
|
1061
|
+
|
|
779
1062
|
declare function SyntaxTreeNonterminal({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
780
1063
|
|
|
781
1064
|
declare function SyntaxTreeTerminal({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
@@ -817,6 +1100,30 @@ export declare type UMLModelElementType = DiagramNodeType | DiagramEdgeType;
|
|
|
817
1100
|
|
|
818
1101
|
export declare type Unsubscriber = () => void;
|
|
819
1102
|
|
|
1103
|
+
export declare function useApollonEditor(): ApollonEditor | null;
|
|
1104
|
+
|
|
1105
|
+
/** Like {@link useApollonEditor}, but throws when no editor is available. */
|
|
1106
|
+
export declare function useApollonEditorOrThrow(): ApollonEditor;
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* Subscribe to a value derived from the {@link ApollonEditor}.
|
|
1110
|
+
*
|
|
1111
|
+
* `getSnapshot` MUST return a referentially stable value when nothing changed;
|
|
1112
|
+
* do not allocate inside it. Returns `undefined` while no editor is mounted
|
|
1113
|
+
* (including during SSR). Pass the value type explicitly —
|
|
1114
|
+
* `useApollonSubscription<string[]>(...)` — it can't be inferred from the
|
|
1115
|
+
* `subscribe` callback (its `value` parameter is a contravariant position).
|
|
1116
|
+
*
|
|
1117
|
+
* @example
|
|
1118
|
+
* ```tsx
|
|
1119
|
+
* const selection = useApollonSubscription<string[]>(
|
|
1120
|
+
* (editor, cb) => editor.subscribeToSelectionChange(cb),
|
|
1121
|
+
* (editor) => editor.getSelectedElements(),
|
|
1122
|
+
* )
|
|
1123
|
+
* ```
|
|
1124
|
+
*/
|
|
1125
|
+
export declare function useApollonSubscription<T>(subscribe: (editor: ApollonEditor, cb: (value: T) => void) => number, getSnapshot: (editor: ApollonEditor) => T): T | undefined;
|
|
1126
|
+
|
|
820
1127
|
declare function UseCase({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
821
1128
|
|
|
822
1129
|
declare function UseCaseActor({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|