Skip to content

Commit

Permalink
release(mask-editor): v0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Feb 29, 2024
1 parent 89f9f59 commit 3426765
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 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.4.0",
"version": "0.4.1",
"icon": false,
"test": true,
"install": false
Expand Down
6 changes: 3 additions & 3 deletions src/mask-editor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,13 @@ class MaskBrush extends LunaPainter.Brush {
const { toolbar, options } = this
toolbar.clear()

toolbar.appendText('Size:')
toolbar.appendText(LunaPainter.i18n.t('size') + ':')
toolbar.appendNumber('size', options.size, {
min: 1,
max: 1000,
step: 1,
})
toolbar.appendText('Opacity:')
toolbar.appendText(LunaPainter.i18n.t('opacity') + ':')
toolbar.appendNumber('layerOpacity', options.layerOpacity, {
min: 1,
max: 100,
Expand All @@ -232,7 +232,7 @@ class MaskEraser extends LunaPainter.Eraser {
const { toolbar, options } = this
toolbar.clear()

toolbar.appendText('Size:')
toolbar.appendText(LunaPainter.i18n.t('size') + ':')
toolbar.appendNumber('size', options.size, {
min: 1,
max: 1000,
Expand Down
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.4.0",
"version": "0.4.1",
"description": "Image mask editing",
"luna": {
"dependencies": [
Expand Down
2 changes: 2 additions & 0 deletions src/mask-editor/story.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import MaskEditor from 'luna-mask-editor.js'
import Painter from 'luna-painter.js'
import story from '../share/story'
import $ from 'licia/$'
import h from 'licia/h'
Expand Down Expand Up @@ -49,6 +50,7 @@ const def = story(
return maskEditor
},
{
i18n: Painter.i18n,
readme,
source: __STORY__,
ReactComponent({ theme }) {
Expand Down

0 comments on commit 3426765

Please sign in to comment.