X6 icon indicating copy to clipboard operation
X6 copied to clipboard

边添加过滤(filter高亮方法),且画布添加平移功能;导致线不显示或显示不全

Open yxj1124 opened this issue 2 years ago • 5 comments

问题描述

  1. 边添加过滤(filter高亮方法),且画布添加平移功能;导致线不显示或显示不全

  2. 边添加过滤(filter高亮方法),画布并不添加平移功能;线显示没问题

  3. 边添加过滤(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", },

    },
    

    }

重现链接

重现步骤

  1. 边添加过滤(filter高亮方法),且画布添加平移功能;导致线不显示或显示不全

  2. 边添加过滤(filter高亮方法),画布并不添加平移功能;线显示没问题

  3. 边添加过滤(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", }, image 2. 加attrs: { width: "100%", height: "100%", filterUnits: "userSpaceOnUse", }, image

补充说明(可选)

No response

yxj1124 avatar Sep 08 '23 03:09 yxj1124

👋 @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.

x6-bot[bot] avatar Sep 08 '23 03:09 x6-bot[bot]

这个是已知问题,暂时还没有好的思路解决,第二个场景使用开启了 scroller 插件的效果吗?

NewByVector avatar Sep 11 '23 12:09 NewByVector

开启了画布平移和缩放

yxj1124 avatar Sep 12 '23 02:09 yxj1124

我也遇到了相关的类似问题,请问最终解决了吗

firstdeepfeel avatar Jun 13 '24 01:06 firstdeepfeel

我也遇到了相关的类似问题,请问最终解决了吗

firstdeepfeel avatar Jun 13 '24 01:06 firstdeepfeel

我也遇到了类似的问题 请问解决了吗

liv-rong avatar Dec 13 '24 05:12 liv-rong