idmission-web-sdk 2.3.110 → 2.3.111

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.esm.js CHANGED
@@ -205,7 +205,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
205
205
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
206
206
  };
207
207
 
208
- var webSdkVersion = '2.3.110';
208
+ var webSdkVersion = '2.3.111';
209
209
 
210
210
  function getPlatform() {
211
211
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -14573,8 +14573,11 @@ function VideoSignatureContextProvider(_a) {
14573
14573
  w = _a[0],
14574
14574
  h = _a[1];
14575
14575
  var isPortrait = w < h;
14576
- outputCanvas.current.width = w;
14577
- outputCanvas.current.height = h;
14576
+ // Only update canvas dimensions if they changed (setting dimensions clears the canvas!)
14577
+ if (outputCanvas.current.width !== w || outputCanvas.current.height !== h) {
14578
+ outputCanvas.current.width = w;
14579
+ outputCanvas.current.height = h;
14580
+ }
14578
14581
  var rect = [w * (isPortrait ? 0.02 : 0.15),
14579
14582
  // x
14580
14583
  h * (isPortrait ? 0.15 : 0.25),