thunderjuiceviz
v0.0.0
Published
[ALPHA] An extention to ThunderJuice, to create on the fly visualizations of the Concepts.
Downloads
9
Readme
ThunderJuice-Viz
An extention to ThunderJuice, to create on the fly visualizations of the Concepts.
Uses the Viz.js project which turns Graphviz's src into javascript! Thanks! https://github.com/mdaines/viz.js/
##Features
- Creats a global TJV object to use on your debugger's commandline.
- Use the popGraph function to quickly see concepts.
- To see all concepts,
TJV.popGraph(ThunderJuiceQ._concepts);
or
TJV.popGraph();
##Usage
- TJV.nGraph(_conceptarray)
- Creates graphviz dot representation of the concepts in the array.
TJV.nGraph([concept1,concept2]);
- TJV.rGraph(_graphviz,_format,_engine)
- Returns plain text of your graphviz data in the desired format. "svg" is default. "dot" I believe is the default engine.
a.innerHTML = TJV.rGraph(TJV.nGraph([concept1,concept2])); // returns SVG of both concept using default engine
- TJV.popGraph([...])
- Creates a popup SVG image of the concepts you place into that array. Click the popup to remove it.
TJV.popGraph([concept1,concept2]);
##Testing I have a NodeJS script to play around with. It creates a server on [http://localhost:9002].
cd bin/src ; node testserver.js