UNPKG

relatives-tree

Version:

Calculates families and nodes positions for rendering a family tree

46 lines (45 loc) 694 B
[ { "id": "js2RsE5sr", "gender": "male", "parents": [], "siblings": [], "spouses": [ { "id": "pdRwdtR54", "type": "married" }, { "id": "tdRwdtR54", "type": "divorced" } ], "children": [] }, { "id": "pdRwdtR54", "gender": "female", "parents": [], "siblings": [], "spouses": [ { "id": "js2RsE5sr", "type": "married" } ], "children": [] }, { "id": "tdRwdtR54", "gender": "female", "parents": [], "siblings": [], "spouses": [ { "id": "js2RsE5sr", "type": "divorced" } ], "children": [] } ]