@mocanvas/editor · interface

TLDefaultDisplayValues

interface TLDefaultDisplayValues

The concrete values a default shape paints with, once its style props have been resolved against a theme and a colour mode.

This is the *default* set. A shape util may declare its own richer set (a note's body size, a label's padding) — see getDisplayValues.


Properties · 9

color: string

Stroke / ink colour.

dash: string

The dash style, passed through so a renderer can pick its own technique.

dashArray: readonly number[]

Dash pattern in page units; empty for a continuous stroke.

fill: string

Interior colour, or "transparent" when the fill style is none.

fontFamily: string

CSS font stack.

fontSize: number

Font size in page units.

labelColor: string

Text drawn on the shape.

lineHeight: number

Line height in page units.

strokeWidth: number

Stroke width in page units.

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.