| 1 |
$Id$ |
$Id$ |
| 2 |
|
|
| 3 |
Drawing API Readme |
Drawing API README |
| 4 |
|
|
| 5 |
===About the module=== |
CONTENTS OF THIS FILE |
| 6 |
|
---------------------- |
| 7 |
|
|
| 8 |
This module provides a layer to render SVG using a Form API like syntax (using |
* Introduction |
| 9 |
drupal_render itself). In addition there is a graphing extension. For detailed |
* Installation |
| 10 |
documentation on both the drawing module and the extension check the Drupal |
* Drawing demo usage |
| 11 |
handbook. |
* SVG browser support |
| 12 |
|
* SVG javascript support |
| 13 |
|
|
|
===SVG browser support=== |
|
| 14 |
|
|
| 15 |
|
INTRODUCTION |
| 16 |
|
------------ |
| 17 |
|
|
| 18 |
|
This module provides a layer to render drawings using a Forms API like syntax |
| 19 |
|
(using drupal_render itself). In addition there is a graphing extension. |
| 20 |
|
The Drawing API uses plugin modules such as Drawing SVG and Drawing GD to |
| 21 |
|
provide the method by which to render the images. |
| 22 |
|
Detailed documentation on the drawing module: http://drupal.org/node/161562 |
| 23 |
|
|
| 24 |
|
Module creator: snufkin (http://drupal.org/user/58645) |
| 25 |
|
6.x maintainer: Daniel Braksator (http://drupal.org/user/134005) |
| 26 |
|
|
| 27 |
|
Project page: http://drupal.org/project/drawing. |
| 28 |
|
|
| 29 |
|
|
| 30 |
|
INSTALLATION |
| 31 |
|
------------ |
| 32 |
|
1. Copy drawing folder to modules directory (usually sites/all/modules). |
| 33 |
|
2. At admin/build/modules enable the Drawing API module, as well as at least |
| 34 |
|
one toolkit module packaged with Drawing such as SVG or GD, and you may also |
| 35 |
|
choose to enable the Drawing graph module for plotting charts. |
| 36 |
|
3. Configure the module at admin/settings/drawing. |
| 37 |
|
|
| 38 |
|
|
| 39 |
|
DRAWING DEMO USAGE |
| 40 |
|
------------------ |
| 41 |
|
Enable the Drawing demo module and browse to the path 'drawing_demo' which |
| 42 |
|
should also be available in the main navigation menu as 'Drawing demo'. |
| 43 |
|
You are encouraged to browse and modify the drawing_demo.module source code |
| 44 |
|
to help in understanding this module. Familiarity with the Forms API will |
| 45 |
|
also go a long way to understanding how to use this module. |
| 46 |
|
|
| 47 |
|
|
| 48 |
|
SVG BROWSER SUPPORT |
| 49 |
|
------------------- |
| 50 |
This is table about the browser support towards inline (SVG in HTML) or embed |
This is table about the browser support towards inline (SVG in HTML) or embed |
| 51 |
(SVG file as <object>, <embed>) type SVG. Additions are welcome, please use |
(SVG file as <object>, <embed>) type SVG. Additions are welcome, please use |
| 52 |
the projects issue queue for that: http://drupal.org/project/issues/drawing. |
the projects issue queue for that: http://drupal.org/project/issues/drawing. |
| 53 |
Thank you. |
Thank you. |
| 54 |
|
|
| 55 |
inline embed |
inline embed |
| 56 |
ie6 plugin plugin |
ie6 plugin plugin |
| 57 |
ie7 - - |
ie7 - - |
| 58 |
ff1.x x x |
ff1.x x x |
| 64 |
safari2 (native) - - |
safari2 (native) - - |
| 65 |
safari3 (native) x x |
safari3 (native) x x |
| 66 |
|
|
| 67 |
===JavaScript support=== |
|
| 68 |
|
SVG JAVASCRIPT SUPPORT |
| 69 |
|
---------------------- |
| 70 |
There is no official jQuery support for SVG. With the namespaces the previously |
There is no official jQuery support for SVG. With the namespaces the previously |
| 71 |
working $('ellipse') syntax is not working anymore. There is id and class |
working $('ellipse') syntax is not working anymore. There is id and class |
| 72 |
support in the module, therefore the elements can be manipulated via regular |
support in the module, therefore the elements can be manipulated via regular |
| 73 |
JavaScript. |
JavaScript. |
|
|
|
|
===Graphing module=== |
|
|
TODO |
|