Skip to content

gonicus/qooxdoo-svg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a fork of the original SVG contribution which has been created
by Marc Puts <[email protected]>. This version mainly
contains fixes over the original one.

=== SVG ===

This file contains an unorganized list of todo's, ideas and improvements.



== ViewPort and ViewBox ==

   Resizing the Svg Widget changes the size of the ViewPort. In some cases,
   you'll want the image to be stretched to fit the new ViewPort size. In
   other cases, you want to display more (or less) of the image.
  
   This behaviours should be implemented in the renderLayout method of the
   svg.ui.embed.Svg class.    

   (a) stretch/shrink the image to fit the new size
    > no change to the viewBox attribute
    
   (b) see more/less of the image
    > viewBox attribute must be multiplied by the same factor
      as the widget's size has changed  
  
   Another consideration is that the current aspect ratio may need to be preserved.
   Some additional intellegence is needed here. Attribute "preserveAspectRatio"
   probably plays a role there too.

    
    
== Add features ==

     Add support for...
     - text
     - text on a path
     - gradients
     - transformations
     - filters
     - animation

    
== Adding behaviour to elements ==

     Some types of behaviour could be useful on several occasions. An example
     would be to be able to drag. For windows, this behaviour is added through
     qx.ui.core.MMovable.
     
     Idea: encapsulate behaviour (such as "movable") in special objects which
     can then be applied to compatible svg elements (for example, a circle) at
     runtime.