Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自定义 icon 渲染会导致 canvas 无法正常导出图片 #2512

Closed
Micircle opened this issue Jan 16, 2024 · 1 comment
Closed

自定义 icon 渲染会导致 canvas 无法正常导出图片 #2512

Micircle opened this issue Jan 16, 2024 · 1 comment
Labels
⛔ invalid issue 什么描述都没写

Comments

@Micircle
Copy link

Micircle commented Jan 16, 2024

🏷 Version

Package Version
@antv/s2 - 1.51.2

🖋 Description

设置自定义 icon 后,如:

{
    customSVGIcons: [
        { name: 'xxx', svg: 'https://xxx.svg' }
    ]
}

调用 canvas.toDataURL() 会报错

报错原因为:

这里的 img 没有设置 img.crossOrigin = 'Anonymous'; canvas toDataURL 会报错,希望可以修复一下,谢谢~。

Copy link
Contributor

你好 @Micircle,请按照 issue 模板填写相关信息, 方便大家高效沟通, 强烈推荐你阅读 提 Issue 前必读如何向开源项目提交无法解答的问题

Hello @Micircle, please fill in the relevant information according to the issue template to facilitate communication efficiently. recommend you to read 提 Issue 前必读 and 如何向开源项目提交无法解答的问题, Thanks so much!

@github-actions github-actions bot added the ⛔ invalid issue 什么描述都没写 label Jan 16, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⛔ invalid issue 什么描述都没写
Projects
None yet
Development

No branches or pull requests

1 participant