Miss any of our Open RFC calls?Watch the recordings here! »

relatives-tree

2.0.1 • Public • Published

relatives-tree

A tiny library (~3.2kb 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)

📝 JSON data examples

Install

npm i relatives-tree

DownloadsWeekly Downloads

37

Version

2.0.1

License

MIT

Unpacked Size

123 kB

Total Files

120

Last publish

Collaborators

  • avatar