fabric-eraser-brush
v1.0.1
Published
fabric.js adds erasing brush support, sourced from the official custom build (Erasing) as an npm package.
Downloads
111
Readme
fabric-eraser-brush
Install
npm install fabric-eraser-brush -S
Usage
import { fabric } from "fabric";
import "fabric-eraser-brush";
const canvas = new fabric.Canvas("canvas", {
isDrawingMode: true,
});
canvas.freeDrawingBrush = new fabric.EraserBrush(canvas);
canvas.freeDrawingBrush.width = 15; // optional
more usage see Erasing with Eraser Brush