Skip to content
EliteChart

StrokeOpts

Documentation


Documentation / @elitechart/core / StrokeOpts

Defined in: paint/types.ts:50

Line-style options. Use dash for dashed/dotted strokes.

Example

code
const dashed: StrokeOpts = { width: 1, dash: [6, 4] };
const solid: StrokeOpts = { width: 2, lineCap: 'round' };

Properties

dash?

code
readonly optional dash?: readonly number[];

Defined in: paint/types.ts:52


lineCap?

code
readonly optional lineCap?: "butt" | "round" | "square";

Defined in: paint/types.ts:53


lineJoin?

code
readonly optional lineJoin?: "round" | "miter" | "bevel";

Defined in: paint/types.ts:54


width?

code
readonly optional width?: number;

Defined in: paint/types.ts:51