We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2e52e7 commit 0197236Copy full SHA for 0197236
1 file changed
src/modules/Graphics.js
@@ -501,7 +501,8 @@ class Graphics {
501
initialAnim && this.w.config.chart.animations.dynamicAnimation.enabled
502
503
// Fix for paths starting with M 0 0
504
- if (pathFrom && pathFrom.startsWith('M 0 0') && pathTo) {
+ // Extra space avoids matching decimal values like "M 0 0.239"
505
+ if (pathFrom && pathFrom.startsWith('M 0 0 ') && pathTo) {
506
const moveCommand = pathTo.match(/^M\s+[\d.-]+\s+[\d.-]+/)
507
if (moveCommand) {
508
pathFrom = pathFrom.replace(/^M\s+0\s+0/, moveCommand[0])
0 commit comments