dist/cropper.common.js
function setStyle(element, styles) {
  var style = element.style;


  forEach(styles, function (value, property) {
    if (REGEXP_SUFFIX.test(property) && isNumber(value)) {
      value += 'px';
    }

    style[property] = value;
  });
}
function setStyle(element, styles) {
  var style = element.style;


  forEach(styles, function (value, property) {
    if (REGEXP_SUFFIX.test(property) && isNumber(value)) {
      value += 'px';
    }

    style[property] = value;
  });
}
function setStyle ( element , styles ) { var style = element . style ; forEach ( styles , function ( value , property ) { if ( REGEXP_SUFFIX . test ( property ) && isNumber ( value ) ) { value += 'px' ; } style [ property ] = value ; } ) ; }
Apply styles to the given element.
@param {Element} element - The target element.
@param {Object} styles - The styles for applying.
Apply styles to the given element .