diff options
author | Mike Wilkerson <11575183+mlwilkerson@users.noreply.github.com> | 2020-12-12 08:39:31 -0800 |
---|---|---|
committer | Mike Wilkerson <11575183+mlwilkerson@users.noreply.github.com> | 2020-12-12 08:51:35 -0800 |
commit | fb71b52fa3dc23380d9b168ac40aa7a00f2fe0c9 (patch) | |
tree | facd7a8c003adf5272c49da79951226596376ace /src/utils/pathParser.js | |
parent | b2a0e2bcff2b3a3f568dbd3ec5ce843e217ee6d8 (diff) | |
download | svg.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.js | 5 |
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 |