Comparing version 1.0.1 to 1.0.2
@@ -1,2 +0,2 @@ | ||
// https://d3js.org/d3-timer/ Version 1.0.1. Copyright 2016 Mike Bostock. | ||
// https://d3js.org/d3-timer/ Version 1.0.2. 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-timer/ Version 1.0.1. Copyright 2016 Mike Bostock. | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.d3=t.d3||{})}(this,function(t){"use strict";function n(){return w||(F(e),w=b.now()+x)}function e(){w=0}function i(){this._call=this._time=this._next=null}function o(t,n,e){var o=new i;return o.restart(t,n,e),o}function r(){n(),++p;for(var t,e=m;e;)(t=w-e._time)>=0&&e._call.call(null,t),e=e._next;--p}function u(t){w=(d=t||b.now())+x,p=h=0;try{r()}finally{p=0,c(),w=0}}function l(){var t=b.now(),n=t-d;n>y&&(x-=n,d=t)}function c(){for(var t,n,e=m,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:m=n);_=t,a(i)}function a(t){if(!p){h&&(h=clearTimeout(h));var n=t-w;n>24?(t<1/0&&(h=setTimeout(u,n)),v&&(v=clearInterval(v))):(v||(v=setInterval(l,y)),p=1,F(u))}}function f(t,n,e){var o=new i;return n=null==n?0:+n,o.restart(function(e){o.stop(),t(e+n)},n,e),o}function s(t,e,o){var r=new i,u=e;return null==e?(r.restart(t,e,o),r):(e=+e,o=null==o?n():+o,r.restart(function l(n){n+=u,r.restart(l,u+=e,o),t(n)},e,o),r)}var m,_,p=0,h=0,v=0,y=1e3,d=0,w=0,x=0,b="object"==typeof performance&&performance.now?performance:Date,F="function"==typeof requestAnimationFrame?b===Date?function(t){requestAnimationFrame(function(){t(b.now())})}:requestAnimationFrame:function(t){setTimeout(t,17)};i.prototype=o.prototype={constructor:i,restart:function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?n():+i)+(null==e?0:+e),this._next||_===this||(_?_._next=this:m=this,_=this),this._call=t,this._time=i,a()},stop:function(){this._call&&(this._call=null,this._time=1/0,a())}},t.now=n,t.timer=o,t.timerFlush=r,t.timeout=f,t.interval=s,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
// https://d3js.org/d3-timer/ Version 1.0.2. Copyright 2016 Mike Bostock. | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.d3=t.d3||{})}(this,function(t){"use strict";function n(){return w||(F(e),w=b.now()+x)}function e(){w=0}function i(){this._call=this._time=this._next=null}function o(t,n,e){var o=new i;return o.restart(t,n,e),o}function r(){n(),++p;for(var t,e=m;e;)(t=w-e._time)>=0&&e._call.call(null,t),e=e._next;--p}function u(t){w=(d=t||b.now())+x,p=h=0;try{r()}finally{p=0,c(),w=0}}function l(){var t=b.now(),n=t-d;n>y&&(x-=n,d=t)}function c(){for(var t,n,e=m,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:m=n);_=t,a(i)}function a(t){if(!p){h&&(h=clearTimeout(h));var n=t-w;n>24?(t<1/0&&(h=setTimeout(u,n)),v&&(v=clearInterval(v))):(v||(v=setInterval(l,y)),p=1,F(u))}}function f(t,n,e){var o=new i;return n=null==n?0:+n,o.restart(function(e){o.stop(),t(e+n)},n,e),o}function s(t,e,o){var r=new i,u=e;return null==e?(r.restart(t,e,o),r):(e=+e,o=null==o?n():+o,r.restart(function n(i){i+=u,r.restart(n,u+=e,o),t(i)},e,o),r)}var m,_,p=0,h=0,v=0,y=1e3,d=0,w=0,x=0,b="object"==typeof performance&&performance.now?performance:Date,F="function"==typeof requestAnimationFrame?b===Date?function(t){requestAnimationFrame(function(){t(b.now())})}:requestAnimationFrame:function(t){setTimeout(t,17)};i.prototype=o.prototype={constructor:i,restart:function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?n():+i)+(null==e?0:+e),this._next||_===this||(_?_._next=this:m=this,_=this),this._call=t,this._time=i,a()},stop:function(){this._call&&(this._call=null,this._time=1/0,a())}},t.now=n,t.timer=o,t.timerFlush=r,t.timeout=f,t.interval=s,Object.defineProperty(t,"__esModule",{value:!0})}); |
{ | ||
"name": "d3-timer", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "An efficient queue capable of managing thousands of concurrent animations.", | ||
@@ -22,2 +22,3 @@ "keywords": [ | ||
"main": "build/d3-timer.js", | ||
"module": "index", | ||
"jsnext:main": "index", | ||
@@ -37,3 +38,3 @@ "repository": { | ||
"package-preamble": "0.0", | ||
"rollup": "0.33", | ||
"rollup": "0.34", | ||
"tape": "4", | ||
@@ -40,0 +41,0 @@ "uglify-js": "2" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18399