💡 This is the legacy site for v11. If you are looking for the latest docs, please visit React Flow
Reference
CoordinateExtent

CoordinateExtent

Source on GitHub (opens in a new tab)

A coordinate extent represents two points in a coordinate system: one in the top left corner and one in the bottom right corner. It is used to represent the bounds of nodes in the flow or the bounds of the viewport.

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

Notes

  • Props that expect a CoordinateExtent usually default to [[-∞, -∞], [+∞, +∞]] to represent an unbounded extent.