本文共 882 字,大约阅读时间需要 2 分钟。
Fabric.js 1.7.12 已发布,Fabric.js 是一款简单而强大的 JavaScript Canvas 库,在 HTML5 Canvas 元素之上提供了互动的对象模型,同时还包含 Canvas-to-SVG 解析器。
使用 Fabric.js 你可以创建和填充画布上的对象,从简单的几何图形到成百上千路径组成的复杂图形。你可以通过鼠标轻松的移动、缩放和旋转这些对象,修改它们的属性(颜色、透明度,层叠顺序)等等。
更新内容:
Fix: removed possible memleaks from window resize event. #3984
Fix: restored default cursor to noTarget only. unselectable objects get the standard hovercursor. #3953Cache fixes: fix uncached pathGroup, removed cache creation at initialize time #3982Improvement: nextTarget to mouseOut and prevTarget to mouseOver #3900Improvement: add isClick boolean to left mouse up #3898Fix: can start selection on top of non selectable object #3892Improvement: better management of right/middle click #3888Fix: subTargetCheck on activeObject/activeGroup was firing too many events #3909Fix: After addWithUpdate or removeWithUpdate object coords must be updated. #3911转载地址:http://ksenx.baihongyu.com/