API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
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?: numberInitial 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 }.
Normalized (0..1) viewport rectangle within the canvas. Defaults to the full canvas (0, 0, 1, 1).
zoom?: numberInitial zoom level. A value of 2 halves the visible area. Defaults to 1.
Source