Chris,

I wrote a drag library for SVG:  http://www.codedread.com/svgdrag.js

There is a demo here:  http://www.codedread.com/svgtest3.svg

To dynamically create an object within JavaScript you'd initialize the
library, then create your element:

var ele = document.createElementNS(SVGNS, ....);
...
enableDrag(ele);

I've got an update for this library waiting in the wings while I
finalize it.  The library will include setting constraints on the
drags (for sliders, or nested windows) and adding drag event listeners.

Regards,
Jeff

> --- In [email protected], "chmavrog" <chmavrog@> wrote:
> >
> > Hello everyone,
> > 
> > I have looked how to enable drag and drop functionality on already 
> > drawn shapes with svg.
> > If a i want to draw dynamically various shapes(rects,circles etc) 
> > could anybody give me a hint how to make them dragable?
> > Also the scripts i run into all suggest that under the shapes i want 
> > to drag there is a rect area that receives the events? is that the 
> > only way?
> > 
> > Thanks in advance
> > Chris
> >
>






-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to