dynamic-learning icon indicating copy to clipboard operation
dynamic-learning copied to clipboard

Adding an eraser tool in workbookeditor page

Open annu12340 opened this issue 5 years ago • 3 comments

Screenshot (3)

At present, the slides only have an option to clear the entire canvas. There is no tool to erase certain parts of the slide

annu12340 avatar Nov 04 '19 14:11 annu12340

Interestingly, previously we had eraser tool when we used the js library called drawingboard.js for implementing the drawing functionality https://leimi.github.io/drawingboard.js/

But then we shifted to fabric.js http://fabricjs.com/ where the implementation of eraser was a bit tricky

JithinKS97 avatar Nov 04 '19 15:11 JithinKS97

ok What are the unique features of fabric.js? Why was there a shift from https://leimi.github.io/drawingboard.js/ to http://fabricjs.com/ ?

annu12340 avatar Nov 05 '19 15:11 annu12340

drawingboardjs is very primitive with only brush tool. But fabric.js is much advanced with a lot of other functionalities. For example, drawing and manipulation of shapes. Even though there is no eraser in fabric js, it is possible to select the strokes and delete them which I though would serve the purpose anyway.

JithinKS97 avatar Nov 05 '19 15:11 JithinKS97