summaryrefslogtreecommitdiff
path: root/public/assets/javascripts/rectangles/engine/shapes/ortho.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-08-27 18:17:14 -0400
committerJules Laplace <jules@okfoc.us>2015-08-27 18:32:32 -0400
commitee110d4725943bbc2b783323ec5087324531ca33 (patch)
tree5217c8116a2ac916f6143263337c9da46b8c6505 /public/assets/javascripts/rectangles/engine/shapes/ortho.js
parentebb9226fd5d37e8033e87e41b8ac0355d68f954c (diff)
get rooms api working with shapes
Diffstat (limited to 'public/assets/javascripts/rectangles/engine/shapes/ortho.js')
-rw-r--r--public/assets/javascripts/rectangles/engine/shapes/ortho.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/public/assets/javascripts/rectangles/engine/shapes/ortho.js b/public/assets/javascripts/rectangles/engine/shapes/ortho.js
index c1acae5..163f646 100644
--- a/public/assets/javascripts/rectangles/engine/shapes/ortho.js
+++ b/public/assets/javascripts/rectangles/engine/shapes/ortho.js
@@ -1,5 +1,9 @@
// An OrthoPolyline is a Polyline where all angles are 90 degrees.
+if (! ('window' in this) ) {
+ var Polyline = require("./polyline.js")
+}
+
var OrthoPolyline = Polyline.extend(function(base){
var exports = {}
exports.type = function(){
@@ -55,3 +59,8 @@ var OrthoPolyline = Polyline.extend(function(base){
}
return exports
})
+
+
+if (! ('window' in this) ) {
+ module.exports = OrthoPolyline
+}