Taos API Reference
    Preparing search index...

    Interface DecalRasterStyle

    interface DecalRasterStyle {
        resolution?: number;
        paddingMeters?: number;
        fill?: string | null;
        stroke?: string | null;
        strokeWidthMeters?: number;
        pattern?: (
            ctx: CanvasRenderingContext2D,
            metersToPx: number,
            resolution: number,
        ) => void;
        lineColor?: string;
        lineWidthMeters?: number;
    }
    Index

    Properties

    resolution?: number

    Output texture resolution in pixels (square). Default 2048.

    paddingMeters?: number

    Padding around the content, in meters. Default 60.

    fill?: string | null

    Polygon fill (any CSS color). Default a translucent blue. Set to null for no fill.

    stroke?: string | null

    Polygon outline color. Default none.

    strokeWidthMeters?: number

    Polygon outline width (m). Default 6.

    pattern?: (
        ctx: CanvasRenderingContext2D,
        metersToPx: number,
        resolution: number,
    ) => void

    Optional pattern painted (clipped) inside the polygons — e.g. a hatch/grid. Receives the 2D context and the meters→pixel scale so it can draw at a real-world cadence.

    lineColor?: string

    Line (route/boundary) color. Default '#ff5a1a'.

    lineWidthMeters?: number

    Line width (m). Default 8.