-
Notifications
You must be signed in to change notification settings - Fork 267
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
badges' bahaviour differ from doc's description #301
Comments
Hi @ZhongYic00 - can you create a small reproducible code sample? I'm hoping it only takes a few minutes 😄 , but it will help save other reviewers / community members with the code I've used stackblitz to create several code samples in the past using Graphin like this one:
|
@cliffordfajardo
|
To be honest it won't be for another few days until I understand more about the API's to style the nodes; I'm still very new to the library. What I've done to help me progress is:
They have lots of examples (not all relevant) but some of them are for updating the appearance of nodes Sorry I wasn't too helpful at this time of posting this comment |
Thanks for your sincere advice, to view their source code inside is burdensome yet helpful. I believe I've found the inner implementation at https://github.com/antvis/G6/blob/master/packages/core/src/graph/controller/item.ts where the updated value of type Array directly replace the old rather than merge together. The callstack I guess is Btw, there doesn't seem to be many examples concerning the badges feature, which might not be widely used. |
it seems I've met the question as you too。 |
Describe the bug
Badges cannot be removed once set.
To Reproduce
Expected behavior
visible:true|false
as described in graphin documentation .updateItem
or setting statusStyle .Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: