summaryrefslogtreecommitdiff
path: root/assets/javascripts/rectangles/util
diff options
context:
space:
mode:
authorJulie Lala <jules@okfoc.us>2014-05-09 10:32:39 -0400
committerJulie Lala <jules@okfoc.us>2014-05-09 10:33:16 -0400
commitd31259291d807c851de4396921e0c26b6dd8dce2 (patch)
tree71b2551d90027b6b6319a1c1c4817af6c16d165e /assets/javascripts/rectangles/util
parent47623b31b6bbd23337920cc51f0ceb623d682139 (diff)
resizing using dotsgh-pages
Diffstat (limited to 'assets/javascripts/rectangles/util')
-rw-r--r--assets/javascripts/rectangles/util/constants.js11
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
}