Synced
GraphCanvasState
Section titled “GraphCanvasState”
- Stores transient pan, zoom, selection and connection interaction state without ImGui dependencies.
Required contracts
Section titled “Required contracts”API: engine
Inherits: object
Project: Inno.Editor.Graph
Declaration
Section titled “Declaration”public sealed class Inno.Editor.Graph.GraphCanvasStateMembers
Section titled “Members”| Kind | Element | Description |
|---|---|---|
| Constructors | GraphCanvasState.Constructor | No XML description is available. |
| Methods | GraphCanvasState.BeginConnection(Inno.Core.Graphs.GraphEndpoint) | Begins a connection drag from one output endpoint. |
| Methods | GraphCanvasState.BeginConnection(Inno.Core.Graphs.GraphEndpoint,Inno.Core.Graphs.GraphPortDirection) | Begins a connection drag from one endpoint. |
| Methods | GraphCanvasState.CancelConnection | Cancels any active connection drag. |
| Methods | GraphCanvasState.ClearSelection | Clears all transient node and edge selection. |
| Methods | GraphCanvasState.PanBy | Moves the canvas origin by screen-space pixels. |
| Methods | GraphCanvasState.SelectNodes | Replaces node selection. |
| Methods | GraphCanvasState.SetViewport | Restores persistent canvas navigation state with bounded zoom. |
| Methods | GraphCanvasState.ToggleNode | Toggles one node while preserving the remaining selection. |
| Methods | GraphCanvasState.ZoomAt | Changes zoom while preserving the graph point beneath a screen-space pivot. |
| Properties | GraphCanvasState.pan | Gets the graph-space origin mapped to canvas screen origin. |
| Properties | GraphCanvasState.pendingConnection | Gets the endpoint currently being connected, or null. |
| Properties | GraphCanvasState.pendingConnectionDirection | Gets the direction of P:Inno.Editor.Graph.GraphCanvasState.pendingConnection. |
| Properties | GraphCanvasState.selectedEdges | Gets selected edge identities. |
| Properties | GraphCanvasState.selectedNodes | Gets selected node identities. |
| Properties | GraphCanvasState.zoom | Gets the current graph-to-screen scale. |