@mocanvas/editor · function
declare function getOverlayDisplayValues<D extends object = object>(util: TLOverlayDisplayValuesSource<D>): DThe paint one overlay util draws with, resolved against the live theme.
Call it inside render rather than caching the result: it reads the theme
through the editor's signals, so a call in a reactive context re-runs when
the theme or the colour mode changes, and a cached copy would not.
The type argument is given by the caller rather than inferred, matching the shape-side spelling:
``ts
const display = getOverlayDisplayValues<BrushOverlayUtilDisplayValues>(this)
``
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.