-
Notifications
You must be signed in to change notification settings - Fork 249
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
大佬 对于updateItem更新节点的样式 不生效是啥原因 #50
Comments
不应该啊,你触发updateItem的代码发来看看,或者你手动触发一下graph.refreshItem(item)试试? |
网上说“graph.updateItem(item, style)更新样式只会对nodeStyle或graph.node(fn)中定义的default样式及配置起作用 ” 真的吗 我这是自定义节点 我代码确定updateItem是触发了的 能更改label x y 等属性 就是改不了style 求大佬解答 谢谢了 |
|
`G6.registerNode('sms-node', {
}, 'base-node');`自定义节点代码 |
你好,我这边也遇到这个问题,this.graph.updateItem方法调用后,控制台打印节点信息,可以看到节点的样式变化了,但是视图上没有变化。请问下,你这边怎么解决的呢? |
this.graph.updateItem不能修改自定义节点的颜色 只能更改默认的节点颜色 我是通过setstateItem设置颜色的 |
|
楼主也说了一种方法 就在头上 你也可以看下 |
No description provided.
The text was updated successfully, but these errors were encountered: