@mocanvas/mocanvas · function
declare function getTheme(source: ThemeSource | null | undefined): TLThemeThe theme source is currently painting with, or the built-in one.
Tolerant on purpose: a util's editor is typed but a test double, a
half-constructed editor or a detached exporter may not implement either
method, and a missing theme must degrade to the default rather than throw
inside a render.
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.