forked from MapComplete/MapComplete
UI debugging code deleted - download svg added
This commit is contained in:
parent
8e7114e55e
commit
07272203ff
2 changed files with 5 additions and 1 deletions
|
|
@ -238,10 +238,11 @@ export class InitUiElements {
|
|||
let doc = new jsPDF();
|
||||
screenshotter.takeScreen('image').then(image => {
|
||||
// TO DO: scale image on pdf to its original size
|
||||
doc.addImage(image, 'PNG', 15, 40, 100, 160);
|
||||
doc.addImage(image, 'PNG', 0, 0, screen.width/10, screen.height/10);
|
||||
doc.setDisplayMode('fullheight');
|
||||
doc.save("Screenshot");
|
||||
});
|
||||
//screenshotter.remove();
|
||||
// The line below is for downloading the png
|
||||
//screenshotter.takeScreen().then(blob => Utils.offerContentsAsDownloadableFile(blob, "Screenshot.png"));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue