BALKANGraph / FamilyTreeJS

Build family tree app with BALKAN FamilyTreeJS library. Family Tree also called a genealogy or a pedigree chart, is a chart representing family relationships in a conventional tree structure.
50 stars 16 forks source link

Problem Statement #75

Closed MuhammadWasi819 closed 6 months ago

MuhammadWasi819 commented 10 months ago

In the Balkan Family Tree application, users can add relatives to the existing family tree through the UI. Specifically, they can add 'parent' and 'spouse' nodes to the tree. However, an issue has emerged where the object returned for both 'parent' and 'spouse' nodes is almost identical, making it difficult to programmatically identify which type of relative is being added.

Existing Object Structure When a parent or spouse event is triggered, the object returned looks something like this: Note: I am using chart.on('updated') function { "gender": "male", "pids": [ "64e77363e4c7cdc04db11872" ], "id": "_90d4" }

ZornitsaPesheva commented 10 months ago

When you adding a parent, you should have "mid" or "fid" Here is an example : image