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

Viewport

The Viewport type describes the current pan and zoom of the flow as x, y, and zoom. Read it from useVueFlow().viewport, bind it with v-model:viewport, or set it with the viewport helpers.

Fields

NameTypeDefault
xnumber
ynumber
zoomnumber