How can I wrap words in g6-react-node <Text> like CSS word-wrap #4798
-
When create a custom node using g6-react-node in antv/g6, how can I break text lines to multiple lines when it's exceed the max width of node like CSS word-wrap? I hope someone can help me on this. Thank you. <Text {label} |
Beta Was this translation helpful? Give feedback.
Answered by
hustcc
Apr 17, 2024
Replies: 1 comment
-
新版本 G6 5.0 才支持,因为 maxWidth 需要底层 G 5.0 才有的。 另外,在 G6 5.0 版本中,还可以使用 React 去自定义节点。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hustcc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
新版本 G6 5.0 才支持,因为 maxWidth 需要底层 G 5.0 才有的。
另外,在 G6 5.0 版本中,还可以使用 React 去自定义节点。