Ovilia commented on issue #10313: svg渲染的图标,导出的图片无法打开
URL: 
https://github.com/apache/incubator-echarts/issues/10313#issuecomment-484337663
 
 
   使用 SVG 时候 toolbox 的正确写法类似:
   ```js
   toolbox: {
       right: 100,
       show: true,
       feature: {
           saveAsImage: {
               show: true,
               type: 'svg'
           }
       }
   },
   ```
   之前测试过是 OK 的,目前导出的 SVG 文件会缺少一部分,形如:
   ```xml
   <svg xmlns="http://www.w3.org/2000/svg"; version="1.1" baseProfile="full" 
width="600" height="300" style="user-select: none; position: absolute; left: 
0px; top: 0px;"><path d="M 300 130 L 300 85 A 65 65 0 1 1 237.882 130.8597 L 
280.8868 144.1107 A 20 20 0 1 0 300 130 Z" fill="
   ```
   传入 MouseEvent 的数据是正常的,怀疑是浏览器的 bug。
   
   至于导出 png 格式的图片,目前还没有支持。

----------------------------------------------------------------
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