KehaoWu opened a new issue #14210: URL: https://github.com/apache/echarts/issues/14210
### Version 5.0.1 ### Steps to reproduce 调用 getDataURL 时会报错 ``` TypeError: Cannot read property 'dpr' of undefined setContextTransform node_modules/echarts/node_modules/zrender/lib/canvas/graphic.js:378 375 | } 376 | function setContextTransform(ctx, el) { 377 | var m = el.transform; > 378 | var dpr = ctx.dpr || 1; 379 | if (m) { 380 | ctx.setTransform(dpr * m[0], dpr * m[1], dpr * m[2], dpr * m[3], dpr * m[4], dpr * m[5]); 381 | } ``` ### What is expected? 正常运行,导出图片 ### What is actually happening? 报错 <!-- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org