diff options
Diffstat (limited to 'assets/javascripts/rectangles/util/constants.js')
| -rw-r--r-- | assets/javascripts/rectangles/util/constants.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/assets/javascripts/rectangles/util/constants.js b/assets/javascripts/rectangles/util/constants.js index 8ba6208..58cb1a5 100644 --- a/assets/javascripts/rectangles/util/constants.js +++ b/assets/javascripts/rectangles/util/constants.js @@ -5,7 +5,8 @@ var TOP = CEILING, BOTTOM = FLOOR, TOP_LEFT = TOP | LEFT, TOP_RIGHT = TOP | RIGHT, BOTTOM_LEFT = BOTTOM | LEFT, - BOTTOM_RIGHT = BOTTOM | RIGHT + BOTTOM_RIGHT = BOTTOM | RIGHT, + TOP_BOTTOM = TOP | BOTTOM var height_min = 200, height_max = 2000, @@ -14,9 +15,11 @@ var height_min = 200, resize_margin = 8, cursor_amp = 1.5 -var painting_distance_from_wall = 8 +var painting_distance_from_wall = 8, + dot_distance_from_picture = 3 -var dot_hide_delay = 50 // ms +var dot_hide_delay = 50, // ms + dot_side = 20 var wall_rotation = {} wall_rotation[FRONT] = PI @@ -32,6 +35,8 @@ function sidesToString(sides){ if (sides & BACK) s += "back " if (sides & LEFT) s += "left " if (sides & RIGHT) s += "right " + if (sides & TOP) s += "top " + if (sides & BOTTOM) s += "bottom " return s } |
