@mocanvas/editor · function
declare function setUserPreferences(next: UserPreferencesState): voidReplace the local person's preferences, and persist them.
Takes the whole object rather than a patch, matching CurrentUser: a patch API here would quietly disagree with the controlled form, where the host owns the object and an absent key means "use the default".
Mentioned here
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.