SanichKotikov / relatives-tree

A tiny library for calculating specific JSON data to family tree nodes and connectors 🌳

Home Page:https://sanichkotikov.github.io/react-family-tree-example/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

relatives-tree

A tiny library (~3.5 kB gz) for calculating specific JSON data to family tree nodes and connectors.

πŸ–₯ Here is a demo app with React rendering.

import calcTree from 'relatives-tree';

const tree = calcTree(json, { rootId });

The nodes & the connectors are simple JS objects, so you can use any rendering layer.

Usage

πŸ›  Canvas example
πŸ› οΈ React example (react-family-tree source code)
πŸ› οΈ Solid example

πŸ“ JSON data examples.

Contributing

Please read this documentation before contributing.

About

A tiny library for calculating specific JSON data to family tree nodes and connectors 🌳

https://sanichkotikov.github.io/react-family-tree-example/

License:MIT License


Languages

Language:TypeScript 98.5%Language:JavaScript 1.5%