Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly Abstract units

Readonly Abstract value

value: number

Methods

combine

  • Parameters

    Returns Length

Abstract compareTo

  • compareTo(that: unknown): number
  • Parameters

    • that: unknown

    Returns number

Abstract debug

  • debug(output: Output<unknown>): void
  • Parameters

    Returns void

divide

  • Parameters

    Returns Length

em

  • Parameters

    Returns EmLength

emValue

  • Parameters

    Returns number

Abstract equals

  • equals(that: unknown): boolean
  • Parameters

    • that: unknown

    Returns boolean

Abstract equivalentTo

  • equivalentTo(that: unknown, epsilon?: number): boolean
  • Parameters

    • that: unknown
    • Optional epsilon: number

    Returns boolean

Abstract hashCode

  • hashCode(): number
  • Returns number

interpolateTo

  • Parameters

    Returns Interpolator<Length>

  • Parameters

    • that: unknown

    Returns null | Interpolator<Length>

isDefined

  • isDefined(): boolean
  • Returns boolean

minus

  • Parameters

    Returns Length

negative

  • Parameters

    Returns Length

pct

  • Parameters

    Returns PctLength

pctValue

  • Parameters

    Returns number

plus

  • Parameters

    Returns Length

px

  • Parameters

    Returns PxLength

Abstract pxValue

  • Parameters

    Returns number

rem

  • Parameters

    Returns RemLength

remValue

  • Parameters

    Returns number

times

  • Parameters

    Returns Length

to

  • Parameters

    Returns Length

Abstract toCssValue

  • toCssValue(): null | CSSUnitValue
  • Returns null | CSSUnitValue

Abstract toString

  • toString(): string
  • Returns string

toValue

  • Returns Value

  • Parameters

    Returns number

Static create

  • Parameters

    Returns Length

Static em

  • Parameters

    • value: number

    Returns EmLength

Static emUnit

  • Parameters

    Returns number

Static form

  • Returns Form<Length, AnyLength>

Static fromAny

  • Parameters

    Returns Length

Static fromCssValue

  • fromCssValue(value: CSSStyleValue): Length
  • Parameters

    • value: CSSStyleValue

    Returns Length

Static fromValue

  • Parameters

    Returns null | Length

Static isAny

  • Parameters

    • value: unknown

    Returns value is AnyLength

Static parse

  • Parameters

    Returns Length

Static pct

  • Parameters

    • value: number

    Returns PctLength

Static pctUnit

  • Parameters

    Returns number

Static px

  • Parameters

    • value: number

    Returns PxLength

Static rem

  • Parameters

    • value: number

    Returns RemLength

Static remUnit

  • Parameters

    Returns number

Static unitless

  • Parameters

    • value: number

    Returns UnitlessLength

Static zero

  • Parameters

    Returns Length

Generated using TypeDoc