Skip to content

Commit

Permalink
release(mask-editor): v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Feb 23, 2024
1 parent 117693a commit 93e2534
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
"dependencies": ["painter"],
"style": false,
"react": true,
"version": "0.2.0",
"version": "0.3.0",
"icon": false,
"test": true,
"install": false
Expand Down
4 changes: 2 additions & 2 deletions src/mask-editor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default class MaskEditor extends Component<IOptions> {
blackCanvas.height = height
blackCtx.fillStyle = '#000000'
blackCtx.fillRect(0, 0, width, height)
blackCtx.globalCompositeOperation = 'destination-in'
blackCtx.globalCompositeOperation = 'destination-out'
blackCtx.drawImage(painter.getActiveLayer().getCanvas(), 0, 0)

canvas.width = width
Expand Down Expand Up @@ -204,6 +204,6 @@ class MaskEraser extends LunaPainter.Eraser {
class MaskPaintBucket extends LunaPainter.PaintBucket {
constructor(painter: LunaPainter) {
super(painter)
this.options.tolerance = 180
this.options.tolerance = 100
}
}
2 changes: 1 addition & 1 deletion src/mask-editor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mask-editor",
"version": "0.2.0",
"version": "0.3.0",
"description": "Image mask editing",
"luna": {
"dependencies": [
Expand Down

0 comments on commit 93e2534

Please sign in to comment.