@tspro/ts-utils-lib
    Preparing search index...

    Function toPx

    • Convert input to pixels on a device. Input value is in html style form containing number followed by unit (e.g. "10px"). Supported units are "mm", "cm", "in", "inch", "em" and "px".

      Parameters

      • input: string | number

        Input value.

      Returns number

      • Pixels.