Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StyleContext

Hierarchy

  • StyleContext

Implements

Index

Constructors

constructor

Properties

Optional Readonly parent

parent: StyleContext

Readonly style

style: Style

Accessors

context

  • get context(): this

exponentStyle

numberFormat

numberPrecision

  • get numberPrecision(): number

numberSpecials

  • get numberSpecials(): Map<number, string>

numberTrimTrailingZero

  • get numberTrimTrailingZero(): boolean

Methods

applyUnit

  • applyUnit(s: string, unit: IUnitBase): string

applyUnitFunction

  • applyUnitFunction(s: string, unit: IUnitBase): string

call

function

number

  • number(n: number): string

set

unit

unitFraction

  • unitFraction(numer: string, denom: string): string
  • Parameters

    • numer: string
    • denom: string

    Returns string

unitSymbol

variable

  • variable(v: string): string

wrap

Generated using TypeDoc