DAG-diagram icon indicating copy to clipboard operation
DAG-diagram copied to clipboard

support auto layout ?

Open zzwar2009 opened this issue 4 years ago • 1 comments

first of all , thanks for your great work, it inspire me a lot , and I maybe write a react version according to your sourcecode.

my question is : if the node has no position(posi_x,posi_y) attribute , now can the diagram support auto layout ?

zzwar2009 avatar May 21 '20 01:05 zzwar2009

Hello bro~ ! In my personal opinion , to put position attr in FE, is not appropriate ~ well well well 刚才看到你github里是中文commit 就直接中文回复你吧.... 一般来说,数据是后端产生的, 数据清洗 -> 生成节点关系 -> 对应生成前端坐标即可~ 如果前端写布局逻辑也没那么复杂~ 可以自己尝试一下~ 可以加qq群我们一起讨论 大概思路是把节点分级, 同级节点x轴坐标一致~ 同列节点y轴坐标一致即可~

murongqimiao avatar Jun 06 '20 13:06 murongqimiao