-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
iconClipPath 无效 #6098
Comments
clipPath 目前采用的全局坐标系(系底层渲染引擎问题,导致使用有所不便),因此导致 icon 被裁切掉了,后面会优化该问题 |
如果是底层渲染引擎问题,那这个会在@antv/g 中优化是吧 |
过去 g 提供的 clipPath 确实是使用的相对位置,不过后来由于某些因素变更为了绝对位置。如果你只想想简单的给 icon 添加圆形裁切(比如显示为矩形图片展示为圆形),后续 G6 会基于 radius 来自动添加 clipPath。 |
我感觉80%以上的需求通过IconRadius就能解决了,矩形的照片在圆形节点中为裁切的情况下实在是绷不住。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug / 问题描述
Reproduction link / 重现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
No response
G6 Version / G6 版本
🆕 5.x
Operating System / 操作系统
Windows
Browser / 浏览器
Chrome
Additional context / 补充说明
No response
The text was updated successfully, but these errors were encountered: