Trevixal API
    Preparing search index...

    Interface DrawingShape

    interface DrawingShape {
        color: string;
        kind: DrawingTool;
        points?: readonly (readonly [number, number])[];
        text?: string;
        width: number;
        x1?: number;
        x2?: number;
        y1?: number;
        y2?: number;
    }
    Index
    color: string
    points?: readonly (readonly [number, number])[]

    A pen stroke's points.

    text?: string
    width: number

    Stroke width, in the drawing's units.

    x1?: number

    Where a line, arrow, box or ellipse starts and ends; a text's corner is x1, y1.

    x2?: number
    y1?: number
    y2?: number