@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 +8 -2
- package/dist/index.js +8 -2
- package/package.json +2 -2
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
|
-
|
|
56017
|
-
|
|
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
|
-
|
|
56027
|
-
|
|
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.
|
|
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.
|
|
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",
|