-
- console.log("X: " + x);
- console.log("Y: " + y);
-
- // var targetWidth = this.minWidth - 2 * x;
- // var targetHeight = this.minHeight - 2 * y;
-
- // console.log("targetWidth: " + targetWidth);
- // console.log("targetHeight: " + targetHeight);
-
- // var scale = 1;
-
- // if((x == 0 && y == 0) || (x == 0 && y > 0)){
- // scale = targetWidth / width;
- // }
-
- // if(x > 0 && y == 0){
- // scale = targetHeight / height;
- // }
-
- // if(x > 0 && y > 0){
- // scale = targetWidth / width;
-
- // if(width < height){
- // scale = targetHeight / height;
- // }
- // }
-
- // console.log("scale: " + scale);
-
- // context.scale(scale, scale);