Loading...
 
Skip to main content

Draw


SVG-edit is like a web-based Inkspace (drawing tool, for diagrams, pictures and illustrations) and not a picture and photo editor like GIMP. SVG-Edit is based on jQuery, like Tiki.

Who

  • Robert Plummer
  • Marc Laporte
  • You?

When

Dogfood bug

  • I am trying to draw Teams at Teams Drawing, but it's very strange with Chrome and Firefox.

Testing

Learn project

Robert & Marc are working on a project which requires enhancements

  1. By default, open Draw as full screen
  2. Add a Button "Save and Back" (or just make all AJAX) (partially done)
    • It's all AJAX now but the pop-up has hidden buttons. Maybe this will be solved when some buttons are hidden?
  3. Affect the number of drawing options/buttons/widgets from Tiki
  4. Using http://profiles.tiki.org/Cartograf, there is an issue with drawing layers when editing via tracker (Marc will make video)
  5. Is there an easy way to have text associated to a drawing/shape (without having to add a second element) (see page 10 of PDF)
  6. When image is smaller than SVG-edit canvas, some weirdness appears (Maybe this is the real issue.

Wishes

Urgent

Todo

  • PluginDraw can't be used in blog posts (and presumably other non-wiki page text areas)
  • use of SVG icon like lib\images\icons\svg.svg or lib\images\icons\svg.png
  • Not working with IE9: http://demo.tiki.org/draw/tiki-edit_draw.php?galleryId=1 ok with latest trunk
  • The file gallery, the edit drawing image has a permission check but is missing a feature check done r37813
  • Drawn image doesn't show in WYSIWYG mode

To do, if easy

  • Toolbar: Change the icon to look more like a drawing, and have it by default on toolbar if feature is activated
  • Pick image from Tiki file gallery for inclusion as background (so we can annotate)
    • Tiki9: for jpg, gif and png in the file gallery, there is an edit icon that opens SVG-edit with this picture as the background.
  • File gallery stuff specific to Drawings
  • Hyperlinks on elements don't work on PluginDraw in wiki page while http://demo.tiki.org/draw/tiki-download_file.php?fileId=38&display is OK : ex red box at: http://demo.tiki.org/draw/SVG-Tiger
  • "Image tool" will permit to adding something like this to the SVG: <image xlink:href="https://suite.tiki.org/img/tiki/Tiki_Suite.png" id="svg_6" height="130" width="235" y="290" x="184"/>
  • When creating the file in plugindraw or "create a drawing" in tiki-list_file_gallery.php?galleryId=4, it should ideally ask file name and description
    • There is a better default now, and easy to change so only nice-to-have
  • General File Gallery Stuff: editing properties should let me change file name because "New Svg Image.svg" is not very descriptive
    • Ok can be renamed from edit view, but does it keep it in the same archive?
  • "Where will this drawing be stored?" should be translatable
  • In view mode, if browser is unsupported, it should say (like it does for edit) instead of broken image
  • allow some way to have multiline text boxes. Right now you have to add a new text box for each line (example on demo.t.o for Tiki Suite SVG), whereas many vectorial-image programs allow for:
    • pressing ENTER when you are in a text box to force a new line in that text box
    • resize with the mouse the text box, and have the text adapted to the new box size (when box is narrower, long lines split in two, etc.)
  • IE9: starts existing drawing: not centered (minor)


Nice to have

  • If SVG-edit is using external images (with http), have a way to easily convert them to images managed in your Tiki (so if image goes offline or if you go offline, things keep working)
  • Opera offers to download instead of viewing (Chrome and Firefox are OK)
  • Full screen is not very reliable via different browsers
  • A way to compare files side by side (which would be nice when we have images)
  • Extend 'import SVG file' to allow pulling from images/files within Tiki


Test plan

See: http://profiles.tiki.org/Drawing+test+plan

Long term

  • Realtime Collaborative Drawing
  • We could envisage using existing Tiki data (trackers, spreadsheet, wiki pages, etc.) for embedding in SVG (or as part of a calculation)
  • If you edit a drawing from the File Gallery, the various PluginDraw using it won't be updated. This is the same problem for all files when archiving is on. ( Each save makes a new file ID)

Coordinate with SVG-edit community

Related links

alias
Collapse/expand modules below
Show PHP error messages