Ovilia edited a comment on issue #11087: toolbox.icon with SVG Path doesn't 
work for certain paths
URL: 
https://github.com/apache/incubator-echarts/issues/11087#issuecomment-528722143
 
 
   It seems that neither of them is a valid SVG path. See [SVG demo 
here](https://jsfiddle.net/e0scr1zL/).
   
   A valid SVG path looks like:
   ```
   
M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z
 
M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z
 
M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z
 M27.8,35.8 
c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z
   ```
   which contains `,` dividing `x` and `y` values.
   
   Please check [SVG path data 
grammar](https://www.w3.org/TR/SVG/paths.html#PathDataBNF).
   What's the tool you used to export the SVG path? I tried will Sketch, which 
had `,` in the path.
   
   If this is the case, ECharts is not responsible for handling such invalid 
input.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to