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

FrameLayout

Where a 2D frame sits on the canvas, and what it shows.

Property Type Description
barHeight number -
barWidth number Buffer pixels the frame covers: the whole buffer when expanded, the crop’s rectangle when cropped.
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.