Skip to content

Documentation / @finchart/tools / DRAWING_STYLE_SPEC

Variable: DRAWING_STYLE_SPEC ​

const DRAWING_STYLE_SPEC: object

Defined in: tools/src/tools.ts:321

The CSS variables a drawing owns. A public export — a consumer needs to be able to read the defaults here, without opening the source (in line with core's DEFAULT_*_STYLE). Keeps the angle brackets inside backticks — outside them, the API-doc generator reads them as an HTML tag and the build breaks.

Type Declaration ​

color ​

readonly color: object

color.css ​

readonly css: "--chart-drawing" = "--chart-drawing"

color.fallback ​

readonly fallback: "#6366f1" = "#6366f1"

dashArray ​

readonly dashArray: object

dashArray.css ​

readonly css: "--chart-drawing-dash" = "--chart-drawing-dash"

dashArray.fallback ​

readonly fallback: "" = ""

width ​

readonly width: object

width.css ​

readonly css: "--chart-drawing-width" = "--chart-drawing-width"

width.fallback ​

readonly fallback: 1.5 = 1.5