@tumaet/apollon 4.6.0 → 4.8.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 +2 -2
- package/dist/LICENSE-InterFont +92 -0
- package/dist/assets/style.css +1 -1
- package/dist/export.d.ts +73 -0
- package/dist/export.js +219 -0
- package/dist/exportFonts-DxO9jrR1.js +19 -0
- package/dist/exportStyles-Wcc8N8Xj.js +5 -0
- package/dist/fontStack-DOtVH2j8.js +5 -0
- package/dist/index.d.ts +151 -92
- package/dist/index.js +34925 -8009
- package/dist/internals.d.ts +136 -93
- package/dist/internals.js +16 -10
- package/dist/react/App.d.ts +1 -1
- package/dist/react/LICENSE-InterFont +92 -0
- package/dist/react/apollon-editor.d.ts +19 -0
- package/dist/react/components/AlignmentGuides.d.ts +1 -1
- package/dist/react/components/AssessmentSelectionDebug.d.ts +1 -1
- package/dist/react/components/CustomBackground.d.ts +1 -1
- package/dist/react/components/CustomControls.d.ts +1 -1
- package/dist/react/components/CustomMiniMap.d.ts +1 -1
- package/dist/react/components/DraggableGhost.d.ts +5 -0
- package/dist/react/components/Icon/ArrowBackIcon.d.ts +1 -1
- package/dist/react/components/Icon/ArrowForwardIcon.d.ts +1 -1
- package/dist/react/components/Icon/CheckIcon.d.ts +1 -1
- package/dist/react/components/Icon/CrossIcon.d.ts +1 -1
- package/dist/react/components/Icon/DeleteIcon.d.ts +1 -1
- package/dist/react/components/Icon/DragHandleIcon.d.ts +1 -1
- package/dist/react/components/Icon/EditIcon.d.ts +1 -1
- package/dist/react/components/Icon/ExclamationIcon.d.ts +1 -1
- package/dist/react/components/Icon/InfiniteIcon.d.ts +1 -1
- package/dist/react/components/Icon/MapIcon.d.ts +1 -1
- package/dist/react/components/Icon/PaintRollerIcon.d.ts +1 -1
- package/dist/react/components/Icon/RedoIcon.d.ts +1 -1
- package/dist/react/components/Icon/SouthEastArrowIcon.d.ts +1 -1
- package/dist/react/components/Icon/SwapHorizIcon.d.ts +1 -1
- package/dist/react/components/Icon/UndoIcon.d.ts +1 -1
- package/dist/react/components/ReconnectConnectionLine.d.ts +1 -1
- package/dist/react/components/Sidebar.d.ts +2 -1
- package/dist/react/components/collaboration/CollaborationLayer.d.ts +1 -1
- package/dist/react/components/popovers/DefaultNodeGiveFeedbackPopover.d.ts +1 -1
- package/dist/react/components/popovers/DefaultNodeSeeFeedbackPopover.d.ts +1 -1
- package/dist/react/components/popovers/GenericPopover.d.ts +1 -1
- package/dist/react/components/popovers/GiveFeedbackAssessmentBox.d.ts +1 -1
- package/dist/react/components/popovers/PopoverManager.d.ts +2 -2
- package/dist/react/components/popovers/SeeFeedbackAssessmentBox.d.ts +1 -1
- package/dist/react/components/popovers/bpmnDiagram/BPMNPoolEditPopover.d.ts +1 -1
- package/dist/react/components/popovers/classDiagram/ClassGiveFeedbackPopover.d.ts +1 -1
- package/dist/react/components/popovers/classDiagram/ClassSeeFeedbackPopover.d.ts +1 -1
- package/dist/react/components/popovers/communicationDiagram/CommunicationObjectNameGiveFeedbackPopover.d.ts +1 -1
- package/dist/react/components/popovers/communicationDiagram/CommunicationObjectNameSeeFeedbackPopover.d.ts +1 -1
- package/dist/react/components/popovers/edgePopovers/EdgeGiveFeedbackPopover.d.ts +1 -1
- package/dist/react/components/popovers/edgePopovers/EdgeSeeFeedbackPopover.d.ts +1 -1
- package/dist/react/components/popovers/edgePopovers/EdgeTypePreviewIcon.d.ts +1 -1
- package/dist/react/components/popovers/edgePopovers/EdgeTypeSelect.d.ts +1 -1
- package/dist/react/components/popovers/edgePopovers/SwapEndsButton.d.ts +9 -0
- package/dist/react/components/popovers/objectDiagram/ObjectGiveFeedbackPopover.d.ts +1 -1
- package/dist/react/components/popovers/objectDiagram/ObjectSeeFeedbackPopover.d.ts +1 -1
- package/dist/react/components/react/Apollon.d.ts +7 -2
- package/dist/react/components/react/context.d.ts +1 -1
- package/dist/react/components/svgs/edges/InlineMarker.d.ts +2 -2
- package/dist/react/components/svgs/nodes/classDiagram/ClassSVG.d.ts +1 -1
- package/dist/react/components/svgs/nodes/classDiagram/ColorDescriptionSVG.d.ts +1 -1
- package/dist/react/components/svgs/nodes/communicationDiagram/CommunicationObjectNameSVG.d.ts +1 -1
- package/dist/react/components/svgs/nodes/objectDiagram/ObjectNameSVG.d.ts +1 -1
- package/dist/react/components/toolbars/edgeToolBar/CustomEdgeToolBar.d.ts +1 -1
- package/dist/react/components/ui/StyleEditor/ColorButtons.d.ts +1 -1
- package/dist/react/constants.d.ts +17 -6
- package/dist/react/edges/GenericEdge.d.ts +5 -6
- package/dist/react/edges/edgeTypes/ActivityDiagramEdge.d.ts +1 -1
- package/dist/react/edges/edgeTypes/BPMNDiagramEdge.d.ts +1 -1
- package/dist/react/edges/edgeTypes/ClassDiagramEdge.d.ts +1 -1
- package/dist/react/edges/edgeTypes/CommunicationDiagramEdge.d.ts +1 -1
- package/dist/react/edges/edgeTypes/ComponentDiagramEdge.d.ts +1 -1
- package/dist/react/edges/edgeTypes/DeploymentDiagramEdge.d.ts +1 -1
- package/dist/react/edges/edgeTypes/FlowChartEdge.d.ts +1 -1
- package/dist/react/edges/edgeTypes/ObjectDiagramEdge.d.ts +1 -1
- package/dist/react/edges/edgeTypes/PetriNetEdge.d.ts +1 -1
- package/dist/react/edges/edgeTypes/ReachabilityGraphArc.d.ts +1 -1
- package/dist/react/edges/edgeTypes/SfcDiagramEdge.d.ts +1 -1
- package/dist/react/edges/edgeTypes/SyntaxTreeEdge.d.ts +1 -1
- package/dist/react/edges/edgeTypes/UseCaseDiagramEdge.d.ts +1 -1
- package/dist/react/edges/labelTypes/EdgeEndLabels.d.ts +1 -1
- package/dist/react/edges/labelTypes/EdgeIncludeExtendLabel.d.ts +1 -1
- package/dist/react/edges/labelTypes/EdgeMiddleLabels.d.ts +1 -1
- package/dist/react/edges/labelTypes/EdgeMultipleLabels.d.ts +1 -1
- package/dist/react/edges/types.d.ts +34 -34
- package/dist/react/export/exportErrors.d.ts +10 -0
- package/dist/react/export/index.d.ts +13 -0
- package/dist/react/export/normalizeExportSvg.d.ts +16 -0
- package/dist/react/export/preProcessSvgForPdf.d.ts +20 -0
- package/dist/react/export/svgToPdf.d.ts +17 -0
- package/dist/react/export/svgToPng.d.ts +38 -0
- package/dist/react/exportFonts-DSRUaduf.js +20 -0
- package/dist/react/exportStyles-CH2hautV.js +6 -0
- package/dist/react/fontStack.d.ts +14 -0
- package/dist/react/hooks/index.d.ts +1 -0
- package/dist/react/hooks/useEdgeLineJumps.d.ts +3 -1
- package/dist/react/hooks/useEdgeToolbar.d.ts +1 -1
- package/dist/react/hooks/usePopoverAnchor.d.ts +26 -0
- package/dist/react/hooks/useReactiveElement.d.ts +10 -0
- package/dist/react/hooks/useRemoteDraggingNodes.d.ts +20 -0
- package/dist/react/hooks/useStepPathEdge.d.ts +1 -1
- package/dist/react/hooks/useStraightPathEdge.d.ts +1 -1
- package/dist/react/index.d.ts +1 -0
- package/dist/react/nodes/TitleAndDescriptionNode.d.ts +1 -1
- package/dist/react/nodes/activityDiagram/Activity.d.ts +1 -1
- package/dist/react/nodes/activityDiagram/ActivityActionNode.d.ts +1 -1
- package/dist/react/nodes/activityDiagram/ActivityFinalNode.d.ts +1 -1
- package/dist/react/nodes/activityDiagram/ActivityForkNode.d.ts +1 -1
- package/dist/react/nodes/activityDiagram/ActivityForkNodeHorizontal.d.ts +1 -1
- package/dist/react/nodes/activityDiagram/ActivityInitialNode.d.ts +1 -1
- package/dist/react/nodes/activityDiagram/ActivityMergeNode.d.ts +1 -1
- package/dist/react/nodes/activityDiagram/ActivityObjectNode.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNAnnotation.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNCallActivity.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNDataObject.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNDataStore.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNEndEvent.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNGateway.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNGroup.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNIntermediateEvent.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNPool.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNStartEvent.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNSubprocess.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNTask.d.ts +1 -1
- package/dist/react/nodes/bpmn/BPMNTransaction.d.ts +1 -1
- package/dist/react/nodes/classDiagram/Class.d.ts +1 -1
- package/dist/react/nodes/classDiagram/ColorDescription.d.ts +1 -1
- package/dist/react/nodes/classDiagram/Package.d.ts +1 -1
- package/dist/react/nodes/communicationDiagram/CommunicationObjectName.d.ts +1 -1
- package/dist/react/nodes/componentDiagram/Component.d.ts +1 -1
- package/dist/react/nodes/componentDiagram/ComponentInterface.d.ts +1 -1
- package/dist/react/nodes/componentDiagram/ComponentSubsystem.d.ts +1 -1
- package/dist/react/nodes/deploymentDiagram/DeploymentArtifact.d.ts +1 -1
- package/dist/react/nodes/deploymentDiagram/DeploymentComponent.d.ts +1 -1
- package/dist/react/nodes/deploymentDiagram/DeploymentInterface.d.ts +1 -1
- package/dist/react/nodes/deploymentDiagram/DeploymentNode.d.ts +1 -1
- package/dist/react/nodes/flowchart/FlowchartDecision.d.ts +1 -1
- package/dist/react/nodes/flowchart/FlowchartFunctionCall.d.ts +1 -1
- package/dist/react/nodes/flowchart/FlowchartInputOutput.d.ts +1 -1
- package/dist/react/nodes/flowchart/FlowchartProcess.d.ts +1 -1
- package/dist/react/nodes/flowchart/FlowchartTerminal.d.ts +1 -1
- package/dist/react/nodes/objectDiagram/ObjectName.d.ts +1 -1
- package/dist/react/nodes/petriNetDiagram/PetriNetPlace.d.ts +1 -1
- package/dist/react/nodes/petriNetDiagram/PetriNetTransition.d.ts +1 -1
- package/dist/react/nodes/reachabilityGraphDiagram/ReachabilityGraphMarking.d.ts +1 -1
- package/dist/react/nodes/sfcDiagram/SfcActionTable.d.ts +1 -1
- package/dist/react/nodes/sfcDiagram/SfcJump.d.ts +1 -1
- package/dist/react/nodes/sfcDiagram/SfcStart.d.ts +1 -1
- package/dist/react/nodes/sfcDiagram/SfcStep.d.ts +1 -1
- package/dist/react/nodes/sfcDiagram/SfcTransitionBranch.d.ts +1 -1
- package/dist/react/nodes/syntaxTreeDiagram/SyntaxTreeNonterminal.d.ts +1 -1
- package/dist/react/nodes/syntaxTreeDiagram/SyntaxTreeTerminal.d.ts +1 -1
- package/dist/react/nodes/useCaseDiagram/UseCase.d.ts +1 -1
- package/dist/react/nodes/useCaseDiagram/UseCaseActor.d.ts +1 -1
- package/dist/react/nodes/useCaseDiagram/UseCaseSystem.d.ts +1 -1
- package/dist/react/nodes/wrappers/DefaultNodeWrapper.d.ts +1 -1
- package/dist/react/react.js +23599 -24829
- package/dist/react/store/assessmentSelectionStore.d.ts +2 -0
- package/dist/react/store/diagramStore.d.ts +17 -1
- package/dist/react/sync/perfCounters.d.ts +6 -0
- package/dist/react/sync/ydoc.d.ts +2 -0
- package/dist/react/sync/yjsSync.d.ts +3 -2
- package/dist/react/types/nodes/NodeProps.d.ts +3 -3
- package/dist/react/typings.d.ts +23 -2
- package/dist/react/utils/collaboration.d.ts +10 -1
- package/dist/react/utils/exportFonts.d.ts +11 -0
- package/dist/react/utils/exportStyles.d.ts +30 -0
- package/dist/react/utils/exportUtils.d.ts +1 -101
- package/dist/react/utils/paletteLayout.d.ts +66 -0
- package/dist/yjsSync-CqmgRwRE.js +51038 -0
- package/package.json +38 -16
- package/schema/uml-model-4.schema.json +363 -0
- package/dist/yjsSync-CK5cmd5z.js +0 -71308
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const o = ".react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgb(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-border-default: 1px solid #bbb;--xy-node-border-selected-default: 1px solid #555;--xy-handle-background-color-default: #333;--xy-selection-background-color-default: rgba(150, 150, 180, .1);--xy-selection-border-default: 1px dotted rgba(155, 155, 155, .8);--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgb(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #777;--xy-background-pattern-lines-color-default: #777;--xy-background-pattern-cross-color-default: #777;--xy-node-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color, var(--xy-background-color-props, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default))}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{border:var(--xy-node-border, var(--xy-node-border-default));color:var(--xy-node-color, var(--xy-node-color-default))}.react-flow__node-input.selected,.react-flow__node-input:focus,.react-flow__node-input:focus-visible,.react-flow__node-default.selected,.react-flow__node-default:focus,.react-flow__node-default:focus-visible,.react-flow__node-output.selected,.react-flow__node-output:focus,.react-flow__node-output:focus-visible,.react-flow__node-group.selected,.react-flow__node-group:focus,.react-flow__node-group:focus-visible{outline:none;border:var(--xy-node-border-selected, var(--xy-node-border-selected-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}", e = ':root{--safe-area-inset-top: env(safe-area-inset-top, 0px);--safe-area-inset-right: env(safe-area-inset-right, 0px);--safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);--safe-area-inset-left: env(safe-area-inset-left, 0px)}.react-flow{--panel-background: var(--apollon-background, #fff);--panel-shadow: 0 0 4px 0 var(--apollon-background-variant, #f8f9fa);--text: var(--apollon-primary-contrast, #000);--xy-edge-stroke: var(--apollon-primary-contrast, #000);--xy-edge-stroke-width: 2px;--xy-minimap-mask-background-color-props: #00000020;--xy-controls-button-background-color: var(--apollon-background, #fff)}.apollon-editor{background-color:var(--apollon-background, #fff);color:var(--apollon-primary-contrast, #000);isolation:isolate}.apollon-canvas{position:relative;flex:1;min-width:0;height:100%;overflow:hidden}.apollon-collaboration-presence-bar{position:absolute;top:10px;right:10px;display:flex;align-items:center;z-index:10002;pointer-events:auto}.apollon-collaboration-presence-bar [role=button]:focus-visible{outline:2px solid var(--apollon-primary, #3e8acc);outline-offset:2px}.apollon-collaboration-follower-badge{position:absolute;bottom:-4px;left:-4px;min-width:14px;height:14px;padding:0 3px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border-radius:10px;border:2px solid;background-color:var(--apollon-background, #fff);color:var(--apollon-primary-contrast, #000);font-size:8px;font-weight:700}.apollon-collaboration-follow-frame{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:10001}.apollon-collaboration-follow-banner{position:absolute;top:16px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:8px;max-width:min(calc(100% - 32px),420px);padding:6px 6px 6px 14px;border-radius:999px;border:1px solid;background-color:var(--apollon-background, #fff);color:var(--apollon-primary-contrast, #000);box-shadow:0 2px 12px color-mix(in srgb,var(--apollon-primary-contrast, #000) 22%,transparent);font-size:13px;font-weight:500;white-space:nowrap;z-index:10004;pointer-events:auto;animation:apollon-collaboration-follow-banner-in .16s ease-out}@keyframes apollon-collaboration-follow-banner-in{0%{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%)}}@media(prefers-reduced-motion:reduce){.apollon-collaboration-follow-banner{animation:none}}.apollon-collaboration-follow-banner-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.apollon-collaboration-follow-banner-text{overflow:hidden;text-overflow:ellipsis}.apollon-collaboration-follow-banner-stop{flex-shrink:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;border-radius:999px;padding:3px 12px;font:inherit;font-weight:600;background-color:var(--apollon-primary-contrast, #000);color:var(--apollon-background, #fff)}.apollon-collaboration-follow-banner-stop:hover{opacity:.85}.apollon-collaboration-follow-banner-stop:focus-visible{outline:2px solid var(--apollon-primary, #3e8acc);outline-offset:2px}.apollon-collaboration-cursors{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;pointer-events:none;z-index:10003}.apollon-collaboration-cursor{position:absolute}.apollon-collaboration-cursor-label{margin-top:4px;padding:2px 6px;font-size:12px;border-radius:6px;color:#fff;white-space:nowrap}.react-flow__node.apollon-collaboration-highlighted{box-shadow:0 0 0 4px var(--apollon-collaboration-highlight-color),0 0 16px 3px var(--apollon-collaboration-highlight-color)!important;border-color:var(--apollon-collaboration-highlight-color)!important}.react-flow__edge.apollon-collaboration-highlighted path{stroke:var(--apollon-collaboration-highlight-color)!important;stroke-width:4.5px!important;filter:drop-shadow(0 0 4px var(--apollon-collaboration-highlight-color))}.apollon-palette{box-sizing:border-box;position:absolute;top:10px;left:calc(10px + var(--safe-area-inset-left, 0px));z-index:10000;max-height:calc(100% - 84px - var(--safe-area-inset-bottom, 0px));display:flex;flex-direction:column;gap:8px;align-items:center;padding:6px;overflow-y:auto;overscroll-behavior:contain;background:var(--apollon-background, #fff);color:var(--apollon-primary-contrast, #000);border:1px solid var(--apollon-gray, #e9ecef);border-radius:6px;box-shadow:0 2px 8px #0000002e}.apollon-palette__entries{display:grid;justify-content:center}.apollon-palette__entry{display:flex;align-items:center;justify-content:center;cursor:grab;border-radius:4px;transition:background-color .12s ease}.apollon-palette__entry:hover{background:var(--apollon-background-variant, #f8f9fa)}.apollon-palette__entry:active{cursor:grabbing}.apollon-palette__view-switch{width:100%;display:flex;flex-direction:column;gap:4px}.apollon-palette__view-button{border-radius:6px;border:1px solid var(--apollon-primary-contrast, #000);background:transparent;color:var(--apollon-primary-contrast, #000);padding:6px 8px;cursor:pointer;font-weight:600;white-space:nowrap;font-size:12px}.apollon-palette__view-button--active{background:var(--apollon-primary, #3e8acc);color:var(--apollon-background, #fff)}.apollon-palette__hint{box-sizing:border-box;width:100%;max-width:160px;padding:4px;font-size:11px;line-height:1.4}@media(max-width:950px)and (max-height:500px){.react-flow__panel.bottom.left{margin-left:calc(10px + var(--safe-area-inset-left, 0px));margin-bottom:calc(10px + var(--safe-area-inset-bottom, 0px))}.react-flow__panel.bottom.right{margin-right:calc(10px + var(--safe-area-inset-right, 0px));margin-bottom:calc(10px + var(--safe-area-inset-bottom, 0px))}.apollon-collaboration-presence-bar{right:calc(10px + var(--safe-area-inset-right, 0px))}}.react-flow__controls-button{background:none;border-bottom:none}.react-flow__panel,.react-flow__node-toolbar{background-color:var(--panel-background);box-shadow:var(--panel-shadow);border-radius:8px;padding:8px}.react-flow svg{display:block}.react-flow__node-toolbar{display:flex;gap:8px}.react-flow__controls-button,.react-flow__controls-button:hover{background:var(--panel-background);border-bottom:none}.react-flow__controls-button>svg{fill:var(--text)}.react-flow__handle{opacity:0;background-color:transparent}.react-flow__handle.apollon-arc-handle:before{content:"";position:absolute;background-color:var(--apollon-primary, #3e8acc);opacity:.4;box-sizing:border-box;pointer-events:all;cursor:crosshair;--arc-long: calc(28px * var(--arc-scale, 1));--arc-short: calc(14px * var(--arc-scale, 1));--arc-radius: calc(14px * var(--arc-scale, 1))}.react-flow__handle.apollon-arc-handle--top:before{width:var(--arc-long);height:var(--arc-short);left:50%;top:50%;transform:translate(-50%,-100%);border-radius:var(--arc-radius) var(--arc-radius) 0 0}.react-flow__handle.apollon-arc-handle--right:before{width:var(--arc-short);height:var(--arc-long);left:50%;top:50%;transform:translateY(-50%);border-radius:0 var(--arc-radius) var(--arc-radius) 0}.react-flow__handle.apollon-arc-handle--bottom:before{width:var(--arc-long);height:var(--arc-short);left:50%;top:50%;transform:translate(-50%);border-radius:0 0 var(--arc-radius) var(--arc-radius)}.react-flow__handle.apollon-arc-handle--left:before{width:var(--arc-short);height:var(--arc-long);left:50%;top:50%;transform:translate(-100%,-50%);border-radius:var(--arc-radius) 0 0 var(--arc-radius)}.react-flow__resize-control line{z-index:9}.react-flow__resize-control.handle{z-index:20}.react-flow__resize-control{opacity:0;pointer-events:none;transition:opacity .12s ease}.react-flow__node:hover .react-flow__resize-control,.react-flow__node.selected .react-flow__resize-control{opacity:1;pointer-events:all}.react-flow__node:hover .react-flow__handle,.react-flow__node.selected .react-flow__handle{opacity:1;background-color:transparent;pointer-events:all;cursor:crosshair}.apollon-editor--connection-guidance .react-flow__handle.apollon-arc-handle:before{opacity:0;pointer-events:none}.apollon-editor--connection-guidance .react-flow__node:has(.apollon-connection-guidance-source),.apollon-editor--connection-guidance .react-flow__node:has(.react-flow__handle.connectionindicator.connectingto){z-index:10001!important}.apollon-editor--connection-guidance .react-flow__handle.connectionindicator{opacity:1!important;width:10px!important;height:10px!important;border-radius:999px;border:2px solid var(--apollon-primary, #3e8acc);background-color:var(--apollon-background, #fff);box-sizing:border-box}.apollon-editor--connection-guidance .react-flow__handle.connectionindicator.connectingfrom,.apollon-editor--connection-guidance .react-flow__handle.apollon-connection-guidance-source{opacity:0!important;pointer-events:none!important;border-color:transparent!important;background-color:transparent!important}.apollon-editor--connection-guidance .react-flow__handle.connectionindicator.valid{background-color:var(--apollon-primary, #3e8acc)!important}.edge-bend-handle{opacity:0;stroke:none;fill:color-mix(in srgb,var(--apollon-primary, #3e8acc) 34%,var(--apollon-background, #fff));transition:fill .12s ease,opacity .12s ease;vector-effect:non-scaling-stroke}.edge-endpoint-handle{fill:transparent;stroke:transparent;stroke-width:0;cursor:move;vector-effect:non-scaling-stroke}.edge-endpoint-handle--disabled{cursor:default}.react-flow__edge:hover .edge-bend-handle,.react-flow__edge.selected .edge-bend-handle{opacity:1;fill:var(--apollon-primary, #3e8acc)}.react-flow__edge:hover .edge-bend-handle:hover,.react-flow__edge.selected .edge-bend-handle:hover{fill:color-mix(in srgb,var(--apollon-primary, #3e8acc) 70%,#000)}.react-flow__edge:hover .edge-overlay,.react-flow__edge:hover .edge-marker-highlight{opacity:0}.react-flow__edge.selected .edge-overlay{opacity:0;pointer-events:none}.react-flow__edge.selected .edge-marker-highlight{opacity:0}.react-flow__edge:hover .react-flow__edge-path,.react-flow__edge:hover [data-inline-marker]{stroke:color-mix(in srgb,var(--apollon-primary, #3e8acc) 70%,#000)!important}.react-flow__edge:hover [data-inline-marker-filled=true]{fill:color-mix(in srgb,var(--apollon-primary, #3e8acc) 70%,#000)!important}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selected [data-inline-marker]{stroke:var(--apollon-primary, #3e8acc)!important}.react-flow__edge.selected [data-inline-marker-filled=true]{fill:var(--apollon-primary, #3e8acc)!important}.react-flow__node:hover,.react-flow__node.selected{opacity:.9;box-shadow:0 0 0 2px var(--apollon-primary, #3e8acc);border-radius:4px}.apollon-interactive-selection{--apollon-interactive-selection-color: var( --apollon-interactive-selection, #f39c12 )}.apollon-interactive-selection--selected [stroke]:not([stroke=none]){stroke:var(--apollon-interactive-selection-color)}.apollon-interactive-selection--selected .react-flow__edge-path{stroke-width:3px}.apollon-interactive-selection--selected .edge-overlay,.apollon-interactive-selection--selected .edge-marker-highlight{opacity:.45;stroke:var(--apollon-interactive-selection-color);stroke-width:15px}.react-flow__edges{z-index:9999}.react-flow__node{z-index:9998}svg.react-flow__connectionline{z-index:10000}.react-flow__connection-path{stroke:var(--xy-edge-stroke);stroke-width:var(--xy-edge-stroke-width);opacity:.5}.react-flow__minimap-mask{fill:"#f2f2f2";opacity:.6}.prevent-select{-webkit-user-select:none;-ms-user-select:none;user-select:none}.control-button{background-color:var(--apollon-background, #fff);border:1px solid var(--apollon-gray-variant, #495057);border-radius:8px;padding:6px 8px;cursor:pointer;opacity:1;display:flex;align-items:center;justify-content:center;min-width:32px;height:32px;font-size:14px;font-weight:700;transition:background-color .2s ease}.control-button:hover:not(.disabled){background-color:var(--apollon-background-variant, #f8f9fa)}.control-button.disabled{cursor:not-allowed;opacity:.5}.control-button.disabled:hover{background-color:var(--apollon-background, #fff)}.horizontally-not-resizable .react-flow__resize-control.top.line:hover,.horizontally-not-resizable .react-flow__resize-control.bottom.line:hover,.vertically-not-resizable .react-flow__resize-control.right.line:hover,.vertically-not-resizable .react-flow__resize-control.left.line:hover{cursor:grab}.apollon-editor .MuiSelect-select,.apollon-editor .MuiFormLabel-root{color:var(--apollon-primary-contrast, #000)!important}.apollon-editor .MuiOutlinedInput-notchedOutline{border-color:var(--apollon-primary-contrast, #000)!important}.apollon-editor .MuiSvgIcon-root{color:var(--apollon-primary-contrast, #000)!important}.scroll-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background-color:var(--apollon-grid, rgba(36, 39, 36, .1));-webkit-backdrop-filter:blur(.5px);backdrop-filter:blur(.5px);z-index:10;cursor:not-allowed;animation:fadeIn .2s ease-in-out;display:flex;align-items:center;justify-content:center;pointer-events:auto}.scroll-overlay-hint{position:absolute;bottom:40px;left:50%;transform:translate(-50%);z-index:11}.scroll-overlay-hint-content{background-color:var(--apollon-background, #fff);border:2px solid var(--apollon-primary, #3e8acc);border-radius:8px;padding:16px 24px;box-shadow:0 4px 12px var(--apollon-grid, rgba(36, 39, 36, .1));display:flex;align-items:center;justify-content:center}.scroll-overlay-hint-text{margin:0;color:var(--apollon-primary, #3e8acc);font-weight:600;font-size:14px;text-align:center}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}', r = `${o}
|
|
2
|
+
${e}`;
|
|
3
|
+
export {
|
|
4
|
+
r as EXPORT_LAYOUT_CSS
|
|
5
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { Edge } from '@xyflow/react';
|
|
2
2
|
import { EdgeProps } from '@xyflow/react';
|
|
3
|
-
import { JSX
|
|
3
|
+
import { JSX } from 'react';
|
|
4
4
|
import { Node as Node_2 } from '@xyflow/react';
|
|
5
5
|
import { NodeProps } from '@xyflow/react';
|
|
6
6
|
import { XYPosition } from '@xyflow/react';
|
|
7
7
|
|
|
8
|
-
declare function Activity({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>):
|
|
8
|
+
declare function Activity({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
9
9
|
|
|
10
|
-
declare function ActivityActionNode({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>):
|
|
10
|
+
declare function ActivityActionNode({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
11
11
|
|
|
12
|
-
declare function ActivityFinalNode({ id, width, height, }: NodeProps<Node_2<DefaultNodeProps>>):
|
|
12
|
+
declare function ActivityFinalNode({ id, width, height, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
13
13
|
|
|
14
|
-
declare function ActivityForkNode({ id, width, height, parentId, data, }: NodeProps<Node_2<DefaultNodeProps>>):
|
|
14
|
+
declare function ActivityForkNode({ id, width, height, parentId, data, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
15
15
|
|
|
16
|
-
declare function ActivityForkNodeHorizontal({ id, width, height, parentId, data, }: NodeProps<Node_2<DefaultNodeProps>>):
|
|
16
|
+
declare function ActivityForkNodeHorizontal({ id, width, height, parentId, data, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
17
17
|
|
|
18
|
-
declare function ActivityInitialNode({ id, width, height, }: NodeProps<Node_2<DefaultNodeProps>>):
|
|
18
|
+
declare function ActivityInitialNode({ id, width, height, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
19
19
|
|
|
20
|
-
declare function ActivityMergeNode({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>):
|
|
20
|
+
declare function ActivityMergeNode({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
21
21
|
|
|
22
|
-
declare function ActivityObjectNode({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>):
|
|
22
|
+
declare function ActivityObjectNode({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
23
23
|
|
|
24
24
|
declare namespace Apollon {
|
|
25
25
|
export {
|
|
@@ -33,6 +33,7 @@ declare namespace Apollon {
|
|
|
33
33
|
CollaborationUser,
|
|
34
34
|
CollaborationCursor,
|
|
35
35
|
CollaborationViewport,
|
|
36
|
+
DraggingNode,
|
|
36
37
|
CollaborationState,
|
|
37
38
|
CollaboratorInfo,
|
|
38
39
|
ApollonCollaborationOptions,
|
|
@@ -173,6 +174,25 @@ export declare class ApollonEditor {
|
|
|
173
174
|
};
|
|
174
175
|
get model(): Apollon.UMLModel;
|
|
175
176
|
set model(model: Apollon.UMLModel);
|
|
177
|
+
/**
|
|
178
|
+
* Host-driven element highlighting. Paints a translucent overlay over each
|
|
179
|
+
* given node / edge / class-member id in the supplied CSS color — the v4
|
|
180
|
+
* replacement for v3's `UMLModelElement.highlight` field and
|
|
181
|
+
* `ApollonEditor.select()`. Typical hosts: an assessment editor marking
|
|
182
|
+
* elements that are missing feedback, or Athena marking elements that have
|
|
183
|
+
* automatic-feedback suggestions.
|
|
184
|
+
*
|
|
185
|
+
* The highlight is an ephemeral view overlay: it is NOT written into the
|
|
186
|
+
* model, NOT serialized by `get model`, and NOT shared with collaborators.
|
|
187
|
+
* Each call replaces the previous highlight set; pass `null` (or an empty
|
|
188
|
+
* map) to clear all highlights. Passing `undefined` is a no-op.
|
|
189
|
+
*
|
|
190
|
+
* @param highlights map / record of element id -> CSS color (any valid CSS
|
|
191
|
+
* color string, e.g. `"rgba(23,162,184,0.3)"`), or `null` to clear.
|
|
192
|
+
*/
|
|
193
|
+
setElementHighlights(highlights: Map<string, string> | Record<string, string> | null | undefined): void;
|
|
194
|
+
/** Returns a copy of the current highlight record (id -> CSS color). */
|
|
195
|
+
getElementHighlights(): Record<string, string>;
|
|
176
196
|
getSelectedElements(): string[];
|
|
177
197
|
get view(): Apollon.ApollonView;
|
|
178
198
|
set view(view: Apollon.ApollonView);
|
|
@@ -271,29 +291,31 @@ export declare type AssessmentViewData = {
|
|
|
271
291
|
|
|
272
292
|
declare type BaseEdgeProps = ExtendedEdgeProps;
|
|
273
293
|
|
|
274
|
-
declare function BPMNAnnotation({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNAnnotationProps>>):
|
|
294
|
+
declare function BPMNAnnotation({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNAnnotationProps>>): JSX.Element | null;
|
|
275
295
|
|
|
276
296
|
declare type BPMNAnnotationProps = DefaultNodeProps;
|
|
277
297
|
|
|
278
|
-
declare function BPMNCallActivity({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNCallActivityProps>>):
|
|
298
|
+
declare function BPMNCallActivity({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNCallActivityProps>>): JSX.Element | null;
|
|
279
299
|
|
|
280
300
|
declare type BPMNCallActivityProps = DefaultNodeProps;
|
|
281
301
|
|
|
282
|
-
declare function BPMNDataObject({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNDataObjectProps>>):
|
|
302
|
+
declare function BPMNDataObject({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNDataObjectProps>>): JSX.Element | null;
|
|
283
303
|
|
|
284
304
|
declare type BPMNDataObjectProps = DefaultNodeProps;
|
|
285
305
|
|
|
286
|
-
declare function BPMNDataStore({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNDataStoreProps>>):
|
|
306
|
+
declare function BPMNDataStore({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNDataStoreProps>>): JSX.Element | null;
|
|
287
307
|
|
|
288
308
|
declare type BPMNDataStoreProps = DefaultNodeProps;
|
|
289
309
|
|
|
290
|
-
declare function BPMNEndEvent({ id, width, height, data, }: NodeProps<Node_2<BPMNEventProps>>):
|
|
310
|
+
declare function BPMNEndEvent({ id, width, height, data, }: NodeProps<Node_2<BPMNEventProps>>): JSX.Element;
|
|
311
|
+
|
|
312
|
+
declare type BPMNEndEventType = "default" | "message" | "escalation" | "error" | "compensation" | "signal" | "terminate";
|
|
291
313
|
|
|
292
314
|
declare type BPMNEventProps = DefaultNodeProps & {
|
|
293
|
-
eventType: BPMNStartEventType;
|
|
315
|
+
eventType: BPMNStartEventType | BPMNIntermediateEventType | BPMNEndEventType;
|
|
294
316
|
};
|
|
295
317
|
|
|
296
|
-
declare function BPMNGateway({ id, width, height, data, }: NodeProps<Node_2<BPMNGatewayProps>>):
|
|
318
|
+
declare function BPMNGateway({ id, width, height, data, }: NodeProps<Node_2<BPMNGatewayProps>>): JSX.Element;
|
|
297
319
|
|
|
298
320
|
declare type BPMNGatewayProps = DefaultNodeProps & {
|
|
299
321
|
gatewayType: BPMNGatewayType;
|
|
@@ -301,27 +323,29 @@ declare type BPMNGatewayProps = DefaultNodeProps & {
|
|
|
301
323
|
|
|
302
324
|
declare type BPMNGatewayType = "complex" | "event-based" | "exclusive" | "inclusive" | "parallel";
|
|
303
325
|
|
|
304
|
-
declare function BPMNGroup({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNGroupProps>>):
|
|
326
|
+
declare function BPMNGroup({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNGroupProps>>): JSX.Element | null;
|
|
305
327
|
|
|
306
328
|
declare type BPMNGroupProps = DefaultNodeProps;
|
|
307
329
|
|
|
308
|
-
declare function BPMNIntermediateEvent({ id, width, height, data, }: NodeProps<Node_2<BPMNEventProps>>):
|
|
330
|
+
declare function BPMNIntermediateEvent({ id, width, height, data, }: NodeProps<Node_2<BPMNEventProps>>): JSX.Element;
|
|
331
|
+
|
|
332
|
+
declare type BPMNIntermediateEventType = "default" | "message-catch" | "message-throw" | "timer-catch" | "escalation-throw" | "conditional-catch" | "link-catch" | "link-throw" | "compensation-throw" | "signal-catch" | "signal-throw";
|
|
309
333
|
|
|
310
334
|
declare type BPMNMarkerType = "none" | "parallel multi instance" | "sequential multi instance" | "loop";
|
|
311
335
|
|
|
312
|
-
declare function BPMNPool({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNPoolProps>>):
|
|
336
|
+
declare function BPMNPool({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNPoolProps>>): JSX.Element | null;
|
|
313
337
|
|
|
314
338
|
declare type BPMNPoolProps = DefaultNodeProps;
|
|
315
339
|
|
|
316
|
-
declare function BPMNStartEvent({ id, width, height, data, }: NodeProps<Node_2<BPMNEventProps>>):
|
|
340
|
+
declare function BPMNStartEvent({ id, width, height, data, }: NodeProps<Node_2<BPMNEventProps>>): JSX.Element;
|
|
317
341
|
|
|
318
342
|
declare type BPMNStartEventType = "default" | "message" | "timer" | "conditional" | "signal";
|
|
319
343
|
|
|
320
|
-
declare function BPMNSubprocess({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNSubprocessProps>>):
|
|
344
|
+
declare function BPMNSubprocess({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNSubprocessProps>>): JSX.Element | null;
|
|
321
345
|
|
|
322
346
|
declare type BPMNSubprocessProps = DefaultNodeProps;
|
|
323
347
|
|
|
324
|
-
declare function BPMNTask({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNTaskProps>>):
|
|
348
|
+
declare function BPMNTask({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNTaskProps>>): JSX.Element | null;
|
|
325
349
|
|
|
326
350
|
declare type BPMNTaskProps = DefaultNodeProps & {
|
|
327
351
|
taskType: BPMNTaskType;
|
|
@@ -330,11 +354,11 @@ declare type BPMNTaskProps = DefaultNodeProps & {
|
|
|
330
354
|
|
|
331
355
|
declare type BPMNTaskType = "default" | "user" | "send" | "receive" | "manual" | "business-rule" | "script";
|
|
332
356
|
|
|
333
|
-
declare function BPMNTransaction({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNTransactionProps>>):
|
|
357
|
+
declare function BPMNTransaction({ id, width, height, data, parentId, }: NodeProps<Node_2<BPMNTransactionProps>>): JSX.Element | null;
|
|
334
358
|
|
|
335
359
|
declare type BPMNTransactionProps = DefaultNodeProps;
|
|
336
360
|
|
|
337
|
-
declare function Class({ id, width, height, data, }: NodeProps<Node_2<ClassNodeProps>>):
|
|
361
|
+
declare function Class({ id, width, height, data, }: NodeProps<Node_2<ClassNodeProps>>): JSX.Element;
|
|
338
362
|
|
|
339
363
|
declare type ClassNodeElement = {
|
|
340
364
|
id: string;
|
|
@@ -365,6 +389,7 @@ export declare type CollaborationState = {
|
|
|
365
389
|
viewport?: CollaborationViewport | null;
|
|
366
390
|
followingClientId?: number | null;
|
|
367
391
|
selectedElementId?: string | null;
|
|
392
|
+
draggingNodes?: DraggingNode[] | null;
|
|
368
393
|
};
|
|
369
394
|
|
|
370
395
|
export declare type CollaborationUser = {
|
|
@@ -389,24 +414,24 @@ export declare type CollaboratorInfo = {
|
|
|
389
414
|
isLocal: boolean;
|
|
390
415
|
};
|
|
391
416
|
|
|
392
|
-
declare function ColorDescription({ width, height, data, id, }: NodeProps<Node_2<DefaultNodeProps>>):
|
|
417
|
+
declare function ColorDescription({ width, height, data, id, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
393
418
|
|
|
394
|
-
declare function CommunicationObjectName({ id, width, height, data, }: NodeProps<Node_2<CommunicationObjectNodeProps>>):
|
|
419
|
+
declare function CommunicationObjectName({ id, width, height, data, }: NodeProps<Node_2<CommunicationObjectNodeProps>>): JSX.Element;
|
|
395
420
|
|
|
396
421
|
declare type CommunicationObjectNodeProps = {
|
|
397
422
|
methods: ClassNodeElement[];
|
|
398
423
|
attributes: ClassNodeElement[];
|
|
399
424
|
} & DefaultNodeProps;
|
|
400
425
|
|
|
401
|
-
declare function Component({ id, width, height, data, parentId, }: NodeProps<Node_2<ComponentNodeProps>>):
|
|
426
|
+
declare function Component({ id, width, height, data, parentId, }: NodeProps<Node_2<ComponentNodeProps>>): JSX.Element | null;
|
|
402
427
|
|
|
403
|
-
declare function ComponentInterface({ id, width, height, data, }: NodeProps<Node_2<DefaultNodeProps>>):
|
|
428
|
+
declare function ComponentInterface({ id, width, height, data, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
404
429
|
|
|
405
430
|
declare type ComponentNodeProps = {
|
|
406
431
|
isComponentHeaderShown: boolean;
|
|
407
432
|
} & DefaultNodeProps;
|
|
408
433
|
|
|
409
|
-
declare function ComponentSubsystem({ id, width, height, data, parentId, }: NodeProps<Node_2<ComponentSubsystemNodeProps>>):
|
|
434
|
+
declare function ComponentSubsystem({ id, width, height, data, parentId, }: NodeProps<Node_2<ComponentSubsystemNodeProps>>): JSX.Element | null;
|
|
410
435
|
|
|
411
436
|
declare type ComponentSubsystemNodeProps = {
|
|
412
437
|
isComponentSubsystemHeaderShown: boolean;
|
|
@@ -431,17 +456,17 @@ declare type DefaultNodeProps = {
|
|
|
431
456
|
textColor?: string;
|
|
432
457
|
};
|
|
433
458
|
|
|
434
|
-
declare function DeploymentArtifact({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>):
|
|
459
|
+
declare function DeploymentArtifact({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
435
460
|
|
|
436
|
-
declare function DeploymentComponent({ id, width, height, data, parentId, }: NodeProps<Node_2<DeploymentComponentProps>>):
|
|
461
|
+
declare function DeploymentComponent({ id, width, height, data, parentId, }: NodeProps<Node_2<DeploymentComponentProps>>): JSX.Element | null;
|
|
437
462
|
|
|
438
463
|
declare type DeploymentComponentProps = {
|
|
439
464
|
isComponentHeaderShown: boolean;
|
|
440
465
|
} & DefaultNodeProps;
|
|
441
466
|
|
|
442
|
-
declare function DeploymentInterface({ id, width, height, data, }: NodeProps<Node_2<DefaultNodeProps>>):
|
|
467
|
+
declare function DeploymentInterface({ id, width, height, data, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
443
468
|
|
|
444
|
-
declare function DeploymentNode({ id, width, height, data, parentId, }: NodeProps<Node_2<DeploymentNodeProps>>):
|
|
469
|
+
declare function DeploymentNode({ id, width, height, data, parentId, }: NodeProps<Node_2<DeploymentNodeProps>>): JSX.Element | null;
|
|
445
470
|
|
|
446
471
|
declare type DeploymentNodeProps = {
|
|
447
472
|
isComponentHeaderShown: boolean;
|
|
@@ -451,40 +476,40 @@ declare type DeploymentNodeProps = {
|
|
|
451
476
|
export declare type DiagramEdgeType = keyof typeof diagramEdgeTypes;
|
|
452
477
|
|
|
453
478
|
declare const diagramEdgeTypes: {
|
|
454
|
-
ClassAggregation: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
455
|
-
ClassInheritance: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
456
|
-
ClassRealization: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
457
|
-
ClassComposition: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
458
|
-
ClassBidirectional: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
459
|
-
ClassUnidirectional: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
460
|
-
ClassDependency: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
461
|
-
ActivityControlFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
462
|
-
ObjectLink: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
463
|
-
FlowChartFlowline: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
464
|
-
SyntaxTreeLink: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
465
|
-
CommunicationLink: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
466
|
-
PetriNetArc: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
467
|
-
UseCaseAssociation: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
468
|
-
UseCaseInclude: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
469
|
-
UseCaseExtend: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
470
|
-
UseCaseGeneralization: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
471
|
-
ComponentDependency: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
472
|
-
ComponentProvidedInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
473
|
-
ComponentRequiredInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
474
|
-
ComponentRequiredThreeQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
475
|
-
ComponentRequiredQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
476
|
-
DeploymentAssociation: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
477
|
-
DeploymentDependency: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
478
|
-
DeploymentProvidedInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
479
|
-
DeploymentRequiredInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
480
|
-
DeploymentRequiredThreeQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
481
|
-
DeploymentRequiredQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
482
|
-
SfcDiagramEdge: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
483
|
-
ReachabilityGraphArc: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
484
|
-
BPMNSequenceFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
485
|
-
BPMNMessageFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
486
|
-
BPMNAssociationFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
487
|
-
BPMNDataAssociationFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) =>
|
|
479
|
+
ClassAggregation: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
480
|
+
ClassInheritance: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
481
|
+
ClassRealization: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
482
|
+
ClassComposition: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
483
|
+
ClassBidirectional: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
484
|
+
ClassUnidirectional: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
485
|
+
ClassDependency: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
486
|
+
ActivityControlFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
487
|
+
ObjectLink: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
488
|
+
FlowChartFlowline: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
489
|
+
SyntaxTreeLink: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
490
|
+
CommunicationLink: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
491
|
+
PetriNetArc: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
492
|
+
UseCaseAssociation: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
493
|
+
UseCaseInclude: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
494
|
+
UseCaseExtend: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
495
|
+
UseCaseGeneralization: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
496
|
+
ComponentDependency: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
497
|
+
ComponentProvidedInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
498
|
+
ComponentRequiredInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
499
|
+
ComponentRequiredThreeQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
500
|
+
ComponentRequiredQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
501
|
+
DeploymentAssociation: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
502
|
+
DeploymentDependency: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
503
|
+
DeploymentProvidedInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
504
|
+
DeploymentRequiredInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
505
|
+
DeploymentRequiredThreeQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
506
|
+
DeploymentRequiredQuarterInterface: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
507
|
+
SfcDiagramEdge: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
508
|
+
ReachabilityGraphArc: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
509
|
+
BPMNSequenceFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
510
|
+
BPMNMessageFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
511
|
+
BPMNAssociationFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
512
|
+
BPMNDataAssociationFlow: ({ id, type, source, target, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, sourceHandleId, targetHandleId, data, }: BaseEdgeProps) => JSX.Element;
|
|
488
513
|
};
|
|
489
514
|
|
|
490
515
|
export declare type DiagramNodeType = keyof typeof diagramNodeTypes;
|
|
@@ -544,6 +569,23 @@ declare const diagramNodeTypes: {
|
|
|
544
569
|
sfcJump: typeof SfcJump;
|
|
545
570
|
};
|
|
546
571
|
|
|
572
|
+
/**
|
|
573
|
+
* One node a peer is actively dragging or resizing. Broadcast over the
|
|
574
|
+
* ephemeral awareness channel — never written to the Yjs document — so peers
|
|
575
|
+
* can render the in-progress gesture live without growing the CRDT or entering
|
|
576
|
+
* anyone's undo history. The settled position/size is committed once on
|
|
577
|
+
* drop/release through the document like any other edit.
|
|
578
|
+
*/
|
|
579
|
+
export declare type DraggingNode = {
|
|
580
|
+
id: string;
|
|
581
|
+
position: {
|
|
582
|
+
x: number;
|
|
583
|
+
y: number;
|
|
584
|
+
};
|
|
585
|
+
width?: number | null;
|
|
586
|
+
height?: number | null;
|
|
587
|
+
};
|
|
588
|
+
|
|
547
589
|
export declare type ExportOptions = {
|
|
548
590
|
margin?: number | {
|
|
549
591
|
top?: number;
|
|
@@ -574,15 +616,28 @@ export declare type FeedbackCorrectionStatus = {
|
|
|
574
616
|
status: "CORRECT" | "INCORRECT" | "NOT_VALIDATED";
|
|
575
617
|
};
|
|
576
618
|
|
|
577
|
-
declare function FlowchartDecision({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>):
|
|
619
|
+
declare function FlowchartDecision({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
620
|
+
|
|
621
|
+
declare function FlowchartFunctionCall({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
578
622
|
|
|
579
|
-
declare function
|
|
623
|
+
declare function FlowchartInputOutput({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
580
624
|
|
|
581
|
-
declare function
|
|
625
|
+
declare function FlowchartProcess({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
582
626
|
|
|
583
|
-
declare function
|
|
627
|
+
declare function FlowchartTerminal({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
584
628
|
|
|
585
|
-
|
|
629
|
+
/**
|
|
630
|
+
* The diagram text font stack — single source of truth for the measured,
|
|
631
|
+
* rendered, and exported font (must stay byte-identical across all three, or
|
|
632
|
+
* the editor measures one face and renders another and nodes overlap). Apollon
|
|
633
|
+
* self-hosts the leading `Inter` family; see `lib/styles/fonts.css`.
|
|
634
|
+
*
|
|
635
|
+
* Dependency-free leaf module on purpose: `MultilineText` / `svgTextLayout` read
|
|
636
|
+
* these at import-init, and `constants.ts` transitively imports those via the
|
|
637
|
+
* node SVGs — defining the stack here (and re-exporting from `constants.ts`)
|
|
638
|
+
* keeps it initialised first, avoiding a temporal-dead-zone crash on the cycle.
|
|
639
|
+
*/
|
|
640
|
+
export declare const FONT_FAMILY = "Inter, system-ui, Avenir, Helvetica, Arial, sans-serif";
|
|
586
641
|
|
|
587
642
|
export declare const getAssessmentNameForArtemis: (elementId: string, model: UMLModel) => {
|
|
588
643
|
name: string;
|
|
@@ -599,8 +654,12 @@ export declare const getNodeAssessmentDataByNodeElementId: (nodeElementId: strin
|
|
|
599
654
|
export declare function importDiagram(data: any | V3UMLModel): UMLModel;
|
|
600
655
|
|
|
601
656
|
export declare type InteractiveElements = {
|
|
602
|
-
elements:
|
|
603
|
-
|
|
657
|
+
elements: {
|
|
658
|
+
[id: string]: boolean;
|
|
659
|
+
};
|
|
660
|
+
relationships: {
|
|
661
|
+
[id: string]: boolean;
|
|
662
|
+
};
|
|
604
663
|
};
|
|
605
664
|
|
|
606
665
|
declare interface IPoint {
|
|
@@ -632,7 +691,7 @@ declare interface MessageData {
|
|
|
632
691
|
direction: "target" | "source";
|
|
633
692
|
}
|
|
634
693
|
|
|
635
|
-
declare function ObjectName({ id, width, height, data, }: NodeProps<Node_2<ObjectNodeProps>>):
|
|
694
|
+
declare function ObjectName({ id, width, height, data, }: NodeProps<Node_2<ObjectNodeProps>>): JSX.Element;
|
|
636
695
|
|
|
637
696
|
declare type ObjectNodeProps = {
|
|
638
697
|
methods: ClassNodeElement[];
|
|
@@ -644,16 +703,16 @@ export declare interface OrthogonalEdgeData {
|
|
|
644
703
|
points: IPoint_2[];
|
|
645
704
|
}
|
|
646
705
|
|
|
647
|
-
declare function Package({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>):
|
|
706
|
+
declare function Package({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
648
707
|
|
|
649
|
-
declare function PetriNetPlace({ id, width, height, data, }: NodeProps<Node_2<PetriNetPlaceProps>>):
|
|
708
|
+
declare function PetriNetPlace({ id, width, height, data, }: NodeProps<Node_2<PetriNetPlaceProps>>): JSX.Element | null;
|
|
650
709
|
|
|
651
710
|
declare type PetriNetPlaceProps = {
|
|
652
711
|
tokens: number;
|
|
653
|
-
capacity: number |
|
|
712
|
+
capacity: number | string;
|
|
654
713
|
} & DefaultNodeProps;
|
|
655
714
|
|
|
656
|
-
declare function PetriNetTransition({ id, width, height, data, }: NodeProps<Node_2<DefaultNodeProps>>):
|
|
715
|
+
declare function PetriNetTransition({ id, width, height, data, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
657
716
|
|
|
658
717
|
declare type Props = Node_2<{
|
|
659
718
|
description?: string;
|
|
@@ -662,7 +721,7 @@ declare type Props = Node_2<{
|
|
|
662
721
|
|
|
663
722
|
export declare const randomCollabName: () => string;
|
|
664
723
|
|
|
665
|
-
declare function ReachabilityGraphMarking({ id, width, height, data, parentId, }: NodeProps<Node_2<ReachabilityGraphMarkingProps>>):
|
|
724
|
+
declare function ReachabilityGraphMarking({ id, width, height, data, parentId, }: NodeProps<Node_2<ReachabilityGraphMarkingProps>>): JSX.Element | null;
|
|
666
725
|
|
|
667
726
|
declare type ReachabilityGraphMarkingProps = DefaultNodeProps & {
|
|
668
727
|
isInitialMarking: boolean;
|
|
@@ -679,22 +738,22 @@ declare type SfcActionRow = DefaultNodeProps & {
|
|
|
679
738
|
identifier: string;
|
|
680
739
|
};
|
|
681
740
|
|
|
682
|
-
declare function SfcActionTable({ id, width, height, data, }: NodeProps<Node_2<SfcActionTableProps>>):
|
|
741
|
+
declare function SfcActionTable({ id, width, height, data, }: NodeProps<Node_2<SfcActionTableProps>>): JSX.Element | null;
|
|
683
742
|
|
|
684
743
|
declare type SfcActionTableProps = DefaultNodeProps & {
|
|
685
744
|
actionRows: SfcActionRow[];
|
|
686
745
|
};
|
|
687
746
|
|
|
688
|
-
declare function SfcJump({ id, width, height, data, }: NodeProps<Node_2<DefaultNodeProps>>):
|
|
747
|
+
declare function SfcJump({ id, width, height, data, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
689
748
|
|
|
690
|
-
declare function SfcStart({ id, width, height, data, }: NodeProps<Node_2<DefaultNodeProps>>):
|
|
749
|
+
declare function SfcStart({ id, width, height, data, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
691
750
|
|
|
692
|
-
declare function SfcStep({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>):
|
|
751
|
+
declare function SfcStep({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
693
752
|
|
|
694
|
-
declare function SfcTransitionBranch({ id, width, height, data, }: NodeProps<Node_2<SfcTransitionBranchNodeProps>>):
|
|
753
|
+
declare function SfcTransitionBranch({ id, width, height, data, }: NodeProps<Node_2<SfcTransitionBranchNodeProps>>): JSX.Element | null;
|
|
695
754
|
|
|
696
755
|
declare type SfcTransitionBranchNodeProps = DefaultNodeProps & {
|
|
697
|
-
showHint
|
|
756
|
+
showHint?: boolean;
|
|
698
757
|
};
|
|
699
758
|
|
|
700
759
|
declare type Sink = Pick<Console, "error" | "warn" | "debug">;
|
|
@@ -717,11 +776,11 @@ export declare type SVG = {
|
|
|
717
776
|
|
|
718
777
|
export declare type SvgExportMode = "web" | "compat";
|
|
719
778
|
|
|
720
|
-
declare function SyntaxTreeNonterminal({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>):
|
|
779
|
+
declare function SyntaxTreeNonterminal({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
721
780
|
|
|
722
|
-
declare function SyntaxTreeTerminal({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>):
|
|
781
|
+
declare function SyntaxTreeTerminal({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
723
782
|
|
|
724
|
-
declare function TitleAndDesctiption({ width, height, id, data: { description, title }, }: NodeProps<Props>):
|
|
783
|
+
declare function TitleAndDesctiption({ width, height, id, data: { description, title }, }: NodeProps<Props>): JSX.Element | null;
|
|
725
784
|
|
|
726
785
|
export declare type UMLDiagramType = keyof typeof UMLDiagramType;
|
|
727
786
|
|
|
@@ -758,11 +817,11 @@ export declare type UMLModelElementType = DiagramNodeType | DiagramEdgeType;
|
|
|
758
817
|
|
|
759
818
|
export declare type Unsubscriber = () => void;
|
|
760
819
|
|
|
761
|
-
declare function UseCase({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>):
|
|
820
|
+
declare function UseCase({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
762
821
|
|
|
763
|
-
declare function UseCaseActor({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>):
|
|
822
|
+
declare function UseCaseActor({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
764
823
|
|
|
765
|
-
declare function UseCaseSystem({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>):
|
|
824
|
+
declare function UseCaseSystem({ id, width, height, data, parentId, }: NodeProps<Node_2<DefaultNodeProps>>): JSX.Element | null;
|
|
766
825
|
|
|
767
826
|
declare type V3Assessment = {
|
|
768
827
|
modelElementId: string;
|