@kitschpatrol/tldraw-cli 4.1.2 → 4.2.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/bin/cli.js +161 -135
- package/dist/.DS_Store +0 -0
- package/dist/lib/TldrawController.d.ts +25 -0
- package/dist/lib/index.js +149 -115
- package/dist/lib/inline/download-image.d.ts +7 -0
- package/dist/lib/inline/download-tldr.d.ts +7 -0
- package/dist/lib/inline/get-image-blob.d.ts +13 -0
- package/dist/lib/inline/get-image.d.ts +13 -0
- package/dist/lib/inline/get-tldr.d.ts +7 -0
- package/dist/lib/inline/set-tldr.d.ts +7 -0
- package/dist/lib/inline/upload-tldr.d.ts +7 -0
- package/dist/lib/tldraw-controller.d.ts +4 -10
- package/dist/tldraw/assets/index-BsbCikiv.js +320 -0
- package/dist/tldraw/assets/index-CtzsHuLd.css +1 -0
- package/dist/tldraw/icons/icon/checkbox-empty.svg +1 -1
- package/dist/tldraw/index.html +2 -2
- package/dist/tldraw/translations/ar.json +156 -156
- package/dist/tldraw/translations/ca.json +156 -156
- package/dist/tldraw/translations/cs.json +211 -211
- package/dist/tldraw/translations/da.json +94 -94
- package/dist/tldraw/translations/de.json +169 -169
- package/dist/tldraw/translations/es.json +160 -160
- package/dist/tldraw/translations/fa.json +202 -202
- package/dist/tldraw/translations/fi.json +172 -172
- package/dist/tldraw/translations/fr.json +156 -156
- package/dist/tldraw/translations/gl.json +208 -208
- package/dist/tldraw/translations/hi-in.json +152 -152
- package/dist/tldraw/translations/hr.json +358 -0
- package/dist/tldraw/translations/hu.json +220 -217
- package/dist/tldraw/translations/it.json +189 -189
- package/dist/tldraw/translations/ja.json +210 -210
- package/dist/tldraw/translations/ko-kr.json +217 -214
- package/dist/tldraw/translations/languages.json +8 -0
- package/dist/tldraw/translations/main.json +14 -0
- package/dist/tldraw/translations/ne.json +156 -156
- package/dist/tldraw/translations/ro.json +210 -210
- package/dist/tldraw/translations/ru.json +206 -206
- package/dist/tldraw/translations/sl.json +358 -0
- package/dist/tldraw/translations/th.json +156 -156
- package/dist/tldraw/translations/tr.json +214 -214
- package/dist/tldraw/translations/uk.json +206 -206
- package/dist/tldraw/translations/vi.json +156 -156
- package/dist/tldraw/translations/zh-cn.json +212 -212
- package/dist/tldraw/translations/zh-tw.json +176 -176
- package/package.json +20 -17
- package/readme.md +11 -9
- package/dist/tldraw/assets/index-C93mJRxX.js +0 -315
- package/dist/tldraw/assets/index-DWCRF5Ys.css +0 -1
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"action.convert-to-bookmark": "轉換為書籤",
|
|
3
|
-
"action.convert-to-embed": "轉換為嵌入",
|
|
4
|
-
"action.open-embed-link": "開啟連結",
|
|
5
2
|
"action.align-bottom": "置底",
|
|
6
3
|
"action.align-center-horizontal": "水平置中",
|
|
7
|
-
"action.align-center-vertical": "垂直置中",
|
|
8
4
|
"action.align-center-horizontal.short": "水平置中",
|
|
5
|
+
"action.align-center-vertical": "垂直置中",
|
|
9
6
|
"action.align-center-vertical.short": "垂直置中",
|
|
10
7
|
"action.align-left": "置左",
|
|
11
8
|
"action.align-right": "置右",
|
|
@@ -13,35 +10,39 @@
|
|
|
13
10
|
"action.back-to-content": "回到內容",
|
|
14
11
|
"action.bring-forward": "前移一層",
|
|
15
12
|
"action.bring-to-front": "移至頂層",
|
|
16
|
-
"action.
|
|
13
|
+
"action.convert-to-bookmark": "轉換為書籤",
|
|
14
|
+
"action.convert-to-embed": "轉換為嵌入",
|
|
15
|
+
"action.copy": "複製",
|
|
17
16
|
"action.copy-as-json": "複製為 JSON",
|
|
18
|
-
"action.copy-as-
|
|
17
|
+
"action.copy-as-json.short": "JSON",
|
|
19
18
|
"action.copy-as-png": "複製為 PNG",
|
|
20
|
-
"action.copy-as-
|
|
19
|
+
"action.copy-as-png.short": "PNG",
|
|
21
20
|
"action.copy-as-svg": "複製為 SVG",
|
|
22
|
-
"action.copy": "
|
|
21
|
+
"action.copy-as-svg.short": "SVG",
|
|
23
22
|
"action.cut": "剪下",
|
|
24
23
|
"action.delete": "刪除",
|
|
25
24
|
"action.distribute-horizontal": "水平分布",
|
|
26
|
-
"action.distribute-vertical": "垂直分布",
|
|
27
25
|
"action.distribute-horizontal.short": "水平分布",
|
|
26
|
+
"action.distribute-vertical": "垂直分布",
|
|
28
27
|
"action.distribute-vertical.short": "垂直分布",
|
|
29
28
|
"action.duplicate": "複製",
|
|
30
29
|
"action.edit-link": "編輯連結",
|
|
31
30
|
"action.exit-pen-mode": "退出畫筆模式",
|
|
32
|
-
"action.export-as-json.short": "JSON",
|
|
33
31
|
"action.export-as-json": "匯出成 JSON",
|
|
34
|
-
"action.export-as-
|
|
32
|
+
"action.export-as-json.short": "JSON",
|
|
35
33
|
"action.export-as-png": "匯出成 PNG",
|
|
36
|
-
"action.export-as-
|
|
34
|
+
"action.export-as-png.short": "PNG",
|
|
37
35
|
"action.export-as-svg": "匯出成 SVG",
|
|
36
|
+
"action.export-as-svg.short": "SVG",
|
|
38
37
|
"action.flip-horizontal": "水平翻轉",
|
|
39
|
-
"action.flip-vertical": "垂直翻轉",
|
|
40
38
|
"action.flip-horizontal.short": "水平翻轉",
|
|
39
|
+
"action.flip-vertical": "垂直翻轉",
|
|
41
40
|
"action.flip-vertical.short": "垂直翻轉",
|
|
42
41
|
"action.group": "群組",
|
|
43
42
|
"action.insert-media": "上傳媒體檔",
|
|
43
|
+
"action.new-project": "新建專案",
|
|
44
44
|
"action.new-shared-project": "新建共享專案",
|
|
45
|
+
"action.open-embed-link": "開啟連結",
|
|
45
46
|
"action.open-file": "開啟檔案",
|
|
46
47
|
"action.pack": "打包",
|
|
47
48
|
"action.paste": "貼上",
|
|
@@ -56,29 +57,30 @@
|
|
|
56
57
|
"action.send-to-back": "移至底層",
|
|
57
58
|
"action.share-project": "共享此專案",
|
|
58
59
|
"action.stack-horizontal": "水平堆疊",
|
|
59
|
-
"action.stack-vertical": "垂直堆疊",
|
|
60
60
|
"action.stack-horizontal.short": "水平堆疊",
|
|
61
|
+
"action.stack-vertical": "垂直堆疊",
|
|
61
62
|
"action.stack-vertical.short": "垂直堆疊",
|
|
63
|
+
"action.stop-following": "取消追蹤",
|
|
62
64
|
"action.stretch-horizontal": "水平延展",
|
|
63
|
-
"action.stretch-vertical": "垂直延展",
|
|
64
65
|
"action.stretch-horizontal.short": "水平延展",
|
|
66
|
+
"action.stretch-vertical": "垂直延展",
|
|
65
67
|
"action.stretch-vertical.short": "垂直延展",
|
|
66
68
|
"action.toggle-auto-size": "切換自動大小",
|
|
67
|
-
"action.toggle-dark-mode.menu": "深色模式",
|
|
68
69
|
"action.toggle-dark-mode": "切換深色模式",
|
|
69
|
-
"action.toggle-
|
|
70
|
+
"action.toggle-dark-mode.menu": "深色模式",
|
|
70
71
|
"action.toggle-debug-mode": "切換除錯模式",
|
|
71
|
-
"action.toggle-
|
|
72
|
+
"action.toggle-debug-mode.menu": "除錯模式",
|
|
72
73
|
"action.toggle-focus-mode": "切換專注模式",
|
|
73
|
-
"action.toggle-
|
|
74
|
+
"action.toggle-focus-mode.menu": "專注模式",
|
|
74
75
|
"action.toggle-grid": "切換網格",
|
|
75
|
-
"action.toggle-
|
|
76
|
+
"action.toggle-grid.menu": "顯示網格",
|
|
76
77
|
"action.toggle-snap-mode": "切換始終貼齊",
|
|
77
|
-
"action.toggle-
|
|
78
|
+
"action.toggle-snap-mode.menu": "始終貼齊",
|
|
78
79
|
"action.toggle-tool-lock": "切換工具鎖定",
|
|
80
|
+
"action.toggle-tool-lock.menu": "工具鎖定",
|
|
81
|
+
"action.toggle-transparent": "切換透明背景",
|
|
79
82
|
"action.toggle-transparent.context-menu": "透明",
|
|
80
83
|
"action.toggle-transparent.menu": "透明",
|
|
81
|
-
"action.toggle-transparent": "切換透明背景",
|
|
82
84
|
"action.undo": "復原",
|
|
83
85
|
"action.ungroup": "取消群組",
|
|
84
86
|
"action.zoom-in": "放大",
|
|
@@ -86,6 +88,29 @@
|
|
|
86
88
|
"action.zoom-to-100": "縮放至 100%",
|
|
87
89
|
"action.zoom-to-fit": "縮放至適當大小",
|
|
88
90
|
"action.zoom-to-selection": "縮放至選取範圍",
|
|
91
|
+
"actions-menu.title": "操作",
|
|
92
|
+
"align-style.end": "末端",
|
|
93
|
+
"align-style.justify": "兩端",
|
|
94
|
+
"align-style.middle": "置中",
|
|
95
|
+
"align-style.start": "前端",
|
|
96
|
+
"arrowheadEnd-style.arrow": "箭頭",
|
|
97
|
+
"arrowheadEnd-style.bar": "條狀",
|
|
98
|
+
"arrowheadEnd-style.diamond": "菱形",
|
|
99
|
+
"arrowheadEnd-style.dot": "點",
|
|
100
|
+
"arrowheadEnd-style.inverted": "反轉",
|
|
101
|
+
"arrowheadEnd-style.none": "無",
|
|
102
|
+
"arrowheadEnd-style.pipe": "管狀",
|
|
103
|
+
"arrowheadEnd-style.square": "正方形",
|
|
104
|
+
"arrowheadEnd-style.triangle": "三角形",
|
|
105
|
+
"arrowheadStart-style.arrow": "箭頭",
|
|
106
|
+
"arrowheadStart-style.bar": "條狀",
|
|
107
|
+
"arrowheadStart-style.diamond": "菱形",
|
|
108
|
+
"arrowheadStart-style.dot": "點",
|
|
109
|
+
"arrowheadStart-style.inverted": "反轉",
|
|
110
|
+
"arrowheadStart-style.none": "無",
|
|
111
|
+
"arrowheadStart-style.pipe": "管狀",
|
|
112
|
+
"arrowheadStart-style.square": "正方形",
|
|
113
|
+
"arrowheadStart-style.triangle": "三角形",
|
|
89
114
|
"color-style.black": "黑色",
|
|
90
115
|
"color-style.blue": "藍色",
|
|
91
116
|
"color-style.green": "綠色",
|
|
@@ -98,31 +123,58 @@
|
|
|
98
123
|
"color-style.red": "紅色",
|
|
99
124
|
"color-style.violet": "紫色",
|
|
100
125
|
"color-style.yellow": "黃色",
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
126
|
+
"context-menu.arrange": "佈局",
|
|
127
|
+
"context-menu.copy-as": "複製成",
|
|
128
|
+
"context-menu.export-as": "匯出成",
|
|
129
|
+
"context-menu.move-to-page": "移至頁面",
|
|
130
|
+
"context-menu.reorder": "重新排序",
|
|
131
|
+
"context.pages.new-page": "新頁面",
|
|
105
132
|
"dash-style.dashed": "虛線",
|
|
106
133
|
"dash-style.dotted": "虛點",
|
|
107
134
|
"dash-style.draw": "手繪",
|
|
108
135
|
"dash-style.solid": "實線",
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
136
|
+
"debug-panel.more": "更多",
|
|
137
|
+
"edit-link-dialog.cancel": "取消",
|
|
138
|
+
"edit-link-dialog.clear": "清除",
|
|
139
|
+
"edit-link-dialog.detail": "連結將在新分頁開啟。",
|
|
140
|
+
"edit-link-dialog.invalid-url": "連結必須是有效網址。",
|
|
141
|
+
"edit-link-dialog.save": "繼續",
|
|
142
|
+
"edit-link-dialog.title": "編輯連結",
|
|
143
|
+
"edit-link-dialog.url": "網址",
|
|
144
|
+
"edit-pages-dialog.move-down": "下移",
|
|
145
|
+
"edit-pages-dialog.move-up": "上移",
|
|
146
|
+
"embed-dialog.back": "返回",
|
|
147
|
+
"embed-dialog.cancel": "取消",
|
|
148
|
+
"embed-dialog.create": "建立",
|
|
149
|
+
"embed-dialog.instruction": "貼上網站連結以建立嵌入。",
|
|
150
|
+
"embed-dialog.invalid-url": "我們沒辦法從該網址建立嵌入。",
|
|
151
|
+
"embed-dialog.title": "建立嵌入",
|
|
152
|
+
"embed-dialog.url": "網址",
|
|
153
|
+
"file-system.confirm-clear.cancel": "取消",
|
|
154
|
+
"file-system.confirm-clear.continue": "繼續",
|
|
155
|
+
"file-system.confirm-clear.description": "建立新專案將清除當前專案,任何未儲存的更動都會消失。您確定要繼續嗎?",
|
|
156
|
+
"file-system.confirm-clear.dont-show-again": "不再詢問",
|
|
157
|
+
"file-system.confirm-clear.title": "清除當前專案?",
|
|
158
|
+
"file-system.confirm-open.cancel": "取消",
|
|
159
|
+
"file-system.confirm-open.description": "開啟檔案將置換您的當前專案,任何未儲存的更動都會消失。您確定要繼續嗎?",
|
|
160
|
+
"file-system.confirm-open.dont-show-again": "不再詢問",
|
|
161
|
+
"file-system.confirm-open.open": "開啟檔案",
|
|
162
|
+
"file-system.confirm-open.title": "覆蓋當前檔案?",
|
|
163
|
+
"file-system.file-open-error.file-format-version-too-new": "你嘗試開啟的檔案來自新版 tldraw。請重新載入頁面,然後再試一次。",
|
|
164
|
+
"file-system.file-open-error.generic-corrupted-file": "您嘗試開啟的檔案已損毀。",
|
|
165
|
+
"file-system.file-open-error.not-a-tldraw-file": "您嘗試開啟的檔案不像 tldraw 檔。",
|
|
166
|
+
"file-system.file-open-error.title": "無法開啟檔案",
|
|
167
|
+
"file-system.shared-document-file-open-error.description": "不支援從共享專案開啟檔案。",
|
|
168
|
+
"file-system.shared-document-file-open-error.title": "無法開啟檔案",
|
|
169
|
+
"fill-style.none": "無",
|
|
170
|
+
"fill-style.pattern": "圖案",
|
|
171
|
+
"fill-style.semi": "半填滿",
|
|
172
|
+
"fill-style.solid": "填滿",
|
|
173
|
+
"focus-mode.toggle-focus-mode": "切換專注模式",
|
|
118
174
|
"font-style.draw": "手繪",
|
|
175
|
+
"font-style.mono": "等寬",
|
|
119
176
|
"font-style.sans": "無襯線",
|
|
120
177
|
"font-style.serif": "襯線",
|
|
121
|
-
"font-style.mono": "等寬",
|
|
122
|
-
"align-style.start": "前端",
|
|
123
|
-
"align-style.middle": "置中",
|
|
124
|
-
"align-style.end": "末端",
|
|
125
|
-
"align-style.justify": "兩端",
|
|
126
178
|
"geo-style.arrow-down": "向下箭頭",
|
|
127
179
|
"geo-style.arrow-left": "向左箭頭",
|
|
128
180
|
"geo-style.arrow-right": "向右箭頭",
|
|
@@ -134,130 +186,80 @@
|
|
|
134
186
|
"geo-style.oval": "卵形",
|
|
135
187
|
"geo-style.pentagon": "五邊形",
|
|
136
188
|
"geo-style.rectangle": "矩形",
|
|
137
|
-
"geo-style.rhombus-2": "菱形 2",
|
|
138
189
|
"geo-style.rhombus": "菱形",
|
|
190
|
+
"geo-style.rhombus-2": "菱形 2",
|
|
139
191
|
"geo-style.star": "星形",
|
|
140
192
|
"geo-style.trapezoid": "梯形",
|
|
141
193
|
"geo-style.triangle": "三角形",
|
|
142
194
|
"geo-style.x-box": "X 框",
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"arrowheadStart-style.pipe": "管狀",
|
|
150
|
-
"arrowheadStart-style.square": "正方形",
|
|
151
|
-
"arrowheadStart-style.triangle": "三角形",
|
|
152
|
-
"arrowheadEnd-style.none": "無",
|
|
153
|
-
"arrowheadEnd-style.arrow": "箭頭",
|
|
154
|
-
"arrowheadEnd-style.bar": "條狀",
|
|
155
|
-
"arrowheadEnd-style.diamond": "菱形",
|
|
156
|
-
"arrowheadEnd-style.dot": "點",
|
|
157
|
-
"arrowheadEnd-style.inverted": "反轉",
|
|
158
|
-
"arrowheadEnd-style.pipe": "管狀",
|
|
159
|
-
"arrowheadEnd-style.square": "正方形",
|
|
160
|
-
"arrowheadEnd-style.triangle": "三角形",
|
|
161
|
-
"spline-style.line": "直線",
|
|
162
|
-
"spline-style.cubic": "立方體",
|
|
163
|
-
"tool.select": "選取",
|
|
164
|
-
"tool.hand": "抓取",
|
|
165
|
-
"tool.draw": "手繪",
|
|
166
|
-
"tool.eraser": "橡皮擦",
|
|
167
|
-
"tool.arrow-down": "向下箭頭",
|
|
168
|
-
"tool.arrow-left": "向左箭頭",
|
|
169
|
-
"tool.arrow-right": "向右箭頭",
|
|
170
|
-
"tool.arrow-up": "向上箭頭",
|
|
171
|
-
"tool.arrow": "箭頭",
|
|
172
|
-
"tool.diamond": "菱形 2",
|
|
173
|
-
"tool.ellipse": "橢圓形",
|
|
174
|
-
"tool.hexagon": "六邊形",
|
|
175
|
-
"tool.line": "直線",
|
|
176
|
-
"tool.octagon": "八邊形",
|
|
177
|
-
"tool.oval": "卵形",
|
|
178
|
-
"tool.pentagon": "五邊形",
|
|
179
|
-
"tool.rectangle": "矩形",
|
|
180
|
-
"tool.rhombus": "菱形",
|
|
181
|
-
"tool.star": "星形",
|
|
182
|
-
"tool.trapezoid": "梯形",
|
|
183
|
-
"tool.triangle": "三角形",
|
|
184
|
-
"tool.x-box": "X 框",
|
|
185
|
-
"tool.asset": "資源",
|
|
186
|
-
"tool.frame": "框架",
|
|
187
|
-
"tool.note": "便利貼",
|
|
188
|
-
"tool.embed": "嵌入",
|
|
189
|
-
"tool.text": "文字",
|
|
190
|
-
"menu.title": "選單",
|
|
195
|
+
"help-menu.about": "關於",
|
|
196
|
+
"help-menu.discord": "Discord",
|
|
197
|
+
"help-menu.github": "GitHub",
|
|
198
|
+
"help-menu.keyboard-shortcuts": "鍵盤快捷鍵",
|
|
199
|
+
"help-menu.title": "幫助和資源",
|
|
200
|
+
"help-menu.twitter": "Twitter",
|
|
191
201
|
"menu.copy-as": "複製成",
|
|
192
202
|
"menu.edit": "編輯",
|
|
193
203
|
"menu.export-as": "匯出成",
|
|
194
204
|
"menu.file": "檔案",
|
|
195
205
|
"menu.language": "語言",
|
|
196
206
|
"menu.preferences": "選項",
|
|
207
|
+
"menu.title": "選單",
|
|
197
208
|
"menu.view": "檢視",
|
|
198
|
-
"
|
|
199
|
-
"
|
|
200
|
-
"
|
|
201
|
-
"
|
|
202
|
-
"
|
|
203
|
-
"
|
|
209
|
+
"navigation-zone.toggle-minimap": "切換小地圖",
|
|
210
|
+
"navigation-zone.zoom": "縮放",
|
|
211
|
+
"opacity-style.0.1": "10%",
|
|
212
|
+
"opacity-style.0.25": "25%",
|
|
213
|
+
"opacity-style.0.5": "50%",
|
|
214
|
+
"opacity-style.0.75": "75%",
|
|
215
|
+
"opacity-style.1": "100%",
|
|
204
216
|
"page-menu.create-new-page": "建立新頁面",
|
|
217
|
+
"page-menu.edit-done": "完成",
|
|
218
|
+
"page-menu.edit-start": "編輯",
|
|
219
|
+
"page-menu.go-to-page": "轉到頁面",
|
|
205
220
|
"page-menu.max-page-count-reached": "達到上限頁數",
|
|
206
221
|
"page-menu.new-page-initial-name": "頁面 1",
|
|
207
|
-
"page-menu.
|
|
208
|
-
"page-menu.edit-done": "完成",
|
|
209
|
-
"page-menu.submenu.rename": "重新命名",
|
|
222
|
+
"page-menu.submenu.delete": "刪除",
|
|
210
223
|
"page-menu.submenu.duplicate-page": "複製",
|
|
211
|
-
"page-menu.submenu.title": "選單",
|
|
212
224
|
"page-menu.submenu.move-down": "下移",
|
|
213
225
|
"page-menu.submenu.move-up": "上移",
|
|
214
|
-
"page-menu.submenu.
|
|
215
|
-
"
|
|
216
|
-
"
|
|
226
|
+
"page-menu.submenu.rename": "重新命名",
|
|
227
|
+
"page-menu.submenu.title": "選單",
|
|
228
|
+
"page-menu.title": "頁面",
|
|
229
|
+
"people-menu.change-color": "更改顏色",
|
|
230
|
+
"people-menu.change-name": "更改名稱",
|
|
231
|
+
"people-menu.follow": "追蹤",
|
|
232
|
+
"people-menu.invite": "邀請其他人",
|
|
233
|
+
"people-menu.title": "人員",
|
|
234
|
+
"people-menu.user": "(您)",
|
|
217
235
|
"share-menu.copy-link": "複製連結",
|
|
218
|
-
"share-menu.readonly-link": "唯讀",
|
|
219
|
-
"share-menu.copy-readonly-link": "複製唯讀連結",
|
|
220
|
-
"share-menu.offline-note": "共享此專案將建立即時副本,並產生新網址。您可以分享網址,與其他至多三十人一起檢視和編輯副本。",
|
|
221
236
|
"share-menu.copy-link-note": "任何人透過連結都能檢視和編輯此專案。",
|
|
237
|
+
"share-menu.copy-readonly-link": "複製唯讀連結",
|
|
222
238
|
"share-menu.copy-readonly-link-note": "任何人透過連結都能檢視(但不能編輯)此專案。",
|
|
239
|
+
"share-menu.create-snapshot-link": "建立快照連結",
|
|
240
|
+
"share-menu.fork-note": "基於此快照建立新的共享專案。",
|
|
241
|
+
"share-menu.offline-note": "共享此專案將建立即時副本,並產生新網址。您可以分享網址,與其他至多三十人一起檢視和編輯副本。",
|
|
223
242
|
"share-menu.project-too-large": "抱歉,無法共享此專案,因為檔案過大。我們已在調整這件事!",
|
|
224
|
-
"
|
|
225
|
-
"
|
|
226
|
-
"
|
|
227
|
-
"
|
|
228
|
-
"people-menu.invite": "邀請其他人",
|
|
229
|
-
"help-menu.title": "幫助和資源",
|
|
230
|
-
"help-menu.about": "關於",
|
|
231
|
-
"help-menu.discord": "Discord",
|
|
232
|
-
"help-menu.github": "GitHub",
|
|
233
|
-
"help-menu.keyboard-shortcuts": "鍵盤快捷鍵",
|
|
234
|
-
"help-menu.twitter": "Twitter",
|
|
235
|
-
"actions-menu.title": "操作",
|
|
236
|
-
"edit-link-dialog.title": "編輯連結",
|
|
237
|
-
"edit-link-dialog.invalid-url": "連結必須是有效網址。",
|
|
238
|
-
"edit-link-dialog.detail": "連結將在新分頁開啟。",
|
|
239
|
-
"edit-link-dialog.url": "網址",
|
|
240
|
-
"edit-link-dialog.clear": "清除",
|
|
241
|
-
"edit-link-dialog.save": "繼續",
|
|
242
|
-
"edit-link-dialog.cancel": "取消",
|
|
243
|
-
"embed-dialog.title": "建立嵌入",
|
|
244
|
-
"embed-dialog.back": "返回",
|
|
245
|
-
"embed-dialog.create": "建立",
|
|
246
|
-
"embed-dialog.cancel": "取消",
|
|
247
|
-
"embed-dialog.url": "網址",
|
|
248
|
-
"embed-dialog.instruction": "貼上網站連結以建立嵌入。",
|
|
249
|
-
"embed-dialog.invalid-url": "我們沒辦法從該網址建立嵌入。",
|
|
250
|
-
"edit-pages-dialog.move-down": "下移",
|
|
251
|
-
"edit-pages-dialog.move-up": "上移",
|
|
252
|
-
"shortcuts-dialog.title": "鍵盤快捷鍵",
|
|
243
|
+
"share-menu.readonly-link": "唯讀",
|
|
244
|
+
"share-menu.save-note": "將此專案作為 .tldr 檔下載到您的電腦。",
|
|
245
|
+
"share-menu.share-project": "共享此專案",
|
|
246
|
+
"share-menu.title": "共享",
|
|
253
247
|
"shortcuts-dialog.edit": "編輯",
|
|
254
248
|
"shortcuts-dialog.file": "檔案",
|
|
255
249
|
"shortcuts-dialog.preferences": "選項",
|
|
250
|
+
"shortcuts-dialog.title": "鍵盤快捷鍵",
|
|
256
251
|
"shortcuts-dialog.tools": "工具",
|
|
257
252
|
"shortcuts-dialog.transform": "轉換",
|
|
258
253
|
"shortcuts-dialog.view": "檢視",
|
|
259
|
-
"style
|
|
254
|
+
"size-style.l": "大",
|
|
255
|
+
"size-style.m": "中",
|
|
256
|
+
"size-style.s": "小",
|
|
257
|
+
"size-style.xl": "特大",
|
|
258
|
+
"spline-style.cubic": "立方體",
|
|
259
|
+
"spline-style.line": "直線",
|
|
260
260
|
"style-panel.align": "對齊",
|
|
261
|
+
"style-panel.arrowhead-end": "末端",
|
|
262
|
+
"style-panel.arrowhead-start": "前端",
|
|
261
263
|
"style-panel.arrowheads": "箭頭",
|
|
262
264
|
"style-panel.color": "顏色",
|
|
263
265
|
"style-panel.dash": "虛線",
|
|
@@ -266,51 +268,49 @@
|
|
|
266
268
|
"style-panel.geo": "形狀",
|
|
267
269
|
"style-panel.mixed": "混合",
|
|
268
270
|
"style-panel.opacity": "不透明度",
|
|
271
|
+
"style-panel.position": "位置",
|
|
269
272
|
"style-panel.size": "大小",
|
|
270
273
|
"style-panel.spline": "曲線",
|
|
271
|
-
"
|
|
272
|
-
"tool-panel.shapes": "形狀",
|
|
273
|
-
"navigation-zone.toggle-minimap": "切換小地圖",
|
|
274
|
-
"navigation-zone.zoom": "縮放",
|
|
275
|
-
"focus-mode.toggle-focus-mode": "切換專注模式",
|
|
274
|
+
"style-panel.title": "樣式",
|
|
276
275
|
"toast.close": "關閉",
|
|
277
|
-
"file-system.file-open-error.title": "無法開啟檔案",
|
|
278
|
-
"file-system.file-open-error.not-a-tldraw-file": "您嘗試開啟的檔案不像 tldraw 檔。",
|
|
279
|
-
"file-system.file-open-error.file-format-version-too-new": "你嘗試開啟的檔案來自新版 tldraw。請重新載入頁面,然後再試一次。",
|
|
280
|
-
"file-system.file-open-error.generic-corrupted-file": "您嘗試開啟的檔案已損毀。",
|
|
281
|
-
"file-system.confirm-open.title": "覆蓋當前檔案?",
|
|
282
|
-
"file-system.confirm-open.description": "開啟檔案將置換您的當前專案,任何未儲存的更動都會消失。您確定要繼續嗎?",
|
|
283
|
-
"file-system.confirm-open.cancel": "取消",
|
|
284
|
-
"file-system.confirm-open.open": "開啟檔案",
|
|
285
|
-
"file-system.confirm-open.dont-show-again": "不再詢問",
|
|
286
|
-
"toast.error.export-fail.title": "匯出失敗",
|
|
287
|
-
"toast.error.export-fail.desc": "圖片匯出失敗",
|
|
288
|
-
"toast.error.copy-fail.title": "複製失敗",
|
|
289
276
|
"toast.error.copy-fail.desc": "圖片複製失敗",
|
|
290
|
-
"
|
|
291
|
-
"
|
|
292
|
-
"
|
|
293
|
-
"
|
|
294
|
-
"
|
|
295
|
-
"
|
|
296
|
-
"
|
|
297
|
-
"
|
|
277
|
+
"toast.error.copy-fail.title": "複製失敗",
|
|
278
|
+
"toast.error.export-fail.desc": "圖片匯出失敗",
|
|
279
|
+
"toast.error.export-fail.title": "匯出失敗",
|
|
280
|
+
"tool-panel.drawing": "繪圖",
|
|
281
|
+
"tool-panel.more": "更多",
|
|
282
|
+
"tool-panel.shapes": "形狀",
|
|
283
|
+
"tool.arrow": "箭頭",
|
|
284
|
+
"tool.arrow-down": "向下箭頭",
|
|
285
|
+
"tool.arrow-left": "向左箭頭",
|
|
286
|
+
"tool.arrow-right": "向右箭頭",
|
|
287
|
+
"tool.arrow-up": "向上箭頭",
|
|
288
|
+
"tool.asset": "資源",
|
|
289
|
+
"tool.diamond": "菱形 2",
|
|
290
|
+
"tool.draw": "手繪",
|
|
291
|
+
"tool.ellipse": "橢圓形",
|
|
292
|
+
"tool.embed": "嵌入",
|
|
293
|
+
"tool.eraser": "橡皮擦",
|
|
294
|
+
"tool.frame": "框架",
|
|
295
|
+
"tool.hand": "抓取",
|
|
296
|
+
"tool.hexagon": "六邊形",
|
|
297
|
+
"tool.line": "直線",
|
|
298
|
+
"tool.note": "便利貼",
|
|
299
|
+
"tool.octagon": "八邊形",
|
|
300
|
+
"tool.oval": "卵形",
|
|
301
|
+
"tool.pentagon": "五邊形",
|
|
302
|
+
"tool.rectangle": "矩形",
|
|
303
|
+
"tool.rhombus": "菱形",
|
|
304
|
+
"tool.select": "選取",
|
|
305
|
+
"tool.star": "星形",
|
|
306
|
+
"tool.text": "文字",
|
|
307
|
+
"tool.trapezoid": "梯形",
|
|
308
|
+
"tool.triangle": "三角形",
|
|
309
|
+
"tool.x-box": "X 框",
|
|
298
310
|
"vscode.file-open.backup": "備份",
|
|
299
|
-
"vscode.file-open.backup-saved": "已備份",
|
|
300
311
|
"vscode.file-open.backup-failed": "備份失敗:這不是 .tldr 檔。",
|
|
301
|
-
"
|
|
302
|
-
"
|
|
303
|
-
"
|
|
304
|
-
"file-
|
|
305
|
-
"file-system.confirm-clear.description": "建立新專案將清除當前專案,任何未儲存的更動都會消失。您確定要繼續嗎?",
|
|
306
|
-
"file-system.confirm-clear.cancel": "取消",
|
|
307
|
-
"file-system.confirm-clear.continue": "繼續",
|
|
308
|
-
"file-system.confirm-clear.dont-show-again": "不再詢問",
|
|
309
|
-
"action.stop-following": "取消追蹤",
|
|
310
|
-
"people-menu.follow": "追蹤",
|
|
311
|
-
"style-panel.position": "位置",
|
|
312
|
-
"page-menu.go-to-page": "轉到頁面",
|
|
313
|
-
"share-menu.create-snapshot-link": "建立快照連結",
|
|
314
|
-
"share-menu.save-note": "將此專案作為 .tldr 檔下載到您的電腦。",
|
|
315
|
-
"share-menu.fork-note": "基於此快照建立新的共享專案。"
|
|
312
|
+
"vscode.file-open.backup-saved": "已備份",
|
|
313
|
+
"vscode.file-open.desc": "此檔案由較早版本的 tldraw 所建立。您想要更新它以用於新版本上嗎?",
|
|
314
|
+
"vscode.file-open.dont-show-again": "不再詢問",
|
|
315
|
+
"vscode.file-open.open": "繼續"
|
|
316
316
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitschpatrol/tldraw-cli",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "A
|
|
5
|
+
"description": "A CLI tool for exporting tldraw sketch URLs and local .tldr files to SVG or PNG images.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/kitschpatrol/tldraw-cli.git"
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"url": "https://ericmika.com"
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT",
|
|
21
|
+
"packageManager": "pnpm@8.15.4+sha256.cea6d0bdf2de3a0549582da3983c70c92ffc577ff4410cbf190817ddc35137c2",
|
|
21
22
|
"engines": {
|
|
22
23
|
"node": ">=18.0.0",
|
|
23
24
|
"pnpm": ">=8.0.0"
|
|
@@ -39,41 +40,43 @@
|
|
|
39
40
|
"diagram",
|
|
40
41
|
"drawing",
|
|
41
42
|
"sketch",
|
|
42
|
-
"export"
|
|
43
|
+
"export",
|
|
44
|
+
"npm-package"
|
|
43
45
|
],
|
|
44
46
|
"dependencies": {
|
|
45
|
-
"express": "^4.18.
|
|
46
|
-
"puppeteer": "^22.
|
|
47
|
+
"express": "^4.18.3",
|
|
48
|
+
"puppeteer": "^22.5.0",
|
|
49
|
+
"uint8array-extras": "^1.1.0"
|
|
47
50
|
},
|
|
48
51
|
"devDependencies": {
|
|
49
|
-
"@kitschpatrol/shared-config": "^4.
|
|
52
|
+
"@kitschpatrol/shared-config": "^4.5.0",
|
|
50
53
|
"@sindresorhus/slugify": "^2.2.1",
|
|
51
|
-
"@tldraw/assets": "2.0.
|
|
52
|
-
"@tldraw/tldraw": "2.0.0-canary.e6e4e7f6cbac",
|
|
54
|
+
"@tldraw/assets": "2.0.1",
|
|
53
55
|
"@types/express": "^4.17.21",
|
|
54
|
-
"@types/react": "^18.2.
|
|
55
|
-
"@types/react-dom": "^18.2.
|
|
56
|
+
"@types/react": "^18.2.66",
|
|
57
|
+
"@types/react-dom": "^18.2.22",
|
|
56
58
|
"@types/yargs": "^17.0.32",
|
|
57
59
|
"@vitejs/plugin-react-swc": "^3.6.0",
|
|
58
|
-
"bumpp": "^9.
|
|
60
|
+
"bumpp": "^9.4.0",
|
|
59
61
|
"chalk": "^5.3.0",
|
|
60
62
|
"cheerio": "1.0.0-rc.12",
|
|
61
|
-
"esbuild": "^0.20.
|
|
63
|
+
"esbuild": "^0.20.2",
|
|
62
64
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
63
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
65
|
+
"eslint-plugin-react-refresh": "^0.4.6",
|
|
64
66
|
"get-port": "^7.0.0",
|
|
65
67
|
"nanoid": "^5.0.6",
|
|
66
|
-
"open": "^10.0
|
|
68
|
+
"open": "^10.1.0",
|
|
67
69
|
"path-type": "^5.0.0",
|
|
68
70
|
"plur": "^5.1.0",
|
|
69
71
|
"pretty-ms": "^9.0.0",
|
|
70
72
|
"react": "^18.2.0",
|
|
71
73
|
"react-dom": "^18.2.0",
|
|
74
|
+
"tldraw": "2.0.1",
|
|
72
75
|
"tsx": "^4.7.1",
|
|
73
|
-
"typescript": "^5.
|
|
76
|
+
"typescript": "^5.4.2",
|
|
74
77
|
"untildify": "^5.0.0",
|
|
75
|
-
"vite": "^5.1.
|
|
76
|
-
"vitest": "^1.
|
|
78
|
+
"vite": "^5.1.6",
|
|
79
|
+
"vitest": "^1.4.0",
|
|
77
80
|
"yargs": "^17.7.2"
|
|
78
81
|
},
|
|
79
82
|
"publishConfig": {
|
package/readme.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://npmjs.com/package/@kitschpatrol/tldraw-cli)
|
|
8
8
|
[](https://opensource.org/licenses/MIT)
|
|
9
9
|
|
|
10
|
-
**A
|
|
10
|
+
**A CLI tool for exporting tldraw sketch URLs and local .tldr files to SVG or PNG images.**
|
|
11
11
|
|
|
12
12
|
<!-- /header -->
|
|
13
13
|
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
## Overview
|
|
33
33
|
|
|
34
|
-
A CLI app to automate conversion and export of [tldraw](https://tldraw.dev) URLs and `.tldr` files into SVG or PNG image formats.
|
|
34
|
+
A CLI app to automate conversion and export of [tldraw](https://tldraw.dev) URLs and `.tldr` files into SVG or PNG image formats, exposing a number of options along the way. It also provides commands for opening tldraw files in either local or remote instances of the tldraw editor website.
|
|
35
35
|
|
|
36
36
|
This could be useful in the context of a content publishing pipeline where you want to use a `.tldr` file (perhaps under version control) as the "source of truth" for assets to be embedded elsewhere, and you don't want to manage the export of that diagram manually.
|
|
37
37
|
|
|
@@ -75,10 +75,10 @@ Usage:
|
|
|
75
75
|
tldraw-cli <command>
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
-
| Command | Argument | Description
|
|
79
|
-
| -------- | ------------------- |
|
|
80
|
-
| `export` | `<files-or-urls..>` | Export a local tldraw ".tldr" file or a tldraw\.com URL to an svg, png, json, or tldr file. Prints the absolute path(s) to the exported image(s) to stdout.
|
|
81
|
-
| `open` | `[files-or-urls..]` | Open a tldraw `.tldr` file or tldraw\.com URL your default browser
|
|
78
|
+
| Command | Argument | Description |
|
|
79
|
+
| -------- | ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
80
|
+
| `export` | `<files-or-urls..>` | Export a local tldraw ".tldr" file or a tldraw\.com URL to an svg, png, json, or tldr file. Prints the absolute path(s) to the exported image(s) to stdout. |
|
|
81
|
+
| `open` | `[files-or-urls..]` | Open a tldraw `.tldr` file or tldraw\.com URL in your default browser with either the official tldraw\.com site or a locally-hosted instance of the editor. Call `open` without an argument to open a blank sketch. Sketches opened via URL with the `--local` flag will be temporarily copied to the local system, and will not be kept in sync with tldraw\.com. This process does not exit until the browser is closed. |
|
|
82
82
|
|
|
83
83
|
| Option | Alias | Description | Type |
|
|
84
84
|
| ----------- | ----- | ------------------- | --------- |
|
|
@@ -117,7 +117,7 @@ tldraw-cli export <files-or-urls..>
|
|
|
117
117
|
|
|
118
118
|
#### Subcommand: `tldraw-cli open`
|
|
119
119
|
|
|
120
|
-
Open a tldraw `.tldr` file or tldraw\.com URL your default browser
|
|
120
|
+
Open a tldraw `.tldr` file or tldraw\.com URL in your default browser with either the official tldraw\.com site or a locally-hosted instance of the editor. Call `open` without an argument to open a blank sketch. Sketches opened via URL with the `--local` flag will be temporarily copied to the local system, and will not be kept in sync with tldraw\.com. This process does not exit until the browser is closed.
|
|
121
121
|
|
|
122
122
|
Usage:
|
|
123
123
|
|
|
@@ -344,8 +344,8 @@ On GitHub:
|
|
|
344
344
|
|
|
345
345
|
On Discord:
|
|
346
346
|
|
|
347
|
-
- [@jorisjh in #
|
|
348
|
-
- [@Nitsuj in #
|
|
347
|
+
- [@jorisjh in #ideas\_old](https://discord.com/channels/859816885297741824/859816885801713730/1156880056501665802)
|
|
348
|
+
- [@Nitsuj in #ideas\_old](https://discord.com/channels/859816885297741824/859816885801713730/1020352607920869406)
|
|
349
349
|
|
|
350
350
|
## Implementation notes
|
|
351
351
|
|
|
@@ -359,6 +359,8 @@ In terms of Puppeteer vs. Playwright and other headless browser automation tools
|
|
|
359
359
|
|
|
360
360
|
The local instance of tldraw includes its assets dependencies, so the tool should work correctly without internet access.
|
|
361
361
|
|
|
362
|
+
Track the [tldraw changelog](https://github.com/tldraw/tldraw/blob/main/CHANGELOG.md).
|
|
363
|
+
|
|
362
364
|
## The future
|
|
363
365
|
|
|
364
366
|
Current plans for future improvements include the following:
|