aboutsummaryrefslogtreecommitdiffstats
path: root/src/container.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/container.js
parenta0076d75bbac8f2c128f9b34e976bcb1ea3caa09 (diff)
downloadsvg.js-264c100153fc45cedf94a8cc8a0174fae12e1fe8.tar.gz
svg.js-264c100153fc45cedf94a8cc8a0174fae12e1fe8.zip
Added unbiased option to plotable elements
Diffstat (limited to 'src/container.js')
-rw-r--r--src/container.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/container.js b/src/container.js
index 63822e4..08a52c8 100644
--- a/src/container.js
+++ b/src/container.js
@@ -90,16 +90,16 @@ SVG.extend(SVG.Container, {
return this.put(new SVG.Line().plot(x1, y1, x2, y2))
}
// Create a wrapped polyline element
-, polyline: function(points) {
- return this.put(new SVG.Polyline).plot(points)
+, polyline: function(points, unbiased) {
+ return this.put(new SVG.Polyline(unbiased)).plot(points)
}
// Create a wrapped polygon element
-, polygon: function(points) {
- return this.put(new SVG.Polygon).plot(points)
+, polygon: function(points, unbiased) {
+ return this.put(new SVG.Polygon(unbiased)).plot(points)
}
// Create a wrapped path element
-, path: function(data) {
- return this.put(new SVG.Path).plot(data)
+, path: function(data, unbiased) {
+ return this.put(new SVG.Path(unbiased)).plot(data)
}
// Create image element, load image and set its size
, image: function(source, width, height) {