Its not time for the next weekly progress report yet, but in the past days finally i managed to progress far enough to have a development snapshot release, so I wanted to inform those interested in the project.
I wanted to wait with a release until I have a semi-solid API, so you won't see deep alterations afterwards. I will put together a handbook page about the module, the API soon. Check out a demonstration! What you see on the demonstration page is a big Druplicon built in SVG (provided your browser supports SVG). What is behind is a structured array, consisting of the two supported path methods, assembling the final picture. For code level explanation a document is to be written soon.
The drawing API uses drupal_render() and its own theme functions to render the structured array containing the geometries into SVG syntax. The following features have been implemented to this date:
- complete basic shape support (ellipse, rectangle, line, polyline, polygon) (ok circle still missing)
- grouping element support (, including transformations (translation, rotation) for groups!)
- direct styling support via the API (fill, stroke, stroke-width), css styling coming soon
- basic text support
- path support (explicit path declaration, by insering the d="" values directly, and imlicit path declaration, via structured array)
The module contains a module named druplicon, just to separate the example code from the main module. More code cleanup, and additional features will be coded during the week.