idmission-web-sdk 1.0.267 → 1.0.268

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.267';
54
+ var webSdkVersion = '1.0.268';
55
55
 
56
56
  function getPlatform() {
57
57
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -13709,19 +13709,26 @@ var VideoSignatureCapture = function VideoSignatureCapture(_a) {
13709
13709
  if (!ctx) return;
13710
13710
  animationFrame.current = requestAnimationFrame(function runFrame() {
13711
13711
  return tslib.__awaiter(this, void 0, void 0, function () {
13712
- var rect;
13713
13712
  return tslib.__generator(this, function (_a) {
13714
13713
  if (!signaturePad.current || !videoRef.current || !outputCanvas.current) {
13715
13714
  cancelAnimationFrame(animationFrame.current);
13716
13715
  return [2 /*return*/];
13717
13716
  }
13718
- 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)];
13719
- ctx.drawImage(videoRef.current, 0, 0, w, h);
13720
- ctx.beginPath();
13721
- ctx.fillStyle = 'rgba(255,255,255,0.5)';
13722
- ctx.roundRect.apply(ctx, tslib.__spreadArray(tslib.__spreadArray([], rect, false), [16], false));
13723
- ctx.fill();
13724
- ctx.drawImage.apply(ctx, tslib.__spreadArray([signaturePad.current.getCanvas()], rect, false));
13717
+ // const rect: [number, number, number, number] = [
13718
+ // w * (isPortrait ? 0.02 : 0.15),
13719
+ // h * (isPortrait ? 0.15 : 0.25),
13720
+ // w * (isPortrait ? 0.96 : 0.7),
13721
+ // h * (isPortrait ? 0.7 : 0.5),
13722
+ // ]
13723
+ //
13724
+ // ctx.drawImage(videoRef.current, 0, 0, w, h)
13725
+ //
13726
+ // ctx.beginPath()
13727
+ // ctx.fillStyle = 'rgba(255,255,255,0.5)'
13728
+ // ctx.roundRect(...rect, 16)
13729
+ // ctx.fill()
13730
+ //
13731
+ // ctx.drawImage(signaturePad.current.getCanvas(), ...rect)
13725
13732
  animationFrame.current = requestAnimationFrame(runFrame);
13726
13733
  return [2 /*return*/];
13727
13734
  });