mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix jshint errors
This commit is contained in:
parent
f0f2eefb59
commit
a688305572
@ -375,16 +375,16 @@ RED.view.tools = (function() {
|
|||||||
// 90 - below
|
// 90 - below
|
||||||
// 180 - left
|
// 180 - left
|
||||||
switch(direction) {
|
switch(direction) {
|
||||||
case 'up': if (angle < 210 || angle > 330) { return };
|
case 'up': if (angle < 210 || angle > 330) { return }
|
||||||
weight = Math.max(Math.abs(270 - angle)/60, 0.2);
|
weight = Math.max(Math.abs(270 - angle)/60, 0.2);
|
||||||
break;
|
break;
|
||||||
case 'down': if (angle < 30 || angle > 150) { return };
|
case 'down': if (angle < 30 || angle > 150) { return }
|
||||||
weight = Math.max(Math.abs(90 - angle)/60, 0.2);
|
weight = Math.max(Math.abs(90 - angle)/60, 0.2);
|
||||||
break;
|
break;
|
||||||
case 'left': if (angle < 140 || angle > 220) { return };
|
case 'left': if (angle < 140 || angle > 220) { return }
|
||||||
weight = Math.max(Math.abs(180 - angle)/40, 0.1 );
|
weight = Math.max(Math.abs(180 - angle)/40, 0.1 );
|
||||||
break;
|
break;
|
||||||
case 'right': if (angle > 40 && angle < 320) { return };
|
case 'right': if (angle > 40 && angle < 320) { return }
|
||||||
weight = Math.max(Math.abs(angle)/40, 0.1);
|
weight = Math.max(Math.abs(angle)/40, 0.1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user