Add simple tree graph mode #4
@ -113,11 +113,8 @@ function buildSimpleDownTreeNode(
|
|||||||
if (node.spouse) {
|
if (node.spouse) {
|
||||||
levelWidth =
|
levelWidth =
|
||||||
SPOUSE_SPACING +
|
SPOUSE_SPACING +
|
||||||
2 *
|
memberCardWidth(node.member) +
|
||||||
Math.max(
|
memberCardWidth(node.spouse.member);
|
||||||
memberCardWidth(node.member),
|
|
||||||
memberCardWidth(node.spouse.member)
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
levelWidth = memberCardWidth(node.member);
|
levelWidth = memberCardWidth(node.member);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user