Fix screenshot bug
This commit is contained in:
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "pixelcanvas-overlay",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.4",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "pixelcanvas-overlay",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.4",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-free": "^6.5.1",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pixelcanvas-overlay",
|
||||
"version": "1.0.4",
|
||||
"version": "1.0.5",
|
||||
"description": "Pixel canvas overlay",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -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} />, [{
|
||||
|
||||
Reference in New Issue
Block a user