]> source.dussan.org Git - svg.js.git/commitdiff
removed at() helper which is not used anymore
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>
Fri, 3 Mar 2017 16:55:33 +0000 (17:55 +0100)
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>
Fri, 3 Mar 2017 16:55:33 +0000 (17:55 +0100)
dist/svg.js
src/helpers.js

index 12cc1ee69c40c5e2454d04c769a3b0118fc9c89f..3892c647783c46449a1f128294f954f4df78c51a 100644 (file)
@@ -6,7 +6,7 @@
 * @copyright Wout Fierens <wout@mick-wout.com>
 * @license MIT
 *
-* BUILT: Tue Feb 28 2017 18:53:10 GMT+0100 (Mitteleuropäische Zeit)
+* BUILT: Fri Mar 03 2017 17:54:03 GMT+0100 (Mitteleuropäische Zeit)
 */;
 (function(root, factory) {
   if (typeof define === 'function' && define.amd) {
@@ -5325,19 +5325,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++) {
index 2a52a1bc52483292c45078b9d01d62563fde399d..72337555c7ffb922b5ab4a591c8d3362244856b5 100644 (file)
@@ -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++) {