包详细信息

gl-modules-viz

hughsk3MIT0.0.0

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.

gl-modules, visualisation, network, graph

自述文件

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.