边添加过滤(filter高亮方法),且画布添加平移功能;导致线不显示或显示不全
问题描述
-
边添加过滤(filter高亮方法),且画布添加平移功能;导致线不显示或显示不全
-
边添加过滤(filter高亮方法),画布并不添加平移功能;线显示没问题
-
边添加过滤(filter高亮方法),且画布添加平移功能 line: { stroke: '#00B3FE', strokeWidth: 2, ZIndex: 10, targetMarker: { name: '', }, filter: { name: 'highlight', args: { color: '#01F6FB', width: 3, blur: 1, opacity: 0.5, }, attrs: { // 这部分去掉,画布平移线显示没问题,但是两个节点之间水平或者垂直的时候,线不显示了 width: "100%", height: "100%", filterUnits: "userSpaceOnUse", },
},}
重现链接
无
重现步骤
-
边添加过滤(filter高亮方法),且画布添加平移功能;导致线不显示或显示不全
-
边添加过滤(filter高亮方法),画布并不添加平移功能;线显示没问题
-
边添加过滤(filter高亮方法),且画布添加平移功能 line: { stroke: '#00B3FE', strokeWidth: 2, ZIndex: 10, targetMarker: { name: '', }, filter: { name: 'highlight', args: { color: '#01F6FB', width: 3, blur: 1, opacity: 0.5, }, attrs: { // 这部分去掉,画布平移线显示没问题,但是两个节点之间水平或者垂直的时候,线不显示了 width: "100%", height: "100%", filterUnits: "userSpaceOnUse", },
},}
预期行为
边加过滤和画布平移能同时存在
平台
- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox ...]
- X6 版本: [2.11.1 ...]
屏幕截图或视频(可选)
1.不加attrs: {
width: "100%",
height: "100%",
filterUnits: "userSpaceOnUse",
},
2. 加attrs: {
width: "100%",
height: "100%",
filterUnits: "userSpaceOnUse",
},
补充说明(可选)
No response
👋 @yxj1124
Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
这个是已知问题,暂时还没有好的思路解决,第二个场景使用开启了 scroller 插件的效果吗?
开启了画布平移和缩放
我也遇到了相关的类似问题,请问最终解决了吗
我也遇到了相关的类似问题,请问最终解决了吗
我也遇到了类似的问题 请问解决了吗