- Dracula is just one npm install away:
npm install graphdracula
npm install raphael
- Go on to fill up an index.js with such content:
var Dracula = require('graphdracula');
var Graph = Dracula.Graph;
var Renderer = Dracula.Renderer.Raphael;
var Layout = Dracula.Layout.Spring;
var graph = new Graph();
var layout = new Layout(graph)
var renderer = new Renderer('#paper', graph, 400, 300);
browserify --debug index.js > bundle.js
- Serve it hot on an index.html:
<title>Graph Dracula Browserify Boilerplate</title>
It’s all on a brand new boilerplate at github.com/strathausen/dracula-browerify-boilerplate and it looks like this rawgit.com/strathausen/dracula-browerify-boilerplate/master/index.html.
I’ll put the new version of Dracula on a CDN some time soon and post the link at this very place. Stay tuned!
Just letting you know I’m currently working on making Graph Dracula work with NPM and port it to ES2015 awesomeness. Stay tuned!
Hi, I just pushed a tiny svg library to GitHub. I want it to be a foundation of a lightweight version of Dracula, and it’s less than 1k in size (gzipped + minified).
Hi, just noticed that IE9 doesn’t seem to like my library. I don’t have much time right now and this fix seems to be a tricky one with several things broken. Any help here would be appreciated!
Once again I am proud to serve the glorious Internet Explorer. The latest code on Github (see the link top-right) contains some minor adjustments to make it work again. Thanks for all the hints you gave me!
Hi there, just committed a very little fix (GitHub/Launchpad) that should make my software work on IE. Currently very busy with my project http://www.upcload.com – hear back from me soon. (Happy new year by the way!)
Dear people. Here’s just some short news on what’s currently going on:
I have finished my studies and am working on a start-up together with some friends. It’s about apparel online shopping, a software that gets your measurements by a webcam. Tricky, but doable 🙂 Just got an office in the centre of Berlin, will have more time soon…
Regarding the Dracula library, two people have send me some interesting updates. They look nice and I want to integrate them soon in my main development path. If you can’t wait, have a look here for some new code https://code.launchpad.net/~stothardj/dracula/nonodelist and a tree mode on GitHub: https://github.com/grigoryk/dracula-js-fork
The latest code on launchpad now includes a library for a deterministic random behaviour, allowing deterministic graph layouts. You can experiment with a few values and then stick with the one that produced the best result.
Simply include the library
seedrandom.js and initialize with
Math.seedrandom("any string you like");
I just launched the Dracula Graph Library site. Currently, it’s just a WordPress 3.0 default install theme, but I’ll think of something. For now, you’ll find the download, documentation, some descriptions and more. Stay tuned! There’s a lot to come.