Comparing version 0.5.0 to 1.0.0
@@ -1,1 +0,1 @@ | ||
!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}var i=n(1),o=r(i);window.framesync=o},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0,e.setDilation=e.setSteps=e.Process=void 0;var i=n(2),o=r(i),s=n(3),u=n(4);e.Process=o["default"],e.setSteps=s.setSteps,e.setDilation=u.setDilation},function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=n(3),s=r(o),u=function(){function t(e,n){i(this,t);for(var r in e)e.hasOwnProperty(r)&&(this[r]=e[r]);this.isLazy=n||!1,this.id=s.getProcessId(),this.isActive=!1}return t.prototype.start=function(){return this.isActive=!0,s.activate(this.id,this),this},t.prototype.stop=function(){return this.isActive=!1,s.deactivate(this.id),this},t.prototype.once=function(){var t=this;return this.cleanup=function(){t.stop(),t.cleanup=void 0},this.start(),this},t}();e["default"]=u},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){var n=t?1:-1;M+=n,e||(x+=n)}function o(){for(var t=g.length;t--;){var e=g[t],n=O.indexOf(e);n>-1&&(O.splice(n,1),i(!1,R[e].isLazy),delete R[e])}g=[]}function s(t,e){var n={},r="",i=!1,s=void 0,u=void 0;o();for(var a=M,c=0;m>c;c++){n=w[c],r=n.step,i=n.isRender?!0:!1;for(var f=0;a>f;f++)s=R[O[f]],s&&s[r]&&(u=s[r].call(s,s,t,e)),n.decideRender&&(s._render=s[r]&&u===!1?!1:!0)}return o(),x?!0:!1}function u(){_["default"](function(t){P&&u(),v["default"].update(t),P=s(t,v["default"].getElapsed())})}function a(){P||(v["default"].start(),P=!0,u())}function c(){return y++}function f(t,e){var n=g.indexOf(t),r=n>-1,o=O.indexOf(t)>-1;r&&g.splice(n,1),o||(O.push(t),R[t]=e,i(!0,e.isLazy),a())}function d(t){-1===g.indexOf(t)&&g.push(t)}function l(t){w=t}e.__esModule=!0,e.getProcessId=c,e.activate=f,e.deactivate=d,e.setSteps=l;var p=n(4),v=r(p),h=n(5),_=r(h),w=[{step:"frameStart"},{step:"update"},{step:"willRender",decideRender:!0},{step:"preRender",isRender:!0},{step:"render",isRender:!0},{step:"postRender",isRender:!0},{step:"frameEnd"},{step:"cleanup"}],m=w.length,y=0,M=0,x=0,O=[],R={},g=[],P=!1},function(t,e,n){"use strict";function r(t){f=t}e.__esModule=!0,e.setDilation=r;var i="undefined"!=typeof performance&&performance.now,o=function(){return i?performance.now():(new Date).getTime()},s=33,u=0,a=0,c=16.7,f=1,d=0;e["default"]={update:function(t){0===u&&(a=u=t);var e=a,n=t-d,r=Math.min(n-e,s);c=r*f,a+=c,d+=r-c},start:function(){return a=o()},getElapsed:function(){return c}}},function(t,e,n){"use strict";e.__esModule=!0;var r="undefined"!=typeof window&&window.requestAnimationFrame?!0:!1,i=void 0;r?i=window.requestAnimationFrame:!function(){var t=0;i=function(e){var n=(new Date).getTime(),r=Math.max(0,16-(n-t));t=n+r,setTimeout(function(){return e(t)},r)}}(),e["default"]=i}]); | ||
!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}var i=n(1),o=r(i);window.framesync=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t.setDilation=t.setSteps=t.Process=void 0;var i=n(2),o=r(i),s=n(3),u=n(4);t.Process=o["default"],t.setSteps=s.setSteps,t.setDilation=u.setDilation},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var o=n(3),s=r(o),u=function(){function e(t,n){i(this,e);for(var r in t)t.hasOwnProperty(r)&&(this[r]=t[r]);this.isLazy=n||!1,this.id=s.getProcessId(),this.isActive=!1}return e.prototype.start=function(){return this.isActive=!0,s.activate(this.id,this),this},e.prototype.stop=function(){return this.isActive=!1,s.deactivate(this.id),this},e.prototype.once=function(){var e=this;return this.cleanup=function(){e.stop(),e.cleanup=void 0},this.start(),this},e}();t["default"]=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){var n=e?1:-1;M+=n,t||(x+=n)}function o(){for(var e=g.length;e--;){var t=g[e],n=O.indexOf(t);n>-1&&(O.splice(n,1),i(!1,R[t].isLazy),delete R[t])}g=[]}function s(e,t){var n={},r="",i=!1,s=void 0,u=void 0;o();for(var a=M,c=0;m>c;c++){n=w[c],r=n.step,i=n.isRender?!0:!1;for(var f=0;a>f;f++)s=R[O[f]],s&&s[r]&&(!i||i&&s._render===!0)&&(u=s[r].call(s,s,e,t)),n.decideRender&&(s._render=s[r]&&u===!1?!1:!0)}return o(),x?!0:!1}function u(){_["default"](function(e){P&&u(),v["default"].update(e),P=s(e,v["default"].getElapsed())})}function a(){P||(v["default"].start(),P=!0,u())}function c(){return y++}function f(e,t){var n=g.indexOf(e),r=n>-1,o=O.indexOf(e)>-1;r&&g.splice(n,1),o||(O.push(e),R[e]=t,i(!0,t.isLazy),a())}function d(e){-1===g.indexOf(e)&&g.push(e)}function l(e){w=e}t.__esModule=!0,t.getProcessId=c,t.activate=f,t.deactivate=d,t.setSteps=l;var p=n(4),v=r(p),h=n(5),_=r(h),w=[{step:"frameStart"},{step:"update"},{step:"willRender",decideRender:!0},{step:"preRender",isRender:!0},{step:"render",isRender:!0},{step:"postRender",isRender:!0},{step:"frameEnd"},{step:"cleanup"}],m=w.length,y=0,M=0,x=0,O=[],R={},g=[],P=!1},function(e,t,n){"use strict";function r(e){f=e}t.__esModule=!0,t.setDilation=r;var i="undefined"!=typeof performance&&performance.now,o=function(){return i?performance.now():(new Date).getTime()},s=33,u=0,a=0,c=16.7,f=1,d=0;t["default"]={update:function(e){0===u&&(a=u=e);var t=a,n=e-d,r=Math.min(n-t,s);c=r*f,a+=c,d+=r-c},start:function(){return a=o()},getElapsed:function(){return c}}},function(e,t,n){"use strict";t.__esModule=!0;var r="undefined"!=typeof window&&window.requestAnimationFrame?!0:!1,i=void 0;r?i=window.requestAnimationFrame:!function(){var e=0;i=function(t){var n=(new Date).getTime(),r=Math.max(0,16-(n-e));e=n+r,setTimeout(function(){return t(e)},r)}}(),t["default"]=i}]); |
@@ -102,3 +102,3 @@ 'use strict'; | ||
if (process && process[methodName]) { | ||
if (process && process[methodName] && (!isRenderStep || isRenderStep && process._render === true)) { | ||
result = process[methodName].call(process, process, frameStamp, elapsed); | ||
@@ -185,2 +185,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9sb29wLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztRQXlJZ0IsWUFBWSxHQUFaLFlBQVk7UUFRWixRQUFRLEdBQVIsUUFBUTtRQXVCUixVQUFVLEdBQVYsVUFBVTtRQU1WLFFBQVEsR0FBUixRQUFROzs7Ozs7Ozs7Ozs7QUEzS3hCLElBQUksWUFBWSxHQUFHLENB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cbi8qXG4gICAgW2ludF06IFByb2Nlc3MgSUQgdG8gZGVhY3RpdmF0ZVxuKi9cbmV4cG9ydCBmdW5jdGlvbiBkZWFjdGl2YXRlKGlkKSB7XG4gICAgaWYgKGRlYWN0aXZhdGVRdWV1ZS5pbmRleE9mKGlkKSA9PT0gLTEpIHtcbiAgICAgICAgZGVhY3RpdmF0ZVF1ZXVlLnB1c2goaWQpO1xuICAgIH1cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIHNldFN0ZXBzKG5ld1Byb2Nlc3NPcmRlcikge1xuICAgIHByb2Nlc3NPcmRlciA9IG5ld1Byb2Nlc3NPcmRlcjtcbn0iXX0= |
{ | ||
"name": "framesync", | ||
"version": "0.5.0", | ||
"version": "1.0.0", | ||
"description": "A high-performance, frame-synced render loop for any JavaScript environment.", | ||
@@ -5,0 +5,0 @@ "author": "Matt Perry <sirhound@popmotion.io>", |
Sorry, the diff of this file is too big to display
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
113333
683
0