You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/02/04 09:28:49 UTC

[GitHub] [echarts] KehaoWu opened a new issue #14210: echarts 5.0.1 getDataURL时,报错TypeError: Cannot read property 'dpr' of undefined

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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] plainheart closed issue #14210: echarts 5.0.1 getDataURL时,报错TypeError: Cannot read property 'dpr' of undefined

Posted by GitBox <gi...@apache.org>.
plainheart closed issue #14210:
URL: https://github.com/apache/echarts/issues/14210


   


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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] echarts-bot[bot] commented on issue #14210: echarts 5.0.1 getDataURL时,报错TypeError: Cannot read property 'dpr' of undefined

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14210:
URL: https://github.com/apache/echarts/issues/14210#issuecomment-773164289


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] KehaoWu commented on issue #14210: echarts 5.0.1 getDataURL时,报错TypeError: Cannot read property 'dpr' of undefined

Posted by GitBox <gi...@apache.org>.
KehaoWu commented on issue #14210:
URL: https://github.com/apache/echarts/issues/14210#issuecomment-773169888


   好的,谢谢大佬


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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] plainheart closed issue #14210: echarts 5.0.1 getDataURL时,报错TypeError: Cannot read property 'dpr' of undefined

Posted by GitBox <gi...@apache.org>.
plainheart closed issue #14210:
URL: https://github.com/apache/echarts/issues/14210


   


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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] plainheart commented on issue #14210: echarts 5.0.1 getDataURL时,报错TypeError: Cannot read property 'dpr' of undefined

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #14210:
URL: https://github.com/apache/echarts/issues/14210#issuecomment-773166474


   即将发布的 5.0.2 已修复该问题。目前还在投票中,投票通过后即发布到 NPM(预计这周内)。目前可在 GitHub Releases 中找到 RC 版本:https://github.com/apache/echarts/releases/tag/5.0.2-rc.1


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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] echarts-bot[bot] commented on issue #14210: echarts 5.0.1 getDataURL时,报错TypeError: Cannot read property 'dpr' of undefined

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14210:
URL: https://github.com/apache/echarts/issues/14210#issuecomment-773164289


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] KehaoWu commented on issue #14210: echarts 5.0.1 getDataURL时,报错TypeError: Cannot read property 'dpr' of undefined

Posted by GitBox <gi...@apache.org>.
KehaoWu commented on issue #14210:
URL: https://github.com/apache/echarts/issues/14210#issuecomment-773169888


   好的,谢谢大佬


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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] plainheart commented on issue #14210: echarts 5.0.1 getDataURL时,报错TypeError: Cannot read property 'dpr' of undefined

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #14210:
URL: https://github.com/apache/echarts/issues/14210#issuecomment-773166474


   即将发布的 5.0.2 已修复该问题。目前还在投票中,投票通过后即发布到 NPM(预计这周内)。目前可在 GitHub Releases 中找到 RC 版本:https://github.com/apache/echarts/releases/tag/5.0.2-rc.1


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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org