我可以在 Raphael 实体中渲染 HTML 表单吗?
我想用 Raphael 绘制可拖动实体,但其中一些实体应该支持处理用户输入(文本行、表单等)。 用户输入可以用常规 HTML 完成(对替代方案开放),但我很好奇 Raphael 是否可以处理拖动非 SVG 对象。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
简短的回答:遗憾的是,你不能。还有其他具有更多功能的 SVG 库。但他们中没有一个像拉斐尔那样吸引我。
看看这些:http://www.farinspace。 com/top-svg-javascript-libraries-worth-looking-at/
一个不错的解决方案是触发灯箱的 ui 事件。看起来不错:)
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 :)
我最近这样做了,但我必须为此修补 raphael.js。总的来说,这是一次痛苦的经历。如果我必须再次启动另一个这样的项目,我会创建单独的原生 SVG 和 VML 版本。
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.