@tumaet/apollon 4.4.0 → 4.6.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 +206 -34
- package/dist/assets/style.css +1 -1
- package/dist/index.d.ts +897 -10
- package/dist/index.js +7726 -77129
- package/dist/internals.d.ts +868 -0
- package/dist/internals.js +40 -0
- package/dist/react/App.d.ts +9 -0
- package/dist/{apollon-editor.d.ts → react/apollon-editor.d.ts} +11 -12
- package/dist/react/components/AlignmentGuides.d.ts +1 -0
- package/dist/react/components/AssessmentSelectionDebug.d.ts +1 -0
- package/dist/react/components/CustomBackground.d.ts +1 -0
- package/dist/react/components/CustomControls.d.ts +1 -0
- package/dist/react/components/CustomMiniMap.d.ts +1 -0
- package/dist/{components → react/components}/Icon/ArrowBackIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/ArrowForwardIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/CheckIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/CrossIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/DeleteIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/DragHandleIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/EditIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/ExclamationIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/InfiniteIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/MapIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/PaintRollerIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/RedoIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/SouthEastArrowIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/SwapHorizIcon.d.ts +1 -1
- package/dist/{components → react/components}/Icon/UndoIcon.d.ts +1 -1
- package/dist/react/components/ReconnectConnectionLine.d.ts +2 -0
- package/dist/react/components/Sidebar.d.ts +1 -0
- package/dist/react/components/collaboration/CollaborationLayer.d.ts +25 -0
- package/dist/react/components/collaboration/coordinates.d.ts +7 -0
- package/dist/{components → react/components}/index.d.ts +2 -0
- package/dist/{components → react/components}/popovers/DefaultNodeGiveFeedbackPopover.d.ts +1 -1
- package/dist/{components → react/components}/popovers/DefaultNodeSeeFeedbackPopover.d.ts +1 -1
- package/dist/{components → react/components}/popovers/GiveFeedbackAssessmentBox.d.ts +1 -1
- package/dist/{components → react/components}/popovers/PopoverManager.d.ts +1 -1
- package/dist/{components → react/components}/popovers/SeeFeedbackAssessmentBox.d.ts +1 -1
- package/dist/{components → react/components}/popovers/bpmnDiagram/BPMNPoolEditPopover.d.ts +1 -1
- package/dist/{components → react/components}/popovers/classDiagram/ClassGiveFeedbackPopover.d.ts +1 -1
- package/dist/{components → react/components}/popovers/classDiagram/ClassSeeFeedbackPopover.d.ts +1 -1
- package/dist/{components → react/components}/popovers/communicationDiagram/CommunicationObjectNameGiveFeedbackPopover.d.ts +1 -1
- package/dist/{components → react/components}/popovers/communicationDiagram/CommunicationObjectNameSeeFeedbackPopover.d.ts +1 -1
- package/dist/{components → react/components}/popovers/edgePopovers/EdgeGiveFeedbackPopover.d.ts +1 -1
- package/dist/{components → react/components}/popovers/edgePopovers/EdgeSeeFeedbackPopover.d.ts +1 -1
- package/dist/react/components/popovers/edgePopovers/EdgeTypePreviewIcon.d.ts +3 -0
- package/dist/react/components/popovers/edgePopovers/EdgeTypeSelect.d.ts +9 -0
- package/dist/{components → react/components}/popovers/objectDiagram/ObjectGiveFeedbackPopover.d.ts +1 -1
- package/dist/{components → react/components}/popovers/objectDiagram/ObjectSeeFeedbackPopover.d.ts +1 -1
- package/dist/react/components/react/Apollon.d.ts +45 -0
- package/dist/react/components/react/context.d.ts +16 -0
- package/dist/react/components/react/useApollonSubscription.d.ts +17 -0
- package/dist/{components → react/components}/svgs/edges/InlineMarker.d.ts +10 -2
- package/dist/react/components/svgs/nodes/CustomText.d.ts +10 -0
- package/dist/{components → react/components}/svgs/nodes/classDiagram/ClassSVG.d.ts +1 -1
- package/dist/{components → react/components}/svgs/nodes/classDiagram/ColorDescriptionSVG.d.ts +1 -1
- package/dist/{components → react/components}/svgs/nodes/communicationDiagram/CommunicationObjectNameSVG.d.ts +1 -1
- package/dist/{components → react/components}/svgs/nodes/objectDiagram/ObjectNameSVG.d.ts +1 -1
- package/dist/{components → react/components}/toolbars/edgeToolBar/CustomEdgeToolBar.d.ts +2 -0
- package/dist/{components → react/components}/ui/StyleEditor/ColorButtons.d.ts +1 -1
- package/dist/{constants.d.ts → react/constants.d.ts} +43 -6
- package/dist/react/edges/GenericEdge.d.ts +79 -0
- package/dist/{edges → react/edges}/edgeTypes/ActivityDiagramEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/BPMNDiagramEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/ClassDiagramEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/CommunicationDiagramEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/ComponentDiagramEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/DeploymentDiagramEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/FlowChartEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/ObjectDiagramEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/PetriNetEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/ReachabilityGraphArc.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/SfcDiagramEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/SyntaxTreeEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/edgeTypes/UseCaseDiagramEdge.d.ts +1 -1
- package/dist/{edges → react/edges}/labelTypes/EdgeEndLabels.d.ts +1 -1
- package/dist/{edges → react/edges}/labelTypes/EdgeIncludeExtendLabel.d.ts +1 -1
- package/dist/{edges → react/edges}/labelTypes/EdgeMiddleLabels.d.ts +2 -1
- package/dist/{edges → react/edges}/labelTypes/EdgeMultipleLabels.d.ts +2 -2
- package/dist/{edges → react/edges}/types.d.ts +34 -34
- package/dist/react/enums/index.d.ts +1 -0
- package/dist/react/hooks/useEdgeLineJumps.d.ts +25 -0
- package/dist/{hooks → react/hooks}/useHandleFinder.d.ts +1 -0
- package/dist/{hooks → react/hooks}/useReconnect.d.ts +1 -1
- package/dist/{hooks → react/hooks}/useStepPathEdge.d.ts +10 -6
- package/dist/react/hooks/useStraightPathEdge.d.ts +23 -0
- package/dist/react/index.d.ts +7 -0
- package/dist/react/internals.d.ts +5 -0
- package/dist/{nodes → react/nodes}/TitleAndDescriptionNode.d.ts +1 -1
- package/dist/{nodes → react/nodes}/activityDiagram/Activity.d.ts +1 -1
- package/dist/{nodes → react/nodes}/activityDiagram/ActivityActionNode.d.ts +1 -1
- package/dist/{nodes → react/nodes}/activityDiagram/ActivityFinalNode.d.ts +1 -1
- package/dist/{nodes → react/nodes}/activityDiagram/ActivityForkNode.d.ts +1 -1
- package/dist/{nodes → react/nodes}/activityDiagram/ActivityForkNodeHorizontal.d.ts +1 -1
- package/dist/{nodes → react/nodes}/activityDiagram/ActivityInitialNode.d.ts +1 -1
- package/dist/{nodes → react/nodes}/activityDiagram/ActivityMergeNode.d.ts +1 -1
- package/dist/{nodes → react/nodes}/activityDiagram/ActivityObjectNode.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNAnnotation.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNCallActivity.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNDataObject.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNDataStore.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNEndEvent.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNGateway.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNGroup.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNIntermediateEvent.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNPool.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNStartEvent.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNSubprocess.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNTask.d.ts +1 -1
- package/dist/{nodes → react/nodes}/bpmn/BPMNTransaction.d.ts +1 -1
- package/dist/{nodes → react/nodes}/classDiagram/Class.d.ts +1 -1
- package/dist/{nodes → react/nodes}/classDiagram/ColorDescription.d.ts +1 -1
- package/dist/{nodes → react/nodes}/classDiagram/Package.d.ts +1 -1
- package/dist/{nodes → react/nodes}/communicationDiagram/CommunicationObjectName.d.ts +1 -1
- package/dist/{nodes → react/nodes}/componentDiagram/Component.d.ts +1 -1
- package/dist/{nodes → react/nodes}/componentDiagram/ComponentInterface.d.ts +1 -1
- package/dist/{nodes → react/nodes}/componentDiagram/ComponentSubsystem.d.ts +1 -1
- package/dist/{nodes → react/nodes}/deploymentDiagram/DeploymentArtifact.d.ts +1 -1
- package/dist/{nodes → react/nodes}/deploymentDiagram/DeploymentComponent.d.ts +1 -1
- package/dist/{nodes → react/nodes}/deploymentDiagram/DeploymentInterface.d.ts +1 -1
- package/dist/{nodes → react/nodes}/deploymentDiagram/DeploymentNode.d.ts +1 -1
- package/dist/{nodes → react/nodes}/flowchart/FlowchartDecision.d.ts +1 -1
- package/dist/{nodes → react/nodes}/flowchart/FlowchartFunctionCall.d.ts +1 -1
- package/dist/{nodes → react/nodes}/flowchart/FlowchartInputOutput.d.ts +1 -1
- package/dist/{nodes → react/nodes}/flowchart/FlowchartProcess.d.ts +1 -1
- package/dist/{nodes → react/nodes}/flowchart/FlowchartTerminal.d.ts +1 -1
- package/dist/{nodes → react/nodes}/objectDiagram/ObjectName.d.ts +1 -1
- package/dist/{nodes → react/nodes}/petriNetDiagram/PetriNetPlace.d.ts +1 -1
- package/dist/{nodes → react/nodes}/petriNetDiagram/PetriNetTransition.d.ts +1 -1
- package/dist/{nodes → react/nodes}/reachabilityGraphDiagram/ReachabilityGraphMarking.d.ts +1 -1
- package/dist/{nodes → react/nodes}/sfcDiagram/SfcActionTable.d.ts +1 -1
- package/dist/{nodes → react/nodes}/sfcDiagram/SfcJump.d.ts +1 -1
- package/dist/{nodes → react/nodes}/sfcDiagram/SfcStart.d.ts +1 -1
- package/dist/{nodes → react/nodes}/sfcDiagram/SfcStep.d.ts +1 -1
- package/dist/{nodes → react/nodes}/sfcDiagram/SfcTransitionBranch.d.ts +1 -1
- package/dist/{nodes → react/nodes}/syntaxTreeDiagram/SyntaxTreeNonterminal.d.ts +1 -1
- package/dist/{nodes → react/nodes}/syntaxTreeDiagram/SyntaxTreeTerminal.d.ts +1 -1
- package/dist/{nodes → react/nodes}/useCaseDiagram/UseCase.d.ts +1 -1
- package/dist/{nodes → react/nodes}/useCaseDiagram/UseCaseActor.d.ts +1 -1
- package/dist/{nodes → react/nodes}/useCaseDiagram/UseCaseSystem.d.ts +1 -1
- package/dist/react/nodes/wrappers/DefaultNodeWrapper.d.ts +49 -0
- package/dist/react/react.d.ts +4 -0
- package/dist/react/react.js +34679 -0
- package/dist/react/services/migration/EdgeTransformer.d.ts +11 -0
- package/dist/{store → react/store}/context.d.ts +3 -0
- package/dist/react/store/edgeGeometryStore.d.ts +18 -0
- package/dist/{store → react/store}/index.d.ts +2 -1
- package/dist/{store → react/store}/metadataStore.d.ts +11 -0
- package/dist/{sync → react/sync}/headless.d.ts +3 -3
- package/dist/{sync/yjsSyncClass.d.ts → react/sync/yjsSync.d.ts} +5 -2
- package/dist/{typings.d.ts → react/typings.d.ts} +21 -9
- package/dist/{utils → react/utils}/alignmentUtils.d.ts +2 -2
- package/dist/react/utils/collaboration.d.ts +10 -0
- package/dist/react/utils/edgeUtils.d.ts +167 -0
- package/dist/{utils → react/utils}/exportUtils.d.ts +0 -1
- package/dist/react/utils/geometry/bendHandles.d.ts +42 -0
- package/dist/{utils → react/utils}/index.d.ts +2 -2
- package/dist/{utils → react/utils}/interactiveUtils.d.ts +0 -1
- package/dist/{utils → react/utils}/nodeUtils.d.ts +1 -1
- package/dist/react/utils/storeUtils.d.ts +1 -0
- package/dist/react/utils/textUtils.d.ts +1 -0
- package/dist/yjsSync-CK5cmd5z.js +71308 -0
- package/package.json +91 -35
- package/dist/App.d.ts +0 -6
- package/dist/components/AlignmentGuides.d.ts +0 -1
- package/dist/components/AssessmentSelectionDebug.d.ts +0 -1
- package/dist/components/CustomBackground.d.ts +0 -1
- package/dist/components/CustomControls.d.ts +0 -1
- package/dist/components/CustomMiniMap.d.ts +0 -1
- package/dist/components/Sidebar.d.ts +0 -1
- package/dist/components/debug/AssessmentSelectionDebug.d.ts +0 -6
- package/dist/components/svgs/nodes/CustomText.d.ts +0 -16
- package/dist/components/theme/styles.d.ts +0 -22
- package/dist/edges/GenericEdge.d.ts +0 -43
- package/dist/enums/ExportFileFormat.d.ts +0 -6
- package/dist/enums/index.d.ts +0 -2
- package/dist/hooks/useClipboard.d.ts +0 -11
- package/dist/hooks/useDragContext.d.ts +0 -0
- package/dist/hooks/useStraightPathEdge.d.ts +0 -31
- package/dist/initialElements.d.ts +0 -3
- package/dist/nodes/syntaxTreeDiagram/index.d.ts +0 -0
- package/dist/nodes/wrappers/DefaultNodeWrapper.d.ts +0 -33
- package/dist/sync/index.d.ts +0 -1
- package/dist/utils/edgeUtils.d.ts +0 -90
- package/dist/utils/labelUtils.d.ts +0 -16
- package/dist/utils/storeUtils.d.ts +0 -1
- package/dist/utils/textUtils.d.ts +0 -7
- package/dist/utils/v2Typings.d.ts +0 -127
- /package/dist/{components → react/components}/AssessmentSelectableElement.d.ts +0 -0
- /package/dist/{components → react/components}/DraggableGhost.d.ts +0 -0
- /package/dist/{components → react/components}/Icon/index.d.ts +0 -0
- /package/dist/{components → react/components}/ScrollOverlay.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/DefaultNodeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/GenericPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/bpmnDiagram/BPMNEndEventEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/bpmnDiagram/BPMNGatewayEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/bpmnDiagram/BPMNIntermediateEventEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/bpmnDiagram/BPMNStartEventEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/bpmnDiagram/BPMNTaskEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/bpmnDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/classDiagram/ClassEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/classDiagram/EditableAttributesList.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/classDiagram/EditableMethodsList.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/classDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/communicationDiagram/CommunicationObjectNameEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/communicationDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/componentDiagram/ComponentEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/componentDiagram/ComponentSubsystemEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/componentDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/deploymentDiagram/DeploymentComponentEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/deploymentDiagram/DeploymentNodeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/deploymentDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/ActivityDiagramEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/BPMNDiagramEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/ClassDiagramEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/CommunicationDiagramEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/ComponentDiagramEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/DeploymentDiagramEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/FlowChartEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/ObjectDiagramEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/PetriNetEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/ReachabilityGraphEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/SyntaxTreeEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/UseCaseDiagramEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/edgePopovers/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/objectDiagram/ObjectEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/objectDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/petriNetDiagram/PetriNetPlaceEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/petriNetDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/reachabilityGraphDiagram/ReachabilityGraphMarkingEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/reachabilityGraphDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/sfcDiagram/SfcActionTableEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/sfcDiagram/SfcEdgeEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/sfcDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/syntaxTreeDiagram/SyntaxTreeNonterminalEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/syntaxTreeDiagram/SyntaxTreeTerminalEditPopover.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/syntaxTreeDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/popovers/types.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/AssessmentIcon.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/StyledElements.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/edges/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/HeaderSection.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/MultilineText.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/RowBlockSection.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/SeparationLine.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/StereotypeAndName.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/activityDiagram/ActivityActionNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/activityDiagram/ActivityFinalNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/activityDiagram/ActivityForkNodeHorizontalSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/activityDiagram/ActivityForkNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/activityDiagram/ActivityInitialNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/activityDiagram/ActivityMergeNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/activityDiagram/ActivityObjectNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/activityDiagram/ActivitySVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/activityDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/bpmnDiagram/BPMNAnnotationNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/bpmnDiagram/BPMNDataObjectNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/bpmnDiagram/BPMNDataStoreNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/bpmnDiagram/BPMNEventNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/bpmnDiagram/BPMNGatewayNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/bpmnDiagram/BPMNGroupNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/bpmnDiagram/BPMNPoolNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/bpmnDiagram/BPMNSubprocessNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/bpmnDiagram/BPMNTaskNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/bpmnDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/classDiagram/PackageSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/classDiagram/TitleAndDescriptionSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/classDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/communicationDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/componentDiagram/ComponentInterfaceNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/componentDiagram/ComponentNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/componentDiagram/ComponentSubsystemNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/componentDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/deploymentDiagram/DeploymentArtifactSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/deploymentDiagram/DeploymentComponentSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/deploymentDiagram/DeploymentInterfaceSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/deploymentDiagram/DeploymentNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/deploymentDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/flowchartDiagram/FlowchartDecisionNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/flowchartDiagram/FlowchartFunctionCallNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/flowchartDiagram/FlowchartInputOutputNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/flowchartDiagram/FlowchartProcessNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/flowchartDiagram/FlowchartTerminalNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/flowchartDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/objectDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/petriNetDiagram/PetriNetPlaceSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/petriNetDiagram/PetriNetTransitionSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/petriNetDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/reachabilityGraphDiagram/ReachabilityGraphMarkingSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/reachabilityGraphDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/sfcDiagram/SfcActionTableNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/sfcDiagram/SfcJumpNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/sfcDiagram/SfcStartNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/sfcDiagram/SfcStepNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/sfcDiagram/SfcTransitionBranchNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/sfcDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/syntaxTreeDiagram/SyntaxTreeNonterminalNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/syntaxTreeDiagram/SyntaxTreeTerminalNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/syntaxTreeDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/useCaseDiagram/UseCaseActorNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/useCaseDiagram/UseCaseNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/useCaseDiagram/UseCaseSystemNodeSVG.d.ts +0 -0
- /package/dist/{components → react/components}/svgs/nodes/useCaseDiagram/index.d.ts +0 -0
- /package/dist/{components → react/components}/toolbars/NodeToolbar.d.ts +0 -0
- /package/dist/{components → react/components}/toolbars/edgeToolBar/index.d.ts +0 -0
- /package/dist/{components → react/components}/toolbars/index.d.ts +0 -0
- /package/dist/{components → react/components}/ui/DividerLine.d.ts +0 -0
- /package/dist/{components → react/components}/ui/HeaderSwitchElement.d.ts +0 -0
- /package/dist/{components → react/components}/ui/PrimaryButton.d.ts +0 -0
- /package/dist/{components → react/components}/ui/StereotypeButtonGroup.d.ts +0 -0
- /package/dist/{components → react/components}/ui/StyleEditor/EdgeStyleEditor.d.ts +0 -0
- /package/dist/{components → react/components}/ui/StyleEditor/NodeStyleEditor.d.ts +0 -0
- /package/dist/{components → react/components}/ui/StyleEditor/index.d.ts +0 -0
- /package/dist/{components → react/components}/ui/TextField.d.ts +0 -0
- /package/dist/{components → react/components}/ui/Typography.d.ts +0 -0
- /package/dist/{components → react/components}/ui/index.d.ts +0 -0
- /package/dist/{components → react/components}/wrapper/AssessmentSelectableWrapper.d.ts +0 -0
- /package/dist/{components → react/components}/wrapper/FeedbackDropzone.d.ts +0 -0
- /package/dist/{components → react/components}/wrapper/index.d.ts +0 -0
- /package/dist/{edges → react/edges}/Connection.d.ts +0 -0
- /package/dist/{edges → react/edges}/EdgeProps.d.ts +0 -0
- /package/dist/{edges → react/edges}/edgeTypes/index.d.ts +0 -0
- /package/dist/{edges → react/edges}/index.d.ts +0 -0
- /package/dist/{enums → react/enums}/Quadrant.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/index.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useAssessmentSelection.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useConnect.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useDiagramModifiable.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useDragOver.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useDropFeedback.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useEdgeConfig.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useEdgeToolbar.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useEdges.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useElementInteractions.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useGoToNextAssessment.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useHandleDelete.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useHandleOnResize.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useIsOnlyThisElementSelected.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useKeyboardShortcuts.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useMessagePositioning.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useNodeDrag.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useNodeDragStop.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/usePaneClicked.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useSelectionForCopyPaste.d.ts +0 -0
- /package/dist/{hooks → react/hooks}/useViewPointCenter.d.ts +0 -0
- /package/dist/{logger.d.ts → react/logger.d.ts} +0 -0
- /package/dist/{nodes → react/nodes}/activityDiagram/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/bpmn/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/classDiagram/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/communicationDiagram/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/componentDiagram/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/deploymentDiagram/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/flowchart/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/objectDiagram/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/petriNetDiagram/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/reachabilityGraphDiagram/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/sfcDiagram/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/types.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/useCaseDiagram/index.d.ts +0 -0
- /package/dist/{nodes → react/nodes}/wrappers/index.d.ts +0 -0
- /package/dist/{store → react/store}/alignmentGuidesStore.d.ts +0 -0
- /package/dist/{store → react/store}/assessmentSelectionStore.d.ts +0 -0
- /package/dist/{store → react/store}/diagramStore.d.ts +0 -0
- /package/dist/{store → react/store}/popoverStore.d.ts +0 -0
- /package/dist/{styles → react/styles}/theme.d.ts +0 -0
- /package/dist/{sync → react/sync}/ydoc.d.ts +0 -0
- /package/dist/{types → react/types}/DiagramType.d.ts +0 -0
- /package/dist/{types → react/types}/SVG.d.ts +0 -0
- /package/dist/{types → react/types}/index.d.ts +0 -0
- /package/dist/{types → react/types}/locationPopover.d.ts +0 -0
- /package/dist/{types → react/types}/nodes/DropNodeDate.d.ts +0 -0
- /package/dist/{types → react/types}/nodes/NodeProps.d.ts +0 -0
- /package/dist/{types → react/types}/nodes/enums/ClassType.d.ts +0 -0
- /package/dist/{types → react/types}/nodes/enums/index.d.ts +0 -0
- /package/dist/{types → react/types}/nodes/index.d.ts +0 -0
- /package/dist/{utils → react/utils}/bpmnConstraints.d.ts +0 -0
- /package/dist/{utils → react/utils}/copyPasteUtils.d.ts +0 -0
- /package/dist/{utils → react/utils}/deepPartial.d.ts +0 -0
- /package/dist/{utils → react/utils}/diagramTypeUtils.d.ts +0 -0
- /package/dist/{utils → react/utils}/helpers.d.ts +0 -0
- /package/dist/{utils → react/utils}/layoutUtils.d.ts +0 -0
- /package/dist/{utils → react/utils}/pathParsing.d.ts +0 -0
- /package/dist/{utils → react/utils}/popoverUtils.d.ts +0 -0
- /package/dist/{utils → react/utils}/quadrantUtils.d.ts +0 -0
- /package/dist/{utils → react/utils}/requiredInterfaceUtils.d.ts +0 -0
- /package/dist/{utils → react/utils}/svgTextLayout.d.ts +0 -0
- /package/dist/{utils → react/utils}/v3Typings.d.ts +0 -0
- /package/dist/{utils → react/utils}/versionConverter.d.ts +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,897 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { Edge } from '@xyflow/react';
|
|
2
|
+
import { EdgeProps } from '@xyflow/react';
|
|
3
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
4
|
+
import { Node as Node_2 } from '@xyflow/react';
|
|
5
|
+
import { NodeProps } from '@xyflow/react';
|
|
6
|
+
import { XYPosition } from '@xyflow/react';
|
|
7
|
+
|
|
8
|
+
declare function Activity({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
9
|
+
|
|
10
|
+
declare function ActivityActionNode({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
11
|
+
|
|
12
|
+
declare function ActivityFinalNode({ id, width, height, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
13
|
+
|
|
14
|
+
declare function ActivityForkNode({ id, width, height, parentId, data, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
15
|
+
|
|
16
|
+
declare function ActivityForkNodeHorizontal({ id, width, height, parentId, data, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
17
|
+
|
|
18
|
+
declare function ActivityInitialNode({ id, width, height, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
19
|
+
|
|
20
|
+
declare function ActivityMergeNode({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
21
|
+
|
|
22
|
+
declare function ActivityObjectNode({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
23
|
+
|
|
24
|
+
declare namespace Apollon {
|
|
25
|
+
export {
|
|
26
|
+
UMLDiagramType,
|
|
27
|
+
DiagramNodeType,
|
|
28
|
+
DiagramEdgeType,
|
|
29
|
+
Styles,
|
|
30
|
+
Unsubscriber,
|
|
31
|
+
Subscribers,
|
|
32
|
+
UMLModelElementType,
|
|
33
|
+
CollaborationUser,
|
|
34
|
+
CollaborationCursor,
|
|
35
|
+
CollaborationViewport,
|
|
36
|
+
CollaborationState,
|
|
37
|
+
CollaboratorInfo,
|
|
38
|
+
ApollonCollaborationOptions,
|
|
39
|
+
Locale,
|
|
40
|
+
ApollonMode,
|
|
41
|
+
ApollonNode,
|
|
42
|
+
OrthogonalEdgeData,
|
|
43
|
+
ApollonEdge,
|
|
44
|
+
InteractiveElements,
|
|
45
|
+
UMLModel,
|
|
46
|
+
ApollonView,
|
|
47
|
+
SvgExportMode,
|
|
48
|
+
ApollonOptions,
|
|
49
|
+
FeedbackCorrectionStatus,
|
|
50
|
+
Assessment,
|
|
51
|
+
ExportOptions,
|
|
52
|
+
SVG
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export declare type ApollonCollaborationOptions = {
|
|
57
|
+
enabled?: boolean;
|
|
58
|
+
user?: CollaborationUser;
|
|
59
|
+
showPresence?: boolean;
|
|
60
|
+
showCursors?: boolean;
|
|
61
|
+
showSelectionHighlights?: boolean;
|
|
62
|
+
showFollow?: boolean;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export declare type ApollonEdge = {
|
|
66
|
+
id: string;
|
|
67
|
+
source: string;
|
|
68
|
+
target: string;
|
|
69
|
+
type: DiagramEdgeType;
|
|
70
|
+
sourceHandle: string;
|
|
71
|
+
targetHandle: string;
|
|
72
|
+
data: OrthogonalEdgeData;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export declare class ApollonEditor {
|
|
76
|
+
private root;
|
|
77
|
+
private reactFlowInstance;
|
|
78
|
+
private readonly syncManager;
|
|
79
|
+
private readonly ydoc;
|
|
80
|
+
private readonly diagramStore;
|
|
81
|
+
private readonly metadataStore;
|
|
82
|
+
private readonly popoverStore;
|
|
83
|
+
private readonly assessmentSelectionStore;
|
|
84
|
+
private readonly alignmentGuidesStore;
|
|
85
|
+
private readonly edgeGeometryStore;
|
|
86
|
+
private subscribers;
|
|
87
|
+
constructor(element: HTMLElement, options?: Apollon.ApollonOptions);
|
|
88
|
+
private setReactFlowInstance;
|
|
89
|
+
getNodes(): Node_2[];
|
|
90
|
+
getEdges(): Edge[];
|
|
91
|
+
getViewport(): {
|
|
92
|
+
x: number;
|
|
93
|
+
y: number;
|
|
94
|
+
zoom: number;
|
|
95
|
+
} | null;
|
|
96
|
+
screenToFlowPosition(position: {
|
|
97
|
+
x: number;
|
|
98
|
+
y: number;
|
|
99
|
+
}): XYPosition | null;
|
|
100
|
+
flowToScreenPosition(position: {
|
|
101
|
+
x: number;
|
|
102
|
+
y: number;
|
|
103
|
+
}): XYPosition | null;
|
|
104
|
+
fitView(options?: {
|
|
105
|
+
padding?: number;
|
|
106
|
+
duration?: number;
|
|
107
|
+
}): void;
|
|
108
|
+
set diagramType(type: UMLDiagramType);
|
|
109
|
+
destroy(): void;
|
|
110
|
+
/** Renders a model to SVG via a hidden, off-screen mount. */
|
|
111
|
+
static exportModelAsSvg(model: Apollon.UMLModel, options?: Apollon.ExportOptions): Promise<Apollon.SVG>;
|
|
112
|
+
/**
|
|
113
|
+
* exports current model as svg
|
|
114
|
+
* @param options options to change the export behavior (add margin, exclude element ...)
|
|
115
|
+
*/
|
|
116
|
+
exportAsSVG(options?: Apollon.ExportOptions): Promise<Apollon.SVG>;
|
|
117
|
+
private getNewSubscriptionId;
|
|
118
|
+
subscribeToModelChange(callback: (state: Apollon.UMLModel) => void): number;
|
|
119
|
+
subscribeToDiagramNameChange(callback: (diagramTitle: string) => void): number;
|
|
120
|
+
subscribeToAssessmentSelection(callback: (selectedElementIds: string[]) => void): number;
|
|
121
|
+
subscribeToSelectionChange(callback: (selectedElementIds: string[]) => void): number;
|
|
122
|
+
subscribeToAwarenessChanges(callback: (states: Map<number, Apollon.CollaborationState>) => void): number;
|
|
123
|
+
subscribeToCollaboratorChanges(callback: (collaborators: Apollon.CollaboratorInfo[]) => void): number;
|
|
124
|
+
unsubscribe(subscriberId: number): void;
|
|
125
|
+
sendBroadcastMessage(sendFn: SendBroadcastMessage): void;
|
|
126
|
+
receiveBroadcastedMessage(base64Data: string): void;
|
|
127
|
+
/**
|
|
128
|
+
* Push the entire local Yjs document to peers. Hosts should call this on
|
|
129
|
+
* every (re)connect so any edits made while the transport was closed are
|
|
130
|
+
* absorbed by the room. See `YjsSync.broadcastFullState`.
|
|
131
|
+
*/
|
|
132
|
+
broadcastFullState(): void;
|
|
133
|
+
setLocalAwarenessUser(user: Apollon.CollaborationUser): void;
|
|
134
|
+
setLocalAwarenessCursor(cursor: Apollon.CollaborationCursor | null): void;
|
|
135
|
+
setLocalAwarenessSelectedElement(selectedElementId: string | null): void;
|
|
136
|
+
setLocalAwarenessState(state: Partial<Apollon.CollaborationState>): void;
|
|
137
|
+
getLocalAwarenessClientId(): number;
|
|
138
|
+
getCollaborators(): Apollon.CollaboratorInfo[];
|
|
139
|
+
updateDiagramTitle(name: string): void;
|
|
140
|
+
/**
|
|
141
|
+
* Toggles the editor's read-only state at runtime. Used by hosting apps
|
|
142
|
+
* to lock the canvas while previewing an immutable snapshot (e.g. the
|
|
143
|
+
* version-history preview), without tearing down and re-mounting the
|
|
144
|
+
* editor instance.
|
|
145
|
+
*/
|
|
146
|
+
setReadonly(readonly: boolean): void;
|
|
147
|
+
/** Live-toggle modeling vs assessment vs exporting mode. */
|
|
148
|
+
setMode(mode: Apollon.ApollonMode): void;
|
|
149
|
+
/** Live-toggle whether the canvas captures page scroll. */
|
|
150
|
+
setScrollLock(scrollLock: boolean): void;
|
|
151
|
+
/**
|
|
152
|
+
* Toggle preview-overlay mode. When `true`, subsequent `model = …`
|
|
153
|
+
* assignments and other store mutators update the local Zustand caches
|
|
154
|
+
* (so the canvas displays the overlay) WITHOUT writing to the Yjs
|
|
155
|
+
* doc — leaving the collaborative document untouched. Yjs observers
|
|
156
|
+
* also stop propagating peer-driven updates to Zustand, so the overlay
|
|
157
|
+
* doesn't flicker as collaborators edit the live diagram.
|
|
158
|
+
*
|
|
159
|
+
* On flip-off the local Zustand state is rebuilt from the (now
|
|
160
|
+
* peer-augmented) Yjs maps so the canvas catches up to everything
|
|
161
|
+
* collaborators committed during the preview.
|
|
162
|
+
*
|
|
163
|
+
* Hosts should call `setPreviewMode(true)` before applying a preview
|
|
164
|
+
* model and `setPreviewMode(false)` on exit. The Yjs doc never needs
|
|
165
|
+
* to be "restored" from a snapshot because it was never disturbed.
|
|
166
|
+
*/
|
|
167
|
+
setPreviewMode(active: boolean): void;
|
|
168
|
+
toggleInteractiveElementsMode(forceEnabled?: boolean): void;
|
|
169
|
+
getInteractiveForSerialization(): Apollon.InteractiveElements | undefined;
|
|
170
|
+
getDiagramMetadata(): {
|
|
171
|
+
diagramTitle: string;
|
|
172
|
+
diagramType: "ClassDiagram" | "ObjectDiagram" | "ActivityDiagram" | "UseCaseDiagram" | "CommunicationDiagram" | "ComponentDiagram" | "DeploymentDiagram" | "PetriNet" | "ReachabilityGraph" | "SyntaxTree" | "Flowchart" | "BPMN" | "Sfc";
|
|
173
|
+
};
|
|
174
|
+
get model(): Apollon.UMLModel;
|
|
175
|
+
set model(model: Apollon.UMLModel);
|
|
176
|
+
getSelectedElements(): string[];
|
|
177
|
+
get view(): Apollon.ApollonView;
|
|
178
|
+
set view(view: Apollon.ApollonView);
|
|
179
|
+
addOrUpdateAssessment(assessment: Apollon.Assessment): void;
|
|
180
|
+
static generateInitialSyncMessage(): string;
|
|
181
|
+
static generateInitialAwarenessSyncMessage(): string;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export declare enum ApollonMode {
|
|
185
|
+
Modelling = "Modelling",
|
|
186
|
+
Exporting = "Exporting",
|
|
187
|
+
Assessment = "Assessment"
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export declare type ApollonNode = {
|
|
191
|
+
id: string;
|
|
192
|
+
width: number;
|
|
193
|
+
height: number;
|
|
194
|
+
type: DiagramNodeType;
|
|
195
|
+
position: {
|
|
196
|
+
x: number;
|
|
197
|
+
y: number;
|
|
198
|
+
};
|
|
199
|
+
data: {
|
|
200
|
+
[key: string]: unknown;
|
|
201
|
+
};
|
|
202
|
+
parentId?: string;
|
|
203
|
+
measured: {
|
|
204
|
+
width: number;
|
|
205
|
+
height: number;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
export declare type ApollonOptions = {
|
|
210
|
+
type?: UMLDiagramType;
|
|
211
|
+
mode?: ApollonMode;
|
|
212
|
+
view?: ApollonView;
|
|
213
|
+
availableViews?: ApollonView[];
|
|
214
|
+
readonly?: boolean;
|
|
215
|
+
enablePopups?: boolean;
|
|
216
|
+
model?: UMLModel;
|
|
217
|
+
locale?: Locale;
|
|
218
|
+
debug?: boolean;
|
|
219
|
+
collaborationEnabled?: boolean;
|
|
220
|
+
collaboration?: ApollonCollaborationOptions;
|
|
221
|
+
scrollLock?: boolean;
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
declare const apollonTheme: {
|
|
225
|
+
color: {
|
|
226
|
+
primary: string;
|
|
227
|
+
secondary: string;
|
|
228
|
+
warningYellow: string;
|
|
229
|
+
background: string;
|
|
230
|
+
backgroundVariant: string;
|
|
231
|
+
grid: string;
|
|
232
|
+
primaryContrast: string;
|
|
233
|
+
gray: string;
|
|
234
|
+
grayAccent: string;
|
|
235
|
+
};
|
|
236
|
+
font: {
|
|
237
|
+
color: string;
|
|
238
|
+
family: string;
|
|
239
|
+
size: number;
|
|
240
|
+
};
|
|
241
|
+
interactive: {
|
|
242
|
+
normal: string;
|
|
243
|
+
hovered: string;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
export declare enum ApollonView {
|
|
248
|
+
Modelling = "Modelling",
|
|
249
|
+
Exporting = "Exporting",
|
|
250
|
+
Highlight = "Highlight"
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export declare type Assessment = {
|
|
254
|
+
modelElementId: string;
|
|
255
|
+
elementType: string;
|
|
256
|
+
score: number;
|
|
257
|
+
feedback?: string;
|
|
258
|
+
dropInfo?: unknown;
|
|
259
|
+
label?: string;
|
|
260
|
+
labelColor?: string;
|
|
261
|
+
correctionStatus?: FeedbackCorrectionStatus;
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
export declare type AssessmentViewData = {
|
|
265
|
+
elementId: string;
|
|
266
|
+
elementType: string;
|
|
267
|
+
name: string;
|
|
268
|
+
feedback: string;
|
|
269
|
+
score: number;
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
declare type BaseEdgeProps = ExtendedEdgeProps;
|
|
273
|
+
|
|
274
|
+
declare function BPMNAnnotation({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNAnnotationProps>>): JSX_2.Element | null;
|
|
275
|
+
|
|
276
|
+
declare type BPMNAnnotationProps = DefaultNodeProps;
|
|
277
|
+
|
|
278
|
+
declare function BPMNCallActivity({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNCallActivityProps>>): JSX_2.Element | null;
|
|
279
|
+
|
|
280
|
+
declare type BPMNCallActivityProps = DefaultNodeProps;
|
|
281
|
+
|
|
282
|
+
declare function BPMNDataObject({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNDataObjectProps>>): JSX_2.Element | null;
|
|
283
|
+
|
|
284
|
+
declare type BPMNDataObjectProps = DefaultNodeProps;
|
|
285
|
+
|
|
286
|
+
declare function BPMNDataStore({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNDataStoreProps>>): JSX_2.Element | null;
|
|
287
|
+
|
|
288
|
+
declare type BPMNDataStoreProps = DefaultNodeProps;
|
|
289
|
+
|
|
290
|
+
declare function BPMNEndEvent({ id, width, height, data, }: NodeProps<Node_2<BPMNEventProps>>): JSX_2.Element;
|
|
291
|
+
|
|
292
|
+
declare type BPMNEventProps = DefaultNodeProps & {
|
|
293
|
+
eventType: BPMNStartEventType;
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
declare function BPMNGateway({ id, width, height, data, }: NodeProps<Node_2<BPMNGatewayProps>>): JSX_2.Element;
|
|
297
|
+
|
|
298
|
+
declare type BPMNGatewayProps = DefaultNodeProps & {
|
|
299
|
+
gatewayType: BPMNGatewayType;
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
declare type BPMNGatewayType = "complex" | "event-based" | "exclusive" | "inclusive" | "parallel";
|
|
303
|
+
|
|
304
|
+
declare function BPMNGroup({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNGroupProps>>): JSX_2.Element | null;
|
|
305
|
+
|
|
306
|
+
declare type BPMNGroupProps = DefaultNodeProps;
|
|
307
|
+
|
|
308
|
+
declare function BPMNIntermediateEvent({ id, width, height, data, }: NodeProps<Node_2<BPMNEventProps>>): JSX_2.Element;
|
|
309
|
+
|
|
310
|
+
declare type BPMNMarkerType = "none" | "parallel multi instance" | "sequential multi instance" | "loop";
|
|
311
|
+
|
|
312
|
+
declare function BPMNPool({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNPoolProps>>): JSX_2.Element | null;
|
|
313
|
+
|
|
314
|
+
declare type BPMNPoolProps = DefaultNodeProps;
|
|
315
|
+
|
|
316
|
+
declare function BPMNStartEvent({ id, width, height, data, }: NodeProps<Node_2<BPMNEventProps>>): JSX_2.Element;
|
|
317
|
+
|
|
318
|
+
declare type BPMNStartEventType = "default" | "message" | "timer" | "conditional" | "signal";
|
|
319
|
+
|
|
320
|
+
declare function BPMNSubprocess({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNSubprocessProps>>): JSX_2.Element | null;
|
|
321
|
+
|
|
322
|
+
declare type BPMNSubprocessProps = DefaultNodeProps;
|
|
323
|
+
|
|
324
|
+
declare function BPMNTask({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNTaskProps>>): JSX_2.Element | null;
|
|
325
|
+
|
|
326
|
+
declare type BPMNTaskProps = DefaultNodeProps & {
|
|
327
|
+
taskType: BPMNTaskType;
|
|
328
|
+
marker: BPMNMarkerType;
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
declare type BPMNTaskType = "default" | "user" | "send" | "receive" | "manual" | "business-rule" | "script";
|
|
332
|
+
|
|
333
|
+
declare function BPMNTransaction({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNTransactionProps>>): JSX_2.Element | null;
|
|
334
|
+
|
|
335
|
+
declare type BPMNTransactionProps = DefaultNodeProps;
|
|
336
|
+
|
|
337
|
+
declare function Class({ id, width, height, data, }: NodeProps<Node_2<ClassNodeProps>>): JSX_2.Element;
|
|
338
|
+
|
|
339
|
+
declare type ClassNodeElement = {
|
|
340
|
+
id: string;
|
|
341
|
+
} & DefaultNodeProps;
|
|
342
|
+
|
|
343
|
+
declare type ClassNodeProps = {
|
|
344
|
+
methods: ClassNodeElement[];
|
|
345
|
+
attributes: ClassNodeElement[];
|
|
346
|
+
stereotype?: ClassType;
|
|
347
|
+
} & DefaultNodeProps;
|
|
348
|
+
|
|
349
|
+
declare enum ClassType {
|
|
350
|
+
Abstract = "Abstract",
|
|
351
|
+
Interface = "Interface",
|
|
352
|
+
Enumeration = "Enumeration"
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
export declare const collabColorFromName: (name: string) => string;
|
|
356
|
+
|
|
357
|
+
export declare type CollaborationCursor = {
|
|
358
|
+
x: number;
|
|
359
|
+
y: number;
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
export declare type CollaborationState = {
|
|
363
|
+
user?: CollaborationUser;
|
|
364
|
+
cursor?: CollaborationCursor | null;
|
|
365
|
+
viewport?: CollaborationViewport | null;
|
|
366
|
+
followingClientId?: number | null;
|
|
367
|
+
selectedElementId?: string | null;
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
export declare type CollaborationUser = {
|
|
371
|
+
name: string;
|
|
372
|
+
color: string;
|
|
373
|
+
id?: string;
|
|
374
|
+
imageUrl?: string;
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
export declare type CollaborationViewport = {
|
|
378
|
+
x: number;
|
|
379
|
+
y: number;
|
|
380
|
+
zoom: number;
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
export declare type CollaboratorInfo = {
|
|
384
|
+
id: string;
|
|
385
|
+
name: string;
|
|
386
|
+
color: string;
|
|
387
|
+
imageUrl?: string;
|
|
388
|
+
clientIds: number[];
|
|
389
|
+
isLocal: boolean;
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
declare function ColorDescription({ width, height, data, id, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
393
|
+
|
|
394
|
+
declare function CommunicationObjectName({ id, width, height, data, }: NodeProps<Node_2<CommunicationObjectNodeProps>>): JSX_2.Element;
|
|
395
|
+
|
|
396
|
+
declare type CommunicationObjectNodeProps = {
|
|
397
|
+
methods: ClassNodeElement[];
|
|
398
|
+
attributes: ClassNodeElement[];
|
|
399
|
+
} & DefaultNodeProps;
|
|
400
|
+
|
|
401
|
+
declare function Component({ id, width, height, data, parentId, }: NodeProps<Node_2<ComponentNodeProps>>): JSX_2.Element | null;
|
|
402
|
+
|
|
403
|
+
declare function ComponentInterface({ id, width, height, data, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
404
|
+
|
|
405
|
+
declare type ComponentNodeProps = {
|
|
406
|
+
isComponentHeaderShown: boolean;
|
|
407
|
+
} & DefaultNodeProps;
|
|
408
|
+
|
|
409
|
+
declare function ComponentSubsystem({ id, width, height, data, parentId, }: NodeProps<Node_2<ComponentSubsystemNodeProps>>): JSX_2.Element | null;
|
|
410
|
+
|
|
411
|
+
declare type ComponentSubsystemNodeProps = {
|
|
412
|
+
isComponentSubsystemHeaderShown: boolean;
|
|
413
|
+
} & DefaultNodeProps;
|
|
414
|
+
|
|
415
|
+
declare type CustomEdgeProps = {
|
|
416
|
+
sourceRole: string | null;
|
|
417
|
+
sourceMultiplicity: string | null;
|
|
418
|
+
targetRole: string | null;
|
|
419
|
+
targetMultiplicity: string | null;
|
|
420
|
+
points: IPoint[];
|
|
421
|
+
label?: string | null;
|
|
422
|
+
messages?: MessageData[];
|
|
423
|
+
strokeColor?: string;
|
|
424
|
+
textColor?: string;
|
|
425
|
+
};
|
|
426
|
+
|
|
427
|
+
declare type DefaultNodeProps = {
|
|
428
|
+
name: string;
|
|
429
|
+
fillColor?: string;
|
|
430
|
+
strokeColor?: string;
|
|
431
|
+
textColor?: string;
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
declare function DeploymentArtifact({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
435
|
+
|
|
436
|
+
declare function DeploymentComponent({ id, width, height, data, parentId, }: NodeProps<Node_2<DeploymentComponentProps>>): JSX_2.Element | null;
|
|
437
|
+
|
|
438
|
+
declare type DeploymentComponentProps = {
|
|
439
|
+
isComponentHeaderShown: boolean;
|
|
440
|
+
} & DefaultNodeProps;
|
|
441
|
+
|
|
442
|
+
declare function DeploymentInterface({ id, width, height, data, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
443
|
+
|
|
444
|
+
declare function DeploymentNode({ id, width, height, data, parentId, }: NodeProps<Node_2<DeploymentNodeProps>>): JSX_2.Element | null;
|
|
445
|
+
|
|
446
|
+
declare type DeploymentNodeProps = {
|
|
447
|
+
isComponentHeaderShown: boolean;
|
|
448
|
+
stereotype: string;
|
|
449
|
+
} & DefaultNodeProps;
|
|
450
|
+
|
|
451
|
+
export declare type DiagramEdgeType = keyof typeof diagramEdgeTypes;
|
|
452
|
+
|
|
453
|
+
declare const diagramEdgeTypes: {
|
|
454
|
+
ClassAggregation: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
455
|
+
ClassInheritance: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
456
|
+
ClassRealization: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
457
|
+
ClassComposition: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
458
|
+
ClassBidirectional: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
459
|
+
ClassUnidirectional: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
460
|
+
ClassDependency: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
461
|
+
ActivityControlFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
462
|
+
ObjectLink: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
463
|
+
FlowChartFlowline: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
464
|
+
SyntaxTreeLink: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
465
|
+
CommunicationLink: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
466
|
+
PetriNetArc: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
467
|
+
UseCaseAssociation: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
468
|
+
UseCaseInclude: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
469
|
+
UseCaseExtend: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
470
|
+
UseCaseGeneralization: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
471
|
+
ComponentDependency: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
472
|
+
ComponentProvidedInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
473
|
+
ComponentRequiredInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
474
|
+
ComponentRequiredThreeQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
475
|
+
ComponentRequiredQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
476
|
+
DeploymentAssociation: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
477
|
+
DeploymentDependency: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
478
|
+
DeploymentProvidedInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
479
|
+
DeploymentRequiredInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
480
|
+
DeploymentRequiredThreeQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
481
|
+
DeploymentRequiredQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
482
|
+
SfcDiagramEdge: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
483
|
+
ReachabilityGraphArc: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
484
|
+
BPMNSequenceFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
485
|
+
BPMNMessageFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
486
|
+
BPMNAssociationFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
487
|
+
BPMNDataAssociationFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX_2.Element;
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
export declare type DiagramNodeType = keyof typeof diagramNodeTypes;
|
|
491
|
+
|
|
492
|
+
declare const diagramNodeTypes: {
|
|
493
|
+
package: typeof Package;
|
|
494
|
+
class: typeof Class;
|
|
495
|
+
objectName: typeof ObjectName;
|
|
496
|
+
communicationObjectName: typeof CommunicationObjectName;
|
|
497
|
+
colorDescription: typeof ColorDescription;
|
|
498
|
+
titleAndDesctiption: typeof TitleAndDesctiption;
|
|
499
|
+
activity: typeof Activity;
|
|
500
|
+
activityInitialNode: typeof ActivityInitialNode;
|
|
501
|
+
activityFinalNode: typeof ActivityFinalNode;
|
|
502
|
+
activityActionNode: typeof ActivityActionNode;
|
|
503
|
+
activityObjectNode: typeof ActivityObjectNode;
|
|
504
|
+
activityMergeNode: typeof ActivityMergeNode;
|
|
505
|
+
activityForkNode: typeof ActivityForkNode;
|
|
506
|
+
activityForkNodeHorizontal: typeof ActivityForkNodeHorizontal;
|
|
507
|
+
useCase: typeof UseCase;
|
|
508
|
+
useCaseActor: typeof UseCaseActor;
|
|
509
|
+
useCaseSystem: typeof UseCaseSystem;
|
|
510
|
+
component: typeof Component;
|
|
511
|
+
componentInterface: typeof ComponentInterface;
|
|
512
|
+
componentSubsystem: typeof ComponentSubsystem;
|
|
513
|
+
deploymentNode: typeof DeploymentNode;
|
|
514
|
+
deploymentComponent: typeof DeploymentComponent;
|
|
515
|
+
deploymentArtifact: typeof DeploymentArtifact;
|
|
516
|
+
deploymentInterface: typeof DeploymentInterface;
|
|
517
|
+
flowchartTerminal: typeof FlowchartTerminal;
|
|
518
|
+
flowchartProcess: typeof FlowchartProcess;
|
|
519
|
+
flowchartDecision: typeof FlowchartDecision;
|
|
520
|
+
flowchartInputOutput: typeof FlowchartInputOutput;
|
|
521
|
+
flowchartFunctionCall: typeof FlowchartFunctionCall;
|
|
522
|
+
syntaxTreeTerminal: typeof SyntaxTreeTerminal;
|
|
523
|
+
syntaxTreeNonterminal: typeof SyntaxTreeNonterminal;
|
|
524
|
+
petriNetTransition: typeof PetriNetTransition;
|
|
525
|
+
petriNetPlace: typeof PetriNetPlace;
|
|
526
|
+
bpmnTask: typeof BPMNTask;
|
|
527
|
+
bpmnStartEvent: typeof BPMNStartEvent;
|
|
528
|
+
bpmnIntermediateEvent: typeof BPMNIntermediateEvent;
|
|
529
|
+
bpmnEndEvent: typeof BPMNEndEvent;
|
|
530
|
+
bpmnGateway: typeof BPMNGateway;
|
|
531
|
+
bpmnSubprocess: typeof BPMNSubprocess;
|
|
532
|
+
bpmnTransaction: typeof BPMNTransaction;
|
|
533
|
+
bpmnCallActivity: typeof BPMNCallActivity;
|
|
534
|
+
bpmnAnnotation: typeof BPMNAnnotation;
|
|
535
|
+
bpmnDataObject: typeof BPMNDataObject;
|
|
536
|
+
bpmnDataStore: typeof BPMNDataStore;
|
|
537
|
+
bpmnPool: typeof BPMNPool;
|
|
538
|
+
bpmnGroup: typeof BPMNGroup;
|
|
539
|
+
reachabilityGraphMarking: typeof ReachabilityGraphMarking;
|
|
540
|
+
sfcStart: typeof SfcStart;
|
|
541
|
+
sfcStep: typeof SfcStep;
|
|
542
|
+
sfcActionTable: typeof SfcActionTable;
|
|
543
|
+
sfcTransitionBranch: typeof SfcTransitionBranch;
|
|
544
|
+
sfcJump: typeof SfcJump;
|
|
545
|
+
};
|
|
546
|
+
|
|
547
|
+
export declare type ExportOptions = {
|
|
548
|
+
margin?: number | {
|
|
549
|
+
top?: number;
|
|
550
|
+
right?: number;
|
|
551
|
+
bottom?: number;
|
|
552
|
+
left?: number;
|
|
553
|
+
};
|
|
554
|
+
keepOriginalSize?: boolean;
|
|
555
|
+
include?: string[];
|
|
556
|
+
exclude?: string[];
|
|
557
|
+
/**
|
|
558
|
+
* Controls how SVG output is post-processed.
|
|
559
|
+
* - "web": keep CSS variables for theme-adaptive rendering in browsers
|
|
560
|
+
* - "compat": resolve CSS variables + inline attributes for PowerPoint/Inkscape
|
|
561
|
+
*/
|
|
562
|
+
svgMode?: SvgExportMode;
|
|
563
|
+
};
|
|
564
|
+
|
|
565
|
+
declare type ExtendedEdgeProps = EdgeProps<Edge<CustomEdgeProps>> & {
|
|
566
|
+
markerEnd?: string;
|
|
567
|
+
markerPadding?: number;
|
|
568
|
+
strokeDashArray?: string;
|
|
569
|
+
type: string;
|
|
570
|
+
};
|
|
571
|
+
|
|
572
|
+
export declare type FeedbackCorrectionStatus = {
|
|
573
|
+
description?: string;
|
|
574
|
+
status: "CORRECT" | "INCORRECT" | "NOT_VALIDATED";
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
declare function FlowchartDecision({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
578
|
+
|
|
579
|
+
declare function FlowchartFunctionCall({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
580
|
+
|
|
581
|
+
declare function FlowchartInputOutput({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
582
|
+
|
|
583
|
+
declare function FlowchartProcess({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
584
|
+
|
|
585
|
+
declare function FlowchartTerminal({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
586
|
+
|
|
587
|
+
export declare const getAssessmentNameForArtemis: (elementId: string, model: UMLModel) => {
|
|
588
|
+
name: string;
|
|
589
|
+
type: string;
|
|
590
|
+
} | undefined;
|
|
591
|
+
|
|
592
|
+
export declare const getEdgeAssessmentDataById: (edgeId: string, model: UMLModel) => AssessmentViewData | undefined;
|
|
593
|
+
|
|
594
|
+
export declare const getNodeAssessmentDataByNodeElementId: (nodeElementId: string, model: UMLModel) => AssessmentViewData | undefined;
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* Universal import function that handles v2, v3 and v4 formats
|
|
598
|
+
*/
|
|
599
|
+
export declare function importDiagram(data: any | V3UMLModel): UMLModel;
|
|
600
|
+
|
|
601
|
+
export declare type InteractiveElements = {
|
|
602
|
+
elements: Record<string, boolean>;
|
|
603
|
+
relationships: Record<string, boolean>;
|
|
604
|
+
};
|
|
605
|
+
|
|
606
|
+
declare interface IPoint {
|
|
607
|
+
x: number;
|
|
608
|
+
y: number;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
declare interface IPoint_2 {
|
|
612
|
+
x: number;
|
|
613
|
+
y: number;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
export declare enum Locale {
|
|
617
|
+
en = "en",
|
|
618
|
+
de = "de"
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
export declare const log: {
|
|
622
|
+
debug: (...a: unknown[]) => void;
|
|
623
|
+
warn: (...a: unknown[]) => void;
|
|
624
|
+
error: (...a: unknown[]) => void;
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
export declare type LogLevel = "silent" | "error" | "warn" | "debug";
|
|
628
|
+
|
|
629
|
+
declare interface MessageData {
|
|
630
|
+
id: string;
|
|
631
|
+
text: string;
|
|
632
|
+
direction: "target" | "source";
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
declare function ObjectName({ id, width, height, data, }: NodeProps<Node_2<ObjectNodeProps>>): JSX_2.Element;
|
|
636
|
+
|
|
637
|
+
declare type ObjectNodeProps = {
|
|
638
|
+
methods: ClassNodeElement[];
|
|
639
|
+
attributes: ClassNodeElement[];
|
|
640
|
+
} & DefaultNodeProps;
|
|
641
|
+
|
|
642
|
+
export declare interface OrthogonalEdgeData {
|
|
643
|
+
[key: string]: unknown;
|
|
644
|
+
points: IPoint_2[];
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
declare function Package({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
648
|
+
|
|
649
|
+
declare function PetriNetPlace({ id, width, height, data, }: NodeProps<Node_2<PetriNetPlaceProps>>): JSX_2.Element | null;
|
|
650
|
+
|
|
651
|
+
declare type PetriNetPlaceProps = {
|
|
652
|
+
tokens: number;
|
|
653
|
+
capacity: number | "Infinity";
|
|
654
|
+
} & DefaultNodeProps;
|
|
655
|
+
|
|
656
|
+
declare function PetriNetTransition({ id, width, height, data, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
657
|
+
|
|
658
|
+
declare type Props = Node_2<{
|
|
659
|
+
description?: string;
|
|
660
|
+
title: string;
|
|
661
|
+
}>;
|
|
662
|
+
|
|
663
|
+
export declare const randomCollabName: () => string;
|
|
664
|
+
|
|
665
|
+
declare function ReachabilityGraphMarking({ id, width, height, data, parentId, }: NodeProps<Node_2<ReachabilityGraphMarkingProps>>): JSX_2.Element | null;
|
|
666
|
+
|
|
667
|
+
declare type ReachabilityGraphMarkingProps = DefaultNodeProps & {
|
|
668
|
+
isInitialMarking: boolean;
|
|
669
|
+
};
|
|
670
|
+
|
|
671
|
+
declare type SendBroadcastMessage = (base64data: string) => void;
|
|
672
|
+
|
|
673
|
+
export declare function setLogger(next: Partial<Sink>): void;
|
|
674
|
+
|
|
675
|
+
export declare function setLogLevel(next: LogLevel): void;
|
|
676
|
+
|
|
677
|
+
declare type SfcActionRow = DefaultNodeProps & {
|
|
678
|
+
id: string;
|
|
679
|
+
identifier: string;
|
|
680
|
+
};
|
|
681
|
+
|
|
682
|
+
declare function SfcActionTable({ id, width, height, data, }: NodeProps<Node_2<SfcActionTableProps>>): JSX_2.Element | null;
|
|
683
|
+
|
|
684
|
+
declare type SfcActionTableProps = DefaultNodeProps & {
|
|
685
|
+
actionRows: SfcActionRow[];
|
|
686
|
+
};
|
|
687
|
+
|
|
688
|
+
declare function SfcJump({ id, width, height, data, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
689
|
+
|
|
690
|
+
declare function SfcStart({ id, width, height, data, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
691
|
+
|
|
692
|
+
declare function SfcStep({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
693
|
+
|
|
694
|
+
declare function SfcTransitionBranch({ id, width, height, data, }: NodeProps<Node_2<SfcTransitionBranchNodeProps>>): JSX_2.Element | null;
|
|
695
|
+
|
|
696
|
+
declare type SfcTransitionBranchNodeProps = DefaultNodeProps & {
|
|
697
|
+
showHint: boolean;
|
|
698
|
+
};
|
|
699
|
+
|
|
700
|
+
declare type Sink = Pick<Console, "error" | "warn" | "debug">;
|
|
701
|
+
|
|
702
|
+
export declare type Styles = typeof apollonTheme;
|
|
703
|
+
|
|
704
|
+
export declare type Subscribers = {
|
|
705
|
+
[key: number]: Unsubscriber;
|
|
706
|
+
};
|
|
707
|
+
|
|
708
|
+
export declare type SVG = {
|
|
709
|
+
svg: string;
|
|
710
|
+
clip: {
|
|
711
|
+
x: number;
|
|
712
|
+
y: number;
|
|
713
|
+
width: number;
|
|
714
|
+
height: number;
|
|
715
|
+
};
|
|
716
|
+
};
|
|
717
|
+
|
|
718
|
+
export declare type SvgExportMode = "web" | "compat";
|
|
719
|
+
|
|
720
|
+
declare function SyntaxTreeNonterminal({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
721
|
+
|
|
722
|
+
declare function SyntaxTreeTerminal({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
723
|
+
|
|
724
|
+
declare function TitleAndDesctiption({ width, height, id, data: { description, title }, }: NodeProps<Props>): JSX_2.Element | null;
|
|
725
|
+
|
|
726
|
+
export declare type UMLDiagramType = keyof typeof UMLDiagramType;
|
|
727
|
+
|
|
728
|
+
export declare const UMLDiagramType: {
|
|
729
|
+
readonly ClassDiagram: "ClassDiagram";
|
|
730
|
+
readonly ObjectDiagram: "ObjectDiagram";
|
|
731
|
+
readonly ActivityDiagram: "ActivityDiagram";
|
|
732
|
+
readonly UseCaseDiagram: "UseCaseDiagram";
|
|
733
|
+
readonly CommunicationDiagram: "CommunicationDiagram";
|
|
734
|
+
readonly ComponentDiagram: "ComponentDiagram";
|
|
735
|
+
readonly DeploymentDiagram: "DeploymentDiagram";
|
|
736
|
+
readonly PetriNet: "PetriNet";
|
|
737
|
+
readonly ReachabilityGraph: "ReachabilityGraph";
|
|
738
|
+
readonly SyntaxTree: "SyntaxTree";
|
|
739
|
+
readonly Flowchart: "Flowchart";
|
|
740
|
+
readonly BPMN: "BPMN";
|
|
741
|
+
readonly Sfc: "Sfc";
|
|
742
|
+
};
|
|
743
|
+
|
|
744
|
+
export declare type UMLModel = {
|
|
745
|
+
version: `4.${number}.${number}`;
|
|
746
|
+
id: string;
|
|
747
|
+
title: string;
|
|
748
|
+
type: UMLDiagramType;
|
|
749
|
+
nodes: ApollonNode[];
|
|
750
|
+
edges: ApollonEdge[];
|
|
751
|
+
assessments: {
|
|
752
|
+
[id: string]: Assessment;
|
|
753
|
+
};
|
|
754
|
+
interactive?: InteractiveElements;
|
|
755
|
+
};
|
|
756
|
+
|
|
757
|
+
export declare type UMLModelElementType = DiagramNodeType | DiagramEdgeType;
|
|
758
|
+
|
|
759
|
+
export declare type Unsubscriber = () => void;
|
|
760
|
+
|
|
761
|
+
declare function UseCase({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
762
|
+
|
|
763
|
+
declare function UseCaseActor({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
764
|
+
|
|
765
|
+
declare function UseCaseSystem({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX_2.Element | null;
|
|
766
|
+
|
|
767
|
+
declare type V3Assessment = {
|
|
768
|
+
modelElementId: string;
|
|
769
|
+
elementType: string;
|
|
770
|
+
score: number;
|
|
771
|
+
feedback?: string;
|
|
772
|
+
dropInfo?: any;
|
|
773
|
+
label?: string;
|
|
774
|
+
labelColor?: string;
|
|
775
|
+
correctionStatus?: {
|
|
776
|
+
description?: string;
|
|
777
|
+
status: "CORRECT" | "INCORRECT" | "NOT_VALIDATED";
|
|
778
|
+
};
|
|
779
|
+
};
|
|
780
|
+
|
|
781
|
+
declare type V3BPMNEndEvent = {
|
|
782
|
+
eventType: "default" | "message" | "escalation" | "error" | "compensation" | "signal" | "terminate";
|
|
783
|
+
};
|
|
784
|
+
|
|
785
|
+
declare type V3BPMNGateway = {
|
|
786
|
+
gatewayType: "complex" | "event-based" | "exclusive" | "inclusive" | "parallel";
|
|
787
|
+
};
|
|
788
|
+
|
|
789
|
+
declare type V3BPMNIntermediateEvent = {
|
|
790
|
+
eventType: "default" | "message-catch" | "message-throw" | "timer-catch" | "escalation-throw" | "conditional-catch" | "link-catch" | "link-throw" | "compensation-throw" | "signal-catch" | "signal-throw";
|
|
791
|
+
};
|
|
792
|
+
|
|
793
|
+
declare type V3BPMNStartEvent = {
|
|
794
|
+
eventType: "default" | "message" | "timer" | "conditional" | "signal";
|
|
795
|
+
};
|
|
796
|
+
|
|
797
|
+
declare type V3BPMNTask = {
|
|
798
|
+
taskType: "default" | "user" | "send" | "receive" | "manual" | "business-rule" | "script";
|
|
799
|
+
marker: "none" | "parallel multi instance" | "sequential multi instance" | "loop";
|
|
800
|
+
};
|
|
801
|
+
|
|
802
|
+
declare type V3UMLClassifier = {
|
|
803
|
+
attributes: string[];
|
|
804
|
+
methods: string[];
|
|
805
|
+
};
|
|
806
|
+
|
|
807
|
+
declare type V3UMLComponentComponent = {
|
|
808
|
+
displayStereotype: boolean;
|
|
809
|
+
};
|
|
810
|
+
|
|
811
|
+
declare type V3UMLComponentSubsystem = {
|
|
812
|
+
stereotype: string;
|
|
813
|
+
displayStereotype: boolean;
|
|
814
|
+
};
|
|
815
|
+
|
|
816
|
+
declare type V3UMLDeploymentComponent = {
|
|
817
|
+
displayStereotype: boolean;
|
|
818
|
+
};
|
|
819
|
+
|
|
820
|
+
declare type V3UMLDeploymentNode = {
|
|
821
|
+
stereotype: string;
|
|
822
|
+
displayStereotype: boolean;
|
|
823
|
+
};
|
|
824
|
+
|
|
825
|
+
declare type V3UMLElement = V3UMLModelElement & Partial<V3UMLClassifier> & Partial<V3UMLDeploymentNode> & Partial<V3UMLDeploymentComponent> & Partial<V3UMLComponentSubsystem> & Partial<V3UMLComponentComponent> & Partial<V3UMLPetriNetPlace> & Partial<V3BPMNTask> & Partial<V3BPMNGateway> & Partial<V3BPMNStartEvent> & Partial<V3BPMNIntermediateEvent> & Partial<V3BPMNEndEvent> & Partial<V3UMLReachabilityGraphMarking>;
|
|
826
|
+
|
|
827
|
+
declare interface V3UMLModel {
|
|
828
|
+
version: string;
|
|
829
|
+
type: string;
|
|
830
|
+
size: {
|
|
831
|
+
width: number;
|
|
832
|
+
height: number;
|
|
833
|
+
};
|
|
834
|
+
interactive: {
|
|
835
|
+
elements: Record<string, boolean>;
|
|
836
|
+
relationships: Record<string, boolean>;
|
|
837
|
+
};
|
|
838
|
+
elements: Record<string, V3UMLElement>;
|
|
839
|
+
relationships: Record<string, V3UMLRelationship>;
|
|
840
|
+
assessments: Record<string, V3Assessment>;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
declare type V3UMLModelElement = {
|
|
844
|
+
id: string;
|
|
845
|
+
name: string;
|
|
846
|
+
type: V3UMLModelElementType;
|
|
847
|
+
owner: string | null;
|
|
848
|
+
bounds: {
|
|
849
|
+
x: number;
|
|
850
|
+
y: number;
|
|
851
|
+
width: number;
|
|
852
|
+
height: number;
|
|
853
|
+
};
|
|
854
|
+
highlight?: string;
|
|
855
|
+
fillColor?: string;
|
|
856
|
+
strokeColor?: string;
|
|
857
|
+
textColor?: string;
|
|
858
|
+
assessmentNote?: string;
|
|
859
|
+
};
|
|
860
|
+
|
|
861
|
+
declare type V3UMLModelElementType = string;
|
|
862
|
+
|
|
863
|
+
declare type V3UMLPetriNetPlace = {
|
|
864
|
+
amountOfTokens: number;
|
|
865
|
+
capacity: number | string;
|
|
866
|
+
};
|
|
867
|
+
|
|
868
|
+
declare type V3UMLReachabilityGraphMarking = {
|
|
869
|
+
isInitialMarking: boolean;
|
|
870
|
+
};
|
|
871
|
+
|
|
872
|
+
declare type V3UMLRelationship = V3UMLModelElement & {
|
|
873
|
+
path: IPoint[];
|
|
874
|
+
source: {
|
|
875
|
+
element: string;
|
|
876
|
+
direction: string;
|
|
877
|
+
multiplicity?: string;
|
|
878
|
+
role?: string;
|
|
879
|
+
};
|
|
880
|
+
target: {
|
|
881
|
+
element: string;
|
|
882
|
+
direction: string;
|
|
883
|
+
multiplicity?: string;
|
|
884
|
+
role?: string;
|
|
885
|
+
};
|
|
886
|
+
isManuallyLayouted?: boolean;
|
|
887
|
+
messages?: {
|
|
888
|
+
[id: string]: {
|
|
889
|
+
id: string;
|
|
890
|
+
name: string;
|
|
891
|
+
direction: "source" | "target";
|
|
892
|
+
};
|
|
893
|
+
};
|
|
894
|
+
flowType?: string;
|
|
895
|
+
};
|
|
896
|
+
|
|
897
|
+
export { }
|