Function useDevicePixelRatio

  • Get the device pixel ratio, potentially rounded and capped. Will emit new values if it changes.

    Parameters

    Returns number

    The current device pixel ratio, or the default if none can be resolved