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

建议添加自定义节点的锚点的常显/尝隐功能 #1085

Open
wxc0730 opened this issue Apr 13, 2023 · 2 comments
Open

建议添加自定义节点的锚点的常显/尝隐功能 #1085

wxc0730 opened this issue Apr 13, 2023 · 2 comments

Comments

@wxc0730
Copy link

wxc0730 commented Apr 13, 2023

问题描述

  1. 现在我使用的是自定义节点的getDefaultAnchor方法内部设置isShowAnchor:true,现在达成的效果是能做到默认锚点展示,但是当我鼠标重新划过该节点,鼠标移出该自定义节点之后,默认的锚点消失
  2. 期望无论页面进行何种操作设置锚点常显的节点,锚点不会受其他行为影响导致隐藏

image
1681366781553

@wumail
Copy link
Collaborator

wumail commented Apr 14, 2023

你可以试着在自定义节点里重写setIsShowAnchor方法,例如
setIsShowAnchor( ){
this.isShowAnchor = true
}
实现锚点的常显、常隐以及其他动作

@1ess
Copy link

1ess commented May 17, 2023

你可以试着在自定义节点里重写setIsShowAnchor方法,例如 setIsShowAnchor( ){ this.isShowAnchor = true } 实现锚点的常显、常隐以及其他动作

设置 this.isShowAnchor = true 后,拖拽操作会导致锚点消失,拖拽完成锚点又显示了,能否在 this.isShowAnchor = true 的情况,拖拽也一直显示锚点。

@towersxu towersxu reopened this May 18, 2023
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

4 participants