Skip to content

Commit

Permalink
feat(fabric) Add an eraser brush as optional module (#6994)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 authored May 14, 2021
1 parent 6b920e7 commit f79503b
Show file tree
Hide file tree
Showing 3 changed files with 721 additions and 2 deletions.
3 changes: 3 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ var filesToInclude = [

ifSpecifiedInclude('textbox', 'src/shapes/textbox.class.js'),
ifSpecifiedInclude('interaction', 'src/mixins/default_controls.js'),

// extends fabric.StaticCanvas, fabric.Canvas, fabric.Object, depends on fabric.PencilBrush and fabric.Rect
ifSpecifiedInclude('erasing', 'src/mixins/eraser_brush.mixin.js'),
];

if (buildMinified) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
},
"license": "MIT",
"scripts": {
"build": "node build.js modules=ALL requirejs exclude=gestures,accessors",
"build:fast": "node build.js modules=ALL requirejs fast exclude=gestures,accessors",
"build": "node build.js modules=ALL requirejs exclude=gestures,accessors,erasing",
"build:fast": "node build.js modules=ALL requirejs fast exclude=gestures,accessors,erasing",
"build:watch": "onchange 'src/**/**' 'HEADER.js' 'lib/**/**' -- npm run build_export",
"link:watch": "onchange 'src/**/**' 'HEADER.js' 'lib/**/**' -- npm link",
"build_with_gestures": "node build.js modules=ALL exclude=accessors",
Expand Down
Loading

0 comments on commit f79503b

Please sign in to comment.