thunderjuiceviz

0.0.0 • Public • Published

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

  1. TJV.nGraph(_conceptarray)
  • Creates graphviz dot representation of the concepts in the array.
TJV.nGraph([concept1,concept2]);
  1. 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
  1. 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

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i thunderjuiceviz

    Weekly Downloads

    0

    Version

    0.0.0

    License

    LGPL-2.1

    Last publish

    Collaborators

    • cwingrav