CameraState
import type { CameraState } from 'pixi-silk/ui/camera';
The reactive view of a Camera: where it is now, animations included.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
height | ReadSignal<number> | Element height in CSS pixels. Follows resizes where ResizeObserver exists. | ui/camera.ts:92 |
panning | ReadSignal<boolean> | True while the user drags the view. | ui/camera.ts:88 |
width | ReadSignal<number> | Element width in CSS pixels. Follows resizes where ResizeObserver exists. | ui/camera.ts:90 |
x | ReadSignal<number> | Screen x of the world’s origin, in CSS pixels from the element’s left edge. | ui/camera.ts:84 |
y | ReadSignal<number> | Screen y of the world’s origin, in CSS pixels from the element’s top edge. | ui/camera.ts:86 |
zoom | ReadSignal<number> | Scale of the world. 1 is 100%. | ui/camera.ts:82 |