BlockSuite API Documentation / @blocksuite/affine-gfx-turbo-renderer / RenderingState
Type Alias: RenderingState
RenderingState =
"inactive"
|"pending"
|"zooming"
|"rendering"
|"ready"
Defined in: affine/gfx/turbo-renderer/src/types.ts:39
Represents the rendering state of the ViewportTurboRenderer
- inactive: Renderer is not active
- pending: Bitmap is invalid or not yet available, falling back to DOM rendering
- zooming: Zooming in or out, will use fast canvas placeholder rendering
- rendering: Currently rendering to a bitmap (async operation in progress)
- ready: Bitmap is valid and rendered, DOM elements can be safely removed