UNPKG
@nepwork/dashboards
Version:
latest (0.0.2)
0.0.2
Dashboards for emergencies and monitoring
github.com/nepwork/admin-ui
nepwork/admin-ui
@nepwork/dashboards
/
hgraph
/
node_modules
/
d3-ease
/
src
/
exp.js
12 lines
(9 loc)
•
251 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
export
function
expIn
(
t
) {
return
Math
.
pow
(
2
,
10
* t -
10
); }
export
function
expOut
(
t
) {
return
1
-
Math
.
pow
(
2
, -
10
* t); }
export
function
expInOut
(
t
) {
return
((t *=
2
) <=
1
?
Math
.
pow
(
2
,
10
* t -
10
) :
2
-
Math
.
pow
(
2
,
10
-
10
* t)) /
2
; }