@smileid/web-components 10.0.2 → 10.0.3

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.
@@ -210,6 +210,7 @@ function templateString() {
210
210
  id='document-capture-review-image'
211
211
  src='${this.imageSrc}'
212
212
  width='396'
213
+ style='transform: scaleX(-1);'
213
214
  />`
214
215
  : ''
215
216
  }
@@ -37,8 +37,7 @@ export const captureImageFromVideo = (
37
37
  }
38
38
 
39
39
  // capture more of the user's head and avoid clipping
40
- // zoom out only for high resolution (>720p) webcams
41
- const zoomOutFactor = videoElement.videoHeight > 720 ? 1.3 : 1.0;
40
+ const zoomOutFactor = 1;
42
41
  const sourceWidth = videoElement.videoWidth * zoomOutFactor;
43
42
  const sourceHeight = videoElement.videoHeight * zoomOutFactor;
44
43
 
@@ -47,7 +46,7 @@ export const captureImageFromVideo = (
47
46
  const offsetY = (sourceHeight - videoElement.videoHeight) / 2;
48
47
 
49
48
  // vertical offset to shift up and capture full head
50
- const verticalOffset = videoElement.videoHeight * 0.05;
49
+ const verticalOffset = 0;
51
50
 
52
51
  ctx.drawImage(
53
52
  videoElement,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smileid/signature-pad",
3
- "version": "10.0.2",
3
+ "version": "10.0.3",
4
4
  "private": "true",
5
5
  "exports": {
6
6
  ".": "./index.js"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smileid/web-components",
3
- "version": "10.0.2",
3
+ "version": "10.0.3",
4
4
  "private": false,
5
5
  "main": "dist/esm/main.js",
6
6
  "module": "dist/esm/main.js",