summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2020-12-13 04:58:52 +0100
committerGitHub <noreply@github.com>2020-12-13 04:58:52 +0100
commitc01bead5556cedea7dff8d4965bd70070b018c6f (patch)
tree1502188d4672709f2bd9b0d044e8750acce09235 /src
parentb2a0e2bcff2b3a3f568dbd3ec5ce843e217ee6d8 (diff)
parent4980973cb1914d41392373e844ff323fa589c66f (diff)
downloadsvg.js-c01bead5556cedea7dff8d4965bd70070b018c6f.tar.gz
svg.js-c01bead5556cedea7dff8d4965bd70070b018c6f.zip
Merge pull request #1175 from FortAwesome/fix-elliptical-arc-flags-parsing
fix arc flags parsing
Diffstat (limited to 'src')
-rw-r--r--src/utils/pathParser.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/utils/pathParser.js b/src/utils/pathParser.js
index 1ab90a3..54e22e6 100644
--- a/src/utils/pathParser.js
+++ b/src/utils/pathParser.js
@@ -176,8 +176,11 @@ export function pathParser (d, toAbsolute = true) {
if (!isNaN(parseInt(token))) {
- if (parser.number === '0' || (parser.inNumber && isArcFlag(parser))) {
+ if (parser.number === '0' || isArcFlag(parser)) {
+ parser.inNumber = true
+ parser.number = token
finalizeNumber(parser, true)
+ continue
}
parser.inNumber = true