FreakingGenius - v0.1.0
    Preparing search index...

    Interface RectPrimitive

    An axis-aligned rectangle, optionally filled.

    interface RectPrimitive {
        fillColor: string | null;
        height: number;
        id: string;
        kind: "rect";
        position: Point;
        strokeColor: string;
        strokeWidth: number;
        width: number;
    }
    Index

    Properties

    fillColor: string | null

    Fill colour, or null for a transparent interior.

    height: number

    Height in logical pixels.

    id: string

    Unique primitive identifier (UUID v4).

    kind: "rect"
    position: Point

    Top-left corner in canvas pixels.

    strokeColor: string

    Border colour.

    strokeWidth: number

    Border width in logical pixels.

    width: number

    Width in logical pixels.