diff options
author | wout <wout@impinc.co.uk> | 2013-03-12 13:31:09 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-03-12 13:31:09 +0100 |
commit | 4bd21ec64a0e3c1d4d0acf5685b2230285c7c16b (patch) | |
tree | 0300a47ca1b263ae0cd0fdb5fe76218ceb9aa745 /src/sugar.js | |
parent | 6c6c82ed59533f44f8754b69d47e3b11cd6dd129 (diff) | |
download | svg.js-4bd21ec64a0e3c1d4d0acf5685b2230285c7c16b.tar.gz svg.js-4bd21ec64a0e3c1d4d0acf5685b2230285c7c16b.zip |
Added x(), y(), cx(), cy() and matrix
Diffstat (limited to 'src/sugar.js')
-rw-r--r-- | src/sugar.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sugar.js b/src/sugar.js index 1f7339a..2edb429 100644 --- a/src/sugar.js +++ b/src/sugar.js @@ -54,6 +54,10 @@ SVG.extend(SVG.Element, SVG.FX, { scaleY: y == null ? x : y }) } + // Matrix +, matrix: function(m) { + return this.transform({ matrix: m }) + } // Opacity , opacity: function(value) { return this.attr('opacity', value) |