Search
Preparing search index...
The search index is not available
Physics Math
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
LaTeX
StyleContext
Class StyleContext
Hierarchy
StyleContext
Implements
StyleContextHolder
<
StyleContext
>
Index
Constructors
constructor
Properties
parent
style
Accessors
context
exponent
Style
number
Format
number
Precision
number
Specials
number
Trim
Trailing
Zero
Methods
apply
Unit
apply
Unit
Function
call
function
number
set
unit
unit
Fraction
unit
Symbol
variable
wrap
Constructors
constructor
new
Style
Context
(
style
:
Style
, parent
?:
StyleContext
, options
?:
any
)
:
StyleContext
Parameters
style:
Style
Optional
parent:
StyleContext
Default value
options:
any
= {}
Returns
StyleContext
Properties
Optional
Readonly
parent
parent
:
StyleContext
Readonly
style
style
:
Style
Accessors
context
get
context
(
)
:
this
Returns
this
exponent
Style
get
exponentStyle
(
)
:
StyleContext
Returns
StyleContext
number
Format
get
numberFormat
(
)
:
NumberFormat
Returns
NumberFormat
number
Precision
get
numberPrecision
(
)
:
number
Returns
number
number
Specials
get
numberSpecials
(
)
:
Map
<
number
,
string
>
Returns
Map
<
number
,
string
>
number
Trim
Trailing
Zero
get
numberTrimTrailingZero
(
)
:
boolean
Returns
boolean
Methods
apply
Unit
apply
Unit
(
s
:
string
, unit
:
IUnitBase
)
:
string
Parameters
s:
string
unit:
IUnitBase
Returns
string
apply
Unit
Function
apply
Unit
Function
(
s
:
string
, unit
:
IUnitBase
)
:
string
Parameters
s:
string
unit:
IUnitBase
Returns
string
call
call
(
f
:
IPFunction
, vars
?:
Variable
[]
)
:
string
Parameters
f:
IPFunction
Default value
vars:
Variable
[]
= []
Returns
string
function
function
(
f
:
IPFunction
)
:
string
Parameters
f:
IPFunction
Returns
string
number
number
(
n
:
number
)
:
string
Parameters
n:
number
Returns
string
set
set
(
params
:
StyleMap
)
:
StyleContext
Parameters
params:
StyleMap
Returns
StyleContext
unit
unit
(
unit
:
IUnitBase
)
:
string
Parameters
unit:
IUnitBase
Returns
string
unit
Fraction
unit
Fraction
(
numer
:
string
, denom
:
string
)
:
string
Parameters
numer:
string
denom:
string
Returns
string
unit
Symbol
unit
Symbol
(
unit
:
IUnitBase
)
:
string
Parameters
unit:
IUnitBase
Returns
string
variable
variable
(
v
:
string
)
:
string
Parameters
v:
string
Returns
string
wrap
wrap
(
params
:
StyleMap
)
:
StyleContext
Parameters
params:
StyleMap
Returns
StyleContext
Globals
Frame
Functionals
Index
La
TeX
Units
Utils
Number
Format
Style
Style
Context
constructor
parent
style
context
exponent
Style
number
Format
number
Precision
number
Specials
number
Trim
Trailing
Zero
apply
Unit
apply
Unit
Function
call
function
number
set
unit
unit
Fraction
unit
Symbol
variable
wrap
Style
Context
Holder
RGB6
Color
Style
FnFor
Style
FnMap
Style
Key
Style
Key
Data
Style
Key
Styler
Style
Map
Styler
Styler
Fn
DEFAULTS
INITIAL_
STYLE
LATEX_
STYLE_
KEYS
SPECIAL_
NUMBERS
exponent
Style
specials
chain
color
Styler
exponent
Error
format
Number
fractions
set
Style
special
Number
DEFAULT_
STYLE_
FNS
Generated using
TypeDoc