summaryrefslogtreecommitdiff
path: root/public/assets/javascripts/rectangles/engine/shapes/polyline.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets/javascripts/rectangles/engine/shapes/polyline.js')
-rw-r--r--public/assets/javascripts/rectangles/engine/shapes/polyline.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/public/assets/javascripts/rectangles/engine/shapes/polyline.js b/public/assets/javascripts/rectangles/engine/shapes/polyline.js
index 579d0ea..b2cd92f 100644
--- a/public/assets/javascripts/rectangles/engine/shapes/polyline.js
+++ b/public/assets/javascripts/rectangles/engine/shapes/polyline.js
@@ -2,6 +2,11 @@
// Additionally, it manages a set of MX objects which correspond to the walls in 3D.
// In this way, it attempts to bridge the 2D (canvas, imperative) and 3D (css, declarative) views.
+if (! ('window' in this) ) {
+ var Fiber = require("../../../vendor/bower_components/fiber/src/fiber.js")
+ var vec2 = require("../../models/vec2")
+}
+
var Polyline = Fiber.extend(function(base){
var exports = {}
exports.init = function(){
@@ -201,3 +206,7 @@ var Polyline = Fiber.extend(function(base){
}
return exports
})
+
+if (! ('window' in this) ) {
+ module.exports = Polyline
+}