@leankylin-sheet/react 1.2.1 → 1.2.2
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.css +1 -1
- package/dist/index.esm.css +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.js +4 -4
- package/dist/index.umd.css +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.min.css +1 -1
- package/dist/index.umd.min.js +1 -1
- package/package.json +2 -2
package/dist/index.css
CHANGED
package/dist/index.esm.css
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -3627,7 +3627,7 @@ var Sheet = function Sheet(_ref) {
|
|
|
3627
3627
|
if (settings.devicePixelRatio === 0) {
|
|
3628
3628
|
draftCtx.devicePixelRatio = (globalThis || window).devicePixelRatio;
|
|
3629
3629
|
}
|
|
3630
|
-
updateContextWithSheetData(draftCtx, data);
|
|
3630
|
+
updateContextWithSheetData(draftCtx, data, settings.blank);
|
|
3631
3631
|
updateContextWithCanvas(draftCtx, refs.canvas.current, placeholderRef.current);
|
|
3632
3632
|
});
|
|
3633
3633
|
}
|
|
@@ -3635,13 +3635,13 @@ var Sheet = function Sheet(_ref) {
|
|
|
3635
3635
|
return function () {
|
|
3636
3636
|
window.removeEventListener("resize", resize);
|
|
3637
3637
|
};
|
|
3638
|
-
}, [data, refs.canvas, setContext, settings.devicePixelRatio]);
|
|
3638
|
+
}, [data, refs.canvas, setContext, settings.devicePixelRatio, settings.blank]);
|
|
3639
3639
|
useEffect(function () {
|
|
3640
3640
|
if (!data) return;
|
|
3641
3641
|
setContext(function (draftCtx) {
|
|
3642
|
-
return updateContextWithSheetData(draftCtx, data);
|
|
3642
|
+
return updateContextWithSheetData(draftCtx, data, settings.blank);
|
|
3643
3643
|
});
|
|
3644
|
-
}, [(_context$config = context.config) === null || _context$config === void 0 ? void 0 : _context$config.rowlen, (_context$config2 = context.config) === null || _context$config2 === void 0 ? void 0 : _context$config2.columnlen, (_context$config3 = context.config) === null || _context$config3 === void 0 ? void 0 : _context$config3.rowhidden, context.config.colhidden, data, context.zoomRatio, setContext]);
|
|
3644
|
+
}, [(_context$config = context.config) === null || _context$config === void 0 ? void 0 : _context$config.rowlen, (_context$config2 = context.config) === null || _context$config2 === void 0 ? void 0 : _context$config2.columnlen, (_context$config3 = context.config) === null || _context$config3 === void 0 ? void 0 : _context$config3.rowhidden, context.config.colhidden, data, context.zoomRatio, setContext, settings.blank]);
|
|
3645
3645
|
useEffect(function () {
|
|
3646
3646
|
setContext(function (draftCtx) {
|
|
3647
3647
|
return updateContextWithCanvas(draftCtx, refs.canvas.current, placeholderRef.current);
|
package/dist/index.js
CHANGED
|
@@ -3637,7 +3637,7 @@ var Sheet = function Sheet(_ref) {
|
|
|
3637
3637
|
if (settings.devicePixelRatio === 0) {
|
|
3638
3638
|
draftCtx.devicePixelRatio = (globalThis || window).devicePixelRatio;
|
|
3639
3639
|
}
|
|
3640
|
-
core.updateContextWithSheetData(draftCtx, data);
|
|
3640
|
+
core.updateContextWithSheetData(draftCtx, data, settings.blank);
|
|
3641
3641
|
core.updateContextWithCanvas(draftCtx, refs.canvas.current, placeholderRef.current);
|
|
3642
3642
|
});
|
|
3643
3643
|
}
|
|
@@ -3645,13 +3645,13 @@ var Sheet = function Sheet(_ref) {
|
|
|
3645
3645
|
return function () {
|
|
3646
3646
|
window.removeEventListener("resize", resize);
|
|
3647
3647
|
};
|
|
3648
|
-
}, [data, refs.canvas, setContext, settings.devicePixelRatio]);
|
|
3648
|
+
}, [data, refs.canvas, setContext, settings.devicePixelRatio, settings.blank]);
|
|
3649
3649
|
React.useEffect(function () {
|
|
3650
3650
|
if (!data) return;
|
|
3651
3651
|
setContext(function (draftCtx) {
|
|
3652
|
-
return core.updateContextWithSheetData(draftCtx, data);
|
|
3652
|
+
return core.updateContextWithSheetData(draftCtx, data, settings.blank);
|
|
3653
3653
|
});
|
|
3654
|
-
}, [(_context$config = context.config) === null || _context$config === void 0 ? void 0 : _context$config.rowlen, (_context$config2 = context.config) === null || _context$config2 === void 0 ? void 0 : _context$config2.columnlen, (_context$config3 = context.config) === null || _context$config3 === void 0 ? void 0 : _context$config3.rowhidden, context.config.colhidden, data, context.zoomRatio, setContext]);
|
|
3654
|
+
}, [(_context$config = context.config) === null || _context$config === void 0 ? void 0 : _context$config.rowlen, (_context$config2 = context.config) === null || _context$config2 === void 0 ? void 0 : _context$config2.columnlen, (_context$config3 = context.config) === null || _context$config3 === void 0 ? void 0 : _context$config3.rowhidden, context.config.colhidden, data, context.zoomRatio, setContext, settings.blank]);
|
|
3655
3655
|
React.useEffect(function () {
|
|
3656
3656
|
setContext(function (draftCtx) {
|
|
3657
3657
|
return core.updateContextWithCanvas(draftCtx, refs.canvas.current, placeholderRef.current);
|