3.0.1-rc.0 ā€¢ Published 3 years ago

relatives-tree-cjs v3.0.1-rc.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

relatives-tree

A tiny library (~3.21 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