How can I prevent overlapping in a family tree generator?

前端 未结 3 1851
栀梦
栀梦 2021-01-01 16:43

I\'m creating an interactive family tree creator, unlike more simpler versions which are simple pedigree charts/trees.

The requirements for mine (ba

3条回答
  •  旧时难觅i
    2021-01-01 17:24

    you'll have to adjust all the branches off the node that you affect, each branch will have to recalculate the position of its nodes, and each node will have to be recalculated locally reaching the leaves.You calculated once the leaves are going to have to recalculate all the way to backing up, all that recursively. It's like a real tree, when you add physically branch to trunk ... the other branches move alone to leave some space, all sheets are automatically reset, so you have to imagine. And simulate this process in your diagram. Processes each branch reaches each leaf, and recalculates up to recompute the modified node neighbors. (one level above you started) That is not easy or single job to do.

提交回复
热议问题