@mocanvas/editor · type
type TLGetDefaultOverlayDisplayValues<D extends object> = (editor: unknown, theme: TLTheme, colorMode: TLColorMode) => DHow an overlay util resolves its default paint.
Takes no shape — an overlay is not attached to one — so the theme and the
colour mode are the whole input. editor is passed through untyped for the
same reason it is in the shape version: the editor package cannot name the
concrete Editor here without a cycle, and a util that needs it casts.
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.