From d31259291d807c851de4396921e0c26b6dd8dce2 Mon Sep 17 00:00:00 2001 From: Julie Lala Date: Fri, 9 May 2014 10:32:39 -0400 Subject: resizing using dots --- assets/javascripts/rectangles/util/constants.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'assets/javascripts/rectangles/util/constants.js') 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 } -- cgit v1.2.3-70-g09d2