Skip to content

Commit

Permalink
Update 2021-05-28-erasing.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 committed Jun 18, 2021
1 parent a379c0e commit 4de3608
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions posts/demos/_posts/2021-05-28-erasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ if(eraser) {
To achieve erasing, `backgroundColor | overlayColor` must be fabric objects (see **Erasing and the `clipPath`**).
Because of this, the mixin extends `fabric.StaticCanvas`.
This may cause issues when resizing the canvas. You might need to resize `backgroundColor | overlayColor` as well.
In addition, if you do not want `backgroundColor | overlayColor` to be affected by canvas transforms set canvas' `backgroundVpt | overlayVpt` property to `false`.

```js
canvas.setOverlayColor('rgba(0,0,255,0.4)');
Expand Down

0 comments on commit 4de3608

Please sign in to comment.