Package Exports
- relatives-tree-c
- relatives-tree-c/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (relatives-tree-c) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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