0.0.0 • Published 10 years ago

gl-modules-viz v0.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

gl-modules-viz

Just experimenting with making a force-directed graph of the core modules available in the modules.gl ecosystem, potentially to include on the home page.

demo

gl-modules-viz

Usage

The visualisation as a module too, so it's easy to include anywhere with browserify and npm.

svg = viz(opts)

Creates and returns an svg element containing the visualisation. Takes the following options:

  • opts.colors.bg: background color for the SVG.
  • opts.colors.fg: foreground color, i.e. the links, text and nodes.
  • opts.colors.hightlight: the color to use when highlighting a node.