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

SnapGrid

The SnapGrid type is an [x, y] step pair that nodes snap to while dragging when the snapToGrid prop is enabled.

Type

type SnapGrid = [number, number];