maplibre-gl-svg-sprite - v0.2.0
    Preparing search index...

    Type Alias Postprocess

    Postprocess: (
        ctx: CanvasRenderingContext2D,
        w: number,
        h: number,
        params: Record<string, string>,
    ) => void | Promise<void>

    Function signature for canvas post-processing operations

    Type Declaration

      • (
            ctx: CanvasRenderingContext2D,
            w: number,
            h: number,
            params: Record<string, string>,
        ): void | Promise<void>
      • Parameters

        • ctx: CanvasRenderingContext2D

          Canvas 2D rendering context

        • w: number

          Width in CSS pixels

        • h: number

          Height in CSS pixels

        • params: Record<string, string>

          Query parameters from the image request

        Returns void | Promise<void>

        void or Promise for async operations