@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.
- package/dist/esm/{DocumentCaptureScreens-ChpBVvNE.js → DocumentCaptureScreens-CkWKSrqy.js} +2 -2
- package/dist/esm/{DocumentCaptureScreens-ChpBVvNE.js.map → DocumentCaptureScreens-CkWKSrqy.js.map} +1 -1
- package/dist/esm/{SelfieCaptureScreens-DMo-z-32.js → SelfieCaptureScreens-BF1keQ0h.js} +5 -4
- package/dist/esm/SelfieCaptureScreens-BF1keQ0h.js.map +1 -0
- package/dist/esm/document.js +1 -1
- package/dist/esm/main.js +2 -2
- package/dist/esm/{package-D_4zJ9ck.js → package-CmYr0HUS.js} +2 -2
- package/dist/esm/{package-D_4zJ9ck.js.map → package-CmYr0HUS.js.map} +1 -1
- package/dist/esm/selfie.js +1 -1
- package/dist/esm/smart-camera-web.js +3 -3
- package/dist/smart-camera-web.js +3 -2
- package/dist/smart-camera-web.js.map +1 -1
- package/lib/components/selfie/src/selfie-capture-review/SelfieCaptureReview.js +1 -0
- package/lib/components/selfie/src/smartselfie-capture/utils/imageCapture.ts +2 -3
- package/lib/components/signature-pad/package.json +1 -1
- package/package.json +1 -1
- package/dist/esm/SelfieCaptureScreens-DMo-z-32.js.map +0 -1
|
@@ -37,8 +37,7 @@ export const captureImageFromVideo = (
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
// capture more of the user's head and avoid clipping
|
|
40
|
-
|
|
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 =
|
|
49
|
+
const verticalOffset = 0;
|
|
51
50
|
|
|
52
51
|
ctx.drawImage(
|
|
53
52
|
videoElement,
|