Gazebo_simulation-Frontend/node_modules/convert-css-length/dist/index.umd.js
2020-12-21 10:29:31 -05:00

3 lines
671 B
JavaScript

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.convertCssLength=n()}(this,function(){var e=function(e){return parseFloat(e)};return function(n){return null==n&&(n=n),function(t,r,f,i){null==f&&(f=n),null==i&&(i=f);var u=String(t).match(/[\d.\-\+]*\s*(.*)/)[1]||"";if(u===r)return t;var o=e(t);if("px"!==u)if("em"===u)o=e(t)*e(f);else if("rem"===u)o=e(t)*e(n);else{if("ex"!==u)return t;o=e(t)*e(f)*2}var l=o;if("px"!==r)if("em"===r)l=o/e(i);else if("rem"===r)l=o/e(n);else{if("ex"!==r)return t;l=o/e(i)/2}return parseFloat(l.toFixed(5))+r}}});
//# sourceMappingURL=index.umd.js.map