Viewport
Internally, React Flow maintains a coordinate system that is independent of the rest of
the page. The Viewport type tells you where in that system your flow is currently being
display at and how zoomed in or out it is.
Fields
Internally, React Flow maintains a coordinate system that is independent of the
rest of the page. The Viewport type tells you where in that system your flow
is currently being display at and how zoomed in or out it is.
x: numbery: numberzoom: number
Notes
- A
Transformhas the same properties as the viewport, but they represent different things. Make sure you don’t get them muddled up or things will start to look weird!