Skip to Content
✨ Svelte Flow 1.0 is here! Rewritten for Svelte 5 with many new features and improvements.

Viewport

Internally, Svelte 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

NameTypeDefault
xnumber
ynumber
zoomnumber

Notes

  • A Transform has 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!
Last updated on