@braks/vue-flow / getTransformForBounds

Function: getTransformForBounds

getTransformForBounds(bounds, width, height, minZoom, maxZoom, padding?, offset?): Viewport

Parameters

NameTypeDefault value
boundsRectundefined
widthnumberundefined
heightnumberundefined
minZoomnumberundefined
maxZoomnumberundefined
paddingnumber0.1
offsetObjectundefined
offset.x?numberundefined
offset.y?numberundefined

Returns

Viewport