Skip to Content
Vue Flow v2 is here and joins xyflow! Read more here →
ReferenceTypes

ConnectionLineProps

The ConnectionLineProps type is the set of props Vue Flow passes to a custom connection line through the #connection-line slot — the from* / to* coordinates and positions, the source node and handle, the pointer, and the connection status.

Fields

NameTypeDefault
fromXnumber

X start position of the connection line

fromYnumber

Y start position of the connection line

fromPositionPosition

the side of the start handle

toXnumber

X end position of the connection line (the current pointer)

toYnumber

Y end position of the connection line (the current pointer)

toPositionPosition

the side of the end handle

fromNodeInternalNode<NodeType>

the node the connection started from

fromHandleHandleBounds | null

the handle the connection started from (not the DOM element)

toNodeInternalNode<NodeType> | null

the node the connection currently ends on, or null

toHandleHandleBounds | null

the handle the connection currently ends on (not the DOM element), or null

markerStartstring

marker url

markerEndstring

marker url

connectionStatusConnectionStatus | null

If there is an isValidConnection callback, this prop will be set to "valid" or "invalid" based on the return value of that callback. Otherwise, it will be null.

pointerXYPosition

the raw pointer position in flow coordinates (unsnapped, unlike toX/toY)