btopo
v1.0.2
Published
Topo rendering plugin
Downloads
12
Readme
install
npm install --save btopo
basic usage
import Topo from 'btopo'
// create a topo view.
let tp = new Topo("domId");
// create a node and setup node properties.
let n1 = new Topo.Node();
n1.props({
x: 100,
y: 100,
icon: 'images/icon.png'
})
// add n1 to view.
tp.add(n1);
// load images, and render topo.
Topo.imageLoader([
'images/1.png',
'images/icon.png'
]).then(()=>{
tp.render();
})