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",
|
"name": "pixelcanvas-overlay",
|
||||||
"version": "1.0.3",
|
"version": "1.0.4",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "pixelcanvas-overlay",
|
"name": "pixelcanvas-overlay",
|
||||||
"version": "1.0.3",
|
"version": "1.0.4",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-free": "^6.5.1",
|
"@fortawesome/fontawesome-free": "^6.5.1",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "pixelcanvas-overlay",
|
"name": "pixelcanvas-overlay",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"description": "Pixel canvas overlay",
|
"description": "Pixel canvas overlay",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -175,7 +175,9 @@ export async function takeCanvasShot(coordinates: Coordinates) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
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();
|
const url = canvas.toDataURL();
|
||||||
Popup.custom(<img style={{border: "1px solid black"}} src={url} />, [{
|
Popup.custom(<img style={{border: "1px solid black"}} src={url} />, [{
|
||||||
|
|||||||
Reference in New Issue
Block a user