@lvl99dotcom/paintcanvas 0.5.0 → 0.6.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/dist/lib/brushes/configRanges/index.d.ts +17 -0
- package/dist/lib/brushes/configRanges/index.js +31 -1
- package/dist/lib/brushes/params/index.d.ts +2 -1
- package/dist/lib/brushes/params/index.js +7 -4
- package/dist/lib/brushes/types/index.d.ts +8 -0
- package/dist/lib/classes/Layer/index.d.ts +10 -0
- package/dist/lib/classes/Layer/index.js +15 -1
- package/dist/lib/classes/LayerAutosave/index.d.ts +9 -15
- package/dist/lib/classes/LayerAutosave/index.js +30 -43
- package/dist/lib/classes/LayerStack/index.d.ts +15 -0
- package/dist/lib/classes/LayerStack/index.js +26 -2
- package/dist/lib/classes/PaintCanvas/index.d.ts +26 -3
- package/dist/lib/classes/PaintCanvas/index.js +39 -12
- package/dist/lib/classes/PngEncoder/index.d.ts +41 -0
- package/dist/lib/classes/PngEncoder/index.js +104 -0
- package/dist/lib/classes/ProfileGraphs/index.d.ts +87 -0
- package/dist/lib/classes/ProfileGraphs/index.js +148 -0
- package/dist/lib/classes/SettingsAutosave/index.d.ts +1 -1
- package/dist/lib/classes/SettingsAutosave/index.js +2 -1
- package/dist/lib/messages/schema.d.ts +720 -0
- package/dist/lib/presets/schema.d.ts +360 -0
- package/dist/lib/presets/schema.js +8 -1
- package/dist/lib/profiles/index.d.ts +61 -0
- package/dist/lib/profiles/index.js +131 -0
- package/dist/lib/profiles/schema.d.ts +73 -0
- package/dist/lib/profiles/schema.js +53 -0
- package/dist/lib/rendering/sample/index.d.ts +11 -0
- package/dist/lib/rendering/sample/index.js +36 -5
- package/dist/lib/settings/index.d.ts +2 -1
- package/dist/lib/settings/index.js +4 -1
- package/dist/lib/settings/schema.d.ts +49 -0
- package/dist/lib/settings/schema.js +6 -0
- package/dist/lib/validation/validators.generated.js +13064 -3696
- package/dist/locales/en-GB.js +30 -0
- package/dist/locales/en-US.js +30 -0
- package/dist/locales/fr.js +30 -0
- package/dist/locales/ja.js +30 -0
- package/dist/locales/ko.js +30 -0
- package/dist/locales/zh-Hans.js +30 -0
- package/dist/locales/zh-Hant.js +30 -0
- package/dist/package.js +1 -1
- package/dist/ui/ask/index.d.ts +48 -0
- package/dist/ui/ask/index.js +67 -0
- package/dist/ui/base/index.d.ts +8 -1
- package/dist/ui/base/index.js +19 -4
- package/dist/ui/elements/PaintCanvas/index.js +3 -1
- package/dist/ui/elements/PaintCanvas/style.js +1 -1
- package/dist/ui/elements/PcAppSettings/index.d.ts +6 -6
- package/dist/ui/elements/PcAppSettings/index.js +21 -65
- package/dist/ui/elements/PcBrushConfig/index.d.ts +25 -14
- package/dist/ui/elements/PcBrushConfig/index.js +216 -146
- package/dist/ui/elements/PcBrushConfig/style.js +1 -1
- package/dist/ui/elements/PcBrushTest/index.js +7 -2
- package/dist/ui/elements/PcBrushTest/style.js +1 -1
- package/dist/ui/elements/PcButton/index.d.ts +12 -3
- package/dist/ui/elements/PcButton/index.js +18 -10
- package/dist/ui/elements/PcCanvas/index.d.ts +6 -1
- package/dist/ui/elements/PcCanvas/index.js +10 -3
- package/dist/ui/elements/PcCanvas/style.js +1 -1
- package/dist/ui/elements/PcClipboardTools/index.d.ts +5 -4
- package/dist/ui/elements/PcClipboardTools/index.js +12 -5
- package/dist/ui/elements/PcDialog/index.d.ts +46 -10
- package/dist/ui/elements/PcDialog/index.js +102 -51
- package/dist/ui/elements/PcDialogWindow/index.d.ts +141 -0
- package/dist/ui/elements/PcDialogWindow/index.js +385 -0
- package/dist/ui/elements/PcPanelBrushes/index.d.ts +3 -2
- package/dist/ui/elements/PcPanelBrushes/index.js +7 -5
- package/dist/ui/elements/PcPanelBrushes/style.js +1 -1
- package/dist/ui/elements/PcPanelColours/index.js +2 -2
- package/dist/ui/elements/PcPanelColours/style.js +1 -1
- package/dist/ui/elements/PcPanelLayers/index.js +1 -1
- package/dist/ui/elements/PcPanelLayers/style.js +1 -1
- package/dist/ui/elements/PcProfileEditor/index.d.ts +103 -0
- package/dist/ui/elements/PcProfileEditor/index.js +259 -0
- package/dist/ui/elements/PcProfileGraph/index.d.ts +84 -0
- package/dist/ui/elements/PcProfileGraph/index.js +317 -0
- package/dist/ui/elements/PcShortcutSettings/index.js +9 -13
- package/dist/ui/elements/PcSliderRange/index.d.ts +147 -0
- package/dist/ui/elements/PcSliderRange/index.js +307 -0
- package/dist/ui/elements/PcStats/index.d.ts +19 -4
- package/dist/ui/elements/PcStats/index.js +29 -13
- package/dist/ui/elements/PcToolSettings/index.js +6 -6
- package/dist/ui/icons/images/icon-profile-graph@2x.js +3 -0
- package/dist/ui/icons/index.d.ts +1 -1
- package/dist/ui/icons/index.js +2 -0
- package/dist/ui/index.d.ts +6 -1
- package/dist/ui/index.js +6 -1
- package/dist/ui/styles/index.d.ts +21 -1
- package/dist/ui/styles/index.js +73 -14
- package/locales/en-GB.json +30 -0
- package/locales/en-US.json +30 -0
- package/locales/fr.json +30 -0
- package/locales/ja.json +30 -0
- package/locales/ko.json +30 -0
- package/locales/zh-Hans.json +30 -0
- package/locales/zh-Hant.json +30 -0
- package/package.json +25 -23
package/locales/zh-Hans.json
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
"paintCanvas.common.clear": "清除",
|
|
8
8
|
"paintCanvas.common.cut": "剪切",
|
|
9
9
|
"paintCanvas.common.copy": "复制",
|
|
10
|
+
"paintCanvas.common.copyMerged": "合并拷贝",
|
|
10
11
|
"paintCanvas.common.paste": "粘贴",
|
|
11
12
|
"paintCanvas.common.undo": "撤销",
|
|
12
13
|
"paintCanvas.common.redo": "重做",
|
|
@@ -16,6 +17,31 @@
|
|
|
16
17
|
"paintCanvas.common.height": "高度",
|
|
17
18
|
"paintCanvas.common.size": "大小",
|
|
18
19
|
"paintCanvas.common.opacity": "不透明度",
|
|
20
|
+
"paintCanvas.range.low": "{label}(最小)",
|
|
21
|
+
"paintCanvas.range.high": "{label}(最大)",
|
|
22
|
+
"paintCanvas.profileGraph.point": "点 {number}:{x}, {y}",
|
|
23
|
+
"paintCanvas.profileGraph.remove": "删除点",
|
|
24
|
+
"paintCanvas.profileGraph.linear": "尖角(线性)",
|
|
25
|
+
"paintCanvas.profileGraph.bezier": "平滑(三次贝塞尔)",
|
|
26
|
+
"paintCanvas.profiles.linear": "线性",
|
|
27
|
+
"paintCanvas.profiles.overweight": "偏重",
|
|
28
|
+
"paintCanvas.profiles.underweight": "偏轻",
|
|
29
|
+
"paintCanvas.profileEditor.title": "{param}曲线",
|
|
30
|
+
"paintCanvas.profileEditor.button": "{param}:曲线",
|
|
31
|
+
"paintCanvas.profileEditor.custom": "自定义",
|
|
32
|
+
"paintCanvas.profileEditor.actions": "曲线操作",
|
|
33
|
+
"paintCanvas.profileEditor.new": "新建曲线",
|
|
34
|
+
"paintCanvas.profileEditor.duplicate": "复制…",
|
|
35
|
+
"paintCanvas.profileEditor.rename": "重命名…",
|
|
36
|
+
"paintCanvas.profileEditor.delete": "删除…",
|
|
37
|
+
"paintCanvas.profileEditor.reset": "重置",
|
|
38
|
+
"paintCanvas.profileEditor.name": "名称",
|
|
39
|
+
"paintCanvas.profileEditor.saveHeading": "保存曲线",
|
|
40
|
+
"paintCanvas.profileEditor.renameHeading": "重命名曲线",
|
|
41
|
+
"paintCanvas.profileEditor.deleteHeading": "删除曲线",
|
|
42
|
+
"paintCanvas.profileEditor.deleteConfirm": "删除“{name}”?此操作无法撤销。",
|
|
43
|
+
"paintCanvas.profileEditor.replaceHeading": "替换曲线",
|
|
44
|
+
"paintCanvas.profileEditor.replaceConfirm": "已有名为“{name}”的曲线。要替换吗?",
|
|
19
45
|
"paintCanvas.tool.brush": "画笔",
|
|
20
46
|
"paintCanvas.tool.eraser": "橡皮擦",
|
|
21
47
|
"paintCanvas.tool.move": "移动、缩放和旋转",
|
|
@@ -88,6 +114,9 @@
|
|
|
88
114
|
"paintCanvas.presets.myPresets": "我的预设",
|
|
89
115
|
"paintCanvas.presets.unknownAuthor": "未知",
|
|
90
116
|
"paintCanvas.presets.deleteConfirm": "删除“{name}”?此操作无法撤销。",
|
|
117
|
+
"paintCanvas.presets.deleteHeading": "删除预设",
|
|
118
|
+
"paintCanvas.presets.replaceHeading": "替换预设",
|
|
119
|
+
"paintCanvas.presets.replace": "替换",
|
|
91
120
|
"paintCanvas.presets.deleted": "已删除“{name}”",
|
|
92
121
|
"paintCanvas.presets.deleteFailed": "无法删除“{name}”",
|
|
93
122
|
"paintCanvas.presets.saved": "已将“{name}”保存到我的预设",
|
|
@@ -181,6 +210,7 @@
|
|
|
181
210
|
"paintCanvas.brushConfig.snapToPixelGrid": "对齐像素网格",
|
|
182
211
|
"paintCanvas.brushConfig.addToPresets": "添加到预设",
|
|
183
212
|
"paintCanvas.brushConfig.variation": "{param}:{source}",
|
|
213
|
+
"paintCanvas.brushConfig.varyWith": "{param}:变化依据",
|
|
184
214
|
"paintCanvas.layers.mergeDownTitle": "向下合并",
|
|
185
215
|
"paintCanvas.layers.clear": "清除…",
|
|
186
216
|
"paintCanvas.layers.delete": "删除…",
|
package/locales/zh-Hant.json
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
"paintCanvas.common.clear": "清除",
|
|
8
8
|
"paintCanvas.common.cut": "剪下",
|
|
9
9
|
"paintCanvas.common.copy": "拷貝",
|
|
10
|
+
"paintCanvas.common.copyMerged": "合併拷貝",
|
|
10
11
|
"paintCanvas.common.paste": "貼上",
|
|
11
12
|
"paintCanvas.common.undo": "復原",
|
|
12
13
|
"paintCanvas.common.redo": "重做",
|
|
@@ -16,6 +17,31 @@
|
|
|
16
17
|
"paintCanvas.common.height": "高度",
|
|
17
18
|
"paintCanvas.common.size": "大小",
|
|
18
19
|
"paintCanvas.common.opacity": "不透明度",
|
|
20
|
+
"paintCanvas.range.low": "{label}(最小)",
|
|
21
|
+
"paintCanvas.range.high": "{label}(最大)",
|
|
22
|
+
"paintCanvas.profileGraph.point": "點 {number}:{x}, {y}",
|
|
23
|
+
"paintCanvas.profileGraph.remove": "刪除點",
|
|
24
|
+
"paintCanvas.profileGraph.linear": "尖角(線性)",
|
|
25
|
+
"paintCanvas.profileGraph.bezier": "平滑(三次貝茲)",
|
|
26
|
+
"paintCanvas.profiles.linear": "線性",
|
|
27
|
+
"paintCanvas.profiles.overweight": "偏重",
|
|
28
|
+
"paintCanvas.profiles.underweight": "偏輕",
|
|
29
|
+
"paintCanvas.profileEditor.title": "{param}曲線",
|
|
30
|
+
"paintCanvas.profileEditor.button": "{param}:曲線",
|
|
31
|
+
"paintCanvas.profileEditor.custom": "自訂",
|
|
32
|
+
"paintCanvas.profileEditor.actions": "曲線操作",
|
|
33
|
+
"paintCanvas.profileEditor.new": "新增曲線",
|
|
34
|
+
"paintCanvas.profileEditor.duplicate": "複製…",
|
|
35
|
+
"paintCanvas.profileEditor.rename": "重新命名…",
|
|
36
|
+
"paintCanvas.profileEditor.delete": "刪除…",
|
|
37
|
+
"paintCanvas.profileEditor.reset": "重設",
|
|
38
|
+
"paintCanvas.profileEditor.name": "名稱",
|
|
39
|
+
"paintCanvas.profileEditor.saveHeading": "儲存曲線",
|
|
40
|
+
"paintCanvas.profileEditor.renameHeading": "重新命名曲線",
|
|
41
|
+
"paintCanvas.profileEditor.deleteHeading": "刪除曲線",
|
|
42
|
+
"paintCanvas.profileEditor.deleteConfirm": "刪除「{name}」?此操作無法復原。",
|
|
43
|
+
"paintCanvas.profileEditor.replaceHeading": "取代曲線",
|
|
44
|
+
"paintCanvas.profileEditor.replaceConfirm": "已有名為「{name}」的曲線。要取代嗎?",
|
|
19
45
|
"paintCanvas.tool.brush": "筆刷",
|
|
20
46
|
"paintCanvas.tool.eraser": "橡皮擦",
|
|
21
47
|
"paintCanvas.tool.move": "移動、縮放和旋轉",
|
|
@@ -88,6 +114,9 @@
|
|
|
88
114
|
"paintCanvas.presets.myPresets": "我的預設",
|
|
89
115
|
"paintCanvas.presets.unknownAuthor": "未知",
|
|
90
116
|
"paintCanvas.presets.deleteConfirm": "要刪除「{name}」嗎?此動作無法復原。",
|
|
117
|
+
"paintCanvas.presets.deleteHeading": "刪除預設",
|
|
118
|
+
"paintCanvas.presets.replaceHeading": "取代預設",
|
|
119
|
+
"paintCanvas.presets.replace": "取代",
|
|
91
120
|
"paintCanvas.presets.deleted": "已刪除「{name}」",
|
|
92
121
|
"paintCanvas.presets.deleteFailed": "無法刪除「{name}」",
|
|
93
122
|
"paintCanvas.presets.saved": "已將「{name}」儲存到我的預設",
|
|
@@ -181,6 +210,7 @@
|
|
|
181
210
|
"paintCanvas.brushConfig.snapToPixelGrid": "對齊像素格線",
|
|
182
211
|
"paintCanvas.brushConfig.addToPresets": "加入預設",
|
|
183
212
|
"paintCanvas.brushConfig.variation": "{param}:{source}",
|
|
213
|
+
"paintCanvas.brushConfig.varyWith": "{param}:變化依據",
|
|
184
214
|
"paintCanvas.layers.mergeDownTitle": "向下合併",
|
|
185
215
|
"paintCanvas.layers.clear": "清除…",
|
|
186
216
|
"paintCanvas.layers.delete": "刪除…",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvl99dotcom/paintcanvas",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Open-source painting engine and renderer for the browser, with optional UI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"drawing",
|
|
@@ -52,6 +52,29 @@
|
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
|
+
"scripts": {
|
|
56
|
+
"build": "pnpm icons:build && vite build && tsc -p tsconfig.build.json",
|
|
57
|
+
"typecheck": "tsc -p .",
|
|
58
|
+
"test": "vitest --run --project paintcanvas",
|
|
59
|
+
"test:browser": "vitest --run --project paintcanvas-browser",
|
|
60
|
+
"test:all": "vitest --run",
|
|
61
|
+
"coverage": "vitest --run --coverage",
|
|
62
|
+
"lint": "eslint .",
|
|
63
|
+
"format": "prettier --write .",
|
|
64
|
+
"format:check": "prettier --check .",
|
|
65
|
+
"build:validators": "node scripts/build-validators.ts",
|
|
66
|
+
"icons:build": "node scripts/build-icons.ts",
|
|
67
|
+
"dev": "pnpm icons:build && vite demo --port 5190 --strictPort --open",
|
|
68
|
+
"demo": "pnpm dev",
|
|
69
|
+
"docs": "pnpm --filter paintcanvas-docs start",
|
|
70
|
+
"docs:build": "pnpm --filter paintcanvas-docs build",
|
|
71
|
+
"prepack": "pnpm build",
|
|
72
|
+
"demo:build": "vite build --config vite.demo.config.ts",
|
|
73
|
+
"pages:build": "node scripts/build-pages.ts",
|
|
74
|
+
"pages:deploy": "node scripts/deploy-pages.ts",
|
|
75
|
+
"pages:preview": "vite preview --config vite.demo.config.ts --outDir ../.pages --base /paintcanvas/ --port 5191 --strictPort"
|
|
76
|
+
},
|
|
77
|
+
"packageManager": "pnpm@12.10.1",
|
|
55
78
|
"peerDependencies": {
|
|
56
79
|
"lit": "^3.3.3",
|
|
57
80
|
"vitest": "^4.1.12"
|
|
@@ -82,26 +105,5 @@
|
|
|
82
105
|
"typescript-eslint": "^8.72.1",
|
|
83
106
|
"vite": "^8.3.5",
|
|
84
107
|
"vitest": "^4.1.12"
|
|
85
|
-
},
|
|
86
|
-
"scripts": {
|
|
87
|
-
"build": "pnpm icons:build && vite build && tsc -p tsconfig.build.json",
|
|
88
|
-
"typecheck": "tsc -p .",
|
|
89
|
-
"test": "vitest --run --project paintcanvas",
|
|
90
|
-
"test:browser": "vitest --run --project paintcanvas-browser",
|
|
91
|
-
"test:all": "vitest --run",
|
|
92
|
-
"coverage": "vitest --run --coverage",
|
|
93
|
-
"lint": "eslint .",
|
|
94
|
-
"format": "prettier --write .",
|
|
95
|
-
"format:check": "prettier --check .",
|
|
96
|
-
"build:validators": "node scripts/build-validators.ts",
|
|
97
|
-
"icons:build": "node scripts/build-icons.ts",
|
|
98
|
-
"dev": "pnpm icons:build && vite demo --port 5190 --strictPort --open",
|
|
99
|
-
"demo": "pnpm dev",
|
|
100
|
-
"docs": "pnpm --filter paintcanvas-docs start",
|
|
101
|
-
"docs:build": "pnpm --filter paintcanvas-docs build",
|
|
102
|
-
"demo:build": "vite build --config vite.demo.config.ts",
|
|
103
|
-
"pages:build": "node scripts/build-pages.ts",
|
|
104
|
-
"pages:deploy": "node scripts/deploy-pages.ts",
|
|
105
|
-
"pages:preview": "vite preview --config vite.demo.config.ts --outDir ../.pages --base /paintcanvas/ --port 5191 --strictPort"
|
|
106
108
|
}
|
|
107
|
-
}
|
|
109
|
+
}
|