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

    Type Alias CaptureOptions

    Options for MapEffects.capture.

    type CaptureOptions = {
        pixelRatio?: number;
    }
    Index
    pixelRatio?: number

    Device pixels per CSS pixel to render at. Defaults to the map's current ratio; 2 or 3 gives a print-grade capture of the same view. MapLibre clamps to its maxCanvasSize, so measure the ratio you got from the returned canvas rather than assuming.