Initial commit
This commit is contained in:
15
node_modules/d3-ease/.eslintrc.json
generated
vendored
Normal file
15
node_modules/d3-ease/.eslintrc.json
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"extends": "eslint:recommended",
|
||||
"parserOptions": {
|
||||
"sourceType": "module",
|
||||
"ecmaVersion": 8
|
||||
},
|
||||
"env": {
|
||||
"es6": true,
|
||||
"node": true,
|
||||
"browser": true
|
||||
},
|
||||
"rules": {
|
||||
"no-cond-assign": 0
|
||||
}
|
||||
}
|
||||
28
node_modules/d3-ease/LICENSE
generated
vendored
Normal file
28
node_modules/d3-ease/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
Copyright 2010-2016 Mike Bostock
|
||||
Copyright 2001 Robert Penner
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
* Neither the name of the author nor the names of contributors may be used to
|
||||
endorse or promote products derived from this software without specific prior
|
||||
written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
259
node_modules/d3-ease/dist/d3-ease.js
generated
vendored
Normal file
259
node_modules/d3-ease/dist/d3-ease.js
generated
vendored
Normal file
@@ -0,0 +1,259 @@
|
||||
// https://d3js.org/d3-ease/ v1.0.5 Copyright 2018 Mike Bostock
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
||||
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
||||
(factory((global.d3 = global.d3 || {})));
|
||||
}(this, (function (exports) { 'use strict';
|
||||
|
||||
function linear(t) {
|
||||
return +t;
|
||||
}
|
||||
|
||||
function quadIn(t) {
|
||||
return t * t;
|
||||
}
|
||||
|
||||
function quadOut(t) {
|
||||
return t * (2 - t);
|
||||
}
|
||||
|
||||
function quadInOut(t) {
|
||||
return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2;
|
||||
}
|
||||
|
||||
function cubicIn(t) {
|
||||
return t * t * t;
|
||||
}
|
||||
|
||||
function cubicOut(t) {
|
||||
return --t * t * t + 1;
|
||||
}
|
||||
|
||||
function cubicInOut(t) {
|
||||
return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
|
||||
}
|
||||
|
||||
var exponent = 3;
|
||||
|
||||
var polyIn = (function custom(e) {
|
||||
e = +e;
|
||||
|
||||
function polyIn(t) {
|
||||
return Math.pow(t, e);
|
||||
}
|
||||
|
||||
polyIn.exponent = custom;
|
||||
|
||||
return polyIn;
|
||||
})(exponent);
|
||||
|
||||
var polyOut = (function custom(e) {
|
||||
e = +e;
|
||||
|
||||
function polyOut(t) {
|
||||
return 1 - Math.pow(1 - t, e);
|
||||
}
|
||||
|
||||
polyOut.exponent = custom;
|
||||
|
||||
return polyOut;
|
||||
})(exponent);
|
||||
|
||||
var polyInOut = (function custom(e) {
|
||||
e = +e;
|
||||
|
||||
function polyInOut(t) {
|
||||
return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2;
|
||||
}
|
||||
|
||||
polyInOut.exponent = custom;
|
||||
|
||||
return polyInOut;
|
||||
})(exponent);
|
||||
|
||||
var pi = Math.PI,
|
||||
halfPi = pi / 2;
|
||||
|
||||
function sinIn(t) {
|
||||
return 1 - Math.cos(t * halfPi);
|
||||
}
|
||||
|
||||
function sinOut(t) {
|
||||
return Math.sin(t * halfPi);
|
||||
}
|
||||
|
||||
function sinInOut(t) {
|
||||
return (1 - Math.cos(pi * t)) / 2;
|
||||
}
|
||||
|
||||
function expIn(t) {
|
||||
return Math.pow(2, 10 * t - 10);
|
||||
}
|
||||
|
||||
function expOut(t) {
|
||||
return 1 - Math.pow(2, -10 * t);
|
||||
}
|
||||
|
||||
function expInOut(t) {
|
||||
return ((t *= 2) <= 1 ? Math.pow(2, 10 * t - 10) : 2 - Math.pow(2, 10 - 10 * t)) / 2;
|
||||
}
|
||||
|
||||
function circleIn(t) {
|
||||
return 1 - Math.sqrt(1 - t * t);
|
||||
}
|
||||
|
||||
function circleOut(t) {
|
||||
return Math.sqrt(1 - --t * t);
|
||||
}
|
||||
|
||||
function circleInOut(t) {
|
||||
return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2;
|
||||
}
|
||||
|
||||
var b1 = 4 / 11,
|
||||
b2 = 6 / 11,
|
||||
b3 = 8 / 11,
|
||||
b4 = 3 / 4,
|
||||
b5 = 9 / 11,
|
||||
b6 = 10 / 11,
|
||||
b7 = 15 / 16,
|
||||
b8 = 21 / 22,
|
||||
b9 = 63 / 64,
|
||||
b0 = 1 / b1 / b1;
|
||||
|
||||
function bounceIn(t) {
|
||||
return 1 - bounceOut(1 - t);
|
||||
}
|
||||
|
||||
function bounceOut(t) {
|
||||
return (t = +t) < b1 ? b0 * t * t : t < b3 ? b0 * (t -= b2) * t + b4 : t < b6 ? b0 * (t -= b5) * t + b7 : b0 * (t -= b8) * t + b9;
|
||||
}
|
||||
|
||||
function bounceInOut(t) {
|
||||
return ((t *= 2) <= 1 ? 1 - bounceOut(1 - t) : bounceOut(t - 1) + 1) / 2;
|
||||
}
|
||||
|
||||
var overshoot = 1.70158;
|
||||
|
||||
var backIn = (function custom(s) {
|
||||
s = +s;
|
||||
|
||||
function backIn(t) {
|
||||
return t * t * ((s + 1) * t - s);
|
||||
}
|
||||
|
||||
backIn.overshoot = custom;
|
||||
|
||||
return backIn;
|
||||
})(overshoot);
|
||||
|
||||
var backOut = (function custom(s) {
|
||||
s = +s;
|
||||
|
||||
function backOut(t) {
|
||||
return --t * t * ((s + 1) * t + s) + 1;
|
||||
}
|
||||
|
||||
backOut.overshoot = custom;
|
||||
|
||||
return backOut;
|
||||
})(overshoot);
|
||||
|
||||
var backInOut = (function custom(s) {
|
||||
s = +s;
|
||||
|
||||
function backInOut(t) {
|
||||
return ((t *= 2) < 1 ? t * t * ((s + 1) * t - s) : (t -= 2) * t * ((s + 1) * t + s) + 2) / 2;
|
||||
}
|
||||
|
||||
backInOut.overshoot = custom;
|
||||
|
||||
return backInOut;
|
||||
})(overshoot);
|
||||
|
||||
var tau = 2 * Math.PI,
|
||||
amplitude = 1,
|
||||
period = 0.3;
|
||||
|
||||
var elasticIn = (function custom(a, p) {
|
||||
var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);
|
||||
|
||||
function elasticIn(t) {
|
||||
return a * Math.pow(2, 10 * --t) * Math.sin((s - t) / p);
|
||||
}
|
||||
|
||||
elasticIn.amplitude = function(a) { return custom(a, p * tau); };
|
||||
elasticIn.period = function(p) { return custom(a, p); };
|
||||
|
||||
return elasticIn;
|
||||
})(amplitude, period);
|
||||
|
||||
var elasticOut = (function custom(a, p) {
|
||||
var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);
|
||||
|
||||
function elasticOut(t) {
|
||||
return 1 - a * Math.pow(2, -10 * (t = +t)) * Math.sin((t + s) / p);
|
||||
}
|
||||
|
||||
elasticOut.amplitude = function(a) { return custom(a, p * tau); };
|
||||
elasticOut.period = function(p) { return custom(a, p); };
|
||||
|
||||
return elasticOut;
|
||||
})(amplitude, period);
|
||||
|
||||
var elasticInOut = (function custom(a, p) {
|
||||
var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);
|
||||
|
||||
function elasticInOut(t) {
|
||||
return ((t = t * 2 - 1) < 0
|
||||
? a * Math.pow(2, 10 * t) * Math.sin((s - t) / p)
|
||||
: 2 - a * Math.pow(2, -10 * t) * Math.sin((s + t) / p)) / 2;
|
||||
}
|
||||
|
||||
elasticInOut.amplitude = function(a) { return custom(a, p * tau); };
|
||||
elasticInOut.period = function(p) { return custom(a, p); };
|
||||
|
||||
return elasticInOut;
|
||||
})(amplitude, period);
|
||||
|
||||
exports.easeLinear = linear;
|
||||
exports.easeQuad = quadInOut;
|
||||
exports.easeQuadIn = quadIn;
|
||||
exports.easeQuadOut = quadOut;
|
||||
exports.easeQuadInOut = quadInOut;
|
||||
exports.easeCubic = cubicInOut;
|
||||
exports.easeCubicIn = cubicIn;
|
||||
exports.easeCubicOut = cubicOut;
|
||||
exports.easeCubicInOut = cubicInOut;
|
||||
exports.easePoly = polyInOut;
|
||||
exports.easePolyIn = polyIn;
|
||||
exports.easePolyOut = polyOut;
|
||||
exports.easePolyInOut = polyInOut;
|
||||
exports.easeSin = sinInOut;
|
||||
exports.easeSinIn = sinIn;
|
||||
exports.easeSinOut = sinOut;
|
||||
exports.easeSinInOut = sinInOut;
|
||||
exports.easeExp = expInOut;
|
||||
exports.easeExpIn = expIn;
|
||||
exports.easeExpOut = expOut;
|
||||
exports.easeExpInOut = expInOut;
|
||||
exports.easeCircle = circleInOut;
|
||||
exports.easeCircleIn = circleIn;
|
||||
exports.easeCircleOut = circleOut;
|
||||
exports.easeCircleInOut = circleInOut;
|
||||
exports.easeBounce = bounceOut;
|
||||
exports.easeBounceIn = bounceIn;
|
||||
exports.easeBounceOut = bounceOut;
|
||||
exports.easeBounceInOut = bounceInOut;
|
||||
exports.easeBack = backInOut;
|
||||
exports.easeBackIn = backIn;
|
||||
exports.easeBackOut = backOut;
|
||||
exports.easeBackInOut = backInOut;
|
||||
exports.easeElastic = elasticOut;
|
||||
exports.easeElasticIn = elasticIn;
|
||||
exports.easeElasticOut = elasticOut;
|
||||
exports.easeElasticInOut = elasticInOut;
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
})));
|
||||
2
node_modules/d3-ease/dist/d3-ease.min.js
generated
vendored
Normal file
2
node_modules/d3-ease/dist/d3-ease.min.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
// https://d3js.org/d3-ease/ v1.0.5 Copyright 2018 Mike Bostock
|
||||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(n.d3=n.d3||{})}(this,function(n){"use strict";function t(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}function e(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}var u=function n(t){function e(n){return Math.pow(n,t)}return t=+t,e.exponent=n,e}(3),r=function n(t){function e(n){return 1-Math.pow(1-n,t)}return t=+t,e.exponent=n,e}(3),a=function n(t){function e(n){return((n*=2)<=1?Math.pow(n,t):2-Math.pow(2-n,t))/2}return t=+t,e.exponent=n,e}(3),o=Math.PI,i=o/2;function c(n){return(1-Math.cos(o*n))/2}function s(n){return((n*=2)<=1?Math.pow(2,10*n-10):2-Math.pow(2,10-10*n))/2}function f(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}var h=4/11,p=6/11,M=8/11,d=.75,I=9/11,O=10/11,l=.9375,x=21/22,w=63/64,v=1/h/h;function m(n){return(n=+n)<h?v*n*n:n<M?v*(n-=p)*n+d:n<O?v*(n-=I)*n+l:v*(n-=x)*n+w}var y=function n(t){function e(n){return n*n*((t+1)*n-t)}return t=+t,e.overshoot=n,e}(1.70158),B=function n(t){function e(n){return--n*n*((t+1)*n+t)+1}return t=+t,e.overshoot=n,e}(1.70158),C=function n(t){function e(n){return((n*=2)<1?n*n*((t+1)*n-t):(n-=2)*n*((t+1)*n+t)+2)/2}return t=+t,e.overshoot=n,e}(1.70158),E=2*Math.PI,P=function n(t,e){var u=Math.asin(1/(t=Math.max(1,t)))*(e/=E);function r(n){return t*Math.pow(2,10*--n)*Math.sin((u-n)/e)}return r.amplitude=function(t){return n(t,e*E)},r.period=function(e){return n(t,e)},r}(1,.3),b=function n(t,e){var u=Math.asin(1/(t=Math.max(1,t)))*(e/=E);function r(n){return 1-t*Math.pow(2,-10*(n=+n))*Math.sin((n+u)/e)}return r.amplitude=function(t){return n(t,e*E)},r.period=function(e){return n(t,e)},r}(1,.3),k=function n(t,e){var u=Math.asin(1/(t=Math.max(1,t)))*(e/=E);function r(n){return((n=2*n-1)<0?t*Math.pow(2,10*n)*Math.sin((u-n)/e):2-t*Math.pow(2,-10*n)*Math.sin((u+n)/e))/2}return r.amplitude=function(t){return n(t,e*E)},r.period=function(e){return n(t,e)},r}(1,.3);n.easeLinear=function(n){return+n},n.easeQuad=t,n.easeQuadIn=function(n){return n*n},n.easeQuadOut=function(n){return n*(2-n)},n.easeQuadInOut=t,n.easeCubic=e,n.easeCubicIn=function(n){return n*n*n},n.easeCubicOut=function(n){return--n*n*n+1},n.easeCubicInOut=e,n.easePoly=a,n.easePolyIn=u,n.easePolyOut=r,n.easePolyInOut=a,n.easeSin=c,n.easeSinIn=function(n){return 1-Math.cos(n*i)},n.easeSinOut=function(n){return Math.sin(n*i)},n.easeSinInOut=c,n.easeExp=s,n.easeExpIn=function(n){return Math.pow(2,10*n-10)},n.easeExpOut=function(n){return 1-Math.pow(2,-10*n)},n.easeExpInOut=s,n.easeCircle=f,n.easeCircleIn=function(n){return 1-Math.sqrt(1-n*n)},n.easeCircleOut=function(n){return Math.sqrt(1- --n*n)},n.easeCircleInOut=f,n.easeBounce=m,n.easeBounceIn=function(n){return 1-m(1-n)},n.easeBounceOut=m,n.easeBounceInOut=function(n){return((n*=2)<=1?1-m(1-n):m(n-1)+1)/2},n.easeBack=C,n.easeBackIn=y,n.easeBackOut=B,n.easeBackInOut=C,n.easeElastic=b,n.easeElasticIn=P,n.easeElasticOut=b,n.easeElasticInOut=k,Object.defineProperty(n,"__esModule",{value:!0})});
|
||||
25
node_modules/d3-ease/package.json
generated
vendored
Normal file
25
node_modules/d3-ease/package.json
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "d3-ease",
|
||||
"version": "1.0.5",
|
||||
"description": "Easing functions for smooth animation.",
|
||||
"homepage": "https://d3js.org/d3-ease/",
|
||||
"license": "BSD-3-Clause",
|
||||
"author": {
|
||||
"name": "Mike Bostock",
|
||||
"url": "http://bost.ocks.org/mike"
|
||||
},
|
||||
"main": "dist/d3-ease.js",
|
||||
"unpkg": "dist/d3-ease.min.js",
|
||||
"jsdelivr": "dist/d3-ease.min.js",
|
||||
"module": "src/index.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/d3/d3-ease.git"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "5",
|
||||
"rollup": "0.64",
|
||||
"rollup-plugin-terser": "1",
|
||||
"tape": "4"
|
||||
}
|
||||
}
|
||||
36
node_modules/d3-ease/rollup.config.js
generated
vendored
Normal file
36
node_modules/d3-ease/rollup.config.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
import {terser} from "rollup-plugin-terser";
|
||||
import * as meta from "./package.json";
|
||||
|
||||
const config = {
|
||||
input: "src/index.js",
|
||||
external: Object.keys(meta.dependencies || {}).filter(key => /^d3-/.test(key)),
|
||||
output: {
|
||||
file: `dist/${meta.name}.js`,
|
||||
name: "d3",
|
||||
format: "umd",
|
||||
indent: false,
|
||||
extend: true,
|
||||
banner: `// ${meta.homepage} v${meta.version} Copyright ${(new Date).getFullYear()} ${meta.author.name}`,
|
||||
globals: Object.assign({}, ...Object.keys(meta.dependencies || {}).filter(key => /^d3-/.test(key)).map(key => ({[key]: "d3"})))
|
||||
},
|
||||
plugins: []
|
||||
};
|
||||
|
||||
export default [
|
||||
config,
|
||||
{
|
||||
...config,
|
||||
output: {
|
||||
...config.output,
|
||||
file: `dist/${meta.name}.min.js`
|
||||
},
|
||||
plugins: [
|
||||
...config.plugins,
|
||||
terser({
|
||||
output: {
|
||||
preamble: config.output.banner
|
||||
}
|
||||
})
|
||||
]
|
||||
}
|
||||
];
|
||||
37
node_modules/d3-ease/src/back.js
generated
vendored
Normal file
37
node_modules/d3-ease/src/back.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
var overshoot = 1.70158;
|
||||
|
||||
export var backIn = (function custom(s) {
|
||||
s = +s;
|
||||
|
||||
function backIn(t) {
|
||||
return t * t * ((s + 1) * t - s);
|
||||
}
|
||||
|
||||
backIn.overshoot = custom;
|
||||
|
||||
return backIn;
|
||||
})(overshoot);
|
||||
|
||||
export var backOut = (function custom(s) {
|
||||
s = +s;
|
||||
|
||||
function backOut(t) {
|
||||
return --t * t * ((s + 1) * t + s) + 1;
|
||||
}
|
||||
|
||||
backOut.overshoot = custom;
|
||||
|
||||
return backOut;
|
||||
})(overshoot);
|
||||
|
||||
export var backInOut = (function custom(s) {
|
||||
s = +s;
|
||||
|
||||
function backInOut(t) {
|
||||
return ((t *= 2) < 1 ? t * t * ((s + 1) * t - s) : (t -= 2) * t * ((s + 1) * t + s) + 2) / 2;
|
||||
}
|
||||
|
||||
backInOut.overshoot = custom;
|
||||
|
||||
return backInOut;
|
||||
})(overshoot);
|
||||
22
node_modules/d3-ease/src/bounce.js
generated
vendored
Normal file
22
node_modules/d3-ease/src/bounce.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
var b1 = 4 / 11,
|
||||
b2 = 6 / 11,
|
||||
b3 = 8 / 11,
|
||||
b4 = 3 / 4,
|
||||
b5 = 9 / 11,
|
||||
b6 = 10 / 11,
|
||||
b7 = 15 / 16,
|
||||
b8 = 21 / 22,
|
||||
b9 = 63 / 64,
|
||||
b0 = 1 / b1 / b1;
|
||||
|
||||
export function bounceIn(t) {
|
||||
return 1 - bounceOut(1 - t);
|
||||
}
|
||||
|
||||
export function bounceOut(t) {
|
||||
return (t = +t) < b1 ? b0 * t * t : t < b3 ? b0 * (t -= b2) * t + b4 : t < b6 ? b0 * (t -= b5) * t + b7 : b0 * (t -= b8) * t + b9;
|
||||
}
|
||||
|
||||
export function bounceInOut(t) {
|
||||
return ((t *= 2) <= 1 ? 1 - bounceOut(1 - t) : bounceOut(t - 1) + 1) / 2;
|
||||
}
|
||||
11
node_modules/d3-ease/src/circle.js
generated
vendored
Normal file
11
node_modules/d3-ease/src/circle.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
export function circleIn(t) {
|
||||
return 1 - Math.sqrt(1 - t * t);
|
||||
}
|
||||
|
||||
export function circleOut(t) {
|
||||
return Math.sqrt(1 - --t * t);
|
||||
}
|
||||
|
||||
export function circleInOut(t) {
|
||||
return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2;
|
||||
}
|
||||
11
node_modules/d3-ease/src/cubic.js
generated
vendored
Normal file
11
node_modules/d3-ease/src/cubic.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
export function cubicIn(t) {
|
||||
return t * t * t;
|
||||
}
|
||||
|
||||
export function cubicOut(t) {
|
||||
return --t * t * t + 1;
|
||||
}
|
||||
|
||||
export function cubicInOut(t) {
|
||||
return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
|
||||
}
|
||||
44
node_modules/d3-ease/src/elastic.js
generated
vendored
Normal file
44
node_modules/d3-ease/src/elastic.js
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
var tau = 2 * Math.PI,
|
||||
amplitude = 1,
|
||||
period = 0.3;
|
||||
|
||||
export var elasticIn = (function custom(a, p) {
|
||||
var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);
|
||||
|
||||
function elasticIn(t) {
|
||||
return a * Math.pow(2, 10 * --t) * Math.sin((s - t) / p);
|
||||
}
|
||||
|
||||
elasticIn.amplitude = function(a) { return custom(a, p * tau); };
|
||||
elasticIn.period = function(p) { return custom(a, p); };
|
||||
|
||||
return elasticIn;
|
||||
})(amplitude, period);
|
||||
|
||||
export var elasticOut = (function custom(a, p) {
|
||||
var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);
|
||||
|
||||
function elasticOut(t) {
|
||||
return 1 - a * Math.pow(2, -10 * (t = +t)) * Math.sin((t + s) / p);
|
||||
}
|
||||
|
||||
elasticOut.amplitude = function(a) { return custom(a, p * tau); };
|
||||
elasticOut.period = function(p) { return custom(a, p); };
|
||||
|
||||
return elasticOut;
|
||||
})(amplitude, period);
|
||||
|
||||
export var elasticInOut = (function custom(a, p) {
|
||||
var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);
|
||||
|
||||
function elasticInOut(t) {
|
||||
return ((t = t * 2 - 1) < 0
|
||||
? a * Math.pow(2, 10 * t) * Math.sin((s - t) / p)
|
||||
: 2 - a * Math.pow(2, -10 * t) * Math.sin((s + t) / p)) / 2;
|
||||
}
|
||||
|
||||
elasticInOut.amplitude = function(a) { return custom(a, p * tau); };
|
||||
elasticInOut.period = function(p) { return custom(a, p); };
|
||||
|
||||
return elasticInOut;
|
||||
})(amplitude, period);
|
||||
11
node_modules/d3-ease/src/exp.js
generated
vendored
Normal file
11
node_modules/d3-ease/src/exp.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
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;
|
||||
}
|
||||
66
node_modules/d3-ease/src/index.js
generated
vendored
Normal file
66
node_modules/d3-ease/src/index.js
generated
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
export {
|
||||
linear as easeLinear
|
||||
} from "./linear";
|
||||
|
||||
export {
|
||||
quadInOut as easeQuad,
|
||||
quadIn as easeQuadIn,
|
||||
quadOut as easeQuadOut,
|
||||
quadInOut as easeQuadInOut
|
||||
} from "./quad";
|
||||
|
||||
export {
|
||||
cubicInOut as easeCubic,
|
||||
cubicIn as easeCubicIn,
|
||||
cubicOut as easeCubicOut,
|
||||
cubicInOut as easeCubicInOut
|
||||
} from "./cubic";
|
||||
|
||||
export {
|
||||
polyInOut as easePoly,
|
||||
polyIn as easePolyIn,
|
||||
polyOut as easePolyOut,
|
||||
polyInOut as easePolyInOut
|
||||
} from "./poly";
|
||||
|
||||
export {
|
||||
sinInOut as easeSin,
|
||||
sinIn as easeSinIn,
|
||||
sinOut as easeSinOut,
|
||||
sinInOut as easeSinInOut
|
||||
} from "./sin";
|
||||
|
||||
export {
|
||||
expInOut as easeExp,
|
||||
expIn as easeExpIn,
|
||||
expOut as easeExpOut,
|
||||
expInOut as easeExpInOut
|
||||
} from "./exp";
|
||||
|
||||
export {
|
||||
circleInOut as easeCircle,
|
||||
circleIn as easeCircleIn,
|
||||
circleOut as easeCircleOut,
|
||||
circleInOut as easeCircleInOut
|
||||
} from "./circle";
|
||||
|
||||
export {
|
||||
bounceOut as easeBounce,
|
||||
bounceIn as easeBounceIn,
|
||||
bounceOut as easeBounceOut,
|
||||
bounceInOut as easeBounceInOut
|
||||
} from "./bounce";
|
||||
|
||||
export {
|
||||
backInOut as easeBack,
|
||||
backIn as easeBackIn,
|
||||
backOut as easeBackOut,
|
||||
backInOut as easeBackInOut
|
||||
} from "./back";
|
||||
|
||||
export {
|
||||
elasticOut as easeElastic,
|
||||
elasticIn as easeElasticIn,
|
||||
elasticOut as easeElasticOut,
|
||||
elasticInOut as easeElasticInOut
|
||||
} from "./elastic";
|
||||
3
node_modules/d3-ease/src/linear.js
generated
vendored
Normal file
3
node_modules/d3-ease/src/linear.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export function linear(t) {
|
||||
return +t;
|
||||
}
|
||||
37
node_modules/d3-ease/src/poly.js
generated
vendored
Normal file
37
node_modules/d3-ease/src/poly.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
var exponent = 3;
|
||||
|
||||
export var polyIn = (function custom(e) {
|
||||
e = +e;
|
||||
|
||||
function polyIn(t) {
|
||||
return Math.pow(t, e);
|
||||
}
|
||||
|
||||
polyIn.exponent = custom;
|
||||
|
||||
return polyIn;
|
||||
})(exponent);
|
||||
|
||||
export var polyOut = (function custom(e) {
|
||||
e = +e;
|
||||
|
||||
function polyOut(t) {
|
||||
return 1 - Math.pow(1 - t, e);
|
||||
}
|
||||
|
||||
polyOut.exponent = custom;
|
||||
|
||||
return polyOut;
|
||||
})(exponent);
|
||||
|
||||
export var polyInOut = (function custom(e) {
|
||||
e = +e;
|
||||
|
||||
function polyInOut(t) {
|
||||
return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2;
|
||||
}
|
||||
|
||||
polyInOut.exponent = custom;
|
||||
|
||||
return polyInOut;
|
||||
})(exponent);
|
||||
11
node_modules/d3-ease/src/quad.js
generated
vendored
Normal file
11
node_modules/d3-ease/src/quad.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
export function quadIn(t) {
|
||||
return t * t;
|
||||
}
|
||||
|
||||
export function quadOut(t) {
|
||||
return t * (2 - t);
|
||||
}
|
||||
|
||||
export function quadInOut(t) {
|
||||
return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2;
|
||||
}
|
||||
14
node_modules/d3-ease/src/sin.js
generated
vendored
Normal file
14
node_modules/d3-ease/src/sin.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user