polythene-utilities
Advanced tools
Comparing version 1.7.2 to 1.7.3
@@ -1,2 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("polythene-core")):"function"==typeof define&&define.amd?define(["exports","polythene-core"],n):n((e=e||self).polythene={},e["polythene-core"])}(this,function(e,n){"use strict";function t(){return(t=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)}var i={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},o=n.isServer?function(){}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)};e.Timer=function(){var e,t,i,o,r=function(){n.isClient&&window.clearTimeout(e)},u=function(){n.isClient&&(r(),t=(new Date).getTime(),e=window.setTimeout(o,i))};return{start:function(e,n){return o=e,i=1e3*n,u()},pause:function(){return r(),i-=(new Date).getTime()-t},resume:function(){return u()},stop:r}},e.addWebFont=function(e,i){if(!n.isServer){if(!window.WebFontConfig){var o=function(t){var o=t.name,r=t.familyName,u=t.fvd;return n.emit("webfontloader",{name:o,familyName:r,fvd:u,vendor:e,config:i})};window.WebFontConfig={loading:function(){return o({name:"loading"})},active:function(){return o({name:"active"})},inactive:function(){return o({name:"inactive"})},fontloading:function(e,n){return o({name:"fontloading",familyName:e,fvd:n})},fontactive:function(e,n){return o({name:"fontactive",familyName:e,fvd:n})},fontinactive:function(e,n){return o({name:"fontinactive",familyName:e,fvd:n})}},function(){var e=document.createElement("script");e.src=("https:"===document.location.protocol?"https":"http")+"://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js",e.type="text/javascript",e.async=!0;var n=document.getElementsByTagName("script")[0];n&&n.parentNode&&n.parentNode.insertBefore(e,n)}()}var r=window.WebFontConfig[e]||{};i&&t(r,i),window.WebFontConfig[e]=r}},e.easing=i,e.scrollTo=function(e){if(!n.isServer){var t=e.element,r="horizontal"===e.direction?"scrollLeft":"scrollTop",u=e.to,a=1e3*e.duration,f=e.easing||i.easeInOutCubic,c=t[r],s=u-c,m=(new Date).getTime(),d=!0;return new Promise(function(e){o(function n(){if(d){o(n);var i=((new Date).getTime()-m)/a,l=c+s*f(i);t[r]=l,i>=1&&(t[r]=u,d=!1,e())}})})}},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("polythene-core")):"function"==typeof define&&define.amd?define(["exports","polythene-core"],n):n((e=e||self).polythene={},e["polythene-core"])}(this,(function(e,n){"use strict";function t(){return(t=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)}var i={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},o=n.isServer?function(){}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)};e.Timer=function(){var e,t,i,o,r=function(){n.isClient&&window.clearTimeout(e)},u=function(){n.isClient&&(r(),t=(new Date).getTime(),e=window.setTimeout(o,i))};return{start:function(e,n){return o=e,i=1e3*n,u()},pause:function(){return r(),i-=(new Date).getTime()-t},resume:function(){return u()},stop:r}},e.addWebFont=function(e,i){if(!n.isServer){if(!window.WebFontConfig){var o=function(t){var o=t.name,r=t.familyName,u=t.fvd;return n.emit("webfontloader",{name:o,familyName:r,fvd:u,vendor:e,config:i})};window.WebFontConfig={loading:function(){return o({name:"loading"})},active:function(){return o({name:"active"})},inactive:function(){return o({name:"inactive"})},fontloading:function(e,n){return o({name:"fontloading",familyName:e,fvd:n})},fontactive:function(e,n){return o({name:"fontactive",familyName:e,fvd:n})},fontinactive:function(e,n){return o({name:"fontinactive",familyName:e,fvd:n})}},function(){var e=document.createElement("script");e.src=("https:"===document.location.protocol?"https":"http")+"://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js",e.type="text/javascript",e.async=!0;var n=document.getElementsByTagName("script")[0];n&&n.parentNode&&n.parentNode.insertBefore(e,n)}()}var r=window.WebFontConfig[e]||{};i&&t(r,i),window.WebFontConfig[e]=r}},e.easing=i,e.scrollTo=function(e){if(!n.isServer){var t=e.element,r="horizontal"===e.direction?"scrollLeft":"scrollTop",u=e.to,a=1e3*e.duration,f=e.easing||i.easeInOutCubic,c=t[r],s=u-c,m=(new Date).getTime(),d=!0;return new Promise((function(e){o((function n(){if(d){o(n);var i=((new Date).getTime()-m)/a,l=c+s*f(i);t[r]=l,i>=1&&(t[r]=u,d=!1,e())}}))}))}},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=polythene-utilities.js.map |
{ | ||
"name": "polythene-utilities", | ||
"version": "1.7.2", | ||
"version": "1.7.3", | ||
"description": "", | ||
@@ -20,4 +20,4 @@ "main": "dist/polythene-utilities", | ||
"dependencies": { | ||
"polythene-core": "1.7.2", | ||
"polythene-core-css": "1.7.2", | ||
"polythene-core": "1.7.3", | ||
"polythene-core-css": "1.7.3", | ||
"webfontloader": "^1.6.28" | ||
@@ -24,0 +24,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
28034
+ Addedpolythene-core@1.7.3(transitive)
+ Addedpolythene-core-css@1.7.3(transitive)
- Removedpolythene-core@1.7.2(transitive)
- Removedpolythene-core-css@1.7.2(transitive)
Updatedpolythene-core@1.7.3
Updatedpolythene-core-css@1.7.3