@tumaet/apollon 4.9.0 → 5.0.1
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-sXOp3rln.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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './edgeToolBar';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface DividerLineProps {
|
|
3
|
-
width?: string | number;
|
|
4
|
-
height?: string | number;
|
|
5
|
-
style?: React.CSSProperties;
|
|
6
|
-
backgroundColor?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const DividerLine: React.FC<DividerLineProps>;
|
|
9
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ClassType } from '../../types';
|
|
3
|
-
interface StereotypeButtonGroupProps {
|
|
4
|
-
nodeId: string;
|
|
5
|
-
selectedStereotype?: ClassType;
|
|
6
|
-
}
|
|
7
|
-
export declare const StereotypeButtonGroup: React.FC<StereotypeButtonGroupProps>;
|
|
8
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface ColorButtonsProps {
|
|
3
|
-
onSelect: (color: string) => void;
|
|
4
|
-
}
|
|
5
|
-
export declare const ColorButtons: React.FC<ColorButtonsProps>;
|
|
6
|
-
interface ColorButtonProps {
|
|
7
|
-
color: string;
|
|
8
|
-
onSelect: (color: string) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const ColorButton: ({ color, onSelect }: ColorButtonProps) => React.JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { CustomEdgeProps } from '../../../edges';
|
|
3
|
-
type updateEdgeDataColorsKeys = "strokeColor" | "textColor";
|
|
4
|
-
interface EdgeStyleEditorProps {
|
|
5
|
-
edgeData?: CustomEdgeProps;
|
|
6
|
-
handleDataFieldUpdate: (key: updateEdgeDataColorsKeys, value: string) => void;
|
|
7
|
-
sideElements?: React.ReactNode[];
|
|
8
|
-
label: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const EdgeStyleEditor: React.FC<EdgeStyleEditorProps>;
|
|
11
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { DefaultNodeProps } from '../../../types';
|
|
3
|
-
interface NodeStyleEditorProps {
|
|
4
|
-
nodeData: DefaultNodeProps;
|
|
5
|
-
handleDataFieldUpdate: (key: keyof DefaultNodeProps, value: string) => void;
|
|
6
|
-
preElements?: React.ReactNode[];
|
|
7
|
-
sideElements?: React.ReactNode[];
|
|
8
|
-
inputPlaceholder?: string;
|
|
9
|
-
noStrokeUpdate?: boolean;
|
|
10
|
-
showNameInputChange?: boolean;
|
|
11
|
-
title?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Whether the name input accepts newlines (Enter inserts a hard break).
|
|
14
|
-
* Default `false`. Set to `true` ONLY for node types whose SVG actually
|
|
15
|
-
* renders wrapped labels — otherwise typing a newline would save a
|
|
16
|
-
* character that never repaints. See `supportsMultilineName()` in
|
|
17
|
-
* `utils/nodeUtils.ts` for the canonical per-type list.
|
|
18
|
-
*/
|
|
19
|
-
isMultilineName?: boolean;
|
|
20
|
-
}
|
|
21
|
-
export declare const NodeStyleEditor: React.FC<NodeStyleEditorProps>;
|
|
22
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface AssessmentSelectableWrapperProps {
|
|
3
|
-
elementId: string;
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
asElement?: "div" | "g";
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Wrapper component that adds assessment selection capabilities to any element
|
|
9
|
-
*/
|
|
10
|
-
export declare const AssessmentSelectableWrapper: React.FC<AssessmentSelectableWrapperProps>;
|
|
11
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface Props {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
elementId: string;
|
|
5
|
-
elementType?: string;
|
|
6
|
-
asElement?: "g" | "div" | "path";
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const FeedbackDropzone: React.FC<Props>;
|
|
10
|
-
export {};
|
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { FONT_FAMILY, DEFAULT_FONT_SIZE } from './fontStack';
|
|
3
|
-
import { DiagramNodeType } from './nodes';
|
|
4
|
-
import { UMLDiagramType } from './types';
|
|
5
|
-
export declare const CANVAS: Readonly<{
|
|
6
|
-
readonly MIN_SCALE_TO_ZOOM_OUT: 0.4;
|
|
7
|
-
readonly MAX_SCALE_TO_ZOOM_IN: 2.5;
|
|
8
|
-
readonly MOUSE_UP_OFFSET_PX: 5;
|
|
9
|
-
readonly SNAP_TO_GRID_PX: 5;
|
|
10
|
-
readonly EXTRA_SPACE_FOR_EXTENSION: 10;
|
|
11
|
-
readonly PASTE_OFFSET_PX: 20;
|
|
12
|
-
}>;
|
|
13
|
-
export declare const CSS_VARIABLE_FALLBACKS: Readonly<Record<string, string>>;
|
|
14
|
-
export declare const STROKE_COLOR: string;
|
|
15
|
-
export declare const FILL_COLOR: string;
|
|
16
|
-
export { FONT_FAMILY, DEFAULT_FONT_SIZE };
|
|
17
|
-
export declare const INTERACTIVE_SELECTION_COLOR: string;
|
|
18
|
-
export declare const INTERACTIVE_SELECTION_FILL: string;
|
|
19
|
-
export declare const LAYOUT: Readonly<{
|
|
20
|
-
readonly DEFAULT_FONT: "400 16px Inter, system-ui, Avenir, Helvetica, Arial, sans-serif";
|
|
21
|
-
readonly DEFAULT_HEADER_HEIGHT: 40;
|
|
22
|
-
readonly DEFAULT_HEADER_HEIGHT_WITH_STEREOTYPE: 50;
|
|
23
|
-
readonly DEFAULT_ATTRIBUTE_HEIGHT: 30;
|
|
24
|
-
readonly DEFAULT_METHOD_HEIGHT: 30;
|
|
25
|
-
readonly DEFAULT_PADDING: 10;
|
|
26
|
-
readonly LINE_WIDTH: 2;
|
|
27
|
-
readonly LINE_WIDTH_INTERFACE: 2;
|
|
28
|
-
readonly LINE_WIDTH_EDGE: 2;
|
|
29
|
-
readonly ICON_LINE_WIDTH: 1.5;
|
|
30
|
-
/**
|
|
31
|
-
* Typography tokens for wrapped node labels. `NAME_FONT_SIZE` is the shared
|
|
32
|
-
* diagram text size (so measured and rendered labels agree); `NAME_LINE_HEIGHT`
|
|
33
|
-
* is `round(size * 1.2)` — what pretext uses internally and what `MultilineText`
|
|
34
|
-
* falls back to when no explicit line-height is passed.
|
|
35
|
-
*/
|
|
36
|
-
readonly NAME_FONT_SIZE: 16;
|
|
37
|
-
readonly NAME_LINE_HEIGHT: number;
|
|
38
|
-
/** Stereotype tspans like `«component»` render at 0.8em of the name font. */
|
|
39
|
-
readonly STEREOTYPE_LINE_HEIGHT: 15;
|
|
40
|
-
readonly STEREOTYPE_NAME_GAP: 4;
|
|
41
|
-
}>;
|
|
42
|
-
/**
|
|
43
|
-
* Treat narrow portrait viewports and short phone-landscape viewports as
|
|
44
|
-
* mobile. The portrait bound stops just below 768px so iPads (768px portrait)
|
|
45
|
-
* keep the regular desktop layout; the second clause catches phones in
|
|
46
|
-
* landscape, where the short height distinguishes them from tablets.
|
|
47
|
-
*
|
|
48
|
-
* NOTE: mirrored in standalone/webapp/src/constants/responsive.ts (the webapp
|
|
49
|
-
* can't import the library's curated public surface). Keep both in sync.
|
|
50
|
-
*/
|
|
51
|
-
export declare const MOBILE_VIEW_QUERY = "(max-width: 767.95px), (max-width: 950px) and (max-height: 500px)";
|
|
52
|
-
export declare const INTERFACE: Readonly<{
|
|
53
|
-
readonly SIZE: 30;
|
|
54
|
-
readonly RADIUS: number;
|
|
55
|
-
readonly STROKE_WIDTH: 2;
|
|
56
|
-
readonly SOCKET_GAP: 4;
|
|
57
|
-
}>;
|
|
58
|
-
export declare const MARKER_BASE_SIZE = 18;
|
|
59
|
-
export declare const EDGES: Readonly<{
|
|
60
|
-
/** Negative padding extends target point to node boundary (React Flow handles are offset 3px) */
|
|
61
|
-
readonly MARKER_PADDING: -3;
|
|
62
|
-
/** Positive padding pulls source point back to node boundary (React Flow handles are offset 3px from node edge) */
|
|
63
|
-
readonly SOURCE_CONNECTION_POINT_PADDING: 3;
|
|
64
|
-
/** Border radius for step-style edge corners */
|
|
65
|
-
readonly STEP_BORDER_RADIUS: 0;
|
|
66
|
-
/** Width of the invisible stroke used for edge selection/highlighting */
|
|
67
|
-
readonly EDGE_HIGHLIGHT_STROKE_WIDTH: 15;
|
|
68
|
-
/** Height of the line-jump bridge used when edges cross */
|
|
69
|
-
readonly EDGE_LINE_JUMP_HEIGHT: 10;
|
|
70
|
-
/** Length of the line-jump bridge along the crossed segment */
|
|
71
|
-
readonly EDGE_LINE_JUMP_WIDTH: 16;
|
|
72
|
-
/** Stub length locked to node, matches getSmoothStepPath offset */
|
|
73
|
-
readonly STUB_LENGTH: 30;
|
|
74
|
-
/** Minimum total edge length (screen px) for the endpoint reconnect handles
|
|
75
|
-
* to be active. Short edges fall back to always-editable (see
|
|
76
|
-
* useStepPathEdge), so this only gates medium/long edges. */
|
|
77
|
-
readonly BEND_MIN_LENGTH: 100;
|
|
78
|
-
/** Bend handle long-axis size, in screen px (the minimum kept across zoom). */
|
|
79
|
-
readonly BEND_HANDLE_SCREEN_LENGTH_PX: 34;
|
|
80
|
-
/** Minimum clearance, in screen px, between a bend handle and the segment's
|
|
81
|
-
* corners — how close a handle is allowed to sit to a corner. */
|
|
82
|
-
readonly BEND_HANDLE_CORNER_CLEARANCE_PX: 10;
|
|
83
|
-
/** A segment shows a bend handle once its ON-SCREEN length can host the
|
|
84
|
-
* handle with corner clearance on both sides: 34 + 2*10 = 54px. Screen-based
|
|
85
|
-
* so zooming in reveals handles on shorter segments (and never hides them). */
|
|
86
|
-
readonly BEND_HANDLE_MIN_SEGMENT_SCREEN_PX: number;
|
|
87
|
-
/** "Safe area" next to a node, in flow px: a bend handle is never placed
|
|
88
|
-
* within this distance of a node connection point, and that part of a
|
|
89
|
-
* terminal segment is excluded when deciding whether a handle fits. Keeps
|
|
90
|
-
* handles out of the locked stub so dragging never produces a detached
|
|
91
|
-
* slim sliver near the node. */
|
|
92
|
-
readonly BEND_HANDLE_SAFE_AREA_PX: 25;
|
|
93
|
-
/** Size of the invisible endpoint hit target used for edge reconnection */
|
|
94
|
-
readonly ENDPOINT_HIT_TARGET_SIZE: 24;
|
|
95
|
-
/** Grid step a dragged bend snaps to; matches the canvas grid so bends line
|
|
96
|
-
* up with grid-snapped node handles. */
|
|
97
|
-
readonly BEND_SNAP_GRID_PX: 5;
|
|
98
|
-
/** Connector length at/below which a *monotonic* orthogonal stair-step (a
|
|
99
|
-
* same-direction dogleg) is treated as a rounding artifact and flattened.
|
|
100
|
-
* Must stay strictly below BEND_SNAP_GRID_PX, otherwise the smallest
|
|
101
|
-
* deliberate single-step bend would be flattened and the edge would snap
|
|
102
|
-
* back to a straight line on release. */
|
|
103
|
-
readonly ORTHOGONAL_DOGLEG_TOLERANCE_PX: 2;
|
|
104
|
-
/** Gap at/below which two parallel arms that double back over each other
|
|
105
|
-
* (an opposite-direction U-turn) are treated as a degenerate self-overlap
|
|
106
|
-
* and the route is reset. Independent of the snap grid: a doubled-back
|
|
107
|
-
* U-turn is never a deliberate edit, so this stays at the visual-merge
|
|
108
|
-
* threshold rather than the per-step threshold. */
|
|
109
|
-
readonly ORTHOGONAL_ARM_OVERLAP_PX: 10;
|
|
110
|
-
/** Perpendicular gap (flow px) between an edge's mid-segment line and the
|
|
111
|
-
* near edge of its relationship/stereotype label. The label sits this far
|
|
112
|
-
* off the line on whichever side is clearer. */
|
|
113
|
-
readonly LABEL_GAP: 14;
|
|
114
|
-
/** Nominal label line height (flow px) used as the across-text depth of the
|
|
115
|
-
* candidate box when scoring which side a label sits on. Constant by
|
|
116
|
-
* construction — placement never measures the rendered text (mirrors the
|
|
117
|
-
* messageLayout.ts invariant). */
|
|
118
|
-
readonly LABEL_LINE_HEIGHT: 14;
|
|
119
|
-
/** Nominal half-width (flow px) of a label along its text axis, used only to
|
|
120
|
-
* build the candidate box for side scoring. Coarse on purpose: we choose a
|
|
121
|
-
* side, not a pixel-perfect fit. */
|
|
122
|
-
readonly LABEL_NOMINAL_HALF_EXTENT: 40;
|
|
123
|
-
}>;
|
|
124
|
-
export declare const ZINDEX: Readonly<{
|
|
125
|
-
readonly BASE: 0;
|
|
126
|
-
readonly HEADER_SWITCH: 1;
|
|
127
|
-
readonly DRAGGABLE_GHOST: 2;
|
|
128
|
-
readonly MINIMAP: 5;
|
|
129
|
-
readonly PANEL: 10;
|
|
130
|
-
readonly MODAL: 9998;
|
|
131
|
-
readonly LABEL: 9998;
|
|
132
|
-
readonly DRAGGABLE_ELEMENT: 9999;
|
|
133
|
-
readonly TOOLTIP: 10000;
|
|
134
|
-
}>;
|
|
135
|
-
export type MarkerShape = "triangle" | "arrow" | "rhombus" | "circle" | "semicircle";
|
|
136
|
-
export interface MarkerConfig {
|
|
137
|
-
readonly type: MarkerShape;
|
|
138
|
-
readonly filled: boolean;
|
|
139
|
-
readonly size: number;
|
|
140
|
-
readonly widthFactor: number;
|
|
141
|
-
readonly heightFactor: number;
|
|
142
|
-
readonly arcSpanDegrees?: number;
|
|
143
|
-
}
|
|
144
|
-
export declare const MARKER_CONFIGS: Readonly<{
|
|
145
|
-
readonly "black-rhombus": {
|
|
146
|
-
readonly type: "rhombus";
|
|
147
|
-
readonly filled: true;
|
|
148
|
-
readonly size: 18;
|
|
149
|
-
readonly widthFactor: 1;
|
|
150
|
-
readonly heightFactor: 0.618;
|
|
151
|
-
};
|
|
152
|
-
readonly "white-rhombus": {
|
|
153
|
-
readonly type: "rhombus";
|
|
154
|
-
readonly filled: false;
|
|
155
|
-
readonly size: 18;
|
|
156
|
-
readonly widthFactor: 1;
|
|
157
|
-
readonly heightFactor: 0.618;
|
|
158
|
-
};
|
|
159
|
-
readonly "white-triangle": {
|
|
160
|
-
readonly type: "triangle";
|
|
161
|
-
readonly filled: false;
|
|
162
|
-
readonly size: 18;
|
|
163
|
-
readonly widthFactor: 1;
|
|
164
|
-
readonly heightFactor: 0.866;
|
|
165
|
-
};
|
|
166
|
-
readonly "black-triangle": {
|
|
167
|
-
readonly type: "triangle";
|
|
168
|
-
readonly filled: true;
|
|
169
|
-
readonly size: 18;
|
|
170
|
-
readonly widthFactor: 1;
|
|
171
|
-
readonly heightFactor: 0.866;
|
|
172
|
-
};
|
|
173
|
-
readonly "black-arrow": {
|
|
174
|
-
readonly type: "arrow";
|
|
175
|
-
readonly filled: false;
|
|
176
|
-
readonly size: 18;
|
|
177
|
-
readonly widthFactor: 1;
|
|
178
|
-
readonly heightFactor: 0.866;
|
|
179
|
-
};
|
|
180
|
-
readonly "required-interface": {
|
|
181
|
-
readonly type: "semicircle";
|
|
182
|
-
readonly filled: false;
|
|
183
|
-
readonly size: number;
|
|
184
|
-
readonly widthFactor: 1;
|
|
185
|
-
readonly heightFactor: 1;
|
|
186
|
-
readonly arcSpanDegrees: 150;
|
|
187
|
-
};
|
|
188
|
-
readonly "required-interface-quarter": {
|
|
189
|
-
readonly type: "semicircle";
|
|
190
|
-
readonly filled: false;
|
|
191
|
-
readonly size: number;
|
|
192
|
-
readonly widthFactor: 1;
|
|
193
|
-
readonly heightFactor: 1;
|
|
194
|
-
readonly arcSpanDegrees: 90;
|
|
195
|
-
};
|
|
196
|
-
readonly "required-interface-threequarter": {
|
|
197
|
-
readonly type: "semicircle";
|
|
198
|
-
readonly filled: false;
|
|
199
|
-
readonly size: number;
|
|
200
|
-
readonly widthFactor: 1;
|
|
201
|
-
readonly heightFactor: 1;
|
|
202
|
-
readonly arcSpanDegrees: 270;
|
|
203
|
-
};
|
|
204
|
-
readonly "bpmn-white-triangle": {
|
|
205
|
-
readonly type: "triangle";
|
|
206
|
-
readonly filled: false;
|
|
207
|
-
readonly size: 11;
|
|
208
|
-
readonly widthFactor: 1;
|
|
209
|
-
readonly heightFactor: 0.866;
|
|
210
|
-
};
|
|
211
|
-
readonly "bpmn-black-triangle": {
|
|
212
|
-
readonly type: "triangle";
|
|
213
|
-
readonly filled: true;
|
|
214
|
-
readonly size: 11;
|
|
215
|
-
readonly widthFactor: 1;
|
|
216
|
-
readonly heightFactor: 0.866;
|
|
217
|
-
};
|
|
218
|
-
readonly "bpmn-white-circle": {
|
|
219
|
-
readonly type: "circle";
|
|
220
|
-
readonly filled: false;
|
|
221
|
-
readonly size: 11;
|
|
222
|
-
readonly widthFactor: 1;
|
|
223
|
-
readonly heightFactor: 1;
|
|
224
|
-
};
|
|
225
|
-
readonly "bpmn-arrow": {
|
|
226
|
-
readonly type: "arrow";
|
|
227
|
-
readonly filled: false;
|
|
228
|
-
readonly size: 11;
|
|
229
|
-
readonly widthFactor: 1;
|
|
230
|
-
readonly heightFactor: 0.866;
|
|
231
|
-
};
|
|
232
|
-
}>;
|
|
233
|
-
export type MarkerId = keyof typeof MARKER_CONFIGS;
|
|
234
|
-
export declare const MARKERS: Readonly<{
|
|
235
|
-
readonly STROKE_WIDTH: Readonly<{
|
|
236
|
-
readonly triangle: 1.3;
|
|
237
|
-
readonly arrow: 1.5;
|
|
238
|
-
readonly rhombus: 1.3;
|
|
239
|
-
readonly circle: 1.3;
|
|
240
|
-
readonly semicircle: 2;
|
|
241
|
-
}>;
|
|
242
|
-
}>;
|
|
243
|
-
export declare const DROPS: Readonly<{
|
|
244
|
-
readonly SIDEBAR_PREVIEW_SCALE: 0.8;
|
|
245
|
-
readonly DEFAULT_ELEMENT_WIDTH: 160;
|
|
246
|
-
}>;
|
|
247
|
-
export type DropElementConfig = {
|
|
248
|
-
readonly type: DiagramNodeType;
|
|
249
|
-
readonly width: number;
|
|
250
|
-
readonly height: number;
|
|
251
|
-
/** Size of the node when dropped on the canvas, if it should differ from the
|
|
252
|
-
* sidebar preview size (`width`/`height`). Lets a large element preview small
|
|
253
|
-
* in the palette without shrinking the rest of the picker. */
|
|
254
|
-
readonly dropWidth?: number;
|
|
255
|
-
readonly dropHeight?: number;
|
|
256
|
-
readonly defaultData?: Record<string, unknown>;
|
|
257
|
-
readonly svg: React.FC<any>;
|
|
258
|
-
readonly marginTop?: number;
|
|
259
|
-
};
|
|
260
|
-
export declare const dropElementConfigs: Readonly<Record<UMLDiagramType, ReadonlyArray<DropElementConfig>>>;
|
|
261
|
-
export declare const ColorDescriptionConfig: DropElementConfig;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Position } from '@xyflow/react';
|
|
2
|
-
export interface IPoint {
|
|
3
|
-
x: number;
|
|
4
|
-
y: number;
|
|
5
|
-
}
|
|
6
|
-
export interface NodeBounds {
|
|
7
|
-
x: number;
|
|
8
|
-
y: number;
|
|
9
|
-
width: number;
|
|
10
|
-
height: number;
|
|
11
|
-
}
|
|
12
|
-
export declare function getPortsForElement(bounds: NodeBounds): Record<Position, IPoint>;
|
|
13
|
-
export declare function computeOverlap(range1: [number, number], range2: [number, number]): [number, number] | null;
|
|
14
|
-
export declare function pointsToSvgPath(points: IPoint[]): string;
|
|
15
|
-
export declare function tryFindStraightPath(source: {
|
|
16
|
-
position: {
|
|
17
|
-
x: number;
|
|
18
|
-
y: number;
|
|
19
|
-
};
|
|
20
|
-
width: number;
|
|
21
|
-
height: number;
|
|
22
|
-
direction: Position;
|
|
23
|
-
}, target: {
|
|
24
|
-
position: {
|
|
25
|
-
x: number;
|
|
26
|
-
y: number;
|
|
27
|
-
};
|
|
28
|
-
width: number;
|
|
29
|
-
height: number;
|
|
30
|
-
direction: Position;
|
|
31
|
-
}, targetPadding: number, handleCoords?: {
|
|
32
|
-
sourceX: number;
|
|
33
|
-
sourceY: number;
|
|
34
|
-
targetX: number;
|
|
35
|
-
targetY: number;
|
|
36
|
-
}): IPoint[] | null;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Edge, EdgeProps } from '@xyflow/react';
|
|
2
|
-
import { IPoint } from './Connection';
|
|
3
|
-
export interface MessageData {
|
|
4
|
-
id: string;
|
|
5
|
-
text: string;
|
|
6
|
-
direction: "target" | "source";
|
|
7
|
-
}
|
|
8
|
-
export type CustomEdgeProps = {
|
|
9
|
-
sourceRole: string | null;
|
|
10
|
-
sourceMultiplicity: string | null;
|
|
11
|
-
targetRole: string | null;
|
|
12
|
-
targetMultiplicity: string | null;
|
|
13
|
-
points: IPoint[];
|
|
14
|
-
label?: string | null;
|
|
15
|
-
messages?: MessageData[];
|
|
16
|
-
strokeColor?: string;
|
|
17
|
-
textColor?: string;
|
|
18
|
-
};
|
|
19
|
-
export type ExtendedEdgeProps = EdgeProps<Edge<CustomEdgeProps>> & {
|
|
20
|
-
markerEnd?: string;
|
|
21
|
-
markerPadding?: number;
|
|
22
|
-
strokeDashArray?: string;
|
|
23
|
-
type: string;
|
|
24
|
-
};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { ReactNode, PointerEvent as ReactPointerEvent } from 'react';
|
|
2
|
-
import { Position } from '@xyflow/react';
|
|
3
|
-
import { ExtendedEdgeProps } from './EdgeProps';
|
|
4
|
-
import { IPoint } from './Connection';
|
|
5
|
-
import { Assessment } from '../typings';
|
|
6
|
-
import { BendHandle } from '../utils/geometry/bendHandles';
|
|
7
|
-
export declare const getHandleScreenScale: (zoom: number) => number;
|
|
8
|
-
export type BaseEdgeProps = ExtendedEdgeProps;
|
|
9
|
-
export declare const useEdgeState: (initialPoints?: IPoint[]) => {
|
|
10
|
-
customPoints: IPoint[];
|
|
11
|
-
setCustomPoints: import('react').Dispatch<import('react').SetStateAction<IPoint[]>>;
|
|
12
|
-
};
|
|
13
|
-
type EndpointSide = Position;
|
|
14
|
-
export declare const getEndpointHitTargetRect: (point: IPoint, side?: EndpointSide, screenScale?: number) => {
|
|
15
|
-
x: number;
|
|
16
|
-
y: number;
|
|
17
|
-
width: number;
|
|
18
|
-
height: number;
|
|
19
|
-
radius: number;
|
|
20
|
-
};
|
|
21
|
-
export declare const EdgeEndpointMarkers: ({ sourcePoint, targetPoint, sourcePosition, targetPosition, isDiagramModifiable, canEditEndpoint, }: {
|
|
22
|
-
sourcePoint: IPoint;
|
|
23
|
-
targetPoint: IPoint;
|
|
24
|
-
sourcePosition?: EndpointSide;
|
|
25
|
-
targetPosition?: EndpointSide;
|
|
26
|
-
isDiagramModifiable: boolean;
|
|
27
|
-
canEditEndpoint?: boolean;
|
|
28
|
-
}) => import("react").JSX.Element | null;
|
|
29
|
-
export declare const EdgeBendHandle: ({ id, segmentIndex, position, orientation, onPointerDown, }: {
|
|
30
|
-
id: string;
|
|
31
|
-
segmentIndex: number;
|
|
32
|
-
position: IPoint;
|
|
33
|
-
orientation: "H" | "V";
|
|
34
|
-
onPointerDown: (e: ReactPointerEvent<SVGRectElement>) => void;
|
|
35
|
-
}) => import("react").JSX.Element;
|
|
36
|
-
/**
|
|
37
|
-
* The shared SVG body for every orthogonal (step-path) edge: the base path,
|
|
38
|
-
* inline export markers, the interaction overlay, endpoint reconnect targets,
|
|
39
|
-
* and the bend handles. Diagram-specific decorations (e.g. the SFC transition
|
|
40
|
-
* bar) are passed as `children` and render inside the same group. Per-type
|
|
41
|
-
* files keep only their own config, labels, and `CommonEdgeElements`.
|
|
42
|
-
*/
|
|
43
|
-
export declare const StepEdgeBody: ({ id, markerKey, currentPath, overlayPath, pathRef, strokeColor, strokeDashArray, hasInitialCalculation, isReconnecting, isBendDragging, draggingHandleSegmentIndex, markerStart, markerEnd, sourcePoint, targetPoint, sourcePosition, targetPosition, isDiagramModifiable, canEditEndpoint, allowMidpointDragging, bendHandles, handlePointerDown, children, }: {
|
|
44
|
-
id: string;
|
|
45
|
-
markerKey: string;
|
|
46
|
-
currentPath: string;
|
|
47
|
-
overlayPath: string;
|
|
48
|
-
pathRef: React.Ref<SVGPathElement>;
|
|
49
|
-
strokeColor: string;
|
|
50
|
-
strokeDashArray?: string;
|
|
51
|
-
hasInitialCalculation: boolean;
|
|
52
|
-
isReconnecting: boolean;
|
|
53
|
-
isBendDragging: boolean;
|
|
54
|
-
draggingHandleSegmentIndex: number | null;
|
|
55
|
-
markerStart?: string;
|
|
56
|
-
markerEnd?: string;
|
|
57
|
-
sourcePoint: IPoint;
|
|
58
|
-
targetPoint: IPoint;
|
|
59
|
-
sourcePosition?: Position;
|
|
60
|
-
targetPosition?: Position;
|
|
61
|
-
isDiagramModifiable: boolean;
|
|
62
|
-
canEditEndpoint: boolean;
|
|
63
|
-
allowMidpointDragging: boolean;
|
|
64
|
-
bendHandles: BendHandle[];
|
|
65
|
-
handlePointerDown: (event: ReactPointerEvent<SVGRectElement>, handle: BendHandle) => void;
|
|
66
|
-
children?: ReactNode;
|
|
67
|
-
}) => import("react").JSX.Element;
|
|
68
|
-
export declare const CommonEdgeElements: ({ id, pathMiddlePosition, toolbarPosition, isDiagramModifiable, assessments, handleDelete, setPopOverElementId, type, }: {
|
|
69
|
-
id: string;
|
|
70
|
-
pathMiddlePosition: IPoint;
|
|
71
|
-
toolbarPosition?: IPoint;
|
|
72
|
-
isDiagramModifiable: boolean;
|
|
73
|
-
assessments: Record<string, Assessment>;
|
|
74
|
-
handleDelete: () => void;
|
|
75
|
-
setPopOverElementId: (id: string) => void;
|
|
76
|
-
type: string;
|
|
77
|
-
}) => import("react").JSX.Element;
|
|
78
|
-
export {};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { BaseEdgeProps } from '../GenericEdge';
|
|
2
|
-
export declare const CommunicationDiagramEdge: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => import("react").JSX.Element;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { BaseEdgeProps } from '../GenericEdge';
|
|
2
|
-
export declare const DeploymentDiagramEdge: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => import("react").JSX.Element;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { BaseEdgeProps } from '../GenericEdge';
|
|
2
|
-
export declare const ReachabilityGraphEdge: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => import("react").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { IPoint } from '../Connection';
|
|
2
|
-
interface EdgeEndLabelsProps {
|
|
3
|
-
data?: {
|
|
4
|
-
sourceRole?: string | null;
|
|
5
|
-
targetRole?: string | null;
|
|
6
|
-
sourceMultiplicity?: string | null;
|
|
7
|
-
targetMultiplicity?: string | null;
|
|
8
|
-
};
|
|
9
|
-
activePoints: IPoint[];
|
|
10
|
-
sourceX: number;
|
|
11
|
-
sourceY: number;
|
|
12
|
-
targetX: number;
|
|
13
|
-
targetY: number;
|
|
14
|
-
sourcePosition: string;
|
|
15
|
-
targetPosition: string;
|
|
16
|
-
textColor?: string;
|
|
17
|
-
}
|
|
18
|
-
export declare const EdgeEndLabels: ({ data, activePoints, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, textColor, }: EdgeEndLabelsProps) => import("react").JSX.Element;
|
|
19
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IPoint } from '../Connection';
|
|
2
|
-
interface EdgeIncludeExtendLabelsProps {
|
|
3
|
-
sourcePoint?: IPoint;
|
|
4
|
-
targetPoint?: IPoint;
|
|
5
|
-
showRelationshipLabels?: boolean;
|
|
6
|
-
relationshipType?: "include" | "extend";
|
|
7
|
-
textColor?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const EdgeIncludeExtendLabel: ({ sourcePoint, targetPoint, showRelationshipLabels, relationshipType, textColor, }: EdgeIncludeExtendLabelsProps) => import("react").JSX.Element | null;
|
|
10
|
-
export {};
|