This is the documentation of version 0.59.0. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias ImagePixels

    Raw pixels in the shape of a DOM ImageData: RGBA bytes, row-major. Accepted by deriveMapColorsFromImage so an image decoded elsewhere (a worker, a test) can be themed without a canvas.

    type ImagePixels = {
        data: Uint8ClampedArray | Uint8Array | number[];
        height: number;
        width: number;
    }
    Index
    data: Uint8ClampedArray | Uint8Array | number[]
    height: number
    width: number