Interface: FlatViewParams

FlatViewParams

Properties:
Name Type Description
x number

The horizontal coordinate of the image point displayed at the viewport center, in the [0, 1] range. When x === 0.5, the image is centered horizontally. When x === 0, the left edge of the image is at the viewport center. When x === 1, the right edge of the image is at the viewport center.

y number

The vertical coordinate of the image point displayed at the viewport center, in the [0, 1] range. When y === 0.5, the image is centered vertically. When y === 0, the top edge of the image is at the viewport center. When y === 1, the bottom edge of the image is at the viewport center.

zoom number

The horizontal zoom, in the [0, ∞) range. When zoom === 1, the viewport is as wide as the image. When zoom < 1, the image is zoomed in. When zoom > 1, the image is zoomed out.

mediaAspectRatio number

The image aspect ratio. When mediaAspectRatio === 1, the image width equals its height. When mediaAspectRatio < 1, the image width is less than its height. When mediaAspectRatio > 1, the image height is less than its width.