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

请问我用的图例中的'图表决策',初始化画图完成后出现这个锯齿是什么原因呢?点击节点展开后就没问题, 只有第一次渲染出现这个问题 #3896

Closed
fxzer opened this issue Aug 28, 2022 · 2 comments

Comments

@fxzer
Copy link

fxzer commented Aug 28, 2022

问题描述

image
图形刚加载从边缘运动到中心有锯齿

重现链接

https://codesandbox.io/s/hungry-stitch-hnvrrt?file=/index.js

重现步骤

  1. 加载界面时出现上述问题

预期行为

image

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

Uploading image.png…

补充说明(可选)

No response

@Yanyan-Wang
Copy link
Contributor

Yanyan-Wang commented Sep 2, 2022

一般出现在图形属性存在非法值、小数时会出现,在你的 demo 里面,可以把 iconfont 的 fontSize 取整,fontSize: Math.floor(cfg.size)

还是不行的话,可以增加 1px 的白色描边暂时解决一下
image

@fxzer
Copy link
Author

fxzer commented Sep 3, 2022

非常感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants