-
Notifications
You must be signed in to change notification settings - Fork 199
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 无法正常导出图片 #2513
Labels
Comments
你要找的是不是 (You may look for issues): |
直接来个 PR? |
lijinke666
added a commit
that referenced
this issue
Jan 19, 2024
lijinke666
added a commit
that referenced
this issue
Jan 23, 2024
lijinke666
added a commit
that referenced
this issue
Jan 24, 2024
🎉 This issue has been resolved in version @antv/s2-v1.54.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version @antv/s2-v2.0.0-next.11 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🏷 Version
Sheet Type
🖋 Description
设置自定义 icon 后,如:
调用 canvas.toDataURL() 会报错
报错原因为:
S2/packages/s2-core/src/common/icons/gui-icon.ts
Line 59 in c037628
这里的 img 没有设置
img.crossOrigin = 'Anonymous';
canvas toDataURL 会报错,希望可以修复一下,谢谢~。⌨️ Code Snapshots
🔗 Reproduce Link
🤔 Steps to Reproduce
😊 Expected Behavior
😅 Current Behavior
💻 System information
The text was updated successfully, but these errors were encountered: