From 93e2534d3ff38041486537546e6bbb163b5a9bad Mon Sep 17 00:00:00 2001 From: redhoodsu Date: Fri, 23 Feb 2024 18:58:03 +0800 Subject: [PATCH] release(mask-editor): v0.3.0 --- index.json | 2 +- src/mask-editor/index.ts | 4 ++-- src/mask-editor/package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.json b/index.json index 3b0ceef..a40130d 100644 --- a/index.json +++ b/index.json @@ -174,7 +174,7 @@ "dependencies": ["painter"], "style": false, "react": true, - "version": "0.2.0", + "version": "0.3.0", "icon": false, "test": true, "install": false diff --git a/src/mask-editor/index.ts b/src/mask-editor/index.ts index 4b5aadc..9b5c4ca 100644 --- a/src/mask-editor/index.ts +++ b/src/mask-editor/index.ts @@ -94,7 +94,7 @@ export default class MaskEditor extends Component { 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 @@ -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 } } diff --git a/src/mask-editor/package.json b/src/mask-editor/package.json index a4e93d8..ef74fd1 100644 --- a/src/mask-editor/package.json +++ b/src/mask-editor/package.json @@ -1,6 +1,6 @@ { "name": "mask-editor", - "version": "0.2.0", + "version": "0.3.0", "description": "Image mask editing", "luna": { "dependencies": [