Graphosaurus
A three-dimensional static graph viewer.
Demos
Documentation
JSDoc generated API documentation can be found here.
Twenty second tutorial
If you open this up in your web browser, you'll see something that looks like this:
Look at that amazing square! Now lets create a graph, a couple nodes, and an edge between the nodes:
var graph = G // Create a red node with cartesian coordinates x=0, y=0, z=0var redNode = G;graph; // You can also use the addTo method to add to the graphvar greenNode = G; var edge = G;graph; // or edge.addTo(graph) // Render the graph in the HTML element with id='graph'graph;
After inserting this JavaScript in the <script>
block, you should see this:
While this is a very basic example, I hope I've demonstrated how simple it is to create graphs with Graphosaurus.
Build
- Run
git clone https://github.com/frewsxcv/graphosaurus.git
to clone this repository - Install node, npm, and grunt-cli
- Run
npm install
to install all the build requirements - Run
grunt
to build Graphosaurus. The resulting compiled JavaScript will be indist/
and the docs will be indoc/
Mascot
John Conway's illustration of our glorious leader, the gryposaurus graphosaurus.
Copyright
All files in this repository are licensed under version two of the Mozilla Public License.
Graphosaurus has some third party dependencies listed in the package.json
file in the devDependencies
and dependencies
sections. Their licenses can be found on their respective project pages.