@seniorsistemas/angular-components 17.3.6 → 17.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12871,6 +12871,13 @@
12871
12871
  this.croppedCanvas.emit();
12872
12872
  }
12873
12873
  else {
12874
+ //hack to fix images if canvas doesnt match image (for mobile, tablets, etc)
12875
+ if (this.cropper.getCanvasData().height !== this.cropper.getImageData().height) {
12876
+ this.cropper.getImageData().scaleY = this.cropper.getImageData().height / this.cropper.getCanvasData().height;
12877
+ }
12878
+ if (this.cropper.getCanvasData().width !== this.cropper.getImageData().width) {
12879
+ this.cropper.getImageData().scaleX = this.cropper.getImageData().width / this.cropper.getCanvasData().width;
12880
+ }
12874
12881
  var _croppedCanvas = this.rounded
12875
12882
  ? this.getRoundedCanvas(this.cropper.getCroppedCanvas())
12876
12883
  : this.cropper.getCroppedCanvas();