gview-possible
v1.1.4
Published
viewer for directed acyclic graph
Downloads
3
Maintainers
Readme
gview
Fork from: egraph
Install
$ npm install gview
Usage
import GView from 'gview';
const data = {
vertices: [{
id: 1,
name: 'node-1'
}, {
id: 2,
name: 'node-2'
}],
edges: [{
from: 1,
to: 2
}]
};
const viewer = new GView('root', data, {
width: 800,
height: 400,
hited: function(list) {
console.log(list);
}
});
Develop
npm i dool -g
# Dev
$ dool server
# Build
$ dool build
Report a issue
License
Gview is available under the terms of the MIT License.