UserPreferencesManager
Table of contents
class UserPreferencesManager {}
Constructs a new instance of the UserPreferencesManager class
Parameters
| Name | Description |
|---|---|
| |
| |
Properties
systemColorScheme: import('@tldraw/state').Atom<'dark' | 'light', unknown>
updateUserPreferences: (userPreferences: Partial<TLUserPreferences>) => void
Methods
getAnimationSpeed(): number
getColor(): string
The speed at which the user can scroll by dragging toward the edge of the screen.
getEdgeScrollSpeed(): number
getId(): string
getIsDarkMode(): boolean
getIsDynamicResizeMode(): boolean
getIsPasteAtCursorMode(): boolean
getIsSnapMode(): boolean
getIsWrapMode(): boolean
getLocale(): string
getName(): string
getUserPreferences(): {
animationSpeed: number
color: string
colorScheme: 'dark' | 'light' | 'system' | undefined
id: string
isDarkMode: boolean
isDynamicResizeMode: boolean
isSnapMode: boolean
isWrapMode: boolean
locale: string
name: string
}

