summaryrefslogtreecommitdiffstats
path: root/src/line.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-01-29 21:20:58 +0100
committerwout <wout@impinc.co.uk>2014-01-29 21:20:58 +0100
commit5b6736666dd85f8a063b87e6c6483ea47be4391c (patch)
tree139b35c98807ac36cad095af13ef45495958b78f /src/line.js
parent9688054367938f1e9240c2d8572e94bb0149bc77 (diff)
downloadsvg.js-5b6736666dd85f8a063b87e6c6483ea47be4391c.tar.gz
svg.js-5b6736666dd85f8a063b87e6c6483ea47be4391c.zip
Added SVG.PathArray, updated data() and bumped to v1.0rc1
Diffstat (limited to 'src/line.js')
-rwxr-xr-xsrc/line.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/line.js b/src/line.js
index a5a9b09..e049ccb 100755
--- a/src/line.js
+++ b/src/line.js
@@ -49,7 +49,9 @@ SVG.extend(SVG.Line, {
}
// Set line size by width and height
, size: function(width, height) {
- return this.width(width).height(height)
+ var p = this._proportionalSize(width, height)
+
+ return this.width(p.width).height(p.height)
}
// Set path data
, plot: function(x1, y1, x2, y2) {