Hi there, script.aculo.us and Dojo are actually kind of "cheating" :) Both of them use rectangular images that simply show a round element, and everything else is transparent. It's not directly visible because you can only start dragging on the header.
Only in YUI you can define regions - so your handle is actually a circle: http://developer.yahoo.com/yui/examples/dragdrop/dd-circle.html The element, however, still is a retangle. The only possibility to have elements like you said is by using SVG, and making SVG elements draggable. It should actually work, but I haven't tried it yet. Cheers, Paul On Fri, Sep 5, 2008 at 12:37 PM, NightFlash <[EMAIL PROTECTED]> wrote: > > I want to use a plugin(like draw) or any widget to paint a polygonal > shape in the canvas or as SVG. What I want to do is that, I need to > drag/drop, select this shape as if it were a DOM element. The painted > shape must be made to behave like a DOM element, so that we can use > CSS to provide background-color, borders etc.. etc.. > > Is such a thing doable, with the current plugins we've got? > > The homepage of scriptaculous shows selectable, draggable circles. > http://script.aculo.us > I saw a similar effect in a dojo demo too - > http://turtle.dojotoolkit.org/~dante/dojo.moj.oe/mojo.html<http://turtle.dojotoolkit.org/%7Edante/dojo.moj.oe/mojo.html> > > Is something like this present already in jquery. I would love to use > such a widget. > > thanks, > sriram. > > > > -- Paul Bakaus UI Architect -- http://paulbakaus.com http://www.linkedin.com/in/paulbakaus --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
