sesaparcours
Preparing search index...
outils/calculatrice/Calculatrice
<internal>
UnitCtor
Interface UnitCtor
interface
UnitCtor
{
new
UnitCtor
(
value
:
number
|
boolean
|
BigNumber
|
Fraction
|
Complex
,
name
:
string
,
)
:
Unit
;
BASE_DIMENSIONS
:
string
[]
;
BASE_UNITS
:
Record
<
string
,
BaseUnit
>
;
PREFIXES
:
Record
<
string
,
UnitPrefix
>
;
UNIT_SYSTEMS
:
Record
<
UnitSystemName
,
Record
<
string
,
{
prefix
:
UnitPrefix
;
unit
:
Unit
}
>
,
>
;
UNITS
:
Record
<
string
,
Unit
>
;
createUnit
(
obj
:
Record
<
string
,
string
|
Unit
|
UnitDefinition
>
,
options
?:
{
override
:
boolean
}
,
)
:
Unit
;
createUnitSingle
(
name
:
string
,
definition
:
string
|
Unit
|
UnitDefinition
,
)
:
Unit
;
fromJSON
(
json
:
MathJSON
)
:
Unit
;
getUnitSystem
()
:
UnitSystemName
;
isValidAlpha
(
c
:
string
)
:
boolean
;
isValuelessUnit
(
name
:
string
)
:
boolean
;
parse
(
str
:
string
)
:
Unit
;
setUnitSystem
(
name
:
UnitSystemName
)
:
void
;
}
Hierarchy (
View Summary
)
UnitStatic
UnitCtor
Index
Constructors
constructor
Properties
BASE_
DIMENSIONS
BASE_
UNITS
PREFIXES
UNIT_
SYSTEMS
UNITS
Methods
create
Unit
create
Unit
Single
from
JSON
get
Unit
System
is
Valid
Alpha
is
Valueless
Unit
parse
set
Unit
System
Constructors
constructor
new
UnitCtor
(
value
:
number
|
boolean
|
BigNumber
|
Fraction
|
Complex
,
name
:
string
,
)
:
Unit
Parameters
value
:
number
|
boolean
|
BigNumber
|
Fraction
|
Complex
name
:
string
Returns
Unit
Properties
BASE_
DIMENSIONS
BASE_DIMENSIONS
:
string
[]
BASE_
UNITS
BASE_UNITS
:
Record
<
string
,
BaseUnit
>
PREFIXES
PREFIXES
:
Record
<
string
,
UnitPrefix
>
UNIT_
SYSTEMS
UNIT_SYSTEMS
:
Record
<
UnitSystemName
,
Record
<
string
,
{
prefix
:
UnitPrefix
;
unit
:
Unit
}
>
,
>
UNITS
UNITS
:
Record
<
string
,
Unit
>
Methods
create
Unit
createUnit
(
obj
:
Record
<
string
,
string
|
Unit
|
UnitDefinition
>
,
options
?:
{
override
:
boolean
}
,
)
:
Unit
Parameters
obj
:
Record
<
string
,
string
|
Unit
|
UnitDefinition
>
Optional
options
:
{
override
:
boolean
}
Returns
Unit
create
Unit
Single
createUnitSingle
(
name
:
string
,
definition
:
string
|
Unit
|
UnitDefinition
)
:
Unit
Parameters
name
:
string
definition
:
string
|
Unit
|
UnitDefinition
Returns
Unit
from
JSON
fromJSON
(
json
:
MathJSON
)
:
Unit
Parameters
json
:
MathJSON
Returns
Unit
get
Unit
System
getUnitSystem
()
:
UnitSystemName
Returns
UnitSystemName
is
Valid
Alpha
isValidAlpha
(
c
:
string
)
:
boolean
Parameters
c
:
string
Returns
boolean
is
Valueless
Unit
isValuelessUnit
(
name
:
string
)
:
boolean
Parameters
name
:
string
Returns
boolean
parse
parse
(
str
:
string
)
:
Unit
Parameters
str
:
string
Returns
Unit
set
Unit
System
setUnitSystem
(
name
:
UnitSystemName
)
:
void
Parameters
name
:
UnitSystemName
Returns
void
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
BASE_
DIMENSIONS
BASE_
UNITS
PREFIXES
UNIT_
SYSTEMS
UNITS
Methods
create
Unit
create
Unit
Single
from
JSON
get
Unit
System
is
Valid
Alpha
is
Valueless
Unit
parse
set
Unit
System
sesaparcours
Loading...