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

[Bug report]设置节点不可点击后 isHitable=false,节点的hover 及锚点都会失效。 #1101

Open
ghost opened this issue Apr 18, 2023 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 18, 2023

设置节点不可点击后 isHitable=false,节点的hover 及锚点都会失效。

@towersxu
Copy link
Collaborator

目前确实是这样的,请问您什么情况下需要将isHitable设置为false后还需要能显示锚点?我们会基于实际情况评估是否要优化这里。

@ghost
Copy link
Author

ghost commented Apr 19, 2023

想要将节点固定到画布中的固定位置(设置节点不可被移动),节点不可被删除(如果可选中,快捷键可删除,因此设置该节点不可被选中),但是可通过悬浮的锚点进行连接其他节点。

@wumail wumail added 优化 New feature or request discussion labels Jul 10, 2023
@wumail wumail removed the 优化 New feature or request label Sep 8, 2023
@wumail
Copy link
Collaborator

wumail commented Sep 8, 2023

不可点击时不显示锚点感觉是没问题的,有两种解决办法
1、LogicFlow内置节点不可移动、不可删除的配置项
2、自定义节点,重写View中的onDragging方法实现节点不可移动,覆盖默认的删除快捷键行为来实现不可删除
第二种更合理,因为不可移动不可删除更像是定制化需求,理论上应该开发者自己实现,考虑优化覆盖默认快捷键的方式。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants