aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-03-06 13:39:53 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-03-06 13:39:53 +0100
commit083d4eb0362152c38c6824bbeb0d785cd13c2b67 (patch)
treef8548ba67c3d61e2c4affd0a345c9864bf0c7972 /src/helpers.js
parent250f97ff2c615ad08c15e902bbed4cb9cf3fdcd9 (diff)
downloadsvg.js-083d4eb0362152c38c6824bbeb0d785cd13c2b67.tar.gz
svg.js-083d4eb0362152c38c6824bbeb0d785cd13c2b67.zip
speed up path parsing for most cases
added test, added pathArray speed bench
Diffstat (limited to 'src/helpers.js')
-rw-r--r--src/helpers.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/helpers.js b/src/helpers.js
index 7233755..4974517 100644
--- a/src/helpers.js
+++ b/src/helpers.js
@@ -1,3 +1,7 @@
+function pathRegReplace(a, b, c, d) {
+ return c + d.replace(SVG.regex.dots, ' .')
+}
+
// creates deep clone of array
function array_clone(arr){
var clone = arr.slice(0)