getDefaultUserPresence

See source code
function getDefaultUserPresence(
  store: TLStore,
  user: TLPresenceUserInfo
): {
  brush: import('.').BoxModel | null
  camera: {
    x: number
    y: number
    z: number
  }
  chatMessage: string
  color: string
  currentPageId: import('.').TLPageId
  cursor: {
    rotation: number
    type: string
    x: number
    y: number
  }
  followingUserId: null | string
  lastActivityTimestamp: number
  meta: {}
  screenBounds: import('.').BoxModel
  scribbles: import('.').TLScribble[]
  selectedShapeIds: import('.').TLShapeId[]
  userId: string
  userName: string
} | null

Parameters

NameDescription

store

user

Returns

{
  brush: import('.').BoxModel | null
  camera: {
    x: number
    y: number
    z: number
  }
  chatMessage: string
  color: string
  currentPageId: import('.').TLPageId
  cursor: {
    rotation: number
    type: string
    x: number
    y: number
  }
  followingUserId: null | string
  lastActivityTimestamp: number
  meta: {}
  screenBounds: import('.').BoxModel
  scribbles: import('.').TLScribble[]
  selectedShapeIds: import('.').TLShapeId[]
  userId: string
  userName: string
} | null
Prev
getDefaultTranslationLocale
Next
idValidator