Options
All
  • Public
  • Public/Protected
  • All
Menu

Module PercentLength

Index

Functions

convertToString

equals

parse

toDevicePixels

  • toDevicePixels(length: PercentLength, auto?: number, parentAvailableWidth?: px): number
  • Converts PercentLength unit to device pixels.

    Parameters

    • length: PercentLength

      The PercentLength to convert.

    • Optional auto: number

      Value to use for conversion of "auto". By default is Math.NaN.

    • Optional parentAvailableWidth: px

      Value to use as base when converting percent unit. By default is Math.NaN.

    Returns number

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method