DiagramEditorState
Tracks the current editing state of the diagram editor.
プロパティ
DraggingNodeKey : string
Key of node being dragged.
DragOriginalNodeX : float
Original node X before drag started.
DragOriginalNodeY : float
Original node Y before drag started.
DragOriginalPositions : Dictionary<string, ValueTuple<float, float>>
Original positions of all nodes being dragged (for group drag). Key is node key, value is (X, Y) position.
DragPaletteItem : PaletteItem
Palette item being dragged.
DragPaletteX : float
Current drag position X (screen coords).
DragPaletteY : float
Current drag position Y (screen coords).
DragStartX : float
Start X position of drag (diagram coords).
DragStartY : float
Start Y position of drag (diagram coords).
GridSnapSize : float
Grid snap size. 0 = no snap.
IsDragOverCanvas : bool
Whether drag is currently over a valid drop area (the canvas).
IsEditingEnabled : bool
Whether editing is enabled (vs view-only mode).
IsGridSnapEnabled : bool
Whether grid snap is enabled.
IsLinkHoverValid : bool
Whether the current hover socket is a valid target.
LinkEndpointX : float
Current endpoint of link being created (screen coords).
LinkEndpointY : float
Current endpoint of link being created (screen coords).
LinkHoverSocket : SocketKey
Socket currently being hovered over during link creation.
LinkSourceSocket : SocketKey
Source socket for link being created.
LinkValidationError : string
Validation error message for current link attempt.
Mode : EditorMode
Current editing mode.
RubberBandCurrentX : float
Current X of rubber band (screen coords).
RubberBandCurrentY : float
Current Y of rubber band (screen coords).
RubberBandStartX : float
Start X of rubber band (screen coords).
RubberBandStartY : float
Start Y of rubber band (screen coords).
メソッド
Reset()
Reset all transient state.
SnapToGrid(float) : float
Snap a value to grid if enabled.