开发者

Can I render an HTML form inside a Raphael entity?

开发者 https://www.devze.com 2023-02-21 19:37 出处:网络
I want to draw draggable entities 开发者_如何学编程with Raphael, but some of these entities should support handling user input (text lines, forms, etc).

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号