[Bug]: When performing a second brush select, the state of the node selected in the first brush select are updated, but its styles are not reset. #6833
Replies: 3 comments
-
|
It seems like you're encountering an issue with the brush select behavior in G6 version 5.x, where the styles of nodes selected in the first brush select are not reset when performing a second brush select. This can lead to inconsistent visual states for the nodes. To address this issue, you might want to ensure that the styles of nodes are explicitly reset when a new brush select operation is initiated. This can typically be done by listening to the brush select events and manually resetting the styles of nodes that are not part of the current selection. Here's a general approach you can take:
If you need further assistance with implementing this solution or if you believe this is a bug that needs to be addressed in the library itself, please let me know, and I can help you with the next steps. 🪧 TipsFor further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me. |
Beta Was this translation helpful? Give feedback.
-
|
you can use the demo, it's ok,: https://g6.antv.antgroup.com/zh/examples/behavior/select/#brush |
Beta Was this translation helpful? Give feedback.
-
|
It appears that a similar issue has already been reported as Issue #6712 in the repository. This issue describes the same problem with the brush select behavior where the styles of nodes are not reset after a second selection. You can follow the progress and any potential fixes for this issue by checking the linked issue. If you have additional information or insights, you might consider contributing to the discussion there. If you have any more questions or need further assistance, feel free to ask! 🪧 TipsFor further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug / 问题描述
When performing a second brush select, the state of the node selected in the first brush select are updated, but its styles are not reset.
Reproduction link / 复现链接
https://g6.antv.vision/api/behaviors/brush-select
Steps to Reproduce the Bug or Issue / 重现步骤
https://github.com/user-attachments/assets/9f2efadf-9660-4b13-99cd-a26c45018301
G6 Version / G6 版本
🆕 5.x
OS / 操作系统
Browser / 浏览器
Beta Was this translation helpful? Give feedback.
All reactions