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

CoordinateExtent

The CoordinateExtent type describes a bounding box as [[minX, minY], [maxX, maxY]]. It’s used to constrain panning (translateExtent) and node movement (nodeExtent).

Type

type CoordinateExtent = [[number, number], [number, number]];