A JavaScript library for interactive reaction graphs

Ben Ripkens

Abstract

Currently no library is available for client side visualization of reaction networks. As a result a JavaScript library for interactive reaction graphs is to be designed and developed. Besides presentation the framework should provide functionality for scrolling, dragging, zooming, modification and export to JPEG, PNG, SVG and PDF.

Additional Information

Many applications nowadays are web applications, e.g. the web based IDE Orion, because of several advantages. One of them being that nothing needs to be installed on the client side to use the applications - except a web browser.
The availability of fast JavaScript engines allows to create more complex web applications like office suites, visualizations and games.

The proposed idea aims to provide a JavaScript library for the visualization and modification of graph structures. The proposal is based on this idea.

  1. Based on an SVG abstraction layer, e.g. Raphael, for cross browser compatibility
  2. interactive, event-like system allowing for simple modification of network elements
  3. nodes and edges represented as SVG elements
  4. scrolling, dragging, panning, zooming and modification support
  5. HTML elements will be used as placeholder for the SVG elements while dragging to improve performance
  6. animation (interpolation) for small changes in the network (like adding/deleting a node)
  7. Export diagram to JPEG, PNG, PDF and SVG