mirror of
https://github.com/node-red/node-red
synced 2024-11-21 23:48:30 +00:00
Fix jshint errors
This commit is contained in:
parent
f0f2eefb59
commit
a688305572
@ -375,16 +375,16 @@ RED.view.tools = (function() {
|
||||
// 90 - below
|
||||
// 180 - left
|
||||
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);
|
||||
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);
|
||||
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 );
|
||||
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);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user