diff options
Diffstat (limited to 'src/viewbox.js')
-rw-r--r-- | src/viewbox.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/viewbox.js b/src/viewbox.js index f40a76e..05fb15e 100644 --- a/src/viewbox.js +++ b/src/viewbox.js @@ -32,4 +32,12 @@ SVG.ViewBox = function(element) { /* ensure a default zoom value */ this.zoom = this.zoom || 1 -}
\ No newline at end of file +} + +SVG.extend(SVG.ViewBox, { + // Parse viewbox to string + toString: function() { + return this.x + ' ' + this.y + ' ' + this.width + ' ' + this.height + } + +})
\ No newline at end of file |