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.
@@ -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.270';
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
- rect = [w * (isPortrait ? 0.02 : 0.15), h * (isPortrait ? 0.15 : 0.25), w * (isPortrait ? 0.96 : 0.7), h * (isPortrait ? 0.7 : 0.5)];
13721
- ctx.drawImage(videoRef.current, 0, 0, w, h);
13722
- ctx.beginPath();
13723
- ctx.fillStyle = 'rgba(255,255,255,0.5)';
13724
- ctx.roundRect.apply(ctx, tslib.__spreadArray(tslib.__spreadArray([], rect, false), [16], false));
13725
- ctx.fill();
13726
- ctx.drawImage.apply(ctx, tslib.__spreadArray([signaturePad.current.getCanvas()], rect, false));
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
  });