Drawing API

snufkin - May 29, 2007 - 20:02

The Drawing API is an abstract graphic handling API, and ships with SVG toolkit by default. It was originally written as a 2007 Google Summer of Code project. The aim of this module is to provide a parser for a FAPI-like data architecture for graphics making the display of drawings easy to understand on the back-end, without requiring the knowledge of the actual front-end toolkit that it will be rendered into. It makes it easy to generate different graphs, plots, charts, maps and so on.

Drupal 5

The Drupal 5 version contains:

  • an SVG toolkit that handles the painting,
  • generic drawing.module that is responsible for understanding the syntax.
  • a graphing module
  • demo modules, providing examples how the module can be used

Drupal 6

The Drupal 6 version is currently in development by danielb.

The Drupal 6 version contains:

  • an SVG toolkit that handles svg painting,
  • a GD toolkit that handles php/gif/jpg painting,
  • generic drawing.module that is responsible for understanding the syntax.
  • a graphing module
  • demo modules, providing examples how the module can be used

SVG and browser compatibility

Read the documentation about browser compatibilty with SVG images, and how to optimise your site for more browsers.

Ideas for application

  • mapping applications
  • popular topics (tags) as rectangles, size reflects the popularity of tags. collective size can be used to reflect the size of the vocabulary, with zooming this can actually be useful
  • statistics on page (for administrators a quick overview on current load, comment number (flame rate), query speed and so on)
  • embedded graphs (sparklines)
  • provide a glue layer for Charts module.

Releases

Development snapshotsDateSizeLinksStatus
6.x-2.x-dev2009-May-2329.91 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.
5.x-2.x-dev2007-Dec-2718.62 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.


 
 

Drupal is a registered trademark of Dries Buytaert.