Documentation menu

Interface

DrawingStyle

Properties

NameTypeDescription
line?Color

Line color. Default #2962ff.

lineWidth?number

CSS px. Default 1.

lineDash?LineStyle

Default 'solid'.

fill?Color

Fill of shapes and zones. Default #2962ff at 16% opacity.

text?Color

Text color. Default #2962ff.

fontSize?number

CSS px. Default 12.

Declaration

export interface DrawingStyle {
    line?: Color;
    lineWidth?: number;
    lineDash?: LineStyle;
    fill?: Color;
    text?: Color;
    fontSize?: number;
}

Used by

DrawingToolCtx, DrawingData, Drawings