summaryrefslogtreecommitdiffstats
path: root/src/helpers.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-03-16 13:03:35 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-03-16 13:03:35 +0100
commit2e215f1bd2f6a83aee6f27756fc2b11036aaa097 (patch)
tree55ee0c7fce4db4c03f60f8fa2d83273a8f3d1562 /src/helpers.js
parent9bfcbc184ec99631ea7d2b912e79b1edde17a111 (diff)
parentaa8dcdbc571585ce8a957e49271babda88384096 (diff)
downloadsvg.js-2e215f1bd2f6a83aee6f27756fc2b11036aaa097.tar.gz
svg.js-2e215f1bd2f6a83aee6f27756fc2b11036aaa097.zip
Merge branch 'master' into 3.0.0
Conflicts (all resolved): dist/svg.js dist/svg.min.js spec/spec/boxes.js
Diffstat (limited to 'src/helpers.js')
-rw-r--r--src/helpers.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/helpers.js b/src/helpers.js
index 41f9620..744a712 100644
--- a/src/helpers.js
+++ b/src/helpers.js
@@ -109,22 +109,6 @@ function ensureCentre(o, target) {
o.cy = o.cy == null ? target.bbox().cy : o.cy
}
-// Convert string to matrix
-function stringToMatrix(source) {
- // remove matrix wrapper and split to individual numbers
- source = source
- .replace(SVG.regex.whitespace, '')
- .replace(SVG.regex.matrix, '')
- .split(SVG.regex.matrixElements)
-
- // convert string values to floats and convert to a matrix-formatted object
- return arrayToMatrix(
- SVG.utils.map(source, function(n) {
- return parseFloat(n)
- })
- )
-}
-
// PathArray Helpers
function arrayToString(a) {
for (var i = 0, il = a.length, s = ''; i < il; i++) {