Fabric.js History Operations (undo, redo) and Useful Tips

npm install fabric-history
import 'fabric-history';
const canvas = new fabric.Canvas('canvas');
canvas.historyInit();
canvas.undo();
canvas.redo();
canvas.toDataUrl({ multiplier: 3 });
https://www.rgraph.net/canvas/reference/globalcompositeoperation.html

UPDATE

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store