FIX: Download to png off by one errors
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
3e015bf13a
commit
af49d7ad96
@@ -574,8 +574,8 @@ const Workbook = (props: { model: Model; workbookState: WorkbookState }) => {
|
|||||||
columnStart,
|
columnStart,
|
||||||
);
|
);
|
||||||
const [x1, y1] = worksheetCanvas.getCoordinatesByCell(
|
const [x1, y1] = worksheetCanvas.getCoordinatesByCell(
|
||||||
rowEnd,
|
rowEnd + 1,
|
||||||
columnEnd,
|
columnEnd + 1,
|
||||||
);
|
);
|
||||||
const width = (x1 - x) * devicePixelRatio;
|
const width = (x1 - x) * devicePixelRatio;
|
||||||
const height = (y1 - y) * devicePixelRatio;
|
const height = (y1 - y) * devicePixelRatio;
|
||||||
|
|||||||
Reference in New Issue
Block a user