Comparing version 1.0.5 to 1.0.6
@@ -1,2 +0,2 @@ | ||
// https://d3js.org/d3-timer/ Version 1.0.5. Copyright 2017 Mike Bostock. | ||
// https://d3js.org/d3-timer/ Version 1.0.6. Copyright 2017 Mike Bostock. | ||
(function (global, factory) { | ||
@@ -18,3 +18,3 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | ||
var clock = typeof performance === "object" && performance.now ? performance : Date; | ||
var setFrame = typeof requestAnimationFrame === "function" ? requestAnimationFrame : function(f) { setTimeout(f, 17); }; | ||
var setFrame = typeof window === "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); }; | ||
@@ -21,0 +21,0 @@ function now() { |
@@ -1,2 +0,1 @@ | ||
// https://d3js.org/d3-timer/ Version 1.0.5. Copyright 2017 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 y||(w(e),y=x.now()+d)}function e(){y=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(),++_;for(var t,e=f;e;)(t=y-e._time)>=0&&e._call.call(null,t),e=e._next;--_}function u(){y=(v=x.now())+d,_=m=0;try{r()}finally{_=0,c(),y=0}}function l(){var t=x.now(),n=t-v;n>h&&(d-=n,v=t)}function c(){for(var t,n,e=f,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:f=n);s=t,a(i)}function a(t){if(!_){m&&(m=clearTimeout(m));var n=t-y;n>24?(t<1/0&&(m=setTimeout(u,n)),p&&(p=clearInterval(p))):(p||(v=y,p=setInterval(l,h)),_=1,w(u))}}var f,s,_=0,m=0,p=0,h=1e3,v=0,y=0,d=0,x="object"==typeof performance&&performance.now?performance:Date,w="function"==typeof requestAnimationFrame?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||s===this||(s?s._next=this:f=this,s=this),this._call=t,this._time=i,a()},stop:function(){this._call&&(this._call=null,this._time=1/0,a())}};var b=function(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},T=function(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)};t.now=n,t.timer=o,t.timerFlush=r,t.timeout=b,t.interval=T,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!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 h||(x(e),h=y.now()+v)}function e(){h=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(),++_;for(var t,e=f;e;)(t=h-e._time)>=0&&e._call.call(null,t),e=e._next;--_}function u(){h=(d=y.now())+v,_=m=0;try{r()}finally{_=0,c(),h=0}}function l(){var t=y.now(),n=t-d;n>w&&(v-=n,d=t)}function c(){for(var t,n,e=f,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:f=n);s=t,a(i)}function a(t){if(!_){m&&(m=clearTimeout(m));var n=t-h;n>24?(t<1/0&&(m=setTimeout(u,n)),p&&(p=clearInterval(p))):(p||(d=h,p=setInterval(l,w)),_=1,x(u))}}var f,s,_=0,m=0,p=0,w=1e3,d=0,h=0,v=0,y="object"==typeof performance&&performance.now?performance:Date,x="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):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||s===this||(s?s._next=this:f=this,s=this),this._call=t,this._time=i,a()},stop:function(){this._call&&(this._call=null,this._time=1/0,a())}};var b=function(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},j=function(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)};t.now=n,t.timer=o,t.timerFlush=r,t.timeout=b,t.interval=j,Object.defineProperty(t,"__esModule",{value:!0})}); |
{ | ||
"name": "d3-timer", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "An efficient queue capable of managing thousands of concurrent animations.", | ||
@@ -36,7 +36,7 @@ "keywords": [ | ||
"eslint": "3", | ||
"package-preamble": "0.0", | ||
"rollup": "0.41", | ||
"package-preamble": "0.1", | ||
"rollup": "0.42", | ||
"tape": "4", | ||
"uglify-js": "^2.8.11" | ||
"uglify-js": "3" | ||
} | ||
} |
@@ -11,3 +11,3 @@ var frame = 0, // is an animation frame pending? | ||
clock = typeof performance === "object" && performance.now ? performance : Date, | ||
setFrame = typeof requestAnimationFrame === "function" ? requestAnimationFrame : function(f) { setTimeout(f, 17); }; | ||
setFrame = typeof window === "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); }; | ||
@@ -14,0 +14,0 @@ export function now() { |
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
18347
266