I want to draw draggable entities 开发者_如何学编程with Raphael, but some of these entities should support handling user input (text lines, forms, etc). The user input could be done in regular HTML (open to alternatives), but I was curious if Raphael can handle dragging non SVG objects.
Short answer: You can't, sadly. There are other SVG libraries which have more functions. But none of them appeal to me like Raphäel does.
Have a look at these: http://www.farinspace.com/top-svg-javascript-libraries-worth-looking-at/
A nice solution would be an ui event triggern a lightbox. Looks good :)
I did this recently, but I had to patch raphael.js for this. Overall, it was a painful experience. If I had to start another project like this again, I would have created separate native SVG and VML versions.
精彩评论