@lvl99dotcom/paintcanvas 0.3.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -15
- package/dist/lib/brushes/StrokeEngine/index.d.ts +2 -2
- package/dist/lib/brushes/StrokeEngine/index.js +26 -28
- package/dist/lib/brushes/presets/round/index.d.ts +1 -1
- package/dist/lib/brushes/presets/round/index.js +12 -7
- package/dist/lib/brushes/presets/square/index.d.ts +1 -1
- package/dist/lib/brushes/presets/square/index.js +7 -3
- package/dist/lib/brushes/shapeImage/index.d.ts +7 -3
- package/dist/lib/brushes/shapeImage/index.js +15 -9
- package/dist/lib/brushes/shapes/index.d.ts +18 -0
- package/dist/lib/brushes/shapes/index.js +86 -0
- package/dist/lib/classes/BrushSettings/index.d.ts +53 -2
- package/dist/lib/classes/BrushSettings/index.js +85 -14
- package/dist/lib/classes/KeyboardShortcuts/index.d.ts +47 -7
- package/dist/lib/classes/KeyboardShortcuts/index.js +145 -20
- package/dist/lib/classes/PaintCanvas/index.d.ts +123 -27
- package/dist/lib/classes/PaintCanvas/index.js +208 -41
- package/dist/lib/classes/PaintCanvas/tool.d.ts +15 -0
- package/dist/lib/classes/PaintCanvas/tool.js +18 -0
- package/dist/lib/classes/Palette/index.d.ts +58 -0
- package/dist/lib/classes/Palette/index.js +92 -0
- package/dist/lib/classes/SettingsAutosave/index.d.ts +53 -0
- package/dist/lib/classes/SettingsAutosave/index.js +98 -0
- package/dist/lib/classes/ShortcutSettings/index.d.ts +63 -0
- package/dist/lib/classes/ShortcutSettings/index.js +110 -0
- package/dist/lib/classes/UiSettings/index.d.ts +68 -0
- package/dist/lib/classes/UiSettings/index.js +82 -0
- package/dist/lib/palette/index.d.ts +49 -0
- package/dist/lib/palette/index.js +82 -0
- package/dist/lib/palette/schema.d.ts +45 -0
- package/dist/lib/palette/schema.js +41 -0
- package/dist/lib/rendering/cursors/index.d.ts +2 -0
- package/dist/lib/rendering/cursors/index.js +3 -1
- package/dist/lib/rendering/sample/index.js +3 -2
- package/dist/lib/settings/index.d.ts +63 -0
- package/dist/lib/settings/index.js +93 -0
- package/dist/lib/settings/schema.d.ts +168 -0
- package/dist/lib/settings/schema.js +116 -0
- package/dist/lib/storage/index.d.ts +36 -5
- package/dist/lib/storage/index.js +87 -29
- package/dist/lib/utils/colour/index.d.ts +72 -0
- package/dist/lib/utils/colour/index.js +154 -0
- package/dist/lib/utils/shortcuts/index.d.ts +174 -11
- package/dist/lib/utils/shortcuts/index.js +391 -145
- package/dist/lib/validation/validators.generated.d.ts +5 -0
- package/dist/lib/validation/validators.generated.js +1040 -1
- package/dist/locales/en-GB.js +96 -3
- package/dist/locales/en-US.js +96 -3
- package/dist/locales/fr.js +96 -3
- package/dist/locales/ja.js +96 -3
- package/dist/locales/ko.js +96 -3
- package/dist/locales/zh-Hans.js +96 -3
- package/dist/locales/zh-Hant.js +96 -3
- package/dist/package.js +1 -1
- package/dist/testing/recordingCanvas.js +2 -1
- package/dist/ui/base/index.d.ts +2 -2
- package/dist/ui/dismiss/index.d.ts +21 -0
- package/dist/ui/dismiss/index.js +27 -0
- package/dist/ui/drag/index.d.ts +51 -0
- package/dist/ui/drag/index.js +81 -0
- package/dist/ui/elements/PaintCanvas/index.d.ts +57 -50
- package/dist/ui/elements/PaintCanvas/index.js +141 -174
- package/dist/ui/elements/PaintCanvas/style.js +1 -1
- package/dist/ui/elements/PcAppSettings/index.d.ts +59 -0
- package/dist/ui/elements/PcAppSettings/index.js +222 -0
- package/dist/ui/elements/PcBrushConfig/index.d.ts +9 -2
- package/dist/ui/elements/PcBrushConfig/index.js +47 -7
- package/dist/ui/elements/PcBrushConfig/style.js +1 -1
- package/dist/ui/elements/PcBrushSize/index.d.ts +53 -0
- package/dist/ui/elements/PcBrushSize/index.js +66 -0
- package/dist/ui/elements/PcBrushTest/index.d.ts +26 -0
- package/dist/ui/elements/PcBrushTest/index.js +73 -5
- package/dist/ui/elements/PcBrushTest/style.js +1 -1
- package/dist/ui/elements/PcCanvas/index.d.ts +22 -2
- package/dist/ui/elements/PcCanvas/index.js +60 -15
- package/dist/ui/elements/PcCanvasMap/style.js +1 -1
- package/dist/ui/elements/PcClipboardTools/index.d.ts +48 -0
- package/dist/ui/elements/PcClipboardTools/index.js +118 -0
- package/dist/ui/elements/PcColourPair/index.d.ts +43 -0
- package/dist/ui/elements/PcColourPair/index.js +125 -0
- package/dist/ui/elements/PcContextMenu/index.d.ts +71 -34
- package/dist/ui/elements/PcContextMenu/index.js +128 -97
- package/dist/ui/elements/PcInputSettings/index.d.ts +13 -0
- package/dist/ui/elements/PcInputSettings/index.js +16 -1
- package/dist/ui/elements/PcLayerItem/index.d.ts +13 -34
- package/dist/ui/elements/PcLayerItem/index.js +39 -91
- package/dist/ui/elements/PcLayerItem/style.js +1 -1
- package/dist/ui/elements/PcMenu/index.d.ts +138 -0
- package/dist/ui/elements/PcMenu/index.js +296 -0
- package/dist/ui/elements/PcNumberSlider/index.d.ts +137 -0
- package/dist/ui/elements/PcNumberSlider/index.js +247 -0
- package/dist/ui/elements/PcPane/index.d.ts +120 -0
- package/dist/ui/elements/PcPane/index.js +394 -0
- package/dist/ui/elements/PcPanel/index.d.ts +26 -8
- package/dist/ui/elements/PcPanel/index.js +76 -8
- package/dist/ui/elements/{PcBrushMenu → PcPanelBrushes}/index.d.ts +22 -21
- package/dist/ui/elements/{PcBrushMenu → PcPanelBrushes}/index.js +24 -57
- package/dist/ui/elements/PcPanelBrushes/style.js +3 -0
- package/dist/ui/elements/PcPanelColours/index.d.ts +171 -0
- package/dist/ui/elements/PcPanelColours/index.js +650 -0
- package/dist/ui/elements/PcPanelColours/style.js +3 -0
- package/dist/ui/elements/{PcLayersMenu → PcPanelLayers}/index.d.ts +17 -4
- package/dist/ui/elements/{PcLayersMenu → PcPanelLayers}/index.js +17 -10
- package/dist/ui/elements/PcPanelLayers/style.js +3 -0
- package/dist/ui/elements/PcPopover/index.d.ts +39 -1
- package/dist/ui/elements/PcPopover/index.js +72 -4
- package/dist/ui/elements/PcShortcutSettings/index.d.ts +69 -0
- package/dist/ui/elements/PcShortcutSettings/index.js +273 -0
- package/dist/ui/elements/PcThemePicker/index.d.ts +17 -15
- package/dist/ui/elements/PcThemePicker/index.js +22 -21
- package/dist/ui/elements/PcToolSettings/index.d.ts +48 -9
- package/dist/ui/elements/PcToolSettings/index.js +384 -319
- package/dist/ui/elements/PcToolSettings/style.js +1 -1
- package/dist/ui/elements/PcToolbar/index.d.ts +62 -12
- package/dist/ui/elements/PcToolbar/index.js +119 -57
- package/dist/ui/elements/PcToolbar/style.js +1 -1
- package/dist/ui/icons/images/icon-brush@2x.js +3 -0
- package/dist/ui/icons/images/icon-circle-mask@2x.js +3 -0
- package/dist/ui/icons/images/icon-clipboard@2x.js +3 -0
- package/dist/ui/icons/images/icon-cog@2x.js +3 -0
- package/dist/ui/icons/images/icon-cursor@2x.js +3 -0
- package/dist/ui/icons/images/icon-diagonal-tlbr-size@2x.js +3 -0
- package/dist/ui/icons/images/icon-diagonal-trbl-size@2x.js +3 -0
- package/dist/ui/icons/images/icon-eraser@2x.js +3 -0
- package/dist/ui/icons/images/icon-eyedropper@2x.js +3 -0
- package/dist/ui/icons/images/icon-flip-horizontal@2x.js +3 -0
- package/dist/ui/icons/images/icon-flip-vertical@2x.js +3 -0
- package/dist/ui/icons/images/icon-focus-pen@2x.js +3 -0
- package/dist/ui/icons/images/icon-freehand-mask@2x.js +3 -0
- package/dist/ui/icons/images/icon-hidden@2x.js +3 -0
- package/dist/ui/icons/images/icon-horizontal-size@2x.js +3 -0
- package/dist/ui/icons/images/icon-layers@2x.js +3 -0
- package/dist/ui/icons/images/icon-linked@2x.js +3 -0
- package/dist/ui/icons/images/icon-locked@2x.js +3 -0
- package/dist/ui/icons/images/icon-moon@2x.js +3 -0
- package/dist/ui/icons/images/icon-pan@2x.js +3 -0
- package/dist/ui/icons/images/icon-polygon-mask@2x.js +3 -0
- package/dist/ui/icons/images/icon-pressure@2x.js +3 -0
- package/dist/ui/icons/images/icon-randomise@2x.js +3 -0
- package/dist/ui/icons/images/icon-rectangle-mask@2x.js +3 -0
- package/dist/ui/icons/images/icon-redo@2x.js +3 -0
- package/dist/ui/icons/images/icon-rotate-90-left@2x.js +3 -0
- package/dist/ui/icons/images/icon-rotate-90-right@2x.js +3 -0
- package/dist/ui/icons/images/icon-rotate@2x.js +3 -0
- package/dist/ui/icons/images/icon-smoothing-bezier-cubic@2x.js +3 -0
- package/dist/ui/icons/images/icon-smoothing-bezier-quad@2x.js +3 -0
- package/dist/ui/icons/images/icon-smoothing-linear@2x.js +3 -0
- package/dist/ui/icons/images/icon-star@2x.js +3 -0
- package/dist/ui/icons/images/icon-sun@2x.js +3 -0
- package/dist/ui/icons/images/icon-tilt@2x.js +3 -0
- package/dist/ui/icons/images/icon-undo@2x.js +3 -0
- package/dist/ui/icons/images/icon-unlinked@2x.js +3 -0
- package/dist/ui/icons/images/icon-unlocked@2x.js +3 -0
- package/dist/ui/icons/images/icon-vertical-size@2x.js +3 -0
- package/dist/ui/icons/images/icon-visible@2x.js +3 -0
- package/dist/ui/icons/images/icon-zoom-in@2x.js +3 -0
- package/dist/ui/icons/images/icon-zoom-out@2x.js +3 -0
- package/dist/ui/icons/images/icon-zoom@2x.js +3 -0
- package/dist/ui/icons/index.d.ts +1 -1
- package/dist/ui/icons/index.js +84 -72
- package/dist/ui/index.d.ts +13 -2
- package/dist/ui/index.js +16 -4
- package/dist/ui/layout/index.d.ts +9 -1
- package/dist/ui/layout/index.js +11 -2
- package/dist/ui/tokens/index.d.ts +5 -4
- package/dist/ui/tokens/index.js +15 -8
- package/locales/en-GB.json +96 -3
- package/locales/en-US.json +96 -3
- package/locales/fr.json +96 -3
- package/locales/ja.json +96 -3
- package/locales/ko.json +96 -3
- package/locales/zh-Hans.json +96 -3
- package/locales/zh-Hant.json +96 -3
- package/package.json +11 -4
- package/dist/ui/elements/PcBrushMenu/style.js +0 -3
- package/dist/ui/elements/PcLayersMenu/style.js +0 -3
- package/dist/ui/icons/images/brush.js +0 -3
- package/dist/ui/icons/images/circle-mask.js +0 -3
- package/dist/ui/icons/images/clipboard.js +0 -3
- package/dist/ui/icons/images/cursor.js +0 -3
- package/dist/ui/icons/images/eraser.js +0 -3
- package/dist/ui/icons/images/eyedropper.js +0 -3
- package/dist/ui/icons/images/flip-horizontal.js +0 -3
- package/dist/ui/icons/images/flip-vertical.js +0 -3
- package/dist/ui/icons/images/focus-pen.js +0 -3
- package/dist/ui/icons/images/freehand-mask.js +0 -3
- package/dist/ui/icons/images/hidden.js +0 -3
- package/dist/ui/icons/images/layers.js +0 -3
- package/dist/ui/icons/images/linked.js +0 -3
- package/dist/ui/icons/images/locked.js +0 -3
- package/dist/ui/icons/images/moon.js +0 -3
- package/dist/ui/icons/images/pan.js +0 -3
- package/dist/ui/icons/images/polygon-mask.js +0 -3
- package/dist/ui/icons/images/pressure.js +0 -3
- package/dist/ui/icons/images/randomise.js +0 -3
- package/dist/ui/icons/images/rectangle-mask.js +0 -3
- package/dist/ui/icons/images/redo.js +0 -3
- package/dist/ui/icons/images/rotate-90-left.js +0 -3
- package/dist/ui/icons/images/rotate-90-right.js +0 -3
- package/dist/ui/icons/images/smoothing-bezier-cubic.js +0 -3
- package/dist/ui/icons/images/smoothing-bezier-quad.js +0 -3
- package/dist/ui/icons/images/smoothing-linear.js +0 -3
- package/dist/ui/icons/images/star.js +0 -3
- package/dist/ui/icons/images/sun.js +0 -3
- package/dist/ui/icons/images/tilt.js +0 -3
- package/dist/ui/icons/images/undo.js +0 -3
- package/dist/ui/icons/images/unlinked.js +0 -3
- package/dist/ui/icons/images/unlocked.js +0 -3
- package/dist/ui/icons/images/visible.js +0 -3
- package/dist/ui/icons/images/zoom-in.js +0 -3
- package/dist/ui/icons/images/zoom-out.js +0 -3
- package/dist/ui/icons/images/zoom.js +0 -3
package/dist/locales/ko.js
CHANGED
|
@@ -6,6 +6,7 @@ var ko_default = {
|
|
|
6
6
|
"paintCanvas.common.save": "저장",
|
|
7
7
|
"paintCanvas.common.delete": "삭제",
|
|
8
8
|
"paintCanvas.common.clear": "지우기",
|
|
9
|
+
"paintCanvas.common.cut": "잘라내기",
|
|
9
10
|
"paintCanvas.common.copy": "복사",
|
|
10
11
|
"paintCanvas.common.paste": "붙여넣기",
|
|
11
12
|
"paintCanvas.common.undo": "실행 취소",
|
|
@@ -14,6 +15,7 @@ var ko_default = {
|
|
|
14
15
|
"paintCanvas.common.moreInformation": "자세히 보기",
|
|
15
16
|
"paintCanvas.common.width": "너비",
|
|
16
17
|
"paintCanvas.common.height": "높이",
|
|
18
|
+
"paintCanvas.common.size": "크기",
|
|
17
19
|
"paintCanvas.common.opacity": "불투명도",
|
|
18
20
|
"paintCanvas.tool.brush": "브러시",
|
|
19
21
|
"paintCanvas.tool.eraser": "지우개",
|
|
@@ -26,8 +28,34 @@ var ko_default = {
|
|
|
26
28
|
"paintCanvas.tool.zoom": "확대/축소",
|
|
27
29
|
"paintCanvas.tool.colourSample": "스포이트",
|
|
28
30
|
"paintCanvas.tool.withShortcut": "{tool} ({shortcut})",
|
|
31
|
+
"paintCanvas.colours.foreground": "전경색 ({colour})",
|
|
32
|
+
"paintCanvas.colours.background": "배경색 ({colour})",
|
|
33
|
+
"paintCanvas.palette.label": "색상 팔레트",
|
|
34
|
+
"paintCanvas.palette.hex": "16진수 색상",
|
|
35
|
+
"paintCanvas.palette.model": "색상 모델",
|
|
36
|
+
"paintCanvas.palette.rgb": "RGB",
|
|
37
|
+
"paintCanvas.palette.hsl": "HSL",
|
|
38
|
+
"paintCanvas.palette.red": "빨강",
|
|
39
|
+
"paintCanvas.palette.green": "초록",
|
|
40
|
+
"paintCanvas.palette.blue": "파랑",
|
|
41
|
+
"paintCanvas.palette.hue": "색조",
|
|
42
|
+
"paintCanvas.palette.saturation": "채도",
|
|
43
|
+
"paintCanvas.palette.lightness": "명도",
|
|
44
|
+
"paintCanvas.palette.saved": "저장된 색상",
|
|
45
|
+
"paintCanvas.palette.add": "{colour}을(를) 팔레트에 저장",
|
|
46
|
+
"paintCanvas.palette.colourActions": "{colour} 작업",
|
|
47
|
+
"paintCanvas.palette.deleteColour": "색상 삭제",
|
|
48
|
+
"paintCanvas.palette.deleteMessage": "이 색상을 삭제할까요?",
|
|
49
|
+
"paintCanvas.palette.deleteConfirm": "예, 삭제합니다",
|
|
50
|
+
"paintCanvas.palette.import": "가져오기",
|
|
51
|
+
"paintCanvas.palette.export": "내보내기",
|
|
52
|
+
"paintCanvas.palette.importFile": "색상 팔레트 파일 가져오기",
|
|
53
|
+
"paintCanvas.palette.imported.one": "색상 {count}개를 추가했습니다",
|
|
54
|
+
"paintCanvas.palette.imported.other": "색상 {count}개를 추가했습니다",
|
|
55
|
+
"paintCanvas.palette.fileIncompatible": "호환되지 않는 색상 팔레트 JSON 파일입니다",
|
|
56
|
+
"paintCanvas.palette.fileReadFailed": "색상 팔레트 JSON 파일을 읽지 못했습니다",
|
|
57
|
+
"paintCanvas.palette.exportFailed": "색상 팔레트 JSON 파일을 내보내지 못했습니다",
|
|
29
58
|
"paintCanvas.toolbar.label": "도구",
|
|
30
|
-
"paintCanvas.toolbar.currentColour": "현재 색상",
|
|
31
59
|
"paintCanvas.toolbar.layers": "레이어",
|
|
32
60
|
"paintCanvas.toolbar.menu": "메뉴",
|
|
33
61
|
"paintCanvas.toolbar.undoWithShortcut": "실행 취소 ({shortcut})",
|
|
@@ -36,6 +64,8 @@ var ko_default = {
|
|
|
36
64
|
"paintCanvas.toolSettings.presets": "{tool} 프리셋",
|
|
37
65
|
"paintCanvas.toolSettings.configure": "세부 설정",
|
|
38
66
|
"paintCanvas.toolSettings.constrainProportions": "비율 유지",
|
|
67
|
+
"paintCanvas.toolSettings.sizeSettings": "크기 설정",
|
|
68
|
+
"paintCanvas.toolSettings.moreActions": "더 보기",
|
|
39
69
|
"paintCanvas.toolSettings.pressure": "필압",
|
|
40
70
|
"paintCanvas.toolSettings.tilt": "기울기",
|
|
41
71
|
"paintCanvas.toolSettings.focusPen": "펜 전용 모드",
|
|
@@ -51,7 +81,7 @@ var ko_default = {
|
|
|
51
81
|
"paintCanvas.toolSettings.areaSample": "영역 평균으로 추출",
|
|
52
82
|
"paintCanvas.brushMenu.presets": "{tool} 프리셋",
|
|
53
83
|
"paintCanvas.brushMenu.size": "{tool} 크기",
|
|
54
|
-
"paintCanvas.
|
|
84
|
+
"paintCanvas.numberSlider.hint": "좌우로 드래그해 변경, 탭해 입력",
|
|
55
85
|
"paintCanvas.brushMenu.newPreset": "새 프리셋",
|
|
56
86
|
"paintCanvas.brushMenu.create": "만들기",
|
|
57
87
|
"paintCanvas.brushMenu.import": "가져오기",
|
|
@@ -74,6 +104,8 @@ var ko_default = {
|
|
|
74
104
|
"paintCanvas.brushConfig.eraserTitle": "지우개 세부 설정",
|
|
75
105
|
"paintCanvas.brushConfig.presetName": "프리셋 이름",
|
|
76
106
|
"paintCanvas.brushConfig.shape": "모양",
|
|
107
|
+
"paintCanvas.brushConfig.chooseShape": "모양 선택",
|
|
108
|
+
"paintCanvas.brushConfig.customShape": "사용자 지정",
|
|
77
109
|
"paintCanvas.brushConfig.upload": "업로드",
|
|
78
110
|
"paintCanvas.brushConfig.paste": "붙여넣기",
|
|
79
111
|
"paintCanvas.brushConfig.rotation": "회전",
|
|
@@ -90,6 +122,7 @@ var ko_default = {
|
|
|
90
122
|
"paintCanvas.brushConfig.shapeFailed": "브러시 모양을 사용할 수 없습니다",
|
|
91
123
|
"paintCanvas.brushConfig.test": "테스트",
|
|
92
124
|
"paintCanvas.brushConfig.testArea": "브러시 테스트 영역",
|
|
125
|
+
"paintCanvas.brushConfig.showStrokePoints": "획의 점 표시",
|
|
93
126
|
"paintCanvas.shape.notPng": "브러시 모양은 PNG 이미지여야 합니다",
|
|
94
127
|
"paintCanvas.shape.tooLarge": "브러시 모양 이미지는 최대 2MB입니다",
|
|
95
128
|
"paintCanvas.shape.readFailed": "브러시 모양 이미지를 읽지 못했습니다",
|
|
@@ -168,6 +201,66 @@ var ko_default = {
|
|
|
168
201
|
"paintCanvas.autosave.elsewhereMessage": "이 그림은 다른 창이나 탭에서 열려 있으며, 한 번에 한 곳에서만 그릴 수 있습니다. ‘여기서 그리기’를 선택하면 이 창에서 계속 그립니다(다른 창은 멈춥니다).",
|
|
169
202
|
"paintCanvas.autosave.takeOver": "여기서 그리기",
|
|
170
203
|
"paintCanvas.autosave.failed": "이 브라우저에 그림을 저장하지 못했습니다",
|
|
204
|
+
"paintCanvas.settings.saveFailed": "이 브라우저에 설정을 저장하지 못했습니다",
|
|
205
|
+
"paintCanvas.shortcuts.title": "키보드 단축키",
|
|
206
|
+
"paintCanvas.shortcuts.recordHint": "사용할 키를 누르세요",
|
|
207
|
+
"paintCanvas.shortcuts.none": "없음",
|
|
208
|
+
"paintCanvas.shortcuts.remove": "{action} 단축키 삭제",
|
|
209
|
+
"paintCanvas.shortcuts.fixed": "변경할 수 없음",
|
|
210
|
+
"paintCanvas.shortcuts.fixedUsed": "{keys}은(는) 변경할 수 없는 {action}에 사용됩니다",
|
|
211
|
+
"paintCanvas.shortcuts.moved": "{keys}을(를) {from}에서 {to}(으)로 옮겼습니다",
|
|
212
|
+
"paintCanvas.shortcuts.reset": "기본값으로 재설정",
|
|
213
|
+
"paintCanvas.shortcuts.wasReset": "키보드 단축키를 기본값으로 재설정했습니다",
|
|
214
|
+
"paintCanvas.shortcuts.group.tools": "도구",
|
|
215
|
+
"paintCanvas.shortcuts.group.brushes": "브러시 및 지우개",
|
|
216
|
+
"paintCanvas.shortcuts.group.clipboard": "클립보드",
|
|
217
|
+
"paintCanvas.shortcuts.group.masking": "마스크",
|
|
218
|
+
"paintCanvas.shortcuts.group.fills": "채우기 및 색상",
|
|
219
|
+
"paintCanvas.shortcuts.group.viewport": "보기",
|
|
220
|
+
"paintCanvas.shortcuts.group.layers": "레이어",
|
|
221
|
+
"paintCanvas.shortcuts.group.history": "기록",
|
|
222
|
+
"paintCanvas.shortcuts.group.general": "일반",
|
|
223
|
+
"paintCanvas.shortcuts.pan": "누르는 동안 이동(놓으면 이전 도구로 돌아감)",
|
|
224
|
+
"paintCanvas.shortcuts.tool-move": "이동",
|
|
225
|
+
"paintCanvas.shortcuts.tool-brush": "브러시",
|
|
226
|
+
"paintCanvas.shortcuts.tool-eraser": "지우개",
|
|
227
|
+
"paintCanvas.shortcuts.tool-rectangle-mask": "사각형 마스크",
|
|
228
|
+
"paintCanvas.shortcuts.tool-circle-mask": "원형 마스크",
|
|
229
|
+
"paintCanvas.shortcuts.tool-polygon-mask": "다각형 마스크",
|
|
230
|
+
"paintCanvas.shortcuts.tool-freehand-mask": "자유형 마스크",
|
|
231
|
+
"paintCanvas.shortcuts.tool-colour-sample": "스포이트",
|
|
232
|
+
"paintCanvas.shortcuts.tool-zoom": "확대/축소",
|
|
233
|
+
"paintCanvas.shortcuts.brush-bigger": "크기 늘리기",
|
|
234
|
+
"paintCanvas.shortcuts.brush-smaller": "크기 줄이기",
|
|
235
|
+
"paintCanvas.shortcuts.brush-more-opaque": "불투명도 높이기",
|
|
236
|
+
"paintCanvas.shortcuts.brush-less-opaque": "불투명도 낮추기",
|
|
237
|
+
"paintCanvas.shortcuts.cut": "잘라내기",
|
|
238
|
+
"paintCanvas.shortcuts.copy": "복사",
|
|
239
|
+
"paintCanvas.shortcuts.paste": "붙여넣기",
|
|
240
|
+
"paintCanvas.shortcuts.select-all": "모두 선택",
|
|
241
|
+
"paintCanvas.shortcuts.invert-selection": "선택 영역 반전",
|
|
242
|
+
"paintCanvas.shortcuts.deselect": "선택 해제",
|
|
243
|
+
"paintCanvas.shortcuts.fill-foreground": "전경색으로 채우기",
|
|
244
|
+
"paintCanvas.shortcuts.fill-background": "배경색으로 채우기",
|
|
245
|
+
"paintCanvas.shortcuts.swap-colours": "전경색과 배경색 바꾸기",
|
|
246
|
+
"paintCanvas.shortcuts.zoom-in": "확대",
|
|
247
|
+
"paintCanvas.shortcuts.zoom-out": "축소",
|
|
248
|
+
"paintCanvas.shortcuts.reset-zoom": "100%로 확대/축소",
|
|
249
|
+
"paintCanvas.shortcuts.toggle-interface": "인터페이스 표시/숨기기",
|
|
250
|
+
"paintCanvas.shortcuts.save": "PNG로 저장",
|
|
251
|
+
"paintCanvas.shortcuts.undo": "실행 취소",
|
|
252
|
+
"paintCanvas.shortcuts.redo": "다시 실행",
|
|
253
|
+
"paintCanvas.shortcuts.delete": "마스크 영역 삭제",
|
|
254
|
+
"paintCanvas.shortcuts.cancel": "취소",
|
|
255
|
+
"paintCanvas.shortcuts.commit": "적용",
|
|
256
|
+
"paintCanvas.shortcuts.layerOpacity": "레이어 불투명도를 {percent}%로 설정",
|
|
257
|
+
"paintCanvas.settings.import": "설정 가져오기",
|
|
258
|
+
"paintCanvas.settings.export": "설정 내보내기",
|
|
259
|
+
"paintCanvas.settings.importFile": "설정 파일 가져오기",
|
|
260
|
+
"paintCanvas.settings.imported": "설정을 가져왔습니다",
|
|
261
|
+
"paintCanvas.settings.fileIncompatible": "호환되지 않는 설정 JSON 파일입니다",
|
|
262
|
+
"paintCanvas.settings.fileReadFailed": "설정 JSON 파일을 읽지 못했습니다",
|
|
263
|
+
"paintCanvas.settings.exportFailed": "설정 JSON 파일을 내보내지 못했습니다",
|
|
171
264
|
"paintCanvas.stats.label": "캔버스 정보",
|
|
172
265
|
"paintCanvas.stats.size": "캔버스: {width} × {height} px",
|
|
173
266
|
"paintCanvas.stats.zoom": "확대/축소: {zoom}",
|
|
@@ -176,6 +269,6 @@ var ko_default = {
|
|
|
176
269
|
"paintCanvas.theme.label": "테마",
|
|
177
270
|
"paintCanvas.theme.light": "라이트",
|
|
178
271
|
"paintCanvas.theme.dark": "다크",
|
|
179
|
-
"paintCanvas.theme.
|
|
272
|
+
"paintCanvas.theme.system": "시스템"
|
|
180
273
|
};
|
|
181
274
|
export { ko_default as default };
|
package/dist/locales/zh-Hans.js
CHANGED
|
@@ -6,6 +6,7 @@ var zh_Hans_default = {
|
|
|
6
6
|
"paintCanvas.common.save": "保存",
|
|
7
7
|
"paintCanvas.common.delete": "删除",
|
|
8
8
|
"paintCanvas.common.clear": "清除",
|
|
9
|
+
"paintCanvas.common.cut": "剪切",
|
|
9
10
|
"paintCanvas.common.copy": "复制",
|
|
10
11
|
"paintCanvas.common.paste": "粘贴",
|
|
11
12
|
"paintCanvas.common.undo": "撤销",
|
|
@@ -14,6 +15,7 @@ var zh_Hans_default = {
|
|
|
14
15
|
"paintCanvas.common.moreInformation": "更多信息",
|
|
15
16
|
"paintCanvas.common.width": "宽度",
|
|
16
17
|
"paintCanvas.common.height": "高度",
|
|
18
|
+
"paintCanvas.common.size": "大小",
|
|
17
19
|
"paintCanvas.common.opacity": "不透明度",
|
|
18
20
|
"paintCanvas.tool.brush": "画笔",
|
|
19
21
|
"paintCanvas.tool.eraser": "橡皮擦",
|
|
@@ -26,8 +28,34 @@ var zh_Hans_default = {
|
|
|
26
28
|
"paintCanvas.tool.zoom": "缩放",
|
|
27
29
|
"paintCanvas.tool.colourSample": "取色器",
|
|
28
30
|
"paintCanvas.tool.withShortcut": "{tool}({shortcut})",
|
|
31
|
+
"paintCanvas.colours.foreground": "前景色({colour})",
|
|
32
|
+
"paintCanvas.colours.background": "背景色({colour})",
|
|
33
|
+
"paintCanvas.palette.label": "调色板",
|
|
34
|
+
"paintCanvas.palette.hex": "十六进制颜色",
|
|
35
|
+
"paintCanvas.palette.model": "颜色模式",
|
|
36
|
+
"paintCanvas.palette.rgb": "RGB",
|
|
37
|
+
"paintCanvas.palette.hsl": "HSL",
|
|
38
|
+
"paintCanvas.palette.red": "红",
|
|
39
|
+
"paintCanvas.palette.green": "绿",
|
|
40
|
+
"paintCanvas.palette.blue": "蓝",
|
|
41
|
+
"paintCanvas.palette.hue": "色相",
|
|
42
|
+
"paintCanvas.palette.saturation": "饱和度",
|
|
43
|
+
"paintCanvas.palette.lightness": "亮度",
|
|
44
|
+
"paintCanvas.palette.saved": "已保存的颜色",
|
|
45
|
+
"paintCanvas.palette.add": "将 {colour} 保存到调色板",
|
|
46
|
+
"paintCanvas.palette.colourActions": "{colour} 的操作",
|
|
47
|
+
"paintCanvas.palette.deleteColour": "删除颜色",
|
|
48
|
+
"paintCanvas.palette.deleteMessage": "要删除这个颜色吗?",
|
|
49
|
+
"paintCanvas.palette.deleteConfirm": "是,删除颜色",
|
|
50
|
+
"paintCanvas.palette.import": "导入",
|
|
51
|
+
"paintCanvas.palette.export": "导出",
|
|
52
|
+
"paintCanvas.palette.importFile": "导入调色板文件",
|
|
53
|
+
"paintCanvas.palette.imported.one": "已添加 {count} 个颜色",
|
|
54
|
+
"paintCanvas.palette.imported.other": "已添加 {count} 个颜色",
|
|
55
|
+
"paintCanvas.palette.fileIncompatible": "不兼容的调色板 JSON 文件",
|
|
56
|
+
"paintCanvas.palette.fileReadFailed": "无法读取调色板 JSON 文件",
|
|
57
|
+
"paintCanvas.palette.exportFailed": "导出调色板 JSON 文件时出错",
|
|
29
58
|
"paintCanvas.toolbar.label": "工具",
|
|
30
|
-
"paintCanvas.toolbar.currentColour": "当前颜色",
|
|
31
59
|
"paintCanvas.toolbar.layers": "图层",
|
|
32
60
|
"paintCanvas.toolbar.menu": "菜单",
|
|
33
61
|
"paintCanvas.toolbar.undoWithShortcut": "撤销({shortcut})",
|
|
@@ -36,6 +64,8 @@ var zh_Hans_default = {
|
|
|
36
64
|
"paintCanvas.toolSettings.presets": "{tool}预设",
|
|
37
65
|
"paintCanvas.toolSettings.configure": "详细设置",
|
|
38
66
|
"paintCanvas.toolSettings.constrainProportions": "保持比例",
|
|
67
|
+
"paintCanvas.toolSettings.sizeSettings": "尺寸设置",
|
|
68
|
+
"paintCanvas.toolSettings.moreActions": "更多操作",
|
|
39
69
|
"paintCanvas.toolSettings.pressure": "压感",
|
|
40
70
|
"paintCanvas.toolSettings.tilt": "倾斜",
|
|
41
71
|
"paintCanvas.toolSettings.focusPen": "仅限触控笔模式",
|
|
@@ -51,7 +81,7 @@ var zh_Hans_default = {
|
|
|
51
81
|
"paintCanvas.toolSettings.areaSample": "区域平均取色",
|
|
52
82
|
"paintCanvas.brushMenu.presets": "{tool}预设",
|
|
53
83
|
"paintCanvas.brushMenu.size": "{tool}大小",
|
|
54
|
-
"paintCanvas.
|
|
84
|
+
"paintCanvas.numberSlider.hint": "左右拖动以更改,轻点以输入",
|
|
55
85
|
"paintCanvas.brushMenu.newPreset": "新预设",
|
|
56
86
|
"paintCanvas.brushMenu.create": "创建",
|
|
57
87
|
"paintCanvas.brushMenu.import": "导入",
|
|
@@ -74,6 +104,8 @@ var zh_Hans_default = {
|
|
|
74
104
|
"paintCanvas.brushConfig.eraserTitle": "橡皮擦详细设置",
|
|
75
105
|
"paintCanvas.brushConfig.presetName": "预设名称",
|
|
76
106
|
"paintCanvas.brushConfig.shape": "形状",
|
|
107
|
+
"paintCanvas.brushConfig.chooseShape": "选择形状",
|
|
108
|
+
"paintCanvas.brushConfig.customShape": "自定义",
|
|
77
109
|
"paintCanvas.brushConfig.upload": "上传",
|
|
78
110
|
"paintCanvas.brushConfig.paste": "粘贴",
|
|
79
111
|
"paintCanvas.brushConfig.rotation": "旋转",
|
|
@@ -90,6 +122,7 @@ var zh_Hans_default = {
|
|
|
90
122
|
"paintCanvas.brushConfig.shapeFailed": "无法使用此画笔形状",
|
|
91
123
|
"paintCanvas.brushConfig.test": "试画",
|
|
92
124
|
"paintCanvas.brushConfig.testArea": "画笔试画区域",
|
|
125
|
+
"paintCanvas.brushConfig.showStrokePoints": "显示笔画点",
|
|
93
126
|
"paintCanvas.shape.notPng": "画笔形状必须是 PNG 图像",
|
|
94
127
|
"paintCanvas.shape.tooLarge": "画笔形状图像最大为 2 MB",
|
|
95
128
|
"paintCanvas.shape.readFailed": "无法读取画笔形状图像",
|
|
@@ -168,6 +201,66 @@ var zh_Hans_default = {
|
|
|
168
201
|
"paintCanvas.autosave.elsewhereMessage": "此画作已在另一个窗口或标签页中打开,一次只能在一个窗口中绘画。选择“在此绘画”即可在此窗口继续(另一个窗口将停止)。",
|
|
169
202
|
"paintCanvas.autosave.takeOver": "在此绘画",
|
|
170
203
|
"paintCanvas.autosave.failed": "无法在此浏览器中保存画作",
|
|
204
|
+
"paintCanvas.settings.saveFailed": "无法在此浏览器中保存你的设置",
|
|
205
|
+
"paintCanvas.shortcuts.title": "键盘快捷键",
|
|
206
|
+
"paintCanvas.shortcuts.recordHint": "按下要使用的按键",
|
|
207
|
+
"paintCanvas.shortcuts.none": "无",
|
|
208
|
+
"paintCanvas.shortcuts.remove": "删除“{action}”的快捷键",
|
|
209
|
+
"paintCanvas.shortcuts.fixed": "无法更改",
|
|
210
|
+
"paintCanvas.shortcuts.fixedUsed": "{keys} 已用于“{action}”,无法更改",
|
|
211
|
+
"paintCanvas.shortcuts.moved": "{keys} 已从“{from}”移到“{to}”",
|
|
212
|
+
"paintCanvas.shortcuts.reset": "恢复默认设置",
|
|
213
|
+
"paintCanvas.shortcuts.wasReset": "已将键盘快捷键恢复为默认设置",
|
|
214
|
+
"paintCanvas.shortcuts.group.tools": "工具",
|
|
215
|
+
"paintCanvas.shortcuts.group.brushes": "画笔和橡皮擦",
|
|
216
|
+
"paintCanvas.shortcuts.group.clipboard": "剪贴板",
|
|
217
|
+
"paintCanvas.shortcuts.group.masking": "蒙版",
|
|
218
|
+
"paintCanvas.shortcuts.group.fills": "填充和颜色",
|
|
219
|
+
"paintCanvas.shortcuts.group.viewport": "视图",
|
|
220
|
+
"paintCanvas.shortcuts.group.layers": "图层",
|
|
221
|
+
"paintCanvas.shortcuts.group.history": "历史记录",
|
|
222
|
+
"paintCanvas.shortcuts.group.general": "常规",
|
|
223
|
+
"paintCanvas.shortcuts.pan": "按住时平移(松开后回到上一个工具)",
|
|
224
|
+
"paintCanvas.shortcuts.tool-move": "移动",
|
|
225
|
+
"paintCanvas.shortcuts.tool-brush": "画笔",
|
|
226
|
+
"paintCanvas.shortcuts.tool-eraser": "橡皮擦",
|
|
227
|
+
"paintCanvas.shortcuts.tool-rectangle-mask": "矩形蒙版",
|
|
228
|
+
"paintCanvas.shortcuts.tool-circle-mask": "圆形蒙版",
|
|
229
|
+
"paintCanvas.shortcuts.tool-polygon-mask": "多边形蒙版",
|
|
230
|
+
"paintCanvas.shortcuts.tool-freehand-mask": "自由手绘蒙版",
|
|
231
|
+
"paintCanvas.shortcuts.tool-colour-sample": "吸管",
|
|
232
|
+
"paintCanvas.shortcuts.tool-zoom": "缩放",
|
|
233
|
+
"paintCanvas.shortcuts.brush-bigger": "增大尺寸",
|
|
234
|
+
"paintCanvas.shortcuts.brush-smaller": "减小尺寸",
|
|
235
|
+
"paintCanvas.shortcuts.brush-more-opaque": "增加不透明度",
|
|
236
|
+
"paintCanvas.shortcuts.brush-less-opaque": "降低不透明度",
|
|
237
|
+
"paintCanvas.shortcuts.cut": "剪切",
|
|
238
|
+
"paintCanvas.shortcuts.copy": "复制",
|
|
239
|
+
"paintCanvas.shortcuts.paste": "粘贴",
|
|
240
|
+
"paintCanvas.shortcuts.select-all": "全选",
|
|
241
|
+
"paintCanvas.shortcuts.invert-selection": "反选",
|
|
242
|
+
"paintCanvas.shortcuts.deselect": "取消选择",
|
|
243
|
+
"paintCanvas.shortcuts.fill-foreground": "用前景色填充",
|
|
244
|
+
"paintCanvas.shortcuts.fill-background": "用背景色填充",
|
|
245
|
+
"paintCanvas.shortcuts.swap-colours": "交换前景色和背景色",
|
|
246
|
+
"paintCanvas.shortcuts.zoom-in": "放大",
|
|
247
|
+
"paintCanvas.shortcuts.zoom-out": "缩小",
|
|
248
|
+
"paintCanvas.shortcuts.reset-zoom": "缩放到 100%",
|
|
249
|
+
"paintCanvas.shortcuts.toggle-interface": "显示或隐藏界面",
|
|
250
|
+
"paintCanvas.shortcuts.save": "保存为 PNG",
|
|
251
|
+
"paintCanvas.shortcuts.undo": "撤销",
|
|
252
|
+
"paintCanvas.shortcuts.redo": "重做",
|
|
253
|
+
"paintCanvas.shortcuts.delete": "删除蒙版区域",
|
|
254
|
+
"paintCanvas.shortcuts.cancel": "取消",
|
|
255
|
+
"paintCanvas.shortcuts.commit": "应用",
|
|
256
|
+
"paintCanvas.shortcuts.layerOpacity": "将图层不透明度设为 {percent}%",
|
|
257
|
+
"paintCanvas.settings.import": "导入设置",
|
|
258
|
+
"paintCanvas.settings.export": "导出设置",
|
|
259
|
+
"paintCanvas.settings.importFile": "导入设置文件",
|
|
260
|
+
"paintCanvas.settings.imported": "已导入设置",
|
|
261
|
+
"paintCanvas.settings.fileIncompatible": "不兼容的设置 JSON 文件",
|
|
262
|
+
"paintCanvas.settings.fileReadFailed": "无法读取设置 JSON 文件",
|
|
263
|
+
"paintCanvas.settings.exportFailed": "导出设置 JSON 文件时出错",
|
|
171
264
|
"paintCanvas.stats.label": "画布详情",
|
|
172
265
|
"paintCanvas.stats.size": "画布:{width} × {height} 像素",
|
|
173
266
|
"paintCanvas.stats.zoom": "缩放:{zoom}",
|
|
@@ -176,6 +269,6 @@ var zh_Hans_default = {
|
|
|
176
269
|
"paintCanvas.theme.label": "主题",
|
|
177
270
|
"paintCanvas.theme.light": "浅色",
|
|
178
271
|
"paintCanvas.theme.dark": "深色",
|
|
179
|
-
"paintCanvas.theme.
|
|
272
|
+
"paintCanvas.theme.system": "跟随系统"
|
|
180
273
|
};
|
|
181
274
|
export { zh_Hans_default as default };
|
package/dist/locales/zh-Hant.js
CHANGED
|
@@ -6,6 +6,7 @@ var zh_Hant_default = {
|
|
|
6
6
|
"paintCanvas.common.save": "儲存",
|
|
7
7
|
"paintCanvas.common.delete": "刪除",
|
|
8
8
|
"paintCanvas.common.clear": "清除",
|
|
9
|
+
"paintCanvas.common.cut": "剪下",
|
|
9
10
|
"paintCanvas.common.copy": "拷貝",
|
|
10
11
|
"paintCanvas.common.paste": "貼上",
|
|
11
12
|
"paintCanvas.common.undo": "復原",
|
|
@@ -14,6 +15,7 @@ var zh_Hant_default = {
|
|
|
14
15
|
"paintCanvas.common.moreInformation": "更多資訊",
|
|
15
16
|
"paintCanvas.common.width": "寬度",
|
|
16
17
|
"paintCanvas.common.height": "高度",
|
|
18
|
+
"paintCanvas.common.size": "大小",
|
|
17
19
|
"paintCanvas.common.opacity": "不透明度",
|
|
18
20
|
"paintCanvas.tool.brush": "筆刷",
|
|
19
21
|
"paintCanvas.tool.eraser": "橡皮擦",
|
|
@@ -26,8 +28,34 @@ var zh_Hant_default = {
|
|
|
26
28
|
"paintCanvas.tool.zoom": "縮放",
|
|
27
29
|
"paintCanvas.tool.colourSample": "滴管",
|
|
28
30
|
"paintCanvas.tool.withShortcut": "{tool}({shortcut})",
|
|
31
|
+
"paintCanvas.colours.foreground": "前景色({colour})",
|
|
32
|
+
"paintCanvas.colours.background": "背景色({colour})",
|
|
33
|
+
"paintCanvas.palette.label": "調色盤",
|
|
34
|
+
"paintCanvas.palette.hex": "十六進位顏色",
|
|
35
|
+
"paintCanvas.palette.model": "色彩模式",
|
|
36
|
+
"paintCanvas.palette.rgb": "RGB",
|
|
37
|
+
"paintCanvas.palette.hsl": "HSL",
|
|
38
|
+
"paintCanvas.palette.red": "紅",
|
|
39
|
+
"paintCanvas.palette.green": "綠",
|
|
40
|
+
"paintCanvas.palette.blue": "藍",
|
|
41
|
+
"paintCanvas.palette.hue": "色相",
|
|
42
|
+
"paintCanvas.palette.saturation": "飽和度",
|
|
43
|
+
"paintCanvas.palette.lightness": "亮度",
|
|
44
|
+
"paintCanvas.palette.saved": "已儲存的顏色",
|
|
45
|
+
"paintCanvas.palette.add": "將 {colour} 儲存到調色盤",
|
|
46
|
+
"paintCanvas.palette.colourActions": "{colour} 的操作",
|
|
47
|
+
"paintCanvas.palette.deleteColour": "刪除顏色",
|
|
48
|
+
"paintCanvas.palette.deleteMessage": "要刪除這個顏色嗎?",
|
|
49
|
+
"paintCanvas.palette.deleteConfirm": "是,刪除顏色",
|
|
50
|
+
"paintCanvas.palette.import": "匯入",
|
|
51
|
+
"paintCanvas.palette.export": "匯出",
|
|
52
|
+
"paintCanvas.palette.importFile": "匯入調色盤檔案",
|
|
53
|
+
"paintCanvas.palette.imported.one": "已新增 {count} 個顏色",
|
|
54
|
+
"paintCanvas.palette.imported.other": "已新增 {count} 個顏色",
|
|
55
|
+
"paintCanvas.palette.fileIncompatible": "不相容的調色盤 JSON 檔案",
|
|
56
|
+
"paintCanvas.palette.fileReadFailed": "無法讀取調色盤 JSON 檔案",
|
|
57
|
+
"paintCanvas.palette.exportFailed": "匯出調色盤 JSON 檔案時發生錯誤",
|
|
29
58
|
"paintCanvas.toolbar.label": "工具",
|
|
30
|
-
"paintCanvas.toolbar.currentColour": "目前顏色",
|
|
31
59
|
"paintCanvas.toolbar.layers": "圖層",
|
|
32
60
|
"paintCanvas.toolbar.menu": "選單",
|
|
33
61
|
"paintCanvas.toolbar.undoWithShortcut": "復原({shortcut})",
|
|
@@ -36,6 +64,8 @@ var zh_Hant_default = {
|
|
|
36
64
|
"paintCanvas.toolSettings.presets": "{tool}預設",
|
|
37
65
|
"paintCanvas.toolSettings.configure": "詳細設定",
|
|
38
66
|
"paintCanvas.toolSettings.constrainProportions": "維持比例",
|
|
67
|
+
"paintCanvas.toolSettings.sizeSettings": "尺寸設定",
|
|
68
|
+
"paintCanvas.toolSettings.moreActions": "更多操作",
|
|
39
69
|
"paintCanvas.toolSettings.pressure": "壓力感應",
|
|
40
70
|
"paintCanvas.toolSettings.tilt": "傾斜",
|
|
41
71
|
"paintCanvas.toolSettings.focusPen": "僅限觸控筆模式",
|
|
@@ -51,7 +81,7 @@ var zh_Hant_default = {
|
|
|
51
81
|
"paintCanvas.toolSettings.areaSample": "區域平均取色",
|
|
52
82
|
"paintCanvas.brushMenu.presets": "{tool}預設",
|
|
53
83
|
"paintCanvas.brushMenu.size": "{tool}大小",
|
|
54
|
-
"paintCanvas.
|
|
84
|
+
"paintCanvas.numberSlider.hint": "左右拖曳以變更,點一下以輸入",
|
|
55
85
|
"paintCanvas.brushMenu.newPreset": "新預設",
|
|
56
86
|
"paintCanvas.brushMenu.create": "建立",
|
|
57
87
|
"paintCanvas.brushMenu.import": "匯入",
|
|
@@ -74,6 +104,8 @@ var zh_Hant_default = {
|
|
|
74
104
|
"paintCanvas.brushConfig.eraserTitle": "橡皮擦詳細設定",
|
|
75
105
|
"paintCanvas.brushConfig.presetName": "預設名稱",
|
|
76
106
|
"paintCanvas.brushConfig.shape": "形狀",
|
|
107
|
+
"paintCanvas.brushConfig.chooseShape": "選擇形狀",
|
|
108
|
+
"paintCanvas.brushConfig.customShape": "自訂",
|
|
77
109
|
"paintCanvas.brushConfig.upload": "上傳",
|
|
78
110
|
"paintCanvas.brushConfig.paste": "貼上",
|
|
79
111
|
"paintCanvas.brushConfig.rotation": "旋轉",
|
|
@@ -90,6 +122,7 @@ var zh_Hant_default = {
|
|
|
90
122
|
"paintCanvas.brushConfig.shapeFailed": "無法使用此筆刷形狀",
|
|
91
123
|
"paintCanvas.brushConfig.test": "試畫",
|
|
92
124
|
"paintCanvas.brushConfig.testArea": "筆刷試畫區域",
|
|
125
|
+
"paintCanvas.brushConfig.showStrokePoints": "顯示筆畫點",
|
|
93
126
|
"paintCanvas.shape.notPng": "筆刷形狀必須是 PNG 影像",
|
|
94
127
|
"paintCanvas.shape.tooLarge": "筆刷形狀影像最大為 2 MB",
|
|
95
128
|
"paintCanvas.shape.readFailed": "無法讀取筆刷形狀影像",
|
|
@@ -168,6 +201,66 @@ var zh_Hant_default = {
|
|
|
168
201
|
"paintCanvas.autosave.elsewhereMessage": "此畫作已在另一個視窗或分頁中開啟,一次只能在一個視窗中繪畫。選擇「在此繪畫」即可在此視窗繼續(另一個視窗將停止)。",
|
|
169
202
|
"paintCanvas.autosave.takeOver": "在此繪畫",
|
|
170
203
|
"paintCanvas.autosave.failed": "無法在此瀏覽器中儲存畫作",
|
|
204
|
+
"paintCanvas.settings.saveFailed": "無法在此瀏覽器中保存你的設定",
|
|
205
|
+
"paintCanvas.shortcuts.title": "鍵盤快速鍵",
|
|
206
|
+
"paintCanvas.shortcuts.recordHint": "按下要使用的按鍵",
|
|
207
|
+
"paintCanvas.shortcuts.none": "無",
|
|
208
|
+
"paintCanvas.shortcuts.remove": "刪除「{action}」的快速鍵",
|
|
209
|
+
"paintCanvas.shortcuts.fixed": "無法變更",
|
|
210
|
+
"paintCanvas.shortcuts.fixedUsed": "{keys} 已用於「{action}」,無法變更",
|
|
211
|
+
"paintCanvas.shortcuts.moved": "{keys} 已從「{from}」移到「{to}」",
|
|
212
|
+
"paintCanvas.shortcuts.reset": "恢復預設值",
|
|
213
|
+
"paintCanvas.shortcuts.wasReset": "已將鍵盤快速鍵恢復為預設值",
|
|
214
|
+
"paintCanvas.shortcuts.group.tools": "工具",
|
|
215
|
+
"paintCanvas.shortcuts.group.brushes": "筆刷與橡皮擦",
|
|
216
|
+
"paintCanvas.shortcuts.group.clipboard": "剪貼簿",
|
|
217
|
+
"paintCanvas.shortcuts.group.masking": "遮罩",
|
|
218
|
+
"paintCanvas.shortcuts.group.fills": "填色與顏色",
|
|
219
|
+
"paintCanvas.shortcuts.group.viewport": "檢視",
|
|
220
|
+
"paintCanvas.shortcuts.group.layers": "圖層",
|
|
221
|
+
"paintCanvas.shortcuts.group.history": "歷史紀錄",
|
|
222
|
+
"paintCanvas.shortcuts.group.general": "一般",
|
|
223
|
+
"paintCanvas.shortcuts.pan": "按住時平移(放開後回到上一個工具)",
|
|
224
|
+
"paintCanvas.shortcuts.tool-move": "移動",
|
|
225
|
+
"paintCanvas.shortcuts.tool-brush": "筆刷",
|
|
226
|
+
"paintCanvas.shortcuts.tool-eraser": "橡皮擦",
|
|
227
|
+
"paintCanvas.shortcuts.tool-rectangle-mask": "矩形遮罩",
|
|
228
|
+
"paintCanvas.shortcuts.tool-circle-mask": "圓形遮罩",
|
|
229
|
+
"paintCanvas.shortcuts.tool-polygon-mask": "多邊形遮罩",
|
|
230
|
+
"paintCanvas.shortcuts.tool-freehand-mask": "手繪遮罩",
|
|
231
|
+
"paintCanvas.shortcuts.tool-colour-sample": "滴管",
|
|
232
|
+
"paintCanvas.shortcuts.tool-zoom": "縮放",
|
|
233
|
+
"paintCanvas.shortcuts.brush-bigger": "放大尺寸",
|
|
234
|
+
"paintCanvas.shortcuts.brush-smaller": "縮小尺寸",
|
|
235
|
+
"paintCanvas.shortcuts.brush-more-opaque": "提高不透明度",
|
|
236
|
+
"paintCanvas.shortcuts.brush-less-opaque": "降低不透明度",
|
|
237
|
+
"paintCanvas.shortcuts.cut": "剪下",
|
|
238
|
+
"paintCanvas.shortcuts.copy": "複製",
|
|
239
|
+
"paintCanvas.shortcuts.paste": "貼上",
|
|
240
|
+
"paintCanvas.shortcuts.select-all": "全選",
|
|
241
|
+
"paintCanvas.shortcuts.invert-selection": "反轉選取範圍",
|
|
242
|
+
"paintCanvas.shortcuts.deselect": "取消選取",
|
|
243
|
+
"paintCanvas.shortcuts.fill-foreground": "以前景色填色",
|
|
244
|
+
"paintCanvas.shortcuts.fill-background": "以背景色填色",
|
|
245
|
+
"paintCanvas.shortcuts.swap-colours": "交換前景色與背景色",
|
|
246
|
+
"paintCanvas.shortcuts.zoom-in": "放大",
|
|
247
|
+
"paintCanvas.shortcuts.zoom-out": "縮小",
|
|
248
|
+
"paintCanvas.shortcuts.reset-zoom": "縮放至 100%",
|
|
249
|
+
"paintCanvas.shortcuts.toggle-interface": "顯示或隱藏介面",
|
|
250
|
+
"paintCanvas.shortcuts.save": "儲存為 PNG",
|
|
251
|
+
"paintCanvas.shortcuts.undo": "復原",
|
|
252
|
+
"paintCanvas.shortcuts.redo": "重做",
|
|
253
|
+
"paintCanvas.shortcuts.delete": "刪除遮罩區域",
|
|
254
|
+
"paintCanvas.shortcuts.cancel": "取消",
|
|
255
|
+
"paintCanvas.shortcuts.commit": "套用",
|
|
256
|
+
"paintCanvas.shortcuts.layerOpacity": "將圖層不透明度設為 {percent}%",
|
|
257
|
+
"paintCanvas.settings.import": "匯入設定",
|
|
258
|
+
"paintCanvas.settings.export": "匯出設定",
|
|
259
|
+
"paintCanvas.settings.importFile": "匯入設定檔",
|
|
260
|
+
"paintCanvas.settings.imported": "已匯入設定",
|
|
261
|
+
"paintCanvas.settings.fileIncompatible": "不相容的設定 JSON 檔案",
|
|
262
|
+
"paintCanvas.settings.fileReadFailed": "無法讀取設定 JSON 檔案",
|
|
263
|
+
"paintCanvas.settings.exportFailed": "匯出設定 JSON 檔案時發生錯誤",
|
|
171
264
|
"paintCanvas.stats.label": "畫布詳細資料",
|
|
172
265
|
"paintCanvas.stats.size": "畫布:{width} × {height} 像素",
|
|
173
266
|
"paintCanvas.stats.zoom": "縮放:{zoom}",
|
|
@@ -176,6 +269,6 @@ var zh_Hant_default = {
|
|
|
176
269
|
"paintCanvas.theme.label": "主題",
|
|
177
270
|
"paintCanvas.theme.light": "淺色",
|
|
178
271
|
"paintCanvas.theme.dark": "深色",
|
|
179
|
-
"paintCanvas.theme.
|
|
272
|
+
"paintCanvas.theme.system": "跟隨系統"
|
|
180
273
|
};
|
|
181
274
|
export { zh_Hant_default as default };
|
package/dist/package.js
CHANGED
package/dist/ui/base/index.d.ts
CHANGED
|
@@ -45,8 +45,8 @@ export declare class PcElement extends LitElement {
|
|
|
45
45
|
translations: Translations;
|
|
46
46
|
/** The icons the element shows */
|
|
47
47
|
icons: IconRegistry;
|
|
48
|
-
/** "light"
|
|
49
|
-
theme?: "light" | "dark" | "
|
|
48
|
+
/** "light", "dark", or "system" to follow the device (see the design tokens). Without one, it has its ancestors' theme. */
|
|
49
|
+
theme?: "light" | "dark" | "system";
|
|
50
50
|
/** The translations and icons being listened to */
|
|
51
51
|
private watched;
|
|
52
52
|
private readonly onSourceChange;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Note that a press closed a panel or menu (by landing outside it), so what it landed on can treat it differently, e.g.
|
|
3
|
+
* the canvas only draws once it's dragged (see `isDismissingPress`). Call it from a capturing `pointerdown` listener,
|
|
4
|
+
* which runs before the listeners of what was pressed.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* document.addEventListener("pointerdown", (event) => {
|
|
8
|
+
* if (open && !event.composedPath().includes(panel)) {
|
|
9
|
+
* markDismissingPress(event);
|
|
10
|
+
* close();
|
|
11
|
+
* }
|
|
12
|
+
* }, true);
|
|
13
|
+
*/
|
|
14
|
+
export declare const markDismissingPress: (event: Event) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Whether a press closed a panel or menu (see `markDismissingPress`).
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* if (isDismissingPress(event)) return; // just closing something
|
|
20
|
+
*/
|
|
21
|
+
export declare const isDismissingPress: (event: Event) => boolean;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// src/ui/dismiss/index.ts
|
|
2
|
+
/** Presses that closed a panel or menu by landing outside it */
|
|
3
|
+
var dismissingPresses = /* @__PURE__ */ new WeakSet();
|
|
4
|
+
/**
|
|
5
|
+
* Note that a press closed a panel or menu (by landing outside it), so what it landed on can treat it differently, e.g.
|
|
6
|
+
* the canvas only draws once it's dragged (see `isDismissingPress`). Call it from a capturing `pointerdown` listener,
|
|
7
|
+
* which runs before the listeners of what was pressed.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* document.addEventListener("pointerdown", (event) => {
|
|
11
|
+
* if (open && !event.composedPath().includes(panel)) {
|
|
12
|
+
* markDismissingPress(event);
|
|
13
|
+
* close();
|
|
14
|
+
* }
|
|
15
|
+
* }, true);
|
|
16
|
+
*/
|
|
17
|
+
var markDismissingPress = (event) => {
|
|
18
|
+
dismissingPresses.add(event);
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Whether a press closed a panel or menu (see `markDismissingPress`).
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* if (isDismissingPress(event)) return; // just closing something
|
|
25
|
+
*/
|
|
26
|
+
var isDismissingPress = (event) => dismissingPresses.has(event);
|
|
27
|
+
export { isDismissingPress, markDismissingPress };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/** How far (in pixels) a press must move before it counts as a drag, where a press can also be a tap */
|
|
2
|
+
export declare const DRAG_THRESHOLD = 4;
|
|
3
|
+
/** A pointer position in the viewport */
|
|
4
|
+
interface Point {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* How much a pointer moved between two points as one value: right and up are positive, left and down negative.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* dragDelta({ x: 0, y: 0 }, { x: 5, y: -5 }); // 10
|
|
13
|
+
*/
|
|
14
|
+
export declare const dragDelta: (from: Point, to: Point) => number;
|
|
15
|
+
/**
|
|
16
|
+
* Turns pressing and dragging on an element into changes of a value: dragging right or up gives positive deltas, left
|
|
17
|
+
* or down negative ones (see `dragDelta`), in whole pixels (keeping any fraction for the next move). With a `threshold`, the press only becomes a drag once the pointer has moved
|
|
18
|
+
* that far from where it was pressed, so a press that barely moves can still be a tap (e.g. to focus a field).
|
|
19
|
+
*
|
|
20
|
+
* The element is given the pointer while dragging, so the drag carries on outside it.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* const drag = new PointerDrag((delta) => brush.resize(delta));
|
|
24
|
+
* html`<div @pointerdown=${drag.start} @pointermove=${drag.move} @pointerup=${drag.end} @pointercancel=${drag.end}></div>`
|
|
25
|
+
*/
|
|
26
|
+
export declare class PointerDrag {
|
|
27
|
+
private readonly onDelta;
|
|
28
|
+
private readonly threshold;
|
|
29
|
+
/** Where the press started */
|
|
30
|
+
private origin;
|
|
31
|
+
/** The last position a delta was given from, once dragging */
|
|
32
|
+
private last;
|
|
33
|
+
/** Movement not yet given, under a whole pixel (pens can move by fractions of a pixel) */
|
|
34
|
+
private remainder;
|
|
35
|
+
constructor(onDelta: (delta: number) => void, threshold?: number);
|
|
36
|
+
/** Whether the press has become a drag */
|
|
37
|
+
get dragging(): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Start a press (on `pointerdown`).
|
|
40
|
+
*/
|
|
41
|
+
readonly start: (event: PointerEvent) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Give the change since the last move, once the press has become a drag (on `pointermove`).
|
|
44
|
+
*/
|
|
45
|
+
readonly move: (event: PointerEvent) => void;
|
|
46
|
+
/**
|
|
47
|
+
* End the press (on `pointerup` or `pointercancel`). Returns whether it was a drag.
|
|
48
|
+
*/
|
|
49
|
+
readonly end: () => boolean;
|
|
50
|
+
}
|
|
51
|
+
export {};
|