Interface DevicePixelRatioOptions

interface DevicePixelRatioOptions {
    defaultDpr?: number;
    maxDpr?: number;
    round?: boolean;
}

Properties

defaultDpr?: number

Default DPR to use if browser does not support the devicePixelRatio property, or when rendering on server

Default Value

1

maxDpr?: number

Maximum DPR to return (set to 2 to only generate 1 and 2)

Default Value

3

round?: boolean

Whether or not to round the number down to the closest integer

Default Value

true