/* * User defined callbacks for handling FlowViz events. * * Note: in the callbacks, 'this' is bound to our instance of the FlowViz object because FlowViz extends EventEmitter! */ var App = new FlowViz.App('config_roboflow.json', 'svg#InteractiveViz', { Events: { "flowviz-ready": function() { this.Controls.Create('div#LeftSidebar'); this.Legend.Create('div#LeftSidebar'); this.DataEditor.Create('div#LeftSidebar'); }, "node-added": function() { this.ShowMessage("Node added!"); } } });