README 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. -------------------------------------------------------------------------------
  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. A cross-browser drawing editor based on dojox.gfx.
  17. -------------------------------------------------------------------------------
  18. Dependencies:
  19. dijit (Toolbar, Button, Slider)
  20. dojox.gfx
  21. dojox.xml
  22. -------------------------------------------------------------------------------
  23. Documentation
  24. Currently, 5 shapes are supported: line, single arrow line, double arrow line,
  25. underline text and text. The first 3 shapes can have optinal text associated.
  26. Shapes can be added, deleted, moved and modified. All of these operations can
  27. be undo-ed or redo-ed.
  28. TODO:
  29. * provide UI to change various properties on shapes (fill, stroke, text) and
  30. allow changing of background image
  31. * serialize/unserialize in dojox.gfx to svg (and maybe vml as well?) (or another
  32. simplier format? such as a json based one, which is easier to parse, and then
  33. write a convertor to convert the json format to svg or any other format?)
  34. * Move mousedown/up/move to each shape (to prepare for the following)
  35. * Add shapes for other primitive shapes (needs to decide which primitive
  36. dojox.gfx.shapes are useful), and add in support for user to group any
  37. shapes/groups to form a single "compound shape" (need to add support to set
  38. fill/stroke properties on the entire compound shape, which shallpropagate to
  39. all children shapes)
  40. -------------------------------------------------------------------------------
  41. Installation instructions
  42. Install dijit, dojox.gfx and dojox.xml first
  43. Grab the following from the Dojo SVN Repository:
  44. http://svn.dojotoolkit.org/var/src/dojo/dojox/trunk/sketch.js
  45. http://svn.dojotoolkit.org/var/src/dojo/dojox/trunk/sketch/*
  46. Install into the following directory structure:
  47. /dojox/sketch/
  48. ...which should be at the same level as your Dojo checkout.
  49. -------------------------------------------------------------------------------