GraphApi<T> extension
Graph-level operations for NodeFlowController.
This extension provides methods for:
- Loading and exporting complete graphs
- Graph analysis and validation
- Layout and arrangement operations
- Batch selection operations
- Theme and event configuration
- Keyboard shortcuts
- on
Properties
- nodesBounds → Rect
-
Available on NodeFlowController<
Gets the bounding rectangle that encompasses all nodes in the graph.T> , provided by the GraphApi extensionno setter
Methods
-
arrangeNodesHierarchically(
) → void -
Available on NodeFlowController<
Arranges nodes hierarchically by type.T> , provided by the GraphApi extension -
arrangeNodesInGrid(
{double spacing = 150.0}) → void -
Available on NodeFlowController<
Arranges all nodes in a grid layout.T> , provided by the GraphApi extension -
clearGraph(
) → void -
Available on NodeFlowController<
Clears the entire graph, removing all nodes, connections, annotations, and selections.T> , provided by the GraphApi extension -
clearSelection(
) → void -
Available on NodeFlowController<
Clears all selections (nodes, connections, and annotations).T> , provided by the GraphApi extension -
detectCycles(
) → List< List< String> > -
Available on NodeFlowController<
Detects cycles in the graph using depth-first search.T> , provided by the GraphApi extension -
exportGraph(
) → NodeGraph< T> -
Available on NodeFlowController<
Exports the current graph state including all nodes, connections, annotations, and viewport.T> , provided by the GraphApi extension -
getOrphanNodes(
) → List< Node< T> > -
Available on NodeFlowController<
Gets all nodes that have no connections.T> , provided by the GraphApi extension -
hitTestAnnotations(
Offset graphPosition) → Annotation? -
Available on NodeFlowController<
Hit test annotations at a specific position.T> , provided by the GraphApi extension -
hitTestConnections(
Offset graphPosition) → String? -
Available on NodeFlowController<
Tests if a point hits any connection.T> , provided by the GraphApi extension -
hitTestPort(
Offset graphPosition) → ({bool isOutput, String nodeId, String portId})? -
Available on NodeFlowController<
Hit test for a port at the given graph position.T> , provided by the GraphApi extension -
invertSelection(
) → void -
Available on NodeFlowController<
Inverts the current node selection.T> , provided by the GraphApi extension -
loadGraph(
NodeGraph< T> graph) → void -
Available on NodeFlowController<
Loads a complete graph into the controller.T> , provided by the GraphApi extension -
selectAllConnections(
) → void -
Available on NodeFlowController<
Selects all connections in the graph.T> , provided by the GraphApi extension -
selectAllNodes(
) → void -
Available on NodeFlowController<
Selects all nodes in the graph.T> , provided by the GraphApi extension -
selectNodesByType(
String type) → void -
Available on NodeFlowController<
Selects all nodes of a specific type.T> , provided by the GraphApi extension -
selectSpecificNodes(
List< String> nodeIds) → void -
Available on NodeFlowController<
Selects only the specified nodes, clearing any existing selection.T> , provided by the GraphApi extension -
setEvents(
NodeFlowEvents< T> events) → void -
Available on NodeFlowController<
Update the events that the controller will use.T> , provided by the GraphApi extension -
setTheme(
NodeFlowTheme theme) → void -
Available on NodeFlowController<
Set the theme and update the connection painter.T> , provided by the GraphApi extension -
showShortcutsDialog(
BuildContext context) → void -
Available on NodeFlowController<
Shows the keyboard shortcuts dialog.T> , provided by the GraphApi extension