aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/pathParser.js
diff options
context:
space:
mode:
authorMike Wilkerson <11575183+mlwilkerson@users.noreply.github.com>2020-12-12 08:39:31 -0800
committerMike Wilkerson <11575183+mlwilkerson@users.noreply.github.com>2020-12-12 08:51:35 -0800
commitfb71b52fa3dc23380d9b168ac40aa7a00f2fe0c9 (patch)
treefacd7a8c003adf5272c49da79951226596376ace /src/utils/pathParser.js
parentb2a0e2bcff2b3a3f568dbd3ec5ce843e217ee6d8 (diff)
downloadsvg.js-fb71b52fa3dc23380d9b168ac40aa7a00f2fe0c9.tar.gz
svg.js-fb71b52fa3dc23380d9b168ac40aa7a00f2fe0c9.zip
fix for arc flags parsing
Diffstat (limited to 'src/utils/pathParser.js')
-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