Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StyleContext

Hierarchy

  • StyleContext

Implements

Index

Constructors

constructor

Properties

Optional Readonly parent

parent: undefined | 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

applyUnitFunction

call

function

number

  • number(n: number): string

set

unit

unitFraction

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

    • numer: string
    • denom: string

    Returns string

unitProduct

  • unitProduct(terms: string[]): string

unitSymbol

variable

  • variable(v: string): string

wrap

Generated using TypeDoc