TLSessionStateSnapshot

See source code
Table of contents

The state of the editor instance, not including any document state.

interface TLSessionStateSnapshot {}

Properties

currentPageId

currentPageId: TLPageId

exportBackground

exportBackground: boolean

isDebugMode

isDebugMode: boolean

isFocusMode

isFocusMode: boolean

isGridMode

isGridMode: boolean

isToolLocked

isToolLocked: boolean

pageStates

pageStates: Array<{
  camera: {
    x: number
    y: number
    z: number
  }
  focusedGroupId: null | TLShapeId
  pageId: TLPageId
  selectedShapeIds: TLShapeId[]
}>

version

version: number

Prev
TLSelectionForegroundProps
Next
TLShapeIndicatorProps