antvis / layout

Layout algorithms for graphs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ComboCombinedLayout returning different results than g6 layout comboCombined

bsansone opened this issue · comments

I'm attempting to compute the layout on the server and want to gather the x, y coordinates of all the nodes/edge/combos but am receiving inconsistent results. Maybe I'm using the library incorrectly?

Code Sandbox: https://codesandbox.io/s/frosty-morning-jv3p68?file=/src/index.js:379-786

Normal comboCombined layout in g6 gives these results:
image

If I try to compute the layout beforehand with this layout library, I get these results:
image