@mocanvas/editor · interface

TLRuntime

interface TLRuntime

The side effects a host may take over.


Methods · 3

hardReset(): Promise<void>

Throw away everything this origin has stored locally and reload.

Returns a promise so a host that has to await its own storage teardown can; the default implementation resolves immediately.

openWindow(url: string, target?: string): void

Open a URL. target follows window.open's second argument.

refreshPage(): void

Reload the page the editor is mounted in.

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.