sai_nodes library
Declarative immutable graph canvas for Flutter. Runtime execution is host-owned.
Classes
- AddConnectionCommand
- AddNodeCommand
- AddSpaceCommand
- ConnectionExecutionVisual
- ConnectionGeometry
- ConnectionGeometryEngine
- ConnectionPresentation
- CreateCommentCommand
- CreateFrameCommand
- DeclarativeNodeDefinition
- DynamicFieldFamily
- DynamicPortFamily
- FieldFamily
- GraphCamera
- GraphChangeSet
- GraphCommand
- A command is a pure document transform. The controller resolves and commits it.
- GraphComment
- GraphConnection
- GraphConnectionViewModel
- GraphController
- GraphDataType
- GraphDiagnostic
- A diagnostic identifies an entity without attaching mutable state to it.
- GraphDocument
- The sole persisted source of truth. Runtime, camera and selection are external.
- GraphDocumentChange
- GraphDocumentValidator
- Structural checks only. Definition/port/type checks belong to resolution. Invalid references remain in the document for a host to display and repair.
- GraphEditorTheme
- GraphExecutionSnapshot
- GraphExecutionVisualController
- Accepts live, retained, remote or synthetic snapshots without executing nodes.
- GraphExecutionVisualSource
- GraphFragment
- GraphFrame
- GraphIndexes
- Rebuildable adjacency caches. No index is written into the document.
- GraphMinimap
- GraphNode
- GraphNodePickerRequest
- GraphNodeViewModel
- GraphPoint
- GraphRect
- GraphResolution
- GraphResolver
- GraphScene
- GraphSceneBuilder
- Reuses node geometry across camera/selection/execution changes and unchanged nodes.
- GraphSelection
- GraphSize
- GraphSpace
- GraphSpatialIndex
- Grid buckets accelerate viewport queries; oversized entities use one fallback set.
- GraphTransaction
- GraphTypeSystem
- MergeGraphSpaceCommand
- Adds an already-remapped fragment with one map copy per entity collection.
- MoveNodesCommand
- NodeDefinition
- NodeDefinitionContext
- NodeDefinitionLookup
- Registry changes invalidate controller resolution synchronously.
- NodeDefinitionRegistry
- NodeEditor
- Generic Flutter canvas. Semantic actions and document persistence belong to the host.
- NodeEditorState
- NodeExecutionVisual
- NodeGeometry
- NodeGeometryEngine
- NodePresentation
- NodeResolutionContext
- NodeStructure
- NodeVisualContext
- NodeVisualStyle
- PortFamily
- PortRef
- ReconnectConnectionCommand
- RemoveCommentCommand
- RemoveConnectionsCommand
- RemoveFrameCommand
- RemoveNodesCommand
- RemoveSpaceCommand
- ReplaceNodeTypeCommand
- ResizeNodesCommand
- ResolvedField
- ResolvedPort
- ScopedConnectionRef
- ScopedNodeRef
- SetNodeCollapsedCommand
- SetNodeTitleCommand
- SpaceCommand
- StaticFieldFamily
- StaticPortFamily
- UpdateCommentCommand
- UpdateConnectionPresentationCommand
- UpdateDocumentMetadataCommand
- UpdateFrameCommand
- UpdateNodeDataCommand
- UpdateNodePresentationCommand
Enums
Extensions
- GraphEditingOperations on GraphController
- Generic compound operations. Each helper uses the same transaction history.
Functions
-
freezeJson(
GraphJson value) → GraphJson - Takes ownership of nested JSON values without retaining mutable host aliases.
-
newGraphId(
) → String
Typedefs
- GraphDocumentPolicy = GraphDocument Function(GraphDocument before, GraphDocument candidate)
- Synchronous single-owner authoring engine. All persistent edits commit here.
-
GraphFieldWidgetBuilder
= Widget Function(BuildContext, GraphNodeViewModel, ResolvedField, Object?, ValueChanged<
Object?> ) - GraphIdFactory = String Function()
-
GraphJson
= Map<
String, Object?> - GraphNodeWidgetBuilder = Widget Function(BuildContext, GraphNodeViewModel)
- GraphPortWidgetBuilder = Widget Function(BuildContext, GraphNodeViewModel, ResolvedPort)