We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Safari 下,使用 dropShadow 实现线段高亮,在水平线段和垂直线段高亮时线段会消失,但折线不会。 具体效果见录屏。
dropShadow
none
graph.on('edge:selected', ({ cell }) => { cell.attr('line/filter', { name: 'dropShadow', args: { dx: 2, dy: 2, blur: 3, color: 'skyblue', }, }); });
线段高亮正常显示
No response
The text was updated successfully, but these errors were encountered:
使用 filterUnits 属性可以解决该问题。
filterUnits
filter: { name: 'dropShadow', args: { dx: 2, dy: 2, blur: 3, color: 'skyblue', }, attrs: { width: "100%", height: "100%", filterUnits: "userSpaceOnUse" } }
可以参考这个 demo。
Sorry, something went wrong.
谢谢 @NewByVector ,但是使用 userSpaceOnUse 后,在 autoResize 的画布中又会有如下问题:
userSpaceOnUse
@awpsawps12 暂时还没有定位到具体原因,我们会继续排查。
No branches or pull requests
Describe the bug
Safari 下,使用
dropShadow
实现线段高亮,在水平线段和垂直线段高亮时线段会消失,但折线不会。具体效果见录屏。
Your Example Website or App
none
Steps to Reproduce the Bug or Issue
Expected behavior
线段高亮正常显示
Screenshots or Videos
2023-05-08.18.58.53.mov
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: