summaryrefslogtreecommitdiffstats
path: root/src/poly.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-03-24 21:03:14 +0100
committerwout <wout@impinc.co.uk>2013-03-24 21:03:14 +0100
commit264c100153fc45cedf94a8cc8a0174fae12e1fe8 (patch)
tree690060d1ebc545fda9ec962323141d4740a3f950 /src/poly.js
parenta0076d75bbac8f2c128f9b34e976bcb1ea3caa09 (diff)
downloadsvg.js-264c100153fc45cedf94a8cc8a0174fae12e1fe8.tar.gz
svg.js-264c100153fc45cedf94a8cc8a0174fae12e1fe8.zip
Added unbiased option to plotable elements
Diffstat (limited to 'src/poly.js')
-rw-r--r--src/poly.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/poly.js b/src/poly.js
index 16a1cae..5c458f0 100644
--- a/src/poly.js
+++ b/src/poly.js
@@ -1,12 +1,16 @@
-SVG.Polyline = function() {
+SVG.Polyline = function(unbiased) {
this.constructor.call(this, SVG.create('polyline'))
+
+ this.unbiased = unbiased
}
// Inherit from SVG.Shape
SVG.Polyline.prototype = new SVG.Shape
-SVG.Polygon = function() {
+SVG.Polygon = function(unbiased) {
this.constructor.call(this, SVG.create('polygon'))
+
+ this.unbiased = unbiased
}
// Inherit from SVG.Shape