antvis / layout

Layout algorithms for graphs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

当格式为x6使用toJSON导出的结果时无法识别

belongwqz opened this issue · comments

commented

当格式为x6使用toJSON导出的结果时无法识别。

x6的graph.toJSON()导出的格式为{cells:[xxxx]},而layout只能识别{nodes:[xx],edges:[xx]}。而x6的graph.fromJSON可以识别两种格式。