diff options
author | wout <wout@impinc.co.uk> | 2014-07-12 21:18:26 +0200 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-07-12 21:18:26 +0200 |
commit | 40bf2f8ecda3f426e7f13e1d891ab1ab6e004116 (patch) | |
tree | b3d339c104c2c0e829fd5e607428a9e077619e12 /src/helpers.js | |
parent | 03f358a4d85a292c16774ba64836e0b2937df2fe (diff) | |
download | svg.js-40bf2f8ecda3f426e7f13e1d891ab1ab6e004116.tar.gz svg.js-40bf2f8ecda3f426e7f13e1d891ab1ab6e004116.zip |
Added support for scale center on matrices
Diffstat (limited to 'src/helpers.js')
-rw-r--r-- | src/helpers.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/helpers.js b/src/helpers.js index ae4eb04..15842b5 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -124,26 +124,6 @@ function fullBox(b) { return b } -// Parse a matrix string -function parseMatrix(o) { - if (o.matrix) { - // Split matrix string - var m = o.matrix.replace(/\s/g, '').split(',') - - // Pasrse values - if (m.length == 6) { - o.a = parseFloat(m[0]) - o.b = parseFloat(m[1]) - o.c = parseFloat(m[2]) - o.d = parseFloat(m[3]) - o.e = parseFloat(m[4]) - o.f = parseFloat(m[5]) - } - } - - return o -} - // Get id from reference string function idFromReference(url) { var m = url.toString().match(SVG.regex.reference) |