@leankylin-sheet/core 7.0.27 → 7.0.28

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
@@ -56013,8 +56013,14 @@ function updateContextWithCanvas(ctx, canvas, placeholder) {
56013
56013
  ctx.cellmainWidth = canvas.clientWidth - ctx.rowHeaderWidth;
56014
56014
  canvas.style.width = "".concat(ctx.luckysheetTableContentHW[0], "px");
56015
56015
  canvas.style.height = "".concat(ctx.luckysheetTableContentHW[1], "px");
56016
- canvas.width = Math.round(ctx.luckysheetTableContentHW[0] * ctx.devicePixelRatio);
56017
- canvas.height = Math.round(ctx.luckysheetTableContentHW[1] * ctx.devicePixelRatio);
56016
+ var width = Math.round(ctx.luckysheetTableContentHW[0] * ctx.devicePixelRatio);
56017
+ var height = Math.round(ctx.luckysheetTableContentHW[1] * ctx.devicePixelRatio);
56018
+ if (canvas.width !== width) {
56019
+ canvas.width = width;
56020
+ }
56021
+ if (canvas.height !== height) {
56022
+ canvas.height = height;
56023
+ }
56018
56024
  }
56019
56025
 
56020
56026
  var addtionalMergeOps = function addtionalMergeOps(ops, id) {
package/dist/index.js CHANGED
@@ -56023,8 +56023,14 @@ function updateContextWithCanvas(ctx, canvas, placeholder) {
56023
56023
  ctx.cellmainWidth = canvas.clientWidth - ctx.rowHeaderWidth;
56024
56024
  canvas.style.width = "".concat(ctx.luckysheetTableContentHW[0], "px");
56025
56025
  canvas.style.height = "".concat(ctx.luckysheetTableContentHW[1], "px");
56026
- canvas.width = Math.round(ctx.luckysheetTableContentHW[0] * ctx.devicePixelRatio);
56027
- canvas.height = Math.round(ctx.luckysheetTableContentHW[1] * ctx.devicePixelRatio);
56026
+ var width = Math.round(ctx.luckysheetTableContentHW[0] * ctx.devicePixelRatio);
56027
+ var height = Math.round(ctx.luckysheetTableContentHW[1] * ctx.devicePixelRatio);
56028
+ if (canvas.width !== width) {
56029
+ canvas.width = width;
56030
+ }
56031
+ if (canvas.height !== height) {
56032
+ canvas.height = height;
56033
+ }
56028
56034
  }
56029
56035
 
56030
56036
  var addtionalMergeOps = function addtionalMergeOps(ops, id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leankylin-sheet/core",
3
- "version": "7.0.27",
3
+ "version": "7.0.28",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "build": "father-build"
14
14
  },
15
15
  "dependencies": {
16
- "@leankylin-sheet/formula-parser": "7.0.27",
16
+ "@leankylin-sheet/formula-parser": "7.0.28",
17
17
  "dayjs": "^1.11.0",
18
18
  "immer": "^9.0.12",
19
19
  "lodash": "^4.17.21",