_changeRotateForButton(event) {
    const button = event.target.closest('.tui-image-editor-button');
    const angle = this._els.rotateRange.value;

    if (button) {
      const rotateType = this.getButtonType(button, ['counterclockwise', 'clockwise']);
      const rotateAngle = {
        clockwise: CLOCKWISE,
        counterclockwise: COUNTERCLOCKWISE,
      }[rotateType];
      const newAngle = parseInt(angle, 10) + rotateAngle;
      const isRotatable = newAngle >= -360 && newAngle <= 360;
      if (isRotatable) {
        this.actions.rotate(rotateAngle);
      }
    }
  }
Change rotate for button
@param {object} event - add button event object
@private