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
/
sin.js
15 lines
(11 loc)
•
236 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var
pi =
Math
.
PI
, halfPi = pi /
2
;
export
function
sinIn
(
t
) {
return
1
-
Math
.
cos
(t * halfPi); }
export
function
sinOut
(
t
) {
return
Math
.
sin
(t * halfPi); }
export
function
sinInOut
(
t
) {
return
(
1
-
Math
.
cos
(pi * t)) /
2
; }