@leankylin-sheet/react 3.1.2 → 3.1.4

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/index.esm.js CHANGED
@@ -3754,6 +3754,7 @@ var Sheet = function Sheet(_ref) {
3754
3754
  if (settings.devicePixelRatio === 0) {
3755
3755
  draftCtx.devicePixelRatio = (globalThis || window).devicePixelRatio;
3756
3756
  }
3757
+ draftCtx.devicePixelRatio = +draftCtx.devicePixelRatio.toFixed(2);
3757
3758
  updateContextWithSheetData(draftCtx, data, settings.blank);
3758
3759
  updateContextWithCanvas(draftCtx, refs.canvas.current, placeholderRef.current);
3759
3760
  });
package/dist/index.js CHANGED
@@ -3764,6 +3764,7 @@ var Sheet = function Sheet(_ref) {
3764
3764
  if (settings.devicePixelRatio === 0) {
3765
3765
  draftCtx.devicePixelRatio = (globalThis || window).devicePixelRatio;
3766
3766
  }
3767
+ draftCtx.devicePixelRatio = +draftCtx.devicePixelRatio.toFixed(2);
3767
3768
  core.updateContextWithSheetData(draftCtx, data, settings.blank);
3768
3769
  core.updateContextWithCanvas(draftCtx, refs.canvas.current, placeholderRef.current);
3769
3770
  });
package/dist/index.umd.js CHANGED
@@ -106689,6 +106689,7 @@
106689
106689
  if (settings.devicePixelRatio === 0) {
106690
106690
  draftCtx.devicePixelRatio = (globalThis || window).devicePixelRatio;
106691
106691
  }
106692
+ draftCtx.devicePixelRatio = +draftCtx.devicePixelRatio.toFixed(2);
106692
106693
  updateContextWithSheetData(draftCtx, data, settings.blank);
106693
106694
  updateContextWithCanvas(draftCtx, refs.canvas.current, placeholderRef.current);
106694
106695
  });