An object literal describing the configuration of the pattern.

interface ArrowPatternOptions {
    fill?: FillPatternOptions;
    forward?: boolean;
    height?: number;
    line?: OutlinePatternOptions;
    offset?: number;
    size?: number;
    type?: ArrowType;
}

Properties

An object that describes the fill of the arrow. If omitted, the pattern will be painted without a fill.

forward?: boolean

If true, the arrow is oriented towards the end of the line.

Default

true
height?: number

The height of the arrow, in pixels. Must be strictly greater than 0. If it is not set, the arrow uses a default height, depending on the arrow type(type).

An object that describes the outline of the wave. If no line or fill color is set, the pattern will be painted with a 1-pixel black outline.

offset?: number

The offset of the arrow, in pixels above the base line.

Default

0
size?: number

The size (~ length) of the arrow, in pixels.

Default

5
type?: ArrowType

The type of arrow. See ArrowType for illustrations of the different types of arrows.

Default

{@link ArrowType.REGULAR_FILLED}