Skip to content

Interface: PreviewState

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

Properties

geometry

geometry: Geometry

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

Geometry of the real output, whatever the stage shows.


image

image: RgbaBuffer

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


version

version: number

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

Version of the history the preview reflects.


viewGeometry

viewGeometry: Geometry

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

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.