universal-transition
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -1,1 +0,1 @@ | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define)define("universal-transition",function(n,t,o){o.exports=e()});else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof self?self:"undefined"!=typeof global?global:this,n.UniversalTransition=e()}}(function(){return function(e){function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var t={};return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=0)}([function(e,n,t){"use strict";function o(e,n,t,o){"function"!=typeof t&&null!=t||(o=t,t={timingFunction:"ease",duration:0,delay:0});for(var u in n)n[u]=(0,r.convertUnit)(n[u],u);if(i.isWeex){__weex_require__("@weex-module/animation").transition(e.ref,{styles:n,timingFunction:t.timingFunction||"linear",delay:t.delay||0,duration:t.duration||0},o||function(){})}else if(i.isWeb){var f=t.duration||0,l=t.timingFunction||"linear",a=t.delay||0,d="all "+f+"ms "+l+" "+a+"ms";if(e.style.transition=d,e.style.webkitTransition=d,o){var s=function n(t){t.stopPropagation(),e.removeEventListener("webkitTransitionEnd",n),e.removeEventListener("transitionend",n),e.style.transition="",e.style.webkitTransition="",o()};e.addEventListener("webkitTransitionEnd",s),e.addEventListener("transitionend",s)}for(var c in n){var y=n[c];e.style[c]=y}}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;var i=t(1),r=t(2);e.exports=n.default},function(e,n,t){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(n,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":o(e)};n.isWeb="object"===("undefined"==typeof navigator?"undefined":i(navigator))&&("Mozilla"===navigator.appCodeName||"Gecko"===navigator.product),n.isNode="undefined"!=typeof process&&!(!process.versions||!process.versions.node),n.isWeex="function"==typeof callNative,n.isReactNative="undefined"!=typeof __fbBatchedBridgeConfig;n.default=e.exports,n.default=e.exports},function(e,n,t){"use strict";function o(e){return"string"==typeof e&&-1!==e.indexOf(c)}function i(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m[p];return e.replace(y,function(e){return parseFloat(e)*n+"px"})}function r(){return m[p]}function u(e){m[p]=e}function f(e,n){return"number"==typeof e&&!s[n]}function l(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m[p];return n&&f(e,n)?e*t+"px":o(e)?i(e,t):e}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(n,"__esModule",{value:!0});var d="function"==typeof Symbol&&"symbol"===a(Symbol.iterator)?function(e){return void 0===e?"undefined":a(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":a(e)};n.isRem=o,n.calcRem=i,n.getRem=r,n.setRem=u,n.isUnitNumber=f,n.convertUnit=l;var s={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,lines:!0},c="rem",y=/[-+]?\d*\.?\d+rem/g,p="__global_rem_unit__",m="object"===("undefined"==typeof window?"undefined":d(window))?window:"object"===(void 0===m?"undefined":d(m))?m:{};null==m[p]&&(m[p]=1),n.default=e.exports,n.default=e.exports}])}); | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define)define("universal-transition",function(n,t,o){o.exports=e()});else{("undefined"!=typeof window?window:"undefined"!=typeof self?self:"undefined"!=typeof global?global:this).UniversalTransition=e()}}(function(){return function(e){var n={};function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n,t,r){"function"!=typeof t&&null!=t||(r=t,t={timingFunction:"ease",duration:0,delay:0});for(var u in n)n[u]=(0,i.convertUnit)(n[u],u);if(o.isWeex){var f=__weex_require__("@weex-module/animation");f.transition(e.ref,{styles:n,timingFunction:t.timingFunction||"linear",delay:t.delay||0,duration:t.duration||0},r||function(){})}else if(o.isWeb){var l=t.duration||0,a=t.timingFunction||"linear",d=t.delay||0,s="all "+l+"ms "+a+" "+d+"ms";if(e.style.transition=s,e.style.webkitTransition=s,r){var c=function n(t){t.stopPropagation(),e.removeEventListener("webkitTransitionEnd",n),e.removeEventListener("transitionend",n),e.style.transition="",e.style.webkitTransition="",r()};e.addEventListener("webkitTransitionEnd",c),e.addEventListener("transitionend",c)}for(var y in n){var p=n[y];e.style[y]=p}}};var o=t(1),i=t(2);e.exports=n.default},function(e,n,t){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(n,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":o(e)};n.isWeb="object"===("undefined"==typeof navigator?"undefined":i(navigator))&&("Mozilla"===navigator.appCodeName||"Gecko"===navigator.product),n.isNode="undefined"!=typeof process&&!(!process.versions||!process.versions.node),n.isWeex="function"==typeof callNative,n.isReactNative="undefined"!=typeof __fbBatchedBridgeConfig;n.default=e.exports,n.default=e.exports},function(e,n,t){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(n,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":o(e)};n.isRem=d,n.calcRem=s,n.getRem=function(){return a[l]},n.setRem=function(e){a[l]=e},n.isUnitNumber=c,n.convertUnit=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a[l];if(n&&c(e,n))return e*t+"px";if(d(e))return s(e,t);return e};var r={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,lines:!0},u="rem",f=/[-+]?\d*\.?\d+rem/g,l="__global_rem_unit__",a="object"===("undefined"==typeof window?"undefined":i(window))?window:"object"===(void 0===a?"undefined":i(a))?a:{};function d(e){return"string"==typeof e&&-1!==e.indexOf(u)}function s(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a[l];return e.replace(f,function(e){return parseFloat(e)*n+"px"})}function c(e,n){return"number"==typeof e&&!r[n]}null==a[l]&&(a[l]=1),n.default=e.exports,n.default=e.exports}])}); |
{ | ||
"name": "universal-transition", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "A universal transition API.", | ||
@@ -16,5 +16,5 @@ "license": "BSD-3-Clause", | ||
"dependencies": { | ||
"style-unit": "^0.5.0", | ||
"universal-env": "^0.5.0" | ||
"style-unit": "^0.5.1", | ||
"universal-env": "^0.5.1" | ||
} | ||
} |
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
58970
Updatedstyle-unit@^0.5.1
Updateduniversal-env@^0.5.1