ngx-scandoc 1.2.3 → 1.2.4

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.
@@ -632,7 +632,7 @@ class WebcamComponent extends BaseComponent {
632
632
  return this.height;
633
633
  }
634
634
  updatecanvasSize() {
635
- console.log(this.width, this.height);
635
+ // console.log(this.width, this.height);
636
636
  const landscape = this.width > this.height;
637
637
  const aspect = this.videoSize.width / this.videoSize.height;
638
638
  let width = this.width;
@@ -674,7 +674,6 @@ class WebcamComponent extends BaseComponent {
674
674
  this.worker = new Worker(url);
675
675
  this.worker.onmessage = ({ data }) => {
676
676
  if (data.base64) {
677
- console.log(data);
678
677
  data.type == 'data';
679
678
  this.imageHandler.next(data);
680
679
  }
@@ -759,7 +758,7 @@ class WebcamComponent extends BaseComponent {
759
758
  : WebcamComponent.DEFAULT_IMAGE_TYPE;
760
759
  let _canvas = document.createElement('canvas'); //this.canvasSnapshot.nativeElement;
761
760
  const { width, height } = this.videoSize;
762
- console.log(width, height);
761
+ // console.log(width, height);
763
762
  const { padding, top, rWidth, rHeight } = this.snapRectangle;
764
763
  _canvas.width = rWidth;
765
764
  _canvas.height = rHeight;
@@ -1107,7 +1106,7 @@ class WebcamComponent extends BaseComponent {
1107
1106
  get cardRectangle() {
1108
1107
  const _canvas = this.canvas.nativeElement;
1109
1108
  const docSize = this.type === 'selfie' ? 1 : 86 / 55;
1110
- console.log(_canvas.width, _canvas.height);
1109
+ // console.log(_canvas.width, _canvas.height);
1111
1110
  let padding = 10;
1112
1111
  let rWidth = _canvas.width - 2 * padding;
1113
1112
  let rHeight = rWidth / docSize;
@@ -1119,7 +1118,7 @@ class WebcamComponent extends BaseComponent {
1119
1118
  top = (_canvas.height - rHeight) / 2;
1120
1119
  padding = (_canvas.width - rWidth) / 2;
1121
1120
  }
1122
- console.log(padding, top, rWidth, rHeight);
1121
+ // console.log(padding, top, rWidth, rHeight);
1123
1122
  return { padding, top, rWidth, rHeight };
1124
1123
  }
1125
1124
  get snapRectangle() {