Repository navigation
5.x: Set node size based on label automatically #7340
|
before 5.x I could use the solution posted in #2331 to have nodes fit around a label's size now this doesn't work anymore and https://g6.antv.antgroup.com/en/manual/whats-new/upgrade#preparation-before-upgrade mentions how can I do it now? |
Answered by
curious-broccoli
Aug 20, 2025
Replies: 3 comments
|
this likely works, found in the FAQ of the documentation #6347 (comment) |
0 replies
|
actually, that snippet by itself doesn't work. after removing the typescript syntax and (temporarily) removing nonexistent functions like the memoize function, the problem is that the |
0 replies
|
without memoization (not recommended), this is one way to do it using node.style.labelText |
0 replies
Answer selected by
curious-broccoli
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
without memoization (not recommended), this is one way to do it
using node.style.labelText