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

    Class SpriteTint

    Post-processing operation to apply a color tint to an image

    Supports query parameters: color, tint, tintColor

    const op = new SpriteTint();
    // Use with params: ?color=red or ?tint=#ff0000

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Create a new sprite tint operation

      Parameters

      • id: string = 'spriteTint'

        Optional identifier for debugging

      Returns SpriteTint

    Properties

    id?: string

    Unique identifier or descriptive name

    Methods

    • Execute the post-processing operation

      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