Defines a line-dash configuration.

See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray and https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash for how line dashes work.

Setting line-dash to empty array [] resets the dashing.

interface StrokeOptions {
    dashArray?: number[];
    dashOffset?: number;
}

Properties

dashArray?: number[]
dashOffset?: number