Appearance
@vue-flow/monorepo • Docs
Interface: FlowProps
Properties
applyDefault?
optionalapplyDefault:boolean
apply default change handlers for position, dimensions, adding/removing nodes. set this to false if you want to apply the changes manually
Deprecated
- will be removed in the next major version, changes will not be auto applied in the future
autoConnect?
optionalautoConnect:boolean|Connector
automatically create an edge when connection is triggered
Deprecated
- will be removed in the next major version
autoPanOnConnect?
optionalautoPanOnConnect:boolean
autoPanOnNodeDrag?
optionalautoPanOnNodeDrag:boolean
autoPanSpeed?
optionalautoPanSpeed:number
connectionLineOptions?
optionalconnectionLineOptions:ConnectionLineOptions
connectionLineStyle?
optionalconnectionLineStyle:null|CSSProperties
Deprecated
use ConnectionLineOptions.style
connectionLineType?
optionalconnectionLineType:null|ConnectionLineType
Deprecated
use ConnectionLineOptions.type
connectionMode?
optionalconnectionMode:ConnectionMode
connectionRadius?
optionalconnectionRadius:number
connectOnClick?
optionalconnectOnClick:boolean
allow connection with click handlers, i.e. support touch devices
defaultEdgeOptions?
optionaldefaultEdgeOptions:DefaultEdgeOptions
does not work for the addEdge utility!
defaultMarkerColor?
optionaldefaultMarkerColor:string
defaultViewport?
optionaldefaultViewport:Partial<ViewportTransform>
deleteKeyCode?
optionaldeleteKeyCode:null|KeyFilter
disableKeyboardA11y?
optionaldisableKeyboardA11y:boolean
edges?
optionaledges:Edge[]
edgesFocusable?
optionaledgesFocusable:boolean
edgesUpdatable?
optionaledgesUpdatable:EdgeUpdatable
edgeTypes?
optionaledgeTypes:EdgeTypesObject
either use the edgeTypes prop to define your edge-types or use slots (<template #edge-mySpecialType="props">)
edgeUpdaterRadius?
optionaledgeUpdaterRadius:number
elementsSelectable?
optionalelementsSelectable:boolean
elevateEdgesOnSelect?
optionalelevateEdgesOnSelect:boolean
elevates edges when selected and applies z-Index to put them above their nodes
elevateNodesOnSelect?
optionalelevateNodesOnSelect:boolean
elevates nodes when selected and applies z-Index + 1000
fitViewOnInit?
optionalfitViewOnInit:boolean
will be renamed to fitView
id?
optionalid:string
isValidConnection?
optionalisValidConnection:null|ValidConnectionFunc
maxZoom?
optionalmaxZoom:number
minZoom?
optionalminZoom:number
modelValue?
optionalmodelValue:Elements<any,any,any,any>
all elements (nodes + edges)
Deprecated
use FlowProps.nodes & FlowProps.nodes instead
multiSelectionKeyCode?
optionalmultiSelectionKeyCode:null|KeyFilter
nodeDragThreshold?
optionalnodeDragThreshold:number
nodeExtent?
optionalnodeExtent:CoordinateExtent|CoordinateExtentRange
nodes?
optionalnodes:Node<any,any,string>[]
nodesConnectable?
optionalnodesConnectable:boolean
nodesDraggable?
optionalnodesDraggable:boolean
nodesFocusable?
optionalnodesFocusable:boolean
nodeTypes?
optionalnodeTypes:NodeTypesObject
either use the nodeTypes prop to define your node-types or use slots (<template #node-mySpecialType="props">)
noDragClassName?
optionalnoDragClassName:string
noPanClassName?
optionalnoPanClassName:string
noWheelClassName?
optionalnoWheelClassName:string
onlyRenderVisibleElements?
optionalonlyRenderVisibleElements:boolean
panActivationKeyCode?
optionalpanActivationKeyCode:null|KeyFilter
paneClickDistance?
optionalpaneClickDistance:number
Distance that the mouse can move between mousedown/up that will trigger a click
Default
ts
0panOnDrag?
optionalpanOnDrag:boolean|number[]
move pane on drag, replaced prop paneMovable
panOnScroll?
optionalpanOnScroll:boolean
panOnScrollMode?
optionalpanOnScrollMode:PanOnScrollMode
panOnScrollSpeed?
optionalpanOnScrollSpeed:number
preventScrolling?
optionalpreventScrolling:boolean
If set to false, scrolling inside the viewport will be disabled and instead the page scroll will be used
selectionKeyCode?
optionalselectionKeyCode:null|false|KeyFilter
selectionMode?
optionalselectionMode:SelectionMode
selectNodesOnDrag?
optionalselectNodesOnDrag:boolean
snapGrid?
optionalsnapGrid:SnapGrid
snapToGrid?
optionalsnapToGrid:boolean
translateExtent?
optionaltranslateExtent:CoordinateExtent
zoomActivationKeyCode?
optionalzoomActivationKeyCode:null|KeyFilter
zoomOnDoubleClick?
optionalzoomOnDoubleClick:boolean
zoomOnPinch?
optionalzoomOnPinch:boolean
zoomOnScroll?
optionalzoomOnScroll:boolean