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

点选/框选 Selection的filter配置是函数时,实际结果和文档描述相反 #2894

Closed
XueMeijing opened this issue Nov 17, 2022 · 2 comments

Comments

@XueMeijing
Copy link
Contributor

问题描述

image

实际结果是return node.shape !== 'rect' 才能禁止选中

重现链接

如上描述

重现步骤

如上描述

预期行为

像文档一样,filter函数return true时禁止选中

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@NewByVector
Copy link
Contributor

这个修改是 breakchange,已经在 2.x 版本中修复,而且 filter 的定义与 javascript 中 filter 语义保持一致。

@x6-bot
Copy link
Contributor

x6-bot bot commented Nov 25, 2023

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Nov 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants