var context = canvas.getContext("2d");
+ canvas.width = this.thumbEl.getWidth() / this.getScaleLevel();
+
+ canvas.height = this.thumbEl.getHeight() / this.getScaleLevel();
+
+ console.log("CANVAS WIDTH: " + canvas.width);
+ console.log("CANVAS HEIGHT: " + canvas.height);
+
console.log("GETSCALELEVLE: " + this.getScaleLevel());
switch (this.rotate) {
console.log("WIDTH: " + width);
console.log("HEIGHT: " + height);
-
- canvas.width = width;
-
- canvas.height = height;
-
- console.log("CANVAS WIDTH: " + canvas.width);
- console.log("CANVAS HEIGHT: " + canvas.height);
var x = (this.thumbEl.getLeft(true) > this.previewEl.getLeft(true)) ? 0 : ((this.previewEl.getLeft(true) - this.thumbEl.getLeft(true)) / this.getScaleLevel());
var y = (this.thumbEl.getTop(true) > this.previewEl.getTop(true)) ? 0 : ((this.previewEl.getTop(true) - this.thumbEl.getTop(true)) / this.getScaleLevel());