Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

d3-ease

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d3-ease - npm Package Compare versions

Comparing version 0.7.0 to 0.8.0

8

build/d3-ease.js

@@ -0,5 +1,6 @@

// https://d3js.org/d3-ease/ Version 0.8.0. Copyright 2016 Mike Bostock.
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.d3_ease = {})));
(factory((global.d3 = global.d3 || {})));
}(this, function (exports) { 'use strict';

@@ -215,5 +216,2 @@

var version = "0.7.0";
exports.version = version;
exports.easeLinear = linear;

@@ -257,2 +255,4 @@ exports.easeQuad = quadInOut;

Object.defineProperty(exports, '__esModule', { value: true });
}));

@@ -1,1 +0,2 @@

!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(n.d3_ease={})}(this,function(n){"use strict";function t(n){return+n}function e(n){return n*n}function u(n){return n*(2-n)}function r(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}function a(n){return n*n*n}function o(n){return--n*n*n+1}function i(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}function c(n){return 1-Math.cos(n*y)}function s(n){return Math.sin(n*y)}function f(n){return(1-Math.cos(E*n))/2}function h(n){return Math.pow(2,10*n-10)}function p(n){return 1-Math.pow(2,-10*n)}function M(n){return((n*=2)<=1?Math.pow(2,10*n-10):2-Math.pow(2,10-10*n))/2}function I(n){return 1-Math.sqrt(1-n*n)}function d(n){return Math.sqrt(1- --n*n)}function O(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}function l(n){return 1-x(1-n)}function x(n){return(n=+n)<P?g*n*n:k>n?g*(n-=b)*n+q:S>n?g*(n-=Q)*n+j:g*(n-=L)*n+_}function w(n){return((n*=2)<=1?1-x(1-n):x(n-1)+1)/2}var m=3,v=function U(n){function t(t){return Math.pow(t,n)}return n=+n,t.exponent=U,t}(m),B=function V(n){function t(t){return 1-Math.pow(1-t,n)}return n=+n,t.exponent=V,t}(m),C=function W(n){function t(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,t.exponent=W,t}(m),E=Math.PI,y=E/2,P=4/11,b=6/11,k=8/11,q=.75,Q=9/11,S=10/11,j=.9375,L=21/22,_=63/64,g=1/P/P,z=1.70158,A=function X(n){function t(t){return t*t*((n+1)*t-n)}return n=+n,t.overshoot=X,t}(z),D=function Y(n){function t(t){return--t*t*((n+1)*t+n)+1}return n=+n,t.overshoot=Y,t}(z),F=function Z(n){function t(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,t.overshoot=Z,t}(z),G=2*Math.PI,H=1,J=.3,K=function $(n,t){function e(e){return n*Math.pow(2,10*--e)*Math.sin((u-e)/t)}var u=Math.asin(1/(n=Math.max(1,n)))*(t/=G);return e.amplitude=function(n){return $(n,t*G)},e.period=function(t){return $(n,t)},e}(H,J),N=function nn(n,t){function e(e){return 1-n*Math.pow(2,-10*(e=+e))*Math.sin((e+u)/t)}var u=Math.asin(1/(n=Math.max(1,n)))*(t/=G);return e.amplitude=function(n){return nn(n,t*G)},e.period=function(t){return nn(n,t)},e}(H,J),R=function tn(n,t){function e(e){return((e=2*e-1)<0?n*Math.pow(2,10*e)*Math.sin((u-e)/t):2-n*Math.pow(2,-10*e)*Math.sin((u+e)/t))/2}var u=Math.asin(1/(n=Math.max(1,n)))*(t/=G);return e.amplitude=function(n){return tn(n,t*G)},e.period=function(t){return tn(n,t)},e}(H,J),T="0.7.0";n.version=T,n.easeLinear=t,n.easeQuad=r,n.easeQuadIn=e,n.easeQuadOut=u,n.easeQuadInOut=r,n.easeCubic=i,n.easeCubicIn=a,n.easeCubicOut=o,n.easeCubicInOut=i,n.easePoly=C,n.easePolyIn=v,n.easePolyOut=B,n.easePolyInOut=C,n.easeSin=f,n.easeSinIn=c,n.easeSinOut=s,n.easeSinInOut=f,n.easeExp=M,n.easeExpIn=h,n.easeExpOut=p,n.easeExpInOut=M,n.easeCircle=O,n.easeCircleIn=I,n.easeCircleOut=d,n.easeCircleInOut=O,n.easeBounce=x,n.easeBounceIn=l,n.easeBounceOut=x,n.easeBounceInOut=w,n.easeBack=F,n.easeBackIn=A,n.easeBackOut=D,n.easeBackInOut=F,n.easeElastic=N,n.easeElasticIn=K,n.easeElasticOut=N,n.easeElasticInOut=R});
// https://d3js.org/d3-ease/ Version 0.8.0. Copyright 2016 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}function e(n){return n*n}function u(n){return n*(2-n)}function r(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}function a(n){return n*n*n}function o(n){return--n*n*n+1}function i(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}function c(n){return 1-Math.cos(n*E)}function s(n){return Math.sin(n*E)}function f(n){return(1-Math.cos(C*n))/2}function h(n){return Math.pow(2,10*n-10)}function p(n){return 1-Math.pow(2,-10*n)}function M(n){return((n*=2)<=1?Math.pow(2,10*n-10):2-Math.pow(2,10-10*n))/2}function d(n){return 1-Math.sqrt(1-n*n)}function I(n){return Math.sqrt(1- --n*n)}function O(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}function l(n){return 1-x(1-n)}function x(n){return(n=+n)<P?g*n*n:k>n?g*(n-=b)*n+q:S>n?g*(n-=Q)*n+j:g*(n-=_)*n+L}function w(n){return((n*=2)<=1?1-x(1-n):x(n-1)+1)/2}var m=3,v=function T(n){function t(t){return Math.pow(t,n)}return n=+n,t.exponent=T,t}(m),y=function U(n){function t(t){return 1-Math.pow(1-t,n)}return n=+n,t.exponent=U,t}(m),B=function V(n){function t(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,t.exponent=V,t}(m),C=Math.PI,E=C/2,P=4/11,b=6/11,k=8/11,q=.75,Q=9/11,S=10/11,j=.9375,_=21/22,L=63/64,g=1/P/P,z=1.70158,A=function W(n){function t(t){return t*t*((n+1)*t-n)}return n=+n,t.overshoot=W,t}(z),D=function X(n){function t(t){return--t*t*((n+1)*t+n)+1}return n=+n,t.overshoot=X,t}(z),F=function Y(n){function t(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,t.overshoot=Y,t}(z),G=2*Math.PI,H=1,J=.3,K=function Z(n,t){function e(e){return n*Math.pow(2,10*--e)*Math.sin((u-e)/t)}var u=Math.asin(1/(n=Math.max(1,n)))*(t/=G);return e.amplitude=function(n){return Z(n,t*G)},e.period=function(t){return Z(n,t)},e}(H,J),N=function $(n,t){function e(e){return 1-n*Math.pow(2,-10*(e=+e))*Math.sin((e+u)/t)}var u=Math.asin(1/(n=Math.max(1,n)))*(t/=G);return e.amplitude=function(n){return $(n,t*G)},e.period=function(t){return $(n,t)},e}(H,J),R=function nn(n,t){function e(e){return((e=2*e-1)<0?n*Math.pow(2,10*e)*Math.sin((u-e)/t):2-n*Math.pow(2,-10*e)*Math.sin((u+e)/t))/2}var u=Math.asin(1/(n=Math.max(1,n)))*(t/=G);return e.amplitude=function(n){return nn(n,t*G)},e.period=function(t){return nn(n,t)},e}(H,J);n.easeLinear=t,n.easeQuad=r,n.easeQuadIn=e,n.easeQuadOut=u,n.easeQuadInOut=r,n.easeCubic=i,n.easeCubicIn=a,n.easeCubicOut=o,n.easeCubicInOut=i,n.easePoly=B,n.easePolyIn=v,n.easePolyOut=y,n.easePolyInOut=B,n.easeSin=f,n.easeSinIn=c,n.easeSinOut=s,n.easeSinInOut=f,n.easeExp=M,n.easeExpIn=h,n.easeExpOut=p,n.easeExpInOut=M,n.easeCircle=O,n.easeCircleIn=d,n.easeCircleOut=I,n.easeCircleInOut=O,n.easeBounce=x,n.easeBounceIn=l,n.easeBounceOut=x,n.easeBounceInOut=w,n.easeBack=F,n.easeBackIn=A,n.easeBackOut=D,n.easeBackInOut=F,n.easeElastic=N,n.easeElasticIn=K,n.easeElasticOut=N,n.easeElasticInOut=R,Object.defineProperty(n,"__esModule",{value:!0})});
{
"name": "d3-ease",
"version": "0.7.0",
"version": "0.8.0",
"description": "Easing functions for smooth animation.",

@@ -12,3 +12,3 @@ "keywords": [

],
"homepage": "https://github.com/d3/d3-ease",
"homepage": "https://d3js.org/d3-ease/",
"license": "BSD-3-Clause",

@@ -26,10 +26,11 @@ "author": {

"scripts": {
"pretest": "mkdir -p build && node -e 'process.stdout.write(\"var version = \\\"\" + require(\"./package.json\").version + \"\\\"; export * from \\\"../index\\\"; export {version};\");' > build/bundle.js && rollup -f umd -n d3_ease -o build/d3-ease.js -- build/bundle.js",
"test": "faucet `find test -name '*-test.js'` && eslint index.js src",
"prepublish": "npm run test && uglifyjs build/d3-ease.js -c -m -o build/d3-ease.min.js && rm -f build/d3-ease.zip && zip -j build/d3-ease.zip -- LICENSE README.md build/d3-ease.js build/d3-ease.min.js",
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git tag -am \"Release $VERSION.\" v${VERSION} && git push --tags && cp build/d3-ease.js ../d3.github.com/d3-ease.v0.7.js && cp build/d3-ease.min.js ../d3.github.com/d3-ease.v0.7.min.js && cd ../d3.github.com && git add d3-ease.v0.7.js d3-ease.v0.7.min.js && git commit -m \"d3-ease ${VERSION}\" && git push"
"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",
"prepublish": "npm run test && uglifyjs --preamble \"$(preamble)\" build/d3-ease.js -c -m -o build/d3-ease.min.js",
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cp build/d3-ease.js ../d3.github.com/d3-ease.v0.8.js && cp build/d3-ease.min.js ../d3.github.com/d3-ease.v0.8.min.js && cd ../d3.github.com && git add d3-ease.v0.8.js d3-ease.v0.8.min.js && git commit -m \"d3-ease ${VERSION}\" && git push && cd - && zip -j build/d3-ease.zip -- LICENSE README.md build/d3-ease.js build/d3-ease.min.js"
},
"devDependencies": {
"faucet": "0.0",
"rollup": "0.25",
"eslint": "2",
"package-preamble": "0.0",
"rollup": "0.27",
"tape": "4",

@@ -36,0 +37,0 @@ "uglify-js": "2"

@@ -11,9 +11,14 @@ # d3-ease

If you use NPM, `npm install d3-ease`. Otherwise, download the [latest release](https://github.com/d3/d3-ease/releases/latest). The released bundle supports AMD, CommonJS, and vanilla environments. Create a custom build using [Rollup](https://github.com/rollup/rollup) or your preferred bundler. You can also load directly from [d3js.org](https://d3js.org):
If 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.v0.8.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:
```html
<script src="https://d3js.org/d3-ease.v0.6.min.js"></script>
<script src="https://d3js.org/d3-ease.v0.8.min.js"></script>
<script>
var ease = d3.easeCubic;
</script>
```
In a vanilla environment, a `d3_ease` global is exported. [Try d3-ease in your browser.](https://tonicdev.com/npm/d3-ease)
[Try d3-ease in your browser.](https://tonicdev.com/npm/d3-ease)

@@ -20,0 +25,0 @@ ## API Reference

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc