Git Product home page Git Product logo

sanichkotikov / relatives-tree Goto Github PK

View Code? Open in Web Editor NEW
44.0 2.0 20.0 1.03 MB

A tiny library for calculating specific JSON data to family tree nodes and connectors ๐ŸŒณ

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

License: MIT License

TypeScript 98.54% JavaScript 1.46%
vanillajs npm-package npm-module graph-algorithms family-tree familytree es6-modules no-dependencies

relatives-tree's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.