@tumaet/apollon 4.9.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 +27 -63
- 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 +237 -58
- package/dist/index.js +16850 -36346
- package/dist/internals.d.ts +2 -10
- package/dist/internals.js +28 -46
- package/dist/versionConverter-C-s36Ory.js +4769 -0
- package/package.json +33 -79
- package/dist/exportFonts-DxO9jrR1.js +0 -19
- package/dist/exportStyles-Co-WBqTa.js +0 -5
- package/dist/external/LICENSE-InterFont +0 -92
- package/dist/external/exportFonts-DxO9jrR1.js +0 -19
- package/dist/external/exportStyles-Co-WBqTa.js +0 -5
- package/dist/external/index.js +0 -22191
- 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 -184
- 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 -8
- 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/activityDiagram/ActivitySwimlaneEditPopover.d.ts +0 -2
- package/dist/react/components/popovers/activityDiagram/index.d.ts +0 -1
- 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/ApollonControl.d.ts +0 -18
- 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/InterfaceLabel.d.ts +0 -26
- 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/ActivitySwimlaneSVG.d.ts +0 -9
- package/dist/react/components/svgs/nodes/activityDiagram/index.d.ts +0 -9
- 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 -9
- 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 -9
- 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 -261
- 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 -10
- package/dist/react/edges/labelTypes/EdgeMiddleLabels.d.ts +0 -18
- package/dist/react/edges/labelTypes/EdgeMultipleLabels.d.ts +0 -14
- package/dist/react/edges/labelTypes/messageLayout.d.ts +0 -51
- 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-yVX7Dykt.js +0 -6
- package/dist/react/fontStack.d.ts +0 -14
- package/dist/react/hooks/index.d.ts +0 -18
- 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/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 -62
- 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 -9
- 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/ActivitySwimlane.d.ts +0 -3
- package/dist/react/nodes/activityDiagram/index.d.ts +0 -9
- 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 -73
- 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/overlay/OverlayLayer.d.ts +0 -8
- package/dist/react/overlay/RegionMount.d.ts +0 -10
- package/dist/react/overlay/overlayStore.d.ts +0 -20
- package/dist/react/overlay/types.d.ts +0 -48
- package/dist/react/react.d.ts +0 -5
- package/dist/react/react.js +0 -28177
- 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 -22
- 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 -101
- 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/geometry/edgeLabelLayout.d.ts +0 -123
- package/dist/react/utils/geometry/interfaceLabelLayout.d.ts +0 -44
- package/dist/react/utils/helpers.d.ts +0 -14
- package/dist/react/utils/index.d.ts +0 -19
- 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 -70
- 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/swimlaneUtils.d.ts +0 -58
- 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-BCNFF_EI.js +0 -45418
package/dist/react/App.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReactFlowInstance } from '@xyflow/react';
|
|
2
|
-
import { CollaborationAwarenessApi, CollaborationLayerOptions } from './components/collaboration/CollaborationLayer';
|
|
3
|
-
interface AppProps {
|
|
4
|
-
onReactFlowInit: (instance: ReactFlowInstance) => void;
|
|
5
|
-
collaboration: CollaborationLayerOptions;
|
|
6
|
-
awareness: CollaborationAwarenessApi;
|
|
7
|
-
}
|
|
8
|
-
export declare function AppWithProvider(props: AppProps): import("react").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
|
|
2
|
-
|
|
3
|
-
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
-
This license is copied below, and is also available with a FAQ at:
|
|
5
|
-
http://scripts.sil.org/OFL
|
|
6
|
-
|
|
7
|
-
-----------------------------------------------------------
|
|
8
|
-
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
9
|
-
-----------------------------------------------------------
|
|
10
|
-
|
|
11
|
-
PREAMBLE
|
|
12
|
-
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
13
|
-
development of collaborative font projects, to support the font creation
|
|
14
|
-
efforts of academic and linguistic communities, and to provide a free and
|
|
15
|
-
open framework in which fonts may be shared and improved in partnership
|
|
16
|
-
with others.
|
|
17
|
-
|
|
18
|
-
The OFL allows the licensed fonts to be used, studied, modified and
|
|
19
|
-
redistributed freely as long as they are not sold by themselves. The
|
|
20
|
-
fonts, including any derivative works, can be bundled, embedded,
|
|
21
|
-
redistributed and/or sold with any software provided that any reserved
|
|
22
|
-
names are not used by derivative works. The fonts and derivatives,
|
|
23
|
-
however, cannot be released under any other type of license. The
|
|
24
|
-
requirement for fonts to remain under this license does not apply
|
|
25
|
-
to any document created using the fonts or their derivatives.
|
|
26
|
-
|
|
27
|
-
DEFINITIONS
|
|
28
|
-
"Font Software" refers to the set of files released by the Copyright
|
|
29
|
-
Holder(s) under this license and clearly marked as such. This may
|
|
30
|
-
include source files, build scripts and documentation.
|
|
31
|
-
|
|
32
|
-
"Reserved Font Name" refers to any names specified as such after the
|
|
33
|
-
copyright statement(s).
|
|
34
|
-
|
|
35
|
-
"Original Version" refers to the collection of Font Software components as
|
|
36
|
-
distributed by the Copyright Holder(s).
|
|
37
|
-
|
|
38
|
-
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
39
|
-
or substituting -- in part or in whole -- any of the components of the
|
|
40
|
-
Original Version, by changing formats or by porting the Font Software to a
|
|
41
|
-
new environment.
|
|
42
|
-
|
|
43
|
-
"Author" refers to any designer, engineer, programmer, technical
|
|
44
|
-
writer or other person who contributed to the Font Software.
|
|
45
|
-
|
|
46
|
-
PERMISSION AND CONDITIONS
|
|
47
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
48
|
-
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
49
|
-
redistribute, and sell modified and unmodified copies of the Font
|
|
50
|
-
Software, subject to the following conditions:
|
|
51
|
-
|
|
52
|
-
1) Neither the Font Software nor any of its individual components,
|
|
53
|
-
in Original or Modified Versions, may be sold by itself.
|
|
54
|
-
|
|
55
|
-
2) Original or Modified Versions of the Font Software may be bundled,
|
|
56
|
-
redistributed and/or sold with any software, provided that each copy
|
|
57
|
-
contains the above copyright notice and this license. These can be
|
|
58
|
-
included either as stand-alone text files, human-readable headers or
|
|
59
|
-
in the appropriate machine-readable metadata fields within text or
|
|
60
|
-
binary files as long as those fields can be easily viewed by the user.
|
|
61
|
-
|
|
62
|
-
3) No Modified Version of the Font Software may use the Reserved Font
|
|
63
|
-
Name(s) unless explicit written permission is granted by the corresponding
|
|
64
|
-
Copyright Holder. This restriction only applies to the primary font name as
|
|
65
|
-
presented to the users.
|
|
66
|
-
|
|
67
|
-
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
68
|
-
Software shall not be used to promote, endorse or advertise any
|
|
69
|
-
Modified Version, except to acknowledge the contribution(s) of the
|
|
70
|
-
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
71
|
-
permission.
|
|
72
|
-
|
|
73
|
-
5) The Font Software, modified or unmodified, in part or in whole,
|
|
74
|
-
must be distributed entirely under this license, and must not be
|
|
75
|
-
distributed under any other license. The requirement for fonts to
|
|
76
|
-
remain under this license does not apply to any document created
|
|
77
|
-
using the Font Software.
|
|
78
|
-
|
|
79
|
-
TERMINATION
|
|
80
|
-
This license becomes null and void if any of the above conditions are
|
|
81
|
-
not met.
|
|
82
|
-
|
|
83
|
-
DISCLAIMER
|
|
84
|
-
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
85
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
86
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
87
|
-
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
88
|
-
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
89
|
-
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
90
|
-
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
91
|
-
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
92
|
-
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import { Node, Edge } from '@xyflow/react';
|
|
2
|
-
import { UMLDiagramType } from './types';
|
|
3
|
-
import { OverlayControlInput, OverlayRegion, OverlaySide } from './overlay/types';
|
|
4
|
-
import { SendBroadcastMessage } from './sync/yjsSync';
|
|
5
|
-
import * as Apollon from "./typings";
|
|
6
|
-
export declare class ApollonEditor {
|
|
7
|
-
private root;
|
|
8
|
-
private reactFlowInstance;
|
|
9
|
-
private readonly syncManager;
|
|
10
|
-
private readonly ydoc;
|
|
11
|
-
private readonly diagramStore;
|
|
12
|
-
private readonly metadataStore;
|
|
13
|
-
private readonly popoverStore;
|
|
14
|
-
private readonly assessmentSelectionStore;
|
|
15
|
-
private readonly overlayStore;
|
|
16
|
-
private readonly hostRegionEls;
|
|
17
|
-
private subscribers;
|
|
18
|
-
constructor(element: HTMLElement, options?: Apollon.ApollonOptions);
|
|
19
|
-
private setReactFlowInstance;
|
|
20
|
-
getNodes(): Node[];
|
|
21
|
-
getEdges(): Edge[];
|
|
22
|
-
getViewport(): {
|
|
23
|
-
x: number;
|
|
24
|
-
y: number;
|
|
25
|
-
zoom: number;
|
|
26
|
-
} | null;
|
|
27
|
-
screenToFlowPosition(position: {
|
|
28
|
-
x: number;
|
|
29
|
-
y: number;
|
|
30
|
-
}): import('@xyflow/react').XYPosition | null;
|
|
31
|
-
flowToScreenPosition(position: {
|
|
32
|
-
x: number;
|
|
33
|
-
y: number;
|
|
34
|
-
}): import('@xyflow/react').XYPosition | null;
|
|
35
|
-
/**
|
|
36
|
-
* Zoom/pan so the whole diagram fits, capped at `maxZoom: 1.0`. Retries up to
|
|
37
|
-
* 10 animation frames until every node is measured.
|
|
38
|
-
* @param options.padding - Scalar fraction (default `0.15`), or per-side px
|
|
39
|
-
* that adds to a 16px gutter. A per-side object forces the inset-aware path.
|
|
40
|
-
* @param options.duration - Animation duration in ms (default `200`).
|
|
41
|
-
* @param options.respectInsets - Pad the fit by reserved overlay insets
|
|
42
|
-
* (header, rails, …). Default `true`.
|
|
43
|
-
*/
|
|
44
|
-
fitView(options?: {
|
|
45
|
-
padding?: number | Partial<Record<OverlaySide, number>>;
|
|
46
|
-
duration?: number;
|
|
47
|
-
/** Pad the fit by the reserved overlay insets (header, rails, …). */
|
|
48
|
-
respectInsets?: boolean;
|
|
49
|
-
}): void;
|
|
50
|
-
/**
|
|
51
|
-
* Register a floating control, returning a disposer. Re-using an id replaces
|
|
52
|
-
* (idempotent / StrictMode-safe). Pick a façade: a React host →
|
|
53
|
-
* `<ApollonControl>`; a non-React host (or one that needs its own React
|
|
54
|
-
* root/context) → `getRegionElement` + `createPortal`; a one-off imperative
|
|
55
|
-
* widget → `addControl`.
|
|
56
|
-
* @param control - id, target region, a `render` thunk, and optional layout
|
|
57
|
-
* options ({@link OverlayControlInput}).
|
|
58
|
-
* @returns A disposer that unregisters this control; safe to call twice.
|
|
59
|
-
* @throws If `id` is empty or `region` is not a known region — mistakes fail
|
|
60
|
-
* loudly at the edge, not silently in the renderer.
|
|
61
|
-
*/
|
|
62
|
-
addControl(control: OverlayControlInput): () => void;
|
|
63
|
-
/**
|
|
64
|
-
* Patch a registered control's options/renderer (a no-op if absent).
|
|
65
|
-
* @param id - The control's immutable id (an `id` in `patch` is ignored).
|
|
66
|
-
* @param patch - Partial options/renderer merged over the existing control.
|
|
67
|
-
*/
|
|
68
|
-
updateControl(id: string, patch: Partial<OverlayControlInput>): void;
|
|
69
|
-
/**
|
|
70
|
-
* @param id - A control id.
|
|
71
|
-
* @returns `true` if a control with this id is currently registered.
|
|
72
|
-
*/
|
|
73
|
-
hasControl(id: string): boolean;
|
|
74
|
-
/**
|
|
75
|
-
* A stable DOM node anchored in `region`, for hosts that render their own
|
|
76
|
-
* React into it (via `createPortal`) to keep host context. Auto-measured, so
|
|
77
|
-
* the diagram makes room for whatever the host mounts. Lifetime = the editor;
|
|
78
|
-
* `releaseRegionElement` unregisters it. Reserved id: `apollon:host:<region>`.
|
|
79
|
-
* @param region - The region to anchor the node in.
|
|
80
|
-
* @returns The same node for the lifetime of one acquire; `releaseRegionElement`
|
|
81
|
-
* drops it and the next call returns a fresh node.
|
|
82
|
-
* @throws If `region` is not a known region.
|
|
83
|
-
*/
|
|
84
|
-
getRegionElement(region: OverlayRegion): HTMLElement;
|
|
85
|
-
/**
|
|
86
|
-
* Release a region acquired via {@link getRegionElement} (unregister + drop
|
|
87
|
-
* the cached node); a later `getRegionElement(region)` creates a fresh node.
|
|
88
|
-
* @param region - The region whose host node to release.
|
|
89
|
-
*/
|
|
90
|
-
releaseRegionElement(region: OverlayRegion): void;
|
|
91
|
-
set diagramType(type: UMLDiagramType);
|
|
92
|
-
destroy(): void;
|
|
93
|
-
/** Renders a model to SVG via a hidden, off-screen mount. */
|
|
94
|
-
static exportModelAsSvg(model: Apollon.UMLModel, options?: Apollon.ExportOptions): Promise<Apollon.SVG>;
|
|
95
|
-
/**
|
|
96
|
-
* exports current model as svg
|
|
97
|
-
* @param options options to change the export behavior (add margin, exclude element ...)
|
|
98
|
-
*/
|
|
99
|
-
exportAsSVG(options?: Apollon.ExportOptions): Promise<Apollon.SVG>;
|
|
100
|
-
private getNewSubscriptionId;
|
|
101
|
-
subscribeToModelChange(callback: (state: Apollon.UMLModel) => void): number;
|
|
102
|
-
subscribeToDiagramNameChange(callback: (diagramTitle: string) => void): number;
|
|
103
|
-
subscribeToAssessmentSelection(callback: (selectedElementIds: string[]) => void): number;
|
|
104
|
-
subscribeToSelectionChange(callback: (selectedElementIds: string[]) => void): number;
|
|
105
|
-
subscribeToAwarenessChanges(callback: (states: Map<number, Apollon.CollaborationState>) => void): number;
|
|
106
|
-
subscribeToCollaboratorChanges(callback: (collaborators: Apollon.CollaboratorInfo[]) => void): number;
|
|
107
|
-
unsubscribe(subscriberId: number): void;
|
|
108
|
-
sendBroadcastMessage(sendFn: SendBroadcastMessage): void;
|
|
109
|
-
receiveBroadcastedMessage(base64Data: string): void;
|
|
110
|
-
/**
|
|
111
|
-
* Push the entire local Yjs document to peers. Hosts should call this on
|
|
112
|
-
* every (re)connect so any edits made while the transport was closed are
|
|
113
|
-
* absorbed by the room. See `YjsSync.broadcastFullState`.
|
|
114
|
-
*/
|
|
115
|
-
broadcastFullState(): void;
|
|
116
|
-
setLocalAwarenessUser(user: Apollon.CollaborationUser): void;
|
|
117
|
-
setLocalAwarenessCursor(cursor: Apollon.CollaborationCursor | null): void;
|
|
118
|
-
setLocalAwarenessSelectedElement(selectedElementId: string | null): void;
|
|
119
|
-
setLocalAwarenessState(state: Partial<Apollon.CollaborationState>): void;
|
|
120
|
-
getLocalAwarenessClientId(): number;
|
|
121
|
-
getCollaborators(): Apollon.CollaboratorInfo[];
|
|
122
|
-
updateDiagramTitle(name: string): void;
|
|
123
|
-
/**
|
|
124
|
-
* Toggles the editor's read-only state at runtime. Used by hosting apps
|
|
125
|
-
* to lock the canvas while previewing an immutable snapshot (e.g. the
|
|
126
|
-
* version-history preview), without tearing down and re-mounting the
|
|
127
|
-
* editor instance.
|
|
128
|
-
*/
|
|
129
|
-
setReadonly(readonly: boolean): void;
|
|
130
|
-
/** Live-toggle modeling vs assessment vs exporting mode. */
|
|
131
|
-
setMode(mode: Apollon.ApollonMode): void;
|
|
132
|
-
/** Live-toggle whether the canvas captures page scroll. */
|
|
133
|
-
setScrollLock(scrollLock: boolean): void;
|
|
134
|
-
/**
|
|
135
|
-
* Toggle preview-overlay mode. When `true`, subsequent `model = …`
|
|
136
|
-
* assignments and other store mutators update the local Zustand caches
|
|
137
|
-
* (so the canvas displays the overlay) WITHOUT writing to the Yjs
|
|
138
|
-
* doc — leaving the collaborative document untouched. Yjs observers
|
|
139
|
-
* also stop propagating peer-driven updates to Zustand, so the overlay
|
|
140
|
-
* doesn't flicker as collaborators edit the live diagram.
|
|
141
|
-
*
|
|
142
|
-
* On flip-off the local Zustand state is rebuilt from the (now
|
|
143
|
-
* peer-augmented) Yjs maps so the canvas catches up to everything
|
|
144
|
-
* collaborators committed during the preview.
|
|
145
|
-
*
|
|
146
|
-
* Hosts should call `setPreviewMode(true)` before applying a preview
|
|
147
|
-
* model and `setPreviewMode(false)` on exit. The Yjs doc never needs
|
|
148
|
-
* to be "restored" from a snapshot because it was never disturbed.
|
|
149
|
-
*/
|
|
150
|
-
setPreviewMode(active: boolean): void;
|
|
151
|
-
toggleInteractiveElementsMode(forceEnabled?: boolean): void;
|
|
152
|
-
getInteractiveForSerialization(): Apollon.InteractiveElements | undefined;
|
|
153
|
-
getDiagramMetadata(): {
|
|
154
|
-
diagramTitle: string;
|
|
155
|
-
diagramType: "ClassDiagram" | "ObjectDiagram" | "ActivityDiagram" | "UseCaseDiagram" | "CommunicationDiagram" | "ComponentDiagram" | "DeploymentDiagram" | "PetriNet" | "ReachabilityGraph" | "SyntaxTree" | "Flowchart" | "BPMN" | "Sfc";
|
|
156
|
-
};
|
|
157
|
-
get model(): Apollon.UMLModel;
|
|
158
|
-
set model(model: Apollon.UMLModel);
|
|
159
|
-
/**
|
|
160
|
-
* Host-driven element highlighting. Paints a translucent overlay over each
|
|
161
|
-
* given node / edge / class-member id in the supplied CSS color — the v4
|
|
162
|
-
* replacement for v3's `UMLModelElement.highlight` field and
|
|
163
|
-
* `ApollonEditor.select()`. Typical hosts: an assessment editor marking
|
|
164
|
-
* elements that are missing feedback, or Athena marking elements that have
|
|
165
|
-
* automatic-feedback suggestions.
|
|
166
|
-
*
|
|
167
|
-
* The highlight is an ephemeral view overlay: it is NOT written into the
|
|
168
|
-
* model, NOT serialized by `get model`, and NOT shared with collaborators.
|
|
169
|
-
* Each call replaces the previous highlight set; pass `null` (or an empty
|
|
170
|
-
* map) to clear all highlights. Passing `undefined` is a no-op.
|
|
171
|
-
*
|
|
172
|
-
* @param highlights map / record of element id -> CSS color (any valid CSS
|
|
173
|
-
* color string, e.g. `"rgba(23,162,184,0.3)"`), or `null` to clear.
|
|
174
|
-
*/
|
|
175
|
-
setElementHighlights(highlights: Map<string, string> | Record<string, string> | null | undefined): void;
|
|
176
|
-
/** Returns a copy of the current highlight record (id -> CSS color). */
|
|
177
|
-
getElementHighlights(): Record<string, string>;
|
|
178
|
-
getSelectedElements(): string[];
|
|
179
|
-
get view(): Apollon.ApollonView;
|
|
180
|
-
set view(view: Apollon.ApollonView);
|
|
181
|
-
addOrUpdateAssessment(assessment: Apollon.Assessment): void;
|
|
182
|
-
static generateInitialSyncMessage(): string;
|
|
183
|
-
static generateInitialAwarenessSyncMessage(): string;
|
|
184
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const AlignmentGuides: () => import("react").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
interface AssessmentSelectableElementProps {
|
|
3
|
-
elementId: string;
|
|
4
|
-
width: number;
|
|
5
|
-
itemHeight: number;
|
|
6
|
-
yOffset?: number;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
}
|
|
9
|
-
export declare const AssessmentSelectableElement: FC<AssessmentSelectableElementProps>;
|
|
10
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function AssessmentSelectionDebug(): import("react").JSX.Element | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const CustomBackground: () => import("react").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bottom-left control cluster. Every button shares one idiom
|
|
3
|
-
* (`apollon-chrome-iconbtn`): borderless on the glass pane, state shown as a
|
|
4
|
-
* surface-layer fill. Reads left→right as view (zoom-out/in, fit, a clickable
|
|
5
|
-
* %-reset) then, past a hairline, history (undo/redo). React Flow renders its
|
|
6
|
-
* built-in zoom/fit buttons first; our children follow.
|
|
7
|
-
*/
|
|
8
|
-
export declare const CustomControls: () => import("react").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const CustomMiniMap: () => import("react").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { DropElementConfig } from '../constants';
|
|
3
|
-
interface DraggableGhostProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
dropElementConfig: DropElementConfig;
|
|
6
|
-
/**
|
|
7
|
-
* Visual scale of the palette preview.
|
|
8
|
-
* Used to convert pointer offsets into node-placement offsets.
|
|
9
|
-
*/
|
|
10
|
-
previewScale?: number;
|
|
11
|
-
}
|
|
12
|
-
export declare const DraggableGhost: React.FC<DraggableGhostProps>;
|
|
13
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export * from './CheckIcon';
|
|
2
|
-
export * from './CrossIcon';
|
|
3
|
-
export * from './DeleteIcon';
|
|
4
|
-
export * from './EditIcon';
|
|
5
|
-
export * from './ExclamationIcon';
|
|
6
|
-
export * from './InfiniteIcon';
|
|
7
|
-
export * from './MapIcon';
|
|
8
|
-
export * from './RedoIcon';
|
|
9
|
-
export * from './SouthEastArrowIcon';
|
|
10
|
-
export * from './SwapHorizIcon';
|
|
11
|
-
export * from './UndoIcon';
|
|
12
|
-
export * from './ArrowBackIcon';
|
|
13
|
-
export * from './ArrowForwardIcon';
|
|
14
|
-
export * from './DragHandleIcon';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { CollaborationCursor, CollaborationState, CollaborationUser, CollaborationViewport, CollaboratorInfo } from '../../typings';
|
|
2
|
-
export type CollaborationAwarenessApi = {
|
|
3
|
-
setLocalAwarenessCursor: (cursor: CollaborationCursor | null) => void;
|
|
4
|
-
setLocalAwarenessSelectedElement: (selectedElementId: string | null) => void;
|
|
5
|
-
setLocalAwarenessViewport: (viewport: CollaborationViewport | null) => void;
|
|
6
|
-
setLocalAwarenessFollowing: (followingClientId: number | null) => void;
|
|
7
|
-
getAwarenessStates: () => Map<number, CollaborationState>;
|
|
8
|
-
subscribeToAwarenessChanges: (callback: (states: Map<number, CollaborationState>) => void) => () => void;
|
|
9
|
-
subscribeToCollaboratorChanges: (callback: (collaborators: CollaboratorInfo[]) => void) => () => void;
|
|
10
|
-
getLocalAwarenessClientId: () => number;
|
|
11
|
-
};
|
|
12
|
-
export type CollaborationLayerOptions = {
|
|
13
|
-
enabled: boolean;
|
|
14
|
-
user?: CollaborationUser;
|
|
15
|
-
showPresence: boolean;
|
|
16
|
-
showCursors: boolean;
|
|
17
|
-
showSelectionHighlights: boolean;
|
|
18
|
-
showFollow: boolean;
|
|
19
|
-
};
|
|
20
|
-
type CollaborationLayerProps = {
|
|
21
|
-
options: CollaborationLayerOptions;
|
|
22
|
-
awareness: CollaborationAwarenessApi;
|
|
23
|
-
};
|
|
24
|
-
export declare function CollaborationLayer({ options, awareness, }: CollaborationLayerProps): import("react").JSX.Element;
|
|
25
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export * from './svgs/nodes/CustomText';
|
|
2
|
-
export * from './svgs/nodes/MultilineText';
|
|
3
|
-
export * from './svgs/nodes/StereotypeAndName';
|
|
4
|
-
export * from './Sidebar';
|
|
5
|
-
export * from './ui/DividerLine';
|
|
6
|
-
export * from './popovers';
|
|
7
|
-
export * from './toolbars';
|
|
8
|
-
export * from './svgs';
|
|
9
|
-
export * from './ui';
|
|
10
|
-
export * from './CustomMiniMap';
|
|
11
|
-
export * from './CustomControls';
|
|
12
|
-
export * from './CustomBackground';
|
|
13
|
-
export * from './ReconnectConnectionLine';
|
|
14
|
-
export * from './wrapper/AssessmentSelectableWrapper';
|
|
15
|
-
export * from './AssessmentSelectionDebug';
|
|
16
|
-
export * from './ScrollOverlay';
|
|
17
|
-
export * from './AlignmentGuides';
|
|
18
|
-
export * from './collaboration/CollaborationLayer';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { default as React, ReactNode } from 'react';
|
|
2
|
-
import { PopoverOrigin } from '@mui/material';
|
|
3
|
-
interface GenericPopoverProps {
|
|
4
|
-
id: string;
|
|
5
|
-
anchorEl: HTMLElement | SVGElement | null;
|
|
6
|
-
open: boolean;
|
|
7
|
-
onClose: () => void;
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
anchorOrigin?: PopoverOrigin;
|
|
10
|
-
transformOrigin?: PopoverOrigin;
|
|
11
|
-
maxHeight?: number;
|
|
12
|
-
maxWidth?: number;
|
|
13
|
-
minWidth?: number;
|
|
14
|
-
style?: React.CSSProperties;
|
|
15
|
-
}
|
|
16
|
-
export declare const GenericPopover: React.FC<GenericPopoverProps>;
|
|
17
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type NodePopoverType = "class" | "objectName" | "communicationObjectName" | "default" | "Component" | "ComponentSubsystem" | "FlowchartTerminal" | "FlowchartProcess" | "FlowchartDecision" | "FlowchartInputOutput" | "FlowchartFunctionCall" | "DeploymentComponent" | "DeploymentNode" | "SyntaxTreeNonterminal" | "SyntaxTreeTerminal" | "PetriNetPlace" | "BPMNTask" | "BPMNStartEvent" | "BPMNIntermediateEvent" | "BPMNEndEvent" | "BPMNGateway" | "BPMNSubprocess" | "BPMNTransaction" | "BPMNCallActivity" | "BPMNAnnotation" | "BPMNDataObject" | "BPMNDataStore" | "BPMNPool" | "BPMNGroup" | "ReachabilityGraphMarking" | "Sfc" | "SfcActionTable" | "ActivitySwimlane";
|
|
2
|
-
type EdgePopoverType = "ClassAggregation" | "ClassInheritance" | "ClassRealization" | "ClassComposition" | "ClassBidirectional" | "ClassUnidirectional" | "ClassDependency" | "ActivityControlFlow" | "ObjectLink" | "CommunicationLink" | "UseCaseAssociation" | "UseCaseInclude" | "UseCaseExtend" | "UseCaseGeneralization" | "ComponentDependency" | "ComponentProvidedInterface" | "ComponentRequiredInterface" | "ComponentRequiredThreeQuarterInterface" | "ComponentRequiredQuarterInterface" | "BPMNSequenceFlow" | "BPMNMessageFlow" | "BPMNAssociationFlow" | "BPMNDataAssociationFlow" | "DeploymentAssociation" | "DeploymentDependency" | "DeploymentProvidedInterface" | "DeploymentRequiredInterface" | "DeploymentRequiredThreeQuarterInterface" | "DeploymentRequiredQuarterInterface" | "FlowChartFlowline" | "SyntaxTreeLink" | "SfcDiagramEdge" | "ReachabilityGraphArc" | "PetriNetArc";
|
|
3
|
-
type PopoverType = NodePopoverType | EdgePopoverType;
|
|
4
|
-
interface PopoverManagerProps {
|
|
5
|
-
elementId: string;
|
|
6
|
-
anchorEl: HTMLElement | SVGElement | null;
|
|
7
|
-
type: PopoverType;
|
|
8
|
-
}
|
|
9
|
-
export declare const PopoverManager: ({ elementId, anchorEl, type, }: PopoverManagerProps) => import("react").JSX.Element | null;
|
|
10
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ActivitySwimlaneEditPopover } from './ActivitySwimlaneEditPopover';
|