Calculate the kinships of a person
The id of the person to calculate the kinships of.
The config for the kinships.
Whether to show in law relations.
The kinships of the person.
Get the kinships data stash with which we can create small family tree with relatives that connects 2 people
The id of the main person.
The id of the person to get the kinships of.
The kinships data stash.
Get the max depth of a person in the ancestry and progeny
The id of the person to get the max depth of.
The max depth of the person in the ancestry and progeny. {ancestry: number, progeny: number}
Set the after update of the tree.
The function to call after the update.
The CreateChart instance
Set how many generations to show in the ancestry
The number of generations to show in the ancestry.
The CreateChart instance
Set the before update of the tree.
The function to call before the update.
The CreateChart instance
Set the Card creation function
The CreateChart instance
Set the card x spacing
The card x spacing between the cards. Node separation.
The CreateChart instance
Set the card y spacing
The card y spacing between the cards. Level separation.
The CreateChart instance
Set whether to show toggable tree branches are duplicated
Whether to show toggable tree branches are duplicated.
The CreateChart instance
Option to set text on spouse links
The function to set the text on the spouse links.
The CreateChart instance
set function that will modify the tree hierarchy. it can be used to delete or add cards in the tree.
function that will modify the tree hierarchy.
The CreateChart instance
Set the person dropdown
The function to get the label of the person to show in the dropdown.
The config for the person dropdown.
Optional
cont?: HTMLElementThe container to put the dropdown in. Default is the .f3-nav-cont element.
Optional
onSelect?: (d_id: string) => voidThe function to call when a person is selected. Default is setting clicked person as main person and updating the tree.
Optional
placeholder?: stringThe placeholder for the search input. Default is 'Search'.
The CreateChart instance
Set the private cards config
The private cards config.
The CreateChart instance
Set how many generations to show in the progeny
The number of generations to show in the progeny.
The CreateChart instance
Set whether to show the siblings of the main person
Whether to show the siblings of the main person.
The CreateChart instance
Set whether to show the single parent empty card
Whether to show the single parent empty card.
The label to display for the single parent empty card.
The CreateChart instance
Set the sort children function
The sort children function.
The CreateChart instance
Set the sort spouses function
The CreateChart instance
Set the transition time
The transition time in milliseconds
The CreateChart instance
Update the main person
New main person id.
The CreateChart instance
Update the tree
The properties to update the tree with.
Whether to update the tree initially.
The position of the tree.
The transition time.
The CreateChart instance
Main Chart class - The primary class for creating and managing family tree visualizations.
This is the main entry point for the Family Chart library. Use this class to:
Example