idmission-web-sdk 1.0.270 → 1.0.271
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/sdk2.cjs.development.js +16 -9
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +16 -9
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +16 -9
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -51,7 +51,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
|
|
|
51
51
|
var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
|
|
52
52
|
var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
|
|
53
53
|
|
|
54
|
-
var webSdkVersion = '1.0.
|
|
54
|
+
var webSdkVersion = '1.0.271';
|
|
55
55
|
|
|
56
56
|
function getPlatform() {
|
|
57
57
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -13711,19 +13711,26 @@ var VideoSignatureCapture = function VideoSignatureCapture(_a) {
|
|
|
13711
13711
|
if (!ctx) return;
|
|
13712
13712
|
animationFrame.current = requestAnimationFrame(function runFrame() {
|
|
13713
13713
|
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
13714
|
-
var rect;
|
|
13715
13714
|
return tslib.__generator(this, function (_a) {
|
|
13716
13715
|
if (!signaturePad.current || !videoRef.current || !outputCanvas.current) {
|
|
13717
13716
|
cancelAnimationFrame(animationFrame.current);
|
|
13718
13717
|
return [2 /*return*/];
|
|
13719
13718
|
}
|
|
13720
|
-
|
|
13721
|
-
|
|
13722
|
-
|
|
13723
|
-
|
|
13724
|
-
|
|
13725
|
-
|
|
13726
|
-
|
|
13719
|
+
// const rect: [number, number, number, number] = [
|
|
13720
|
+
// w * (isPortrait ? 0.02 : 0.15),
|
|
13721
|
+
// h * (isPortrait ? 0.15 : 0.25),
|
|
13722
|
+
// w * (isPortrait ? 0.96 : 0.7),
|
|
13723
|
+
// h * (isPortrait ? 0.7 : 0.5),
|
|
13724
|
+
// ]
|
|
13725
|
+
//
|
|
13726
|
+
// ctx.drawImage(videoRef.current, 0, 0, w, h)
|
|
13727
|
+
//
|
|
13728
|
+
// ctx.beginPath()
|
|
13729
|
+
// ctx.fillStyle = 'rgba(255,255,255,0.5)'
|
|
13730
|
+
// ctx.roundRect(...rect, 16)
|
|
13731
|
+
// ctx.fill()
|
|
13732
|
+
//
|
|
13733
|
+
// ctx.drawImage(signaturePad.current.getCanvas(), ...rect)
|
|
13727
13734
|
animationFrame.current = requestAnimationFrame(runFrame);
|
|
13728
13735
|
return [2 /*return*/];
|
|
13729
13736
|
});
|