API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceViewOptions

@codexo/exojs / rendering / stable

Options for View.from.

5
props
0
methods
0
events
Import
import { ViewOptions } from '@codexo/exojs'

Options for View.from.

Properties5
center?: { x: number; y: number }
World-space center position. Defaults to { x: 0, y: 0 }.
rotation?: number
Initial rotation in degrees. Defaults to 0.
size?: { height: number; width: number }
Visible area size in world units (before zoom is applied). Defaults to { width: 0, height: 0 }.
zoom?: number
Initial zoom level. A value of 2 halves the visible area. Defaults to 1.
Source