Improved shortcuts and drag/drop

This commit is contained in:
Devine Lu Linvega
2017-11-14 07:52:53 +13:00
parent 66a34a6814
commit 16ddcfb27a
7 changed files with 50 additions and 28 deletions

View File

@@ -12,7 +12,7 @@ function Render()
var b64Start = 'data:image/svg+xml;base64,';
var image64 = b64Start + svg64;
this.img.src = image64;
this.el.getContext('2d').clearRect(0, 0, 512, 512);
this.el.getContext('2d').clearRect(0, 0, 1280, 1280);
this.el.getContext('2d').drawImage(this.img, 0, 0, 512, 512);
}