@mocanvas/mocanvas · interface

ShapeOptionsWithDisplayValues

interface ShapeOptionsWithDisplayValues<T extends UnknownShape = UnknownShape, D extends object = TLDefaultDisplayValues> extends ShapeUtilOptions<T, D>

A shape util's options, including how it resolves its style props into the concrete values it paints with.

The second type argument is the util's own display values: a util that only paints the shared set leaves it at TLDefaultDisplayValues, and one that adds its own — a note's body size, a label's padding — names its own interface here and gets it back from getDisplayValues.

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.