FlowConfig
The main configuration interface for the flow system.
This type defines all available configuration options for the diagram engine.
For most use cases, you should use NgDiagramConfig, which allows you to override only the properties you need.
Properties
Section titled “Properties”background
Section titled “background”background:
BackgroundConfig
Configuration for background behavior.
boxSelection
Section titled “boxSelection”boxSelection:
BoxSelectionConfig
Configuration for box selection behavior.
computeEdgeId()
Section titled “computeEdgeId()”computeEdgeId: () =>
string
Computes a unique ID for an edge.
Returns
Section titled “Returns”string
The edge’s unique ID.
computeNodeId()
Section titled “computeNodeId()”computeNodeId: () =>
string
Computes a unique ID for a node.
Returns
Section titled “Returns”string
The node’s unique ID.
debugMode
Section titled “debugMode”debugMode:
boolean
Enables or disables debug mode for the diagram. When enabled, additional console logs are printed.
Default
Section titled “Default”falseedgeRouting
Section titled “edgeRouting”edgeRouting:
EdgeRoutingConfig
Configuration for edge routing.
grouping
Section titled “grouping”grouping:
GroupingConfig
Configuration for node grouping.
linking
Section titled “linking”linking:
LinkingConfig
Configuration for linking (edge creation).
nodeRotation
Section titled “nodeRotation”nodeRotation:
NodeRotationConfig
Configuration for node rotation behavior.
resize
Section titled “resize”resize:
ResizeConfig
Configuration for node resizing.
selectionMoving
Section titled “selectionMoving”selectionMoving:
SelectionMovingConfig
Configuration for selection moving behavior.
shortcuts
Section titled “shortcuts”shortcuts:
ShortcutDefinition[]
Configuration for keyboard shortcuts.
snapping
Section titled “snapping”snapping:
SnappingConfig
Configuration for snapping behavior.
zIndex
Section titled “zIndex”zIndex:
ZIndexConfig
Configuration for z-index layering behavior.
zoom:
ZoomConfig
Configuration for zooming.