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. #3953
cache fixes: fix uncached pathgroup, removed cache creation at initialize time #3982
improvement: nexttarget to mouseout and prevtarget to mouseover #3900
improvement: add isclick boolean to left mouse up #3898
fix: can start selection on top of non selectable object #3892
improvement: better management of right/middle click #3888
fix: subtargetcheck on activeobject/activegroup was firing too many events #3909
fix: after addwithupdate or removewithupdate object coords must be updated. #3911