Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

Camera2DLayout

A frame’s layout on the canvas’s drawing buffer, as the view measures it on each resize.

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.