leipert opened a new issue #11087: toolbox.icon with SVG Path doesn't work for 
certain paths
URL: https://github.com/apache/incubator-echarts/issues/11087
 
 
   ### Version
   4.2.1
   
   ### Reproduction link
   [https://jsfiddle.net/yj6x2gh3/13/](https://jsfiddle.net/yj6x2gh3/13/)
   
   ### Steps to reproduce
   1. Set an icon in the toolbox to `path://M8 15A7 7 0 118 1a7 7 0 010 14zM6 
4a1 1 0 00-1 1v6a1 1 0 002 0V5a1 1 0 00-1-1zm4 0a1 1 0 00-1 1v6a1 1 0 002 0V5a1 
1 0 00-1-1z`
   2. The icons stop working
   
   ### What is expected?
   The icon is rendered properly
   
   ### What is actually happening?
   The toolbox is not rendered properly.
   
   ---
   We recently updated our SVG minification library. Now for example the path:
   
   ```
   M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zM6 4a1 1 0 0 0-1 1v6a1 1 0 0 0 2 0V5a1 1 
0 0 0-1-1zm4 0a1 1 0 0 0-1 1v6a1 1 0 0 0 2 0V5a1 1 0 0 0-1-1z
   ```
   
   will be minified as
   
   ```
   M8 15A7 7 0 118 1a7 7 0 010 14zM6 4a1 1 0 00-1 1v6a1 1 0 002 0V5a1 1 0 
00-1-1zm4 0a1 1 0 00-1 1v6a1 1 0 002 0V5a1 1 0 00-1-1z
   ```
   
   which is not supported by echarts (apparently). I assume it is a bug in 
zrender.
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
For additional commands, e-mail: dev-h...@echarts.apache.org

Reply via email to