Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UnitlessLength

Hierarchy

Index

Constructors

constructor

  • Parameters

    • value: number

    Returns UnitlessLength

Properties

Readonly value

value: number

Accessors

units

  • Returns LengthUnits

Methods

combine

compareTo

  • compareTo(that: unknown): number
  • Parameters

    • that: unknown

    Returns number

debug

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

    Returns void

divide

  • Parameters

    Returns Length

em

  • Parameters

    Returns EmLength

emValue

  • Parameters

    Returns number

equals

  • equals(that: unknown): boolean
  • Parameters

    • that: unknown

    Returns boolean

equivalentTo

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

    • that: unknown
    • Optional epsilon: number

    Returns boolean

hashCode

  • hashCode(): number
  • Returns number

interpolateTo

isDefined

  • isDefined(): boolean
  • Returns boolean

minus

negative

pct

  • Parameters

    Returns PctLength

pctValue

  • Parameters

    Returns number

plus

px

  • Parameters

    Returns PxLength

pxValue

  • Parameters

    Returns number

rem

  • Parameters

    Returns RemLength

remValue

  • Parameters

    Returns number

times

  • Parameters

    Returns Length

to

  • Parameters

    Returns Length

toCssValue

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

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

Static fromAny

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

  • Returns UnitlessLength

Generated using TypeDoc