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

如何更新自定义节点的局部样式呢?graph.updateItem报错不是方法 #586

Open
zzg-forward opened this issue Mar 4, 2021 · 4 comments

Comments

@zzg-forward
Copy link

这个功能解决了什么问题

你所期望的 API 是怎样的

如何更新自定义节点的局部样式呢?graph.updateItem报错不是方法

@zzg-forward
Copy link
Author

image

例如如上图所示,当我点击自定义菜单栏中一项时,希望将选中的节点绿色色块变为蓝色,求教各位大佬

目前实现是通过RegisterCommand自定义命令在execute中调用graph.update可以实现全局更新节点,如下图
image

@zzg-forward
Copy link
Author

解决了,直接更新module中的对应的数据即可

@zzg-forward
Copy link
Author

model

@lukenvn
Copy link

lukenvn commented Mar 26, 2021

hi guys, Do you know how can I make a node in mindmap can be drag and drop? thank you in andvance

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

No branches or pull requests

2 participants