2.0.5 • Published 3 years ago

znui-react-graph v2.0.5

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

znui-react-graph

React Graph Component

npm npm

Demo

Take a look at the demo

Installation

npm install znui-react-graph -s

Usage

var React = require('react');
var graph = require('znui-react-graph');
var _data = {
    nodes: [
        {
            id: 1, x: 100, y: 100, width: 50, height: 50
        },
        {
            id: 2, x: 200, y: 200
        },
        {
            id: 3, x: 300, y: 300
        }
    ],
    links: [
        {target: 1, source: 2}
    ]
};

znui.react.createApplication({
    render: <div className="components">
        <graph.FlowCanvas data={_data} />
    </div>
});

Preiview

License

MIT

2.0.5

3 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.0

4 years ago