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.
@@ -211,7 +211,7 @@
211
211
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
212
212
  };
213
213
 
214
- var webSdkVersion = '2.3.110';
214
+ var webSdkVersion = '2.3.111';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -24478,8 +24478,11 @@
24478
24478
  w = _a[0],
24479
24479
  h = _a[1];
24480
24480
  var isPortrait = w < h;
24481
- outputCanvas.current.width = w;
24482
- outputCanvas.current.height = h;
24481
+ // Only update canvas dimensions if they changed (setting dimensions clears the canvas!)
24482
+ if (outputCanvas.current.width !== w || outputCanvas.current.height !== h) {
24483
+ outputCanvas.current.width = w;
24484
+ outputCanvas.current.height = h;
24485
+ }
24483
24486
  var rect = [w * (isPortrait ? 0.02 : 0.15),
24484
24487
  // x
24485
24488
  h * (isPortrait ? 0.15 : 0.25),