@mocanvas/editor · interface

TLDeepLinkOptions

interface TLDeepLinkOptions

How an editor turns its current state into a link, and back.


Properties · 4

debounceMs?: number

Debounce for onChange, in milliseconds. Defaults to 500.

getTarget?(): TLDeepLink

What to encode. Defaults to the current selection, else the viewport.

onChange?(url: URL): void

Called when a registered listener produces a new link for the URL.

param?: string

Query 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.