G6
G6 copied to clipboard
Adjustment of pipes doesn't work.
问题描述
There is no way to automatically align pipes. Determining the starting position does not solve the problem in case of dynamic pipe resizing. If the content of the graph changes, this causes an overlap. (adding new nodes or changing a layer)
The issue was previously described in this issue. its solution does not exist.
重现链接
https://codepen.io/mostopalove/pen/yLzRJKK
重现步骤
- Go to the site with a live example.
- Look at the result.
预期行为
As a user, I expect different chart layouts to be separate from each other. But they overlap.
平台
- 操作系统: [macOS]
- 网页浏览器: [Google Chrome]
- G6 版本: [4.3.11 ]
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
Hi, sorry for replying late, so busy recently. Please try the new layout 'comboCombined' to see if it meets your requirements: https://codepen.io/Yanyan-Wang/pen/QWQjbpv
The inner and outer layouts could be assign to any other layout algorithms in G6.
P.S. please upgrade the @antv/g6 and @antv/layout to the latest version.
@Yanyan-Wang Thank you! This is REALLY cool feature! I will work right now with this and will write here in the comments all the problems or incomprehensible moments.
- From your example, how to understand where is this
comboPadding: 30
?

-
Can I define own layout for each combo? (In my case I want to change nodes and layout into combo by click, something like collapse-expand but short/full info about nodes)
-
I saw that in your example
collapse-expand
functionality doesn't work, but I add it manually. Is it possible to redrawinnerLayout
when combo size changed? After collapse for example? You check see code here: https://codepen.io/mostopalove/pen/RwQoMem
@Yanyan-Wang Hello! Do you know how to solve the issue?
@Yanyan-Wang Hey! Are you here? Help me please or answer something
- about comboPadding: 30
the comboPadding means the padding space inside the combo, from the content to the border
- Can I define own layout for each combo? (In my case I want to change nodes and layout into combo by click, something like collapse-expand but short/full info about nodes)
Did not support that yet. But I think you just want to add some information for collapsed combo? Maybe just update the combo label after combo collapsed. Or see the new feature to add a image for a collapsed combo: https://g6.antv.vision/en/examples/net/comboLayout#comboCombined
- Can I define own layout for each combo? (In my case I want to change nodes and layout into combo by click, something like collapse-expand but short/full info about nodes)
collapse-expand
is a behavior for TreeGraph. There is another behavior for collapsing/expanding combo named collapse-expand-combo
, see docs here: https://g6.antv.vision/en/docs/manual/middle/states/defaultBehavior#collapse-expand-combo
Hi, dear user. Since there was no response for a long time, we cannot figure out the answer of the problem you described. If there is new progress, feel free to open a new issue.