{ "_args": [ [ { "raw": "d3-ease@1.0.3", "scope": null, "escapedName": "d3-ease", "name": "d3-ease", "rawSpec": "1.0.3", "spec": "1.0.3", "type": "version" }, "C:\\Users\\Giuliano\\worldwind\\nasaworldwind\\node\\node_modules\\d3" ] ], "_from": "d3-ease@1.0.3", "_id": "d3-ease@1.0.3", "_inCache": true, "_location": "/d3-ease", "_nodeVersion": "7.3.0", "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/d3-ease-1.0.3.tgz_1489169213998_0.5961549214553088" }, "_npmUser": { "name": "mbostock", "email": "mike@ocks.org" }, "_npmVersion": "3.10.10", "_phantomChildren": {}, "_requested": { "raw": "d3-ease@1.0.3", "scope": null, "escapedName": "d3-ease", "name": "d3-ease", "rawSpec": "1.0.3", "spec": "1.0.3", "type": "version" }, "_requiredBy": [ "/d3", "/d3-transition" ], "_resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-1.0.3.tgz", "_shasum": "68bfbc349338a380c44d8acc4fbc3304aa2d8c0e", "_shrinkwrap": null, "_spec": "d3-ease@1.0.3", "_where": "C:\\Users\\Giuliano\\worldwind\\nasaworldwind\\node\\node_modules\\d3", "author": { "name": "Mike Bostock", "url": "http://bost.ocks.org/mike" }, "bugs": { "url": "https://github.com/d3/d3-ease/issues" }, "dependencies": {}, "description": "Easing functions for smooth animation.", "devDependencies": { "eslint": "3", "package-preamble": "0.0", "rollup": "0.41", "tape": "4", "uglify-js": "^2.8.11" }, "directories": {}, "dist": { "shasum": "68bfbc349338a380c44d8acc4fbc3304aa2d8c0e", "tarball": "https://registry.npmjs.org/d3-ease/-/d3-ease-1.0.3.tgz" }, "gitHead": "f1e8d630b58f5b935b7995f0c417de257b08be52", "homepage": "https://d3js.org/d3-ease/", "jsnext:main": "index", "keywords": [ "d3", "d3-module", "ease", "easing", "animation", "transition" ], "license": "BSD-3-Clause", "main": "build/d3-ease.js", "maintainers": [ { "name": "mbostock", "email": "mike@ocks.org" } ], "module": "index", "name": "d3-ease", "optionalDependencies": {}, "readme": "# d3-ease\n\n*Easing* is a method of distorting time to control apparent motion in animation. It is most commonly used for [slow-in, slow-out](https://en.wikipedia.org/wiki/12_basic_principles_of_animation#Slow_In_and_Slow_Out). By easing time, [animated transitions](https://github.com/d3/d3-transition) are smoother and exhibit more plausible motion.\n\nThe easing types in this module implement the [ease method](#ease_ease), which takes a normalized time *t* and returns the corresponding “eased” time *tʹ*. Both the normalized time and the eased time are typically in the range [0,1], where 0 represents the start of the animation and 1 represents the end; some easing types, such as [elastic](#easeElastic), may return eased times slightly outside this range. A good easing type should return 0 if *t* = 0 and 1 if *t* = 1. See the [easing explorer](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4) for a visual demonstration.\n\nThese easing types are largely based on work by [Robert Penner](http://robertpenner.com/easing/).\n\n## Installing\n\nIf you use NPM, `npm install d3-ease`. Otherwise, download the [latest release](https://github.com/d3/d3-ease/releases/latest). You can also load directly from [d3js.org](https://d3js.org), either as a [standalone library](https://d3js.org/d3-ease.v1.min.js) or as part of [D3 4.0](https://github.com/d3/d3). AMD, CommonJS, and vanilla environments are supported. In vanilla, a `d3` global is exported:\n\n```html\n\n\n```\n\n[Try d3-ease in your browser.](https://tonicdev.com/npm/d3-ease)\n\n## API Reference\n\n# ease(t)\n\nGiven the specified normalized time *t*, typically in the range [0,1], returns the “eased” time *tʹ*, also typically in [0,1]. 0 represents the start of the animation and 1 represents the end. A good implementation returns 0 if *t* = 0 and 1 if *t* = 1. See the [easing explorer](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4) for a visual demonstration. For example, to apply [cubic](#easeCubic) easing:\n\n```js\nvar te = d3.easeCubic(t);\n```\n\nSimilarly, to apply custom [elastic](#easeElastic) easing:\n\n```js\n// Before the animation starts, create your easing function.\nvar customElastic = d3.easeElastic.period(0.4);\n\n// During the animation, apply the easing function.\nvar te = customElastic(t);\n```\n\n# d3.easeLinear(t) [<>](https://github.com/d3/d3-ease/blob/master/src/linear.js \"Source\")\n\nLinear easing; the identity function; *linear*(*t*) returns *t*.\n\n[\"linear\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#linear)\n\n# d3.easePolyIn(t) [<>](https://github.com/d3/d3-ease/blob/master/src/poly.js#L3 \"Source\")\n\nPolynomial easing; raises *t* to the specified [exponent](#poly_exponent). If the exponent is not specified, it defaults to 3, equivalent to [cubicIn](#easeCubicIn).\n\n[\"polyIn\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#polyIn)\n\n# d3.easePolyOut(t) [<>](https://github.com/d3/d3-ease/blob/master/src/poly.js#L15 \"Source\")\n\nReverse polynomial easing; equivalent to 1 - [polyIn](#easePolyIn)(1 - *t*). If the [exponent](#poly_exponent) is not specified, it defaults to 3, equivalent to [cubicOut](#easeCubicOut).\n\n[\"polyOut\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#polyOut)\n\n# d3.easePoly(t) [<>](https://github.com/d3/d3-ease/blob/master/src/poly.js \"Source\")\n
# d3.easePolyInOut(t) [<>](https://github.com/d3/d3-ease/blob/master/src/poly.js#L27 \"Source\")\n\nSymmetric polynomial easing; scales [polyIn](#easePolyIn) for *t* in [0, 0.5] and [polyOut](#easePolyOut) for *t* in [0.5, 1]. If the [exponent](#poly_exponent) is not specified, it defaults to 3, equivalent to [cubic](#easeCubic).\n\n[\"polyInOut\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#polyInOut)\n\n# poly.exponent(e) [<>](https://github.com/d3/d3-ease/blob/master/src/poly.js#L1 \"Source\")\n\nReturns a new polynomial easing with the specified exponent *e*. For example, to create equivalents of [linear](#easeLinear), [quad](#easeQuad), and [cubic](#easeCubic):\n\n```js\nvar linear = d3.easePoly.exponent(1),\n quad = d3.easePoly.exponent(2),\n cubic = d3.easePoly.exponent(3);\n```\n\n# d3.easeQuadIn(t) [<>](https://github.com/d3/d3-ease/blob/master/src/quad.js#L1 \"Source\")\n\nQuadratic easing; equivalent to [polyIn](#easePolyIn).[exponent](#poly_exponent)(2).\n\n[\"quadIn\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#quadIn)\n\n# d3.easeQuadOut(t) [<>](https://github.com/d3/d3-ease/blob/master/src/quad.js#L5 \"Source\")\n\nReverse quadratic easing; equivalent to 1 - [quadIn](#easeQuadIn)(1 - *t*). Also equivalent to [polyOut](#easePolyOut).[exponent](#poly_exponent)(2).\n\n[\"quadOut\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#quadOut)\n\n# d3.easeQuad(t) [<>](https://github.com/d3/d3-ease/blob/master/src/quad.js \"Source\")\n
# d3.easeQuadInOut(t) [<>](https://github.com/d3/d3-ease/blob/master/src/quad.js#L9 \"Source\")\n\nSymmetric quadratic easing; scales [quadIn](#easeQuadIn) for *t* in [0, 0.5] and [quadOut](#easeQuadOut) for *t* in [0.5, 1]. Also equivalent to [poly](#easePoly).[exponent](#poly_exponent)(2).\n\n[\"quadInOut\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#quadInOut)\n\n# d3.easeCubicIn(t) [<>](https://github.com/d3/d3-ease/blob/master/src/cubic.js#L1 \"Source\")\n\nCubic easing; equivalent to [polyIn](#easePolyIn).[exponent](#poly_exponent)(3).\n\n[\"cubicIn\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#cubicIn)\n\n# d3.easeCubicOut(t) [<>](https://github.com/d3/d3-ease/blob/master/src/cubic.js#L5 \"Source\")\n\nReverse cubic easing; equivalent to 1 - [cubicIn](#easeCubicIn)(1 - *t*). Also equivalent to [polyOut](#easePolyOut).[exponent](#poly_exponent)(3).\n\n[\"cubicOut\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#cubicOut)\n\n# d3.easeCubic(t) [<>](https://github.com/d3/d3-ease/blob/master/src/cubic.js \"Source\")\n
# d3.easeCubicInOut(t) [<>](https://github.com/d3/d3-ease/blob/master/src/cubic.js#L9 \"Source\")\n\nSymmetric cubic easing; scales [cubicIn](#easeCubicIn) for *t* in [0, 0.5] and [cubicOut](#easeCubicOut) for *t* in [0.5, 1]. Also equivalent to [poly](#easePoly).[exponent](#poly_exponent)(3).\n\n[\"cubicInOut\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#cubicInOut)\n\n# d3.easeSinIn(t) [<>](https://github.com/d3/d3-ease/blob/master/src/sin.js#L4 \"Source\")\n\nSinusoidal easing; returns sin(*t*).\n\n[\"sinIn\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#sinIn)\n\n# d3.easeSinOut(t) [<>](https://github.com/d3/d3-ease/blob/master/src/sin.js#L8 \"Source\")\n\nReverse sinusoidal easing; equivalent to 1 - [sinIn](#easeSinIn)(1 - *t*).\n\n[\"sinOut\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#sinOut)\n\n# d3.easeSin(t) [<>](https://github.com/d3/d3-ease/blob/master/src/sin.js \"Source\")\n
# d3.easeSinInOut(t) [<>](https://github.com/d3/d3-ease/blob/master/src/sin.js#L12 \"Source\")\n\nSymmetric sinusoidal easing; scales [sinIn](#easeSinIn) for *t* in [0, 0.5] and [sinOut](#easeSinOut) for *t* in [0.5, 1].\n\n[\"sinInOut\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#sinInOut)\n\n# d3.easeExpIn(t) [<>](https://github.com/d3/d3-ease/blob/master/src/exp.js#L1 \"Source\")\n\nExponential easing; raises 2 to the exponent 10 \\* (*t* - 1).\n\n[\"expIn\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#expIn)\n\n# d3.easeExpOut(t) [<>](https://github.com/d3/d3-ease/blob/master/src/exp.js#L5 \"Source\")\n\nReverse exponential easing; equivalent to 1 - [expIn](#easeExpIn)(1 - *t*).\n\n[\"expOut\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#expOut)\n\n# d3.easeExp(t) [<>](https://github.com/d3/d3-ease/blob/master/src/exp.js \"Source\")\n
# d3.easeExpInOut(t) [<>](https://github.com/d3/d3-ease/blob/master/src/exp.js#L9 \"Source\")\n\nSymmetric exponential easing; scales [expIn](#easeExpIn) for *t* in [0, 0.5] and [expOut](#easeExpOut) for *t* in [0.5, 1].\n\n[\"expInOut\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#expInOut)\n\n# d3.easeCircleIn(t) [<>](https://github.com/d3/d3-ease/blob/master/src/circle.js#L1 \"Source\")\n\nCircular easing.\n\n[\"circleIn\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#circleIn)\n\n# d3.easeCircleOut(t) [<>](https://github.com/d3/d3-ease/blob/master/src/circle.js#L5 \"Source\")\n\nReverse circular easing; equivalent to 1 - [circleIn](#easeCircleIn)(1 - *t*).\n\n[\"circleOut\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#circleOut)\n\n# d3.easeCircle(t) [<>](https://github.com/d3/d3-ease/blob/master/src/circle.js \"Source\")\n
# d3.easeCircleInOut(t) [<>](https://github.com/d3/d3-ease/blob/master/src/circle.js#L9 \"Source\")\n\nSymmetric circular easing; scales [circleIn](#easeCircleIn) for *t* in [0, 0.5] and [circleOut](#easeCircleOut) for *t* in [0.5, 1].\n\n[\"circleInOut\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#circleInOut)\n\n# d3.easeElasticIn(t) [<>](https://github.com/d3/d3-ease/blob/master/src/elastic.js#L5 \"Source\")\n\nElastic easing, like a rubber band. The [amplitude](#elastic_amplitude) and [period](#elastic_period) of the oscillation are configurable; if not specified, they default to 1 and 0.3, respectively.\n\n[\"elasticIn\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#elasticIn)\n\n# d3.easeElastic(t) [<>](https://github.com/d3/d3-ease/blob/master/src/elastic.js \"Source\")\n
# d3.easeElasticOut(t) [<>](https://github.com/d3/d3-ease/blob/master/src/elastic.js#L18 \"Source\")\n\nReverse elastic easing; equivalent to 1 - [elasticIn](#easeElasticIn)(1 - *t*).\n\n[\"elasticOut\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#elasticOut)\n\n# d3.easeElasticInOut(t) [<>](https://github.com/d3/d3-ease/blob/master/src/elastic.js#L31 \"Source\")\n\nSymmetric elastic easing; scales [elasticIn](#easeElasticIn) for *t* in [0, 0.5] and [elasticOut](#easeElasticOut) for *t* in [0.5, 1].\n\n[\"elasticInOut\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#elasticInOut)\n\n# elastic.amplitude(a) [<>](https://github.com/d3/d3-ease/blob/master/src/elastic.js#L40 \"Source\")\n\nReturns a new elastic easing with the specified amplitude *a*.\n\n# elastic.period(p) [<>](https://github.com/d3/d3-ease/blob/master/src/elastic.js#L41 \"Source\")\n\nReturns a new elastic easing with the specified period *p*.\n\n# d3.easeBackIn(t) [<>](https://github.com/d3/d3-ease/blob/master/src/back.js#L3 \"Source\")\n\n[Anticipatory](https://en.wikipedia.org/wiki/12_basic_principles_of_animation#Anticipation) easing, like a dancer bending his knees before jumping off the floor. The degree of [overshoot](#back_overshoot) is configurable; it not specified, it defaults to 1.70158.\n\n[\"backIn\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#backIn)\n\n# d3.easeBackOut(t) [<>](https://github.com/d3/d3-ease/blob/master/src/back.js#L15 \"Source\")\n\nReverse anticipatory easing; equivalent to 1 - [backIn](#easeBackIn)(1 - *t*).\n\n[\"backOut\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#backOut)\n\n# d3.easeBack(t) [<>](https://github.com/d3/d3-ease/blob/master/src/back.js \"Source\")\n
# d3.easeBackInOut(t) [<>](https://github.com/d3/d3-ease/blob/master/src/back.js#L27 \"Source\")\n\nSymmetric anticipatory easing; scales [backIn](#easeBackIn) for *t* in [0, 0.5] and [backOut](#easeBackOut) for *t* in [0.5, 1].\n\n[\"backInOut\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#backInOut)\n\n# back.overshoot(s) [<>](https://github.com/d3/d3-ease/blob/master/src/back.js#L1 \"Source\")\n\nReturns a new back easing with the specified overshoot *s*.\n\n# d3.easeBounceIn(t) [<>](https://github.com/d3/d3-ease/blob/master/src/bounce.js#L12 \"Source\")\n\nBounce easing, like a rubber ball.\n\n[\"bounceIn\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#bounceIn)\n\n# d3.easeBounce(t) [<>](https://github.com/d3/d3-ease/blob/master/src/bounce.js \"Source\")\n
# d3.easeBounceOut(t) [<>](https://github.com/d3/d3-ease/blob/master/src/bounce.js#L16 \"Source\")\n\nReverse bounce easing; equivalent to 1 - [bounceIn](#easeBounceIn)(1 - *t*).\n\n[\"bounceOut\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#bounceOut)\n\n# d3.easeBounceInOut(t) [<>](https://github.com/d3/d3-ease/blob/master/src/bounce.js#L20 \"Source\")\n\nSymmetric bounce easing; scales [bounceIn](#easeBounceIn) for *t* in [0, 0.5] and [bounceOut](#easeBounceOut) for *t* in [0.5, 1].\n\n[\"bounceInOut\"](http://bl.ocks.org/mbostock/248bac3b8e354a9103c4/#bounceInOut)\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/d3/d3-ease.git" }, "scripts": { "postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3-ease/build/d3-ease.js d3-ease.v1.js && cp ../d3-ease/build/d3-ease.min.js d3-ease.v1.min.js && git add d3-ease.v1.js d3-ease.v1.min.js && git commit -m \"d3-ease ${npm_package_version}\" && git push && cd - && zip -j build/d3-ease.zip -- LICENSE README.md build/d3-ease.js build/d3-ease.min.js", "prepublish": "npm run test && uglifyjs --preamble \"$(preamble)\" build/d3-ease.js -c -m -o build/d3-ease.min.js", "pretest": "rm -rf build && mkdir build && rollup --banner \"$(preamble)\" -f umd -n d3 -o build/d3-ease.js -- index.js", "test": "tape 'test/**/*-test.js' && eslint index.js src" }, "version": "1.0.3" }