- let regex = /[+-]?\d+(\.\d+)?/g,
- function getStyle(_element, _property){
- let style = window.getComputedStyle(_element, null);
- let prop = style.getPropertyValue(_property);
- let v = prop.match(regex)||[0];
- let val= v.map(function (v){return 1*v;});
- return 1*(val);
- }