Skip to content

charton API


charton API / @chart-on/core / index / DrawingTextStyle

Interface: DrawingTextStyle ​

Defined in: packages/core/src/drawing/types.ts:104

The text fields of a drawing style, for tools that draw text; DrawingStyle fits.

Properties ​

bold? ​

optional bold?: boolean

Defined in: packages/core/src/drawing/types.ts:107


fontSize? ​

optional fontSize?: number

Defined in: packages/core/src/drawing/types.ts:106

Size in css px; tools fall back to their own default (labels use the theme font size).


italic? ​

optional italic?: boolean

Defined in: packages/core/src/drawing/types.ts:108


textColor? ​

optional textColor?: string

Defined in: packages/core/src/drawing/types.ts:110

Text color over the tool's own.