Skip to content

Interface: PreviewState ​

Defined in: packages/core/src/session.ts:61

Properties ​

geometry ​

geometry: Geometry

Defined in: packages/core/src/session.ts:64

Geometry of the real output, whatever the stage shows.


image ​

image: RgbaBuffer

Defined in: packages/core/src/session.ts:62


version ​

version: number

Defined in: packages/core/src/session.ts:73

Version of the history the preview reflects.


viewGeometry ​

viewGeometry: Geometry

Defined in: packages/core/src/session.ts:71

Geometry of the log the preview image was rendered from. Equals geometry without a preview transform; with one (a tool showing the uncropped image) it describes the pixels on the stage, so the UI can map preview pixels back to the source and keep the view steady.