Search
Preparing search index...
The search index is not available
EF React Native Style Framework
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"Timing"
Timing
Class Timing
Provides a way to create a set of divisions that have nice aliases to access them:
example
A basic set of divisions
```ts const timing = new Timing({ base: 200 }); timing.snail; // -> 39.5 timing.slowest; // -> 59.25 timing.slower; // -> 88.88 timing.slow; // -> 133.33 timing.normal; // -> 200 timing.fast; // -> 300 timing.faster; // -> 450 timing.fastest; // -> 675 timing.lightening; // -> 1012.5 ```
example
Customise scaling, increases the range of the divisions
```ts const timing = new Timing({ base: 100, scale: (2 as Scale) }); timing.snail; // -> 6.25 timing.slowest; // -> 12.5 timing.slower; // -> 25 timing.slow; // -> 50 timing.normal; // -> 100 timing.fast; // -> 200 timing.faster; // -> 400 timing.fastest; // -> 800 timing.lightening; // -> 1600 ```
example
Customise certain stops (or all of them `100` to `900`)
```ts const timing = new Timing({ base: { 100: 40, 200: 60, 300: 85, 400: 135, 500: 200, 900: 1000 }}); timing.snail; // -> 40 ( 39.5 timing.slowest; // -> 60 ( 59.25 timing.slower; // -> 85 ( 88.88) timing.slow; // -> 135 (133.33) timing.normal; // -> 200 timing.fast; // -> 300 timing.faster; // -> 450 timing.fastest; // -> 675 timing.lightening; // -> 1000 (1012.5) ```
Hierarchy
Divisions
<
Milliseconds
>
Timing
Implements
IDivisions
<
Milliseconds
>
ITiming
Index
Constructors
constructor
Accessors
100
200
300
400
500
600
700
800
900
fast
faster
fastest
lightening
normal
slow
slower
slowest
snail
Methods
__@to
Primitive
Constructors
constructor
new
Timing
(
__namedParameters
?:
object
)
:
Timing
Parameters
Default value
__namedParameters:
object
= {}
callback
:
undefined
|
ratio
override
:
undefined
|
string
|
number
|
IImmutable
<
string
|
number
>
|
IDivisionsOverrides
<
string
|
number
|
IImmutable
<
string
|
number
>
>
scale
:
undefined
|
MinorSecond
|
MajorSecond
|
MinorThird
|
MajorThird
|
PerfectFourth
|
AugmentedFourth
|
PerfectFifth
|
GoldenRatio
Returns
Timing
Accessors
100
get
100
(
)
:
Milliseconds
Returns
Milliseconds
200
get
200
(
)
:
Milliseconds
Returns
Milliseconds
300
get
300
(
)
:
Milliseconds
Returns
Milliseconds
400
get
400
(
)
:
Milliseconds
Returns
Milliseconds
500
get
500
(
)
:
Milliseconds
Returns
Milliseconds
600
get
600
(
)
:
Milliseconds
Returns
Milliseconds
700
get
700
(
)
:
Milliseconds
Returns
Milliseconds
800
get
800
(
)
:
Milliseconds
Returns
Milliseconds
900
get
900
(
)
:
Milliseconds
Returns
Milliseconds
fast
get
fast
(
)
:
number
Returns
number
faster
get
faster
(
)
:
number
Returns
number
fastest
get
fastest
(
)
:
number
Returns
number
lightening
get
lightening
(
)
:
number
Returns
number
normal
get
normal
(
)
:
number
Returns
number
slow
get
slow
(
)
:
number
Returns
number
slower
get
slower
(
)
:
number
Returns
number
slowest
get
slowest
(
)
:
number
Returns
number
snail
get
snail
(
)
:
number
Returns
number
Methods
__@to
Primitive
__@to
Primitive
(
hint
:
"string"
|
"number"
|
"default"
)
:
number
|
string
Parameters
hint:
"string"
|
"number"
|
"default"
Returns
number
|
string
Globals
"
Timing"
Timing
constructor
100
200
300
400
500
600
700
800
900
fast
faster
fastest
lightening
normal
slow
slower
slowest
snail
__@to
Primitive
ITiming
Options
Timing
Base
timing
Base
timing
Convert
timing
Ratio
Provides a way to create a set of divisions that have nice aliases to access them: