Document Solutions Image Viewer
    Preparing search index...

    Type Alias LineObjectToolOptions

    Default style options for Line objects.

    type LineObjectToolOptions = {
        lineWidth?: number;
        lineColor?: string;
        opacity?: number;
        rotation?: number;
        startCapStyle?: LineCapStyle;
        endCapStyle?: LineCapStyle;
        capSize?: number;
        capColor?: string;
    }

    Properties

    lineWidth?: number

    Stroke width in pixels. When omitted, falls back to ToolsOptions.lineWidth.

    lineColor?: string

    Stroke color. When omitted, falls back to ToolsOptions.lineColor.

    opacity?: number

    Object opacity as a percentage (0–100).

    rotation?: number

    Object rotation in degrees.

    startCapStyle?: LineCapStyle

    Cap style applied to the start endpoint of the line.

    endCapStyle?: LineCapStyle

    Cap style applied to the end endpoint of the line.

    capSize?: number

    Size of the endpoint caps in pixels.

    capColor?: string

    Color of the endpoint caps. When omitted, matches the line color.