Skip to content
Project referenceDevelopmentEngine ccf7d03f
Authored
  • Neutral graph editing sessions, weak controllers, canvas interaction state and recoverable History.

Neutral graph editing sessions, weak controllers, canvas interaction state and recoverable History.

Read the linked task or ownership explanation before using the exact API below.

Edit a graph document explains persistent IDs, the 128-document bound, controller invalidation, atomic edits, gesture History and Missing/reload recovery. This layer has no Shader or ImGui semantics.

GraphEditorModule owns sessions through a resource collection and indexes them using its allocator and persistent document IDs. GraphDocumentController carries a weak identity; it cannot keep a session alive or operate on a later reopened generation. GraphCanvasState is transient presentation state, with frozen selection snapshots rather than exposed mutable sets.

Before/after graph data is encoded as bytes through EditorInteractions.history. Types, node instances, GPU objects and delegates do not enter History. Paste remapping is synchronous and part of the same atomic edit; a failing callback rolls back the whole change.

Reload uses the common reference-recovery transaction and validates complete graph data before publication. Rollback restores revision, dirty state and availability. The editable GraphDocument is not an immutable runtime snapshot; callbacks and compiled outputs need independent copies.

The source project defines the selected host declarations. Script projection and platform execution require their separate evidence.

Types and exact member contracts preserve captured declarations and source XML.

The compiler-selected script declarations are separate from this project’s host CLR surface. Read the script calling guide and the associated module contracts before using a projected member.

Project: Inno.Editor.Graph
Source: src/composition/editor/framework/Inno.Editor.Graph/Inno.Editor.Graph.csproj

Type API Description
GraphCanvasState engine Stores transient pan, zoom, selection and connection interaction state without ImGui dependencies.
GraphClipboardData engine Contains a neutral copied node fragment suitable for graph clipboard operations.
GraphDocumentController engine Applies neutral graph edits atomically and records every data mutation in reload-safe Editor History.
GraphEditorModule engine Owns active neutral graph document sessions resolved by reload-safe Editor History.
GraphCanvasState Editor Stores transient pan, zoom, selection and connection interaction state without ImGui dependencies.
GraphClipboardData Editor Contains a neutral copied node fragment suitable for graph clipboard operations.
GraphDocumentController Editor Applies neutral graph edits atomically and records every data mutation in reload-safe Editor History.
GraphEditorModule Editor Owns active neutral graph document sessions resolved by reload-safe Editor History.