PolylineProperties

Interface PolylineProperties

interface PolylineProperties {
    color?: [number, number, number, number];
    enabled?: boolean;
    sequence?: [number, number, number, number];
    transform?: [
        number,
        number,
        number,
        number,
        number,
        number,
        number,
        number,
        number,
        number,
        number,
        number,
        number,
        number,
        number,
        number,
    ];
    useWorldUnits?: boolean;
    width?: number;
}

Properties

color?: [number, number, number, number]

Specifies the color of the Polyline.

[0,0,0,1]
enabled?: boolean

Specifies the enabled state of the Polyline.

false
sequence?: [number, number, number, number]

Specifies a dash-gap sequence of the Polyline as [dash, gap, dash, gap], to allow line styles (dotted, dashed, etc.). If useWorldUnits is set to true, the values are interpreted in world space (meters), otherwise in screen space (pixels).

[0,0,0,0]
transform?: [
    number,
    number,
    number,
    number,
    number,
    number,
    number,
    number,
    number,
    number,
    number,
    number,
    number,
    number,
    number,
    number,
]

Specifies the transform matrix of the Polyline.

identity
useWorldUnits?: boolean

Specifies how the width and sequence values are interpreted. If set to true, the values are interpreted in world space (meters), otherwise in screen space (pixels).

false
width?: number

Specifies the width of the Polyline. If useWorldUnits is set to true, the value is interpreted in world space (meters), otherwise in screen space (pixels).

1