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.8.0 to 1.0.0

2

build/d3-ease.js

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

// https://d3js.org/d3-ease/ Version 0.8.0. Copyright 2016 Mike Bostock.
// https://d3js.org/d3-ease/ Version 1.0.0. Copyright 2016 Mike Bostock.
(function (global, factory) {

@@ -3,0 +3,0 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :

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

// https://d3js.org/d3-ease/ Version 0.8.0. Copyright 2016 Mike Bostock.
// https://d3js.org/d3-ease/ Version 1.0.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.8.0",
"version": "1.0.0",
"description": "Easing functions for smooth animation.",
"keywords": [
"d3",
"d3-module",
"ease",

@@ -28,3 +29,3 @@ "easing",

"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"
"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.v1.js && cp build/d3-ease.min.js ../d3.github.com/d3-ease.v1.min.js && cd ../d3.github.com && git add d3-ease.v1.js d3-ease.v1.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"
},

@@ -34,3 +35,3 @@ "devDependencies": {

"package-preamble": "0.0",
"rollup": "0.27",
"rollup": "0.31",
"tape": "4",

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

@@ -11,6 +11,6 @@ # d3-ease

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:
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.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:
```html
<script src="https://d3js.org/d3-ease.v0.8.min.js"></script>
<script src="https://d3js.org/d3-ease.v1.min.js"></script>
<script>

@@ -221,3 +221,3 @@

<a name="back_amplitude" href="#back_amplitude">#</a> <i>back</i>.<b>overshoot</b>(<i>s</i>)
<a name="back_overshoot" href="#back_overshoot">#</a> <i>back</i>.<b>overshoot</b>(<i>s</i>)

@@ -224,0 +224,0 @@ Returns a new back easing with the specified overshoot *s*.

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