English
@eightkk/vue-weave / core / graphSwimlaneAt
Function: graphSwimlaneAt()
graphSwimlaneAt<
L>(lanes,target):L|undefined
Defined in: src/core/graphSwimlanes.ts:158
The lane whose band contains a point, or the centre of a rectangle such as a node box, or undefined when it lies in no band (in a gap between lanes or outside them all). Bands are half-open: a point on the far edge of one band belongs to the next. Use it to turn a node-move proposal into a lane change, or to reject a move out of every lane.
Type Parameters
L
L extends GraphSwimlaneBand
Parameters
lanes
readonly L[]
target
Returns
L | undefined