HTML5 画布、动画和闭包库
在没有找到任何我喜欢的关于这个问题后,我正在寻找建立我的自己的浏览器内图形编辑器。第一步,我正在寻找一个基于 Closure 的库来在画布上绘制对象,其中所以我可以做一些事情,比如更新对象定义并触发重绘,而不会太复杂。
从简要来看 这个库 看起来可以做我想做的事情,但我没有看到任何表明它是有意的与闭包一起工作(事实上似乎是针对 jQuery)。
After not finding anything I like with regards to this question I'm looking to build my own in-browser graph editor. As a first step, I'm looking for a Closure based library to draw objects on a canvas where so I can do things like update an objects definition and trigger a redraw without to much complication.
From a breef look this lib looks to do what I want but I see nothing indicating that it's intended to work with closure (and in fact seems to be targeted at jQuery).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题似乎很具体:标准闭包库包含 goog.graphics 支持通用绘图基元,白色覆盖画布、SVG 和 VML 之间的差异,从而通过每个基元提供通用的保留图形模式效果。 goog.graphics。 createGraphics 根据所使用的平台选择“最佳”实现。
It seems the question is to spesific: the standard closure libs contain goog.graphics supporting general drawing primitives that white washes over the difference between canvas, SVG and VML to give a general retained graphics mode effect via each. goog.graphics.createGraphics selects the 'best' implementation based on what platform is being used.