1.4.0
-
Add
Shape
Feature- You can draw the shape(rectagle, triangle, circle) on canvas.
fabric.js
dependency version is ~1.6.4 to use this feature.
- Using with new APIs
startDrawingShapeMode
endDrawingShapeMode
setDrawingShape
addShape
changeShape
- You can draw the shape(rectagle, triangle, circle) on canvas.
-
New and changing APIs
isEmptyUndoStack
: To check the current undo stack is empty. (new)isEmptyRedoStack
: To check the current redo stack is empty. (new)destroy
: To prevent memory leaks. (new)addIcon
: Addedoptions
parameter. (change)
var options = { left: 10, top: 10 }; imageEditor.addIcon(type, options);
#mousedown
: Bind the mousedown event on canvas and return current event object. (new)
-
Etc.
- The API and sample page is upgraded.
- The bundle environment is changed
gulp
towebpack