diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-03-03 17:55:33 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-03-03 17:55:33 +0100 |
commit | 7aea4fa6dbb162f447c26fbb37d30a1e01a17f91 (patch) | |
tree | 07fc363c7b6ee44073b0e47828575f936fc1f01c /src/helpers.js | |
parent | f6d15b07cff5be7cefea62ea874f2e7361108253 (diff) | |
download | svg.js-7aea4fa6dbb162f447c26fbb37d30a1e01a17f91.tar.gz svg.js-7aea4fa6dbb162f447c26fbb37d30a1e01a17f91.zip |
removed at() helper which is not used anymore
Diffstat (limited to 'src/helpers.js')
-rw-r--r-- | src/helpers.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/helpers.js b/src/helpers.js index 2a52a1b..7233755 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -107,19 +107,6 @@ function stringToMatrix(source) { ) } -// Calculate position according to from and to -function at(o, pos) { - // number recalculation (don't bother converting to SVG.Number for performance reasons) - return typeof o.from == 'number' ? - o.from + (o.to - o.from) * pos : - - // instance recalculation - o instanceof SVG.Color || o instanceof SVG.Number || o instanceof SVG.Matrix ? o.at(pos) : - - // for all other values wait until pos has reached 1 to return the final value - pos < 1 ? o.from : o.to -} - // PathArray Helpers function arrayToString(a) { for (var i = 0, il = a.length, s = ''; i < il; i++) { |