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:
parent
7288ac8b1e
commit
de757cae0a
@ -159,11 +159,11 @@ function reduceTransformToFit(x, y, zf, bounds) {
|
||||
|
||||
var zxMax = Math.min(zf, canvasWidth / newBounds.width);
|
||||
var zyMax = Math.min(zf, canvasHeight / newBounds.height);
|
||||
var oldZF = zf;
|
||||
// var oldZF = zf;
|
||||
// var dir = zf >= 1.0 ? 1 : 0;
|
||||
zf = Math.min(zxMax, zyMax);
|
||||
// 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 };
|
||||
}
|
||||
|
@ -134,7 +134,7 @@ function initButtonBehavior() {
|
||||
var h = btnMove.height();
|
||||
var speedX = (cursor.x-w/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);
|
||||
}
|
||||
function onBtnZoom(e,cursor) {
|
||||
|
Loading…
Reference in New Issue
Block a user