You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
官方文档地址:https://g6.antv.antgroup.com/examples/layout/compact-box/#vertical
这个地址的示例的stackblitz:
https://stackblitz.com/run?file=index.js
如果把下面这行指定叶节点文字垂直的代码注释掉,就会出现文字和节点重叠的情况,这种情况之所以发生是因为布局时应该是只考虑了主图形的大小,而不会考虑文字大小
(代码29行开始的if语句块)
注释掉之前:

注释掉之后:

Beta Was this translation helpful? Give feedback.
All reactions