Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LengthUnit

Hierarchy

Index

Constructors

constructor

Properties

Static Readonly CENTIMETER

CENTIMETER: LengthUnit = ...

Static Readonly KILOMETER

KILOMETER: LengthUnit = ...

Static Readonly METER

METER: LengthUnit = ...

Static Readonly MILE

MILE: LengthUnit = ...

Static Readonly MILLIMETER

MILLIMETER: LengthUnit = ...

Static Protected Readonly UNITS

UNITS: Map<string, Unit> = ...

Static Protected Readonly UNIT_BASES

UNIT_BASES: Map<string, string> = ...

Static Readonly UNKNOWN

UNKNOWN: Unit = ...

Accessors

aliases

  • get aliases(): string[]

baseName

  • get baseName(): string

definitions

name

  • get name(): string
  • set name(name: string): void

prefixType

Protected prefixes

Methods

convert

  • convert<T>(value: T, target: string | Unit): T

createBaseDefinition

createDefinition

Protected findByName

  • findByName(name: string): Unit

specifier

Static convert

  • convert<T>(value: T, from: string | Unit, to: string | Unit): T

Static findByName

  • findByName(name: string, baseName?: string): Unit

Static fromJSON

  • fromJSON<T>(json: any): T

Static registerUnit

  • registerUnit(unit: Unit, override?: boolean): Unit