Fix screenshot bug

This commit is contained in:
2025-02-06 22:46:04 +01:00
parent 1bb3c0187c
commit 84a6d572c9
4 changed files with 8 additions and 6 deletions
+3 -1
View File
@@ -175,7 +175,9 @@ export async function takeCanvasShot(coordinates: Coordinates) {
}
try {
const canvas = await fetchCombineTiledImage(cords.x, cords.y, rect.height, rect.width, coordinates.uScale);
const canvas = await fetchCombineTiledImage(
cords.x, cords.y, rect.width, rect.height, coordinates.uScale
);
const url = canvas.toDataURL();
Popup.custom(<img style={{border: "1px solid black"}} src={url} />, [{