0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-22 09:17:56 +01:00

Disable log messages in shape transform functions.

This commit is contained in:
Wouter R 2014-01-17 18:03:42 +01:00
parent 7288ac8b1e
commit de757cae0a
2 changed files with 3 additions and 3 deletions

View File

@ -159,11 +159,11 @@ function reduceTransformToFit(x, y, zf, bounds) {
var zxMax = Math.min(zf, canvasWidth / newBounds.width); var zxMax = Math.min(zf, canvasWidth / newBounds.width);
var zyMax = Math.min(zf, canvasHeight / newBounds.height); var zyMax = Math.min(zf, canvasHeight / newBounds.height);
var oldZF = zf; // var oldZF = zf;
// var dir = zf >= 1.0 ? 1 : 0; // var dir = zf >= 1.0 ? 1 : 0;
zf = Math.min(zxMax, zyMax); zf = Math.min(zxMax, zyMax);
// if (dir == 1 && zf < 1.0) zf = 1; // if (dir == 1 && zf < 1.0) zf = 1;
console.log("orgZF, zxMax, zyMax, finZF: " + oldZF + ", " + zxMax + ", " + zyMax + ", " + zf); // console.log("orgZF, zxMax, zyMax, finZF: " + oldZF + ", " + zxMax + ", " + zyMax + ", " + zf);
return { x: delta.x, y: delta.y, zf: zf }; return { x: delta.x, y: delta.y, zf: zf };
} }

View File

@ -134,7 +134,7 @@ function initButtonBehavior() {
var h = btnMove.height(); var h = btnMove.height();
var speedX = (cursor.x-w/2)*0.3; var speedX = (cursor.x-w/2)*0.3;
var speedY = (cursor.y-h/2)*0.3; var speedY = (cursor.y-h/2)*0.3;
console.log("move speed: ",speedX,speedY); //console.log("move speed: ",speedX,speedY);
moveShape(speedX,speedY); moveShape(speedX,speedY);
} }
function onBtnZoom(e,cursor) { function onBtnZoom(e,cursor) {