@mocanvas/editor · interface

TLDisplayValuesSource

interface TLDisplayValuesSource<S = TLStyledShape, D extends object = TLDefaultDisplayValues>

What getDisplayValues needs from a shape util: the editor it belongs to, its options (which may carry getDefaultDisplayValues) and its optional getCustomDisplayValues override.

Structural on purpose — a util looked up by string from editor.shapeUtils cannot carry its display-value type in the generic, so callers pass the two type arguments themselves.


Properties · 3

editor: unknown
getCustomDisplayValues?: TLGetCustomDisplayValues<S, D> | undefined
options?: {

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.