root / trunk / web / dojo / dojox / sketch / README @ 10
History | View | Annotate | Download (2.44 KB)
1 | 9 | andrej.cim | ------------------------------------------------------------------------------- |
---|---|---|---|
2 | dojox.sketch |
||
3 | ------------------------------------------------------------------------------- |
||
4 | Version 0.1 |
||
5 | Release date: 28/01/2008 |
||
6 | ------------------------------------------------------------------------------- |
||
7 | Project state: |
||
8 | experimental |
||
9 | ------------------------------------------------------------------------------- |
||
10 | Credits |
||
11 | Contributed by TeamPatent (supported by National Science Foundation grant 638334) |
||
12 | Tom Trenka (ttrenka@gmail.com) |
||
13 | Heng Liu/LiuCougar (heng@teampatent.com) |
||
14 | ------------------------------------------------------------------------------- |
||
15 | Project description |
||
16 | |||
17 | A cross-browser drawing editor based on dojox.gfx. |
||
18 | ------------------------------------------------------------------------------- |
||
19 | Dependencies: |
||
20 | |||
21 | dijit (Toolbar, Button, Slider) |
||
22 | dojox.gfx |
||
23 | dojox.xml |
||
24 | ------------------------------------------------------------------------------- |
||
25 | Documentation |
||
26 | |||
27 | Currently, 5 shapes are supported: line, single arrow line, double arrow line, |
||
28 | underline text and text. The first 3 shapes can have optinal text associated. |
||
29 | |||
30 | Shapes can be added, deleted, moved and modified. All of these operations can |
||
31 | be undo-ed or redo-ed. |
||
32 | |||
33 | TODO: |
||
34 | * provide UI to change various properties on shapes (fill, stroke, text) and |
||
35 | allow changing of background image |
||
36 | * serialize/unserialize in dojox.gfx to svg (and maybe vml as well?) (or another |
||
37 | simplier format? such as a json based one, which is easier to parse, and then |
||
38 | write a convertor to convert the json format to svg or any other format?) |
||
39 | * Move mousedown/up/move to each shape (to prepare for the following) |
||
40 | * Add shapes for other primitive shapes (needs to decide which primitive |
||
41 | dojox.gfx.shapes are useful), and add in support for user to group any |
||
42 | shapes/groups to form a single "compound shape" (need to add support to set |
||
43 | fill/stroke properties on the entire compound shape, which shallpropagate to |
||
44 | all children shapes) |
||
45 | ------------------------------------------------------------------------------- |
||
46 | Installation instructions |
||
47 | |||
48 | Install dijit, dojox.gfx and dojox.xml first |
||
49 | |||
50 | Grab the following from the Dojo SVN Repository: |
||
51 | http://svn.dojotoolkit.org/var/src/dojo/dojox/trunk/sketch.js |
||
52 | http://svn.dojotoolkit.org/var/src/dojo/dojox/trunk/sketch/* |
||
53 | |||
54 | Install into the following directory structure: |
||
55 | /dojox/sketch/ |
||
56 | |||
57 | ...which should be at the same level as your Dojo checkout. |
||
58 | ------------------------------------------------------------------------------- |