Camera2DLayout
A frame’s layout on the canvas’s drawing buffer, as the view measures it on each resize.
Extends
Section titled “Extends”Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
barHeight |
number |
- |
barWidth |
number |
Buffer pixels the frame covers: the whole buffer when expanded, the crop’s rectangle when cropped. |
bufferHeight |
number |
- |
bufferWidth |
number |
- |
frameHeight |
number |
- |
frameWidth |
number |
World texels the frame shows across and up. |
originX |
number |
Buffer pixels from the buffer’s lower left to the frame’s, below 0 where a cropped frame is larger than the buffer. |
originY |
number |
- |
target |
FrameTarget | null |
The target, or null where the frame draws straight to the canvas: smooth and expanded. |
zoom |
number |
The zoom the frame was measured at. |