Use in the following manner:
window.addEvent('domready', function() { var diagram = new TreeDiagram(400,400).inject($('renderer')); var root = new Component(diagram,200,50,"root caption",{x: 100, y: 100}).makeDraggable(); var childA = new Component(diagram,200,50,"child A").makeDraggable().connectTo(root); var childB = new Component(diagram,200,50,"child B").makeDraggable().connectTo(root) var childC = new Component(diagram,200,50,"child C").makeDraggable().connectTo(childB); });
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.
blog comments powered by Disqus