Skip to content

Commit

Permalink
fix(fabric): opacity after erasing (#38)
Browse files Browse the repository at this point in the history
bump to 1.1.3
  • Loading branch information
ShaMan123 authored Jun 22, 2024
1 parent 71acbd1 commit 0e9f7fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/fabric/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@erase2d/fabric",
"version": "1.1.2",
"version": "1.1.3",
"description": "Fabric.js erase2d bindings",
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/fabric/src/ErasingEffect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function draw(
return;
}
if (entry.opacity) {
entry.object.opacity = opacity;
entry.object.opacity = entry.opacity;
entry.object.parent?.set('dirty', true);
} else if (entry.clipPath) {
entry.clipPath['blockErasing'] = false;
Expand Down

0 comments on commit 0e9f7fc

Please sign in to comment.