@mocanvas/editor · interface
interface TLDeepLinkOptionsHow an editor turns its current state into a link, and back.
Properties · 4
debounceMs?: numberDebounce for onChange, in milliseconds. Defaults to 500.
getTarget?(): TLDeepLinkWhat to encode. Defaults to the current selection, else the viewport.
onChange?(url: URL): voidCalled when a registered listener produces a new link for the URL.
param?: stringQuery parameter the link is stored in. Defaults to "d".
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.