japgolly.scalajs.react.vdom

CssNumber

Related Doc: package vdom

final class CssNumber extends AnyVal

Extends numbers to provide a bunch of useful methods, allowing you to write CSS-lengths in a nice syntax without resorting to strings.

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CssNumber
  2. AnyVal
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  2. final def ##(): Int

    Definition Classes
    Any
  3. def %: String

    A percentage value

  4. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  5. val _n: Any

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def ch: String

    This unit represents the width, or more precisely the advance measure, of the glyph '0' zero, the Unicode character U+0030 in the element's font.

    This unit represents the width, or more precisely the advance measure, of the glyph '0' zero, the Unicode character U+0030 in the element's font.

    MDN

  8. def cm: String

    One centimeter 10 millimeters.

    One centimeter 10 millimeters.

    MDN

  9. def deg: String

    An angle in degrees.

    An angle in degrees. One full circle is 360deg. E.g. 0deg, 90deg, 360deg.

  10. def em: String

    This unit represents the calculated font-size of the element.

    This unit represents the calculated font-size of the element. If used on the font-size property itself, it represents the inherited font-size of the element.

    MDN

  11. def ex: String

    This unit represents the x-height of the element's font.

    This unit represents the x-height of the element's font. On fonts with the 'x' letter, this is generally the height of lowercase letters in the font; 1ex ≈ 0.5em in many fonts.

    MDN

  12. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  13. def grad: String

    An angle in gradians.

    An angle in gradians. One full circle is 400grad. E.g. 0grad, 100grad, 400grad.

    MDN

  14. def in: String

    One inch 2.54 centimeters.

    One inch 2.54 centimeters.

    MDN

  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def mm: String

    One millimeter.

    One millimeter.

    MDN

  17. def pc: String

    One pica which is 12 points.

    One pica which is 12 points.

    MDN

  18. def pct: String

    A percentage value

  19. def pt: String

    One point which is 1/72 of an inch.

    One point which is 1/72 of an inch.

    MDN

  20. def px: String

    Relative to the viewing device.

    Relative to the viewing device. For screen display, typically one device pixel (dot) of the display.

    For printers and very high resolution screens one CSS pixel implies multiple device pixels, so that the number of pixel per inch stays around 96.

    MDN

  21. def rad: String

    An angle in radians.

    An angle in radians. One full circle is 2π radians which approximates to 6.2832rad. 1rad is 180/π degrees. E.g. 0rad, 1.0708rad, 6.2832rad.

    MDN

  22. def rem: String

    This unit represents the font-size of the root element e.g.

    This unit represents the font-size of the root element e.g. the font-size of the html element. When used on the font-size on this root element, it represents its initial value.

    MDN

  23. def toString(): String

    Definition Classes
    Any
  24. def turn: String

    The number of turns the angle is.

    The number of turns the angle is. One full circle is 1turn. E.g. 0turn, 0.25turn, 1turn.

    MDN

Inherited from AnyVal

Inherited from Any

Ungrouped