Skip to content

@vue-flow/monorepo • Docs


Function: getTransformForBounds() ​

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

Parameters ​

• bounds: Rect

• width: number

• height: number

• minZoom: number

• maxZoom: number

• padding: number = 0.1

• offset = ...

• offset.x?: number

• offset.y?: number

Returns ​

ViewportTransform

Released under the MIT License.