js-draw 0.17.4 → 0.18.1

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.
Files changed (413) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/bundle.js +9 -1
  3. package/package.json +35 -33
  4. package/tsconfig.json +3 -2
  5. package/tsconfig.mjs.json +9 -0
  6. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -34
  7. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  8. package/.github/ISSUE_TEMPLATE/translation.yml +0 -902
  9. package/.github/pull_request_template.md +0 -15
  10. package/.github/workflows/firebase-hosting-merge.yml +0 -32
  11. package/.github/workflows/firebase-hosting-pull-request.yml +0 -32
  12. package/.github/workflows/github-pages.yml +0 -56
  13. package/.husky/pre-commit +0 -4
  14. package/build_tools/BundledFile.ts +0 -167
  15. package/build_tools/buildTranslationTemplate.ts +0 -121
  16. package/build_tools/bundle.ts +0 -11
  17. package/dist/build_tools/BundledFile.d.ts +0 -13
  18. package/dist/build_tools/BundledFile.js +0 -157
  19. package/dist/build_tools/buildTranslationTemplate.d.ts +0 -1
  20. package/dist/build_tools/buildTranslationTemplate.js +0 -94
  21. package/dist/build_tools/bundle.d.ts +0 -1
  22. package/dist/build_tools/bundle.js +0 -5
  23. package/dist/src/Color4.d.ts +0 -60
  24. package/dist/src/Color4.js +0 -192
  25. package/dist/src/Editor.d.ts +0 -308
  26. package/dist/src/Editor.js +0 -874
  27. package/dist/src/EditorImage.d.ts +0 -97
  28. package/dist/src/EditorImage.js +0 -477
  29. package/dist/src/EventDispatcher.d.ts +0 -30
  30. package/dist/src/EventDispatcher.js +0 -54
  31. package/dist/src/Pointer.d.ts +0 -24
  32. package/dist/src/Pointer.js +0 -80
  33. package/dist/src/SVGLoader.d.ts +0 -48
  34. package/dist/src/SVGLoader.js +0 -442
  35. package/dist/src/UndoRedoHistory.d.ts +0 -19
  36. package/dist/src/UndoRedoHistory.js +0 -91
  37. package/dist/src/Viewport.d.ts +0 -71
  38. package/dist/src/Viewport.js +0 -256
  39. package/dist/src/bundle/bundled.d.ts +0 -4
  40. package/dist/src/bundle/bundled.js +0 -5
  41. package/dist/src/commands/Command.d.ts +0 -16
  42. package/dist/src/commands/Command.js +0 -30
  43. package/dist/src/commands/Duplicate.d.ts +0 -14
  44. package/dist/src/commands/Duplicate.js +0 -33
  45. package/dist/src/commands/Erase.d.ts +0 -14
  46. package/dist/src/commands/Erase.js +0 -57
  47. package/dist/src/commands/SerializableCommand.d.ts +0 -12
  48. package/dist/src/commands/SerializableCommand.js +0 -36
  49. package/dist/src/commands/UnresolvedCommand.d.ts +0 -14
  50. package/dist/src/commands/UnresolvedCommand.js +0 -22
  51. package/dist/src/commands/invertCommand.d.ts +0 -4
  52. package/dist/src/commands/invertCommand.js +0 -44
  53. package/dist/src/commands/lib.d.ts +0 -7
  54. package/dist/src/commands/lib.js +0 -7
  55. package/dist/src/commands/localization.d.ts +0 -23
  56. package/dist/src/commands/localization.js +0 -21
  57. package/dist/src/commands/uniteCommands.d.ts +0 -4
  58. package/dist/src/commands/uniteCommands.js +0 -116
  59. package/dist/src/components/AbstractComponent.d.ts +0 -73
  60. package/dist/src/components/AbstractComponent.js +0 -252
  61. package/dist/src/components/ImageBackground.d.ts +0 -42
  62. package/dist/src/components/ImageBackground.js +0 -139
  63. package/dist/src/components/ImageComponent.d.ts +0 -31
  64. package/dist/src/components/ImageComponent.js +0 -146
  65. package/dist/src/components/RestylableComponent.d.ts +0 -24
  66. package/dist/src/components/RestylableComponent.js +0 -80
  67. package/dist/src/components/SVGGlobalAttributesObject.d.ts +0 -21
  68. package/dist/src/components/SVGGlobalAttributesObject.js +0 -59
  69. package/dist/src/components/Stroke.d.ts +0 -40
  70. package/dist/src/components/Stroke.js +0 -185
  71. package/dist/src/components/TextComponent.d.ts +0 -53
  72. package/dist/src/components/TextComponent.js +0 -252
  73. package/dist/src/components/UnknownSVGObject.d.ts +0 -18
  74. package/dist/src/components/UnknownSVGObject.js +0 -44
  75. package/dist/src/components/builders/ArrowBuilder.d.ts +0 -19
  76. package/dist/src/components/builders/ArrowBuilder.js +0 -86
  77. package/dist/src/components/builders/FreehandLineBuilder.d.ts +0 -33
  78. package/dist/src/components/builders/FreehandLineBuilder.js +0 -165
  79. package/dist/src/components/builders/LineBuilder.d.ts +0 -18
  80. package/dist/src/components/builders/LineBuilder.js +0 -58
  81. package/dist/src/components/builders/PressureSensitiveFreehandLineBuilder.d.ts +0 -36
  82. package/dist/src/components/builders/PressureSensitiveFreehandLineBuilder.js +0 -339
  83. package/dist/src/components/builders/RectangleBuilder.d.ts +0 -20
  84. package/dist/src/components/builders/RectangleBuilder.js +0 -50
  85. package/dist/src/components/builders/types.d.ts +0 -12
  86. package/dist/src/components/builders/types.js +0 -1
  87. package/dist/src/components/lib.d.ts +0 -12
  88. package/dist/src/components/lib.js +0 -12
  89. package/dist/src/components/localization.d.ts +0 -11
  90. package/dist/src/components/localization.js +0 -10
  91. package/dist/src/components/util/StrokeSmoother.d.ts +0 -35
  92. package/dist/src/components/util/StrokeSmoother.js +0 -210
  93. package/dist/src/components/util/describeComponentList.d.ts +0 -4
  94. package/dist/src/components/util/describeComponentList.js +0 -14
  95. package/dist/src/lib.d.ts +0 -34
  96. package/dist/src/lib.js +0 -34
  97. package/dist/src/localization.d.ts +0 -14
  98. package/dist/src/localization.js +0 -10
  99. package/dist/src/localizations/de.d.ts +0 -3
  100. package/dist/src/localizations/de.js +0 -4
  101. package/dist/src/localizations/en.d.ts +0 -3
  102. package/dist/src/localizations/en.js +0 -4
  103. package/dist/src/localizations/es.d.ts +0 -3
  104. package/dist/src/localizations/es.js +0 -18
  105. package/dist/src/localizations/getLocalizationTable.d.ts +0 -3
  106. package/dist/src/localizations/getLocalizationTable.js +0 -45
  107. package/dist/src/math/LineSegment2.d.ts +0 -24
  108. package/dist/src/math/LineSegment2.js +0 -125
  109. package/dist/src/math/Mat33.d.ts +0 -118
  110. package/dist/src/math/Mat33.js +0 -326
  111. package/dist/src/math/Path.d.ts +0 -71
  112. package/dist/src/math/Path.js +0 -648
  113. package/dist/src/math/Rect2.d.ts +0 -52
  114. package/dist/src/math/Rect2.js +0 -228
  115. package/dist/src/math/Triangle.d.ts +0 -11
  116. package/dist/src/math/Triangle.js +0 -19
  117. package/dist/src/math/Vec2.d.ts +0 -13
  118. package/dist/src/math/Vec2.js +0 -13
  119. package/dist/src/math/Vec3.d.ts +0 -106
  120. package/dist/src/math/Vec3.js +0 -174
  121. package/dist/src/math/lib.d.ts +0 -7
  122. package/dist/src/math/lib.js +0 -7
  123. package/dist/src/math/rounding.d.ts +0 -4
  124. package/dist/src/math/rounding.js +0 -128
  125. package/dist/src/rendering/Display.d.ts +0 -75
  126. package/dist/src/rendering/Display.js +0 -207
  127. package/dist/src/rendering/RenderingStyle.d.ts +0 -31
  128. package/dist/src/rendering/RenderingStyle.js +0 -38
  129. package/dist/src/rendering/TextRenderingStyle.d.ts +0 -36
  130. package/dist/src/rendering/TextRenderingStyle.js +0 -23
  131. package/dist/src/rendering/caching/CacheRecord.d.ts +0 -20
  132. package/dist/src/rendering/caching/CacheRecord.js +0 -55
  133. package/dist/src/rendering/caching/CacheRecordManager.d.ts +0 -12
  134. package/dist/src/rendering/caching/CacheRecordManager.js +0 -43
  135. package/dist/src/rendering/caching/RenderingCache.d.ts +0 -11
  136. package/dist/src/rendering/caching/RenderingCache.js +0 -45
  137. package/dist/src/rendering/caching/RenderingCacheNode.d.ts +0 -29
  138. package/dist/src/rendering/caching/RenderingCacheNode.js +0 -320
  139. package/dist/src/rendering/caching/testUtils.d.ts +0 -9
  140. package/dist/src/rendering/caching/testUtils.js +0 -20
  141. package/dist/src/rendering/caching/types.d.ts +0 -19
  142. package/dist/src/rendering/caching/types.js +0 -1
  143. package/dist/src/rendering/lib.d.ts +0 -5
  144. package/dist/src/rendering/lib.js +0 -5
  145. package/dist/src/rendering/localization.d.ts +0 -10
  146. package/dist/src/rendering/localization.js +0 -9
  147. package/dist/src/rendering/renderers/AbstractRenderer.d.ts +0 -68
  148. package/dist/src/rendering/renderers/AbstractRenderer.js +0 -144
  149. package/dist/src/rendering/renderers/CanvasRenderer.d.ts +0 -63
  150. package/dist/src/rendering/renderers/CanvasRenderer.js +0 -230
  151. package/dist/src/rendering/renderers/DummyRenderer.d.ts +0 -35
  152. package/dist/src/rendering/renderers/DummyRenderer.js +0 -106
  153. package/dist/src/rendering/renderers/SVGRenderer.d.ts +0 -57
  154. package/dist/src/rendering/renderers/SVGRenderer.js +0 -304
  155. package/dist/src/rendering/renderers/TextOnlyRenderer.d.ts +0 -29
  156. package/dist/src/rendering/renderers/TextOnlyRenderer.js +0 -57
  157. package/dist/src/testing/beforeEachFile.d.ts +0 -1
  158. package/dist/src/testing/beforeEachFile.js +0 -7
  159. package/dist/src/testing/createEditor.d.ts +0 -4
  160. package/dist/src/testing/createEditor.js +0 -9
  161. package/dist/src/testing/lib.d.ts +0 -2
  162. package/dist/src/testing/lib.js +0 -2
  163. package/dist/src/testing/loadExpectExtensions.d.ts +0 -2
  164. package/dist/src/testing/loadExpectExtensions.js +0 -24
  165. package/dist/src/testing/sendPenEvent.d.ts +0 -12
  166. package/dist/src/testing/sendPenEvent.js +0 -19
  167. package/dist/src/testing/sendTouchEvent.d.ts +0 -42
  168. package/dist/src/testing/sendTouchEvent.js +0 -62
  169. package/dist/src/toolbar/HTMLToolbar.d.ts +0 -103
  170. package/dist/src/toolbar/HTMLToolbar.js +0 -376
  171. package/dist/src/toolbar/IconProvider.d.ts +0 -62
  172. package/dist/src/toolbar/IconProvider.js +0 -654
  173. package/dist/src/toolbar/lib.d.ts +0 -3
  174. package/dist/src/toolbar/lib.js +0 -3
  175. package/dist/src/toolbar/localization.d.ts +0 -49
  176. package/dist/src/toolbar/localization.js +0 -48
  177. package/dist/src/toolbar/makeColorInput.d.ts +0 -6
  178. package/dist/src/toolbar/makeColorInput.js +0 -113
  179. package/dist/src/toolbar/types.d.ts +0 -4
  180. package/dist/src/toolbar/types.js +0 -1
  181. package/dist/src/toolbar/widgets/ActionButtonWidget.d.ts +0 -15
  182. package/dist/src/toolbar/widgets/ActionButtonWidget.js +0 -25
  183. package/dist/src/toolbar/widgets/BaseToolWidget.d.ts +0 -11
  184. package/dist/src/toolbar/widgets/BaseToolWidget.js +0 -44
  185. package/dist/src/toolbar/widgets/BaseWidget.d.ts +0 -72
  186. package/dist/src/toolbar/widgets/BaseWidget.js +0 -307
  187. package/dist/src/toolbar/widgets/DocumentPropertiesWidget.d.ts +0 -18
  188. package/dist/src/toolbar/widgets/DocumentPropertiesWidget.js +0 -120
  189. package/dist/src/toolbar/widgets/EraserToolWidget.d.ts +0 -17
  190. package/dist/src/toolbar/widgets/EraserToolWidget.js +0 -57
  191. package/dist/src/toolbar/widgets/HandToolWidget.d.ts +0 -17
  192. package/dist/src/toolbar/widgets/HandToolWidget.js +0 -172
  193. package/dist/src/toolbar/widgets/InsertImageWidget.d.ts +0 -19
  194. package/dist/src/toolbar/widgets/InsertImageWidget.js +0 -170
  195. package/dist/src/toolbar/widgets/OverflowWidget.d.ts +0 -25
  196. package/dist/src/toolbar/widgets/OverflowWidget.js +0 -71
  197. package/dist/src/toolbar/widgets/PenToolWidget.d.ts +0 -27
  198. package/dist/src/toolbar/widgets/PenToolWidget.js +0 -220
  199. package/dist/src/toolbar/widgets/SelectionToolWidget.d.ts +0 -13
  200. package/dist/src/toolbar/widgets/SelectionToolWidget.js +0 -147
  201. package/dist/src/toolbar/widgets/TextToolWidget.d.ts +0 -16
  202. package/dist/src/toolbar/widgets/TextToolWidget.js +0 -109
  203. package/dist/src/toolbar/widgets/lib.d.ts +0 -10
  204. package/dist/src/toolbar/widgets/lib.js +0 -10
  205. package/dist/src/tools/BaseTool.d.ts +0 -22
  206. package/dist/src/tools/BaseTool.js +0 -63
  207. package/dist/src/tools/Eraser.d.ts +0 -23
  208. package/dist/src/tools/Eraser.js +0 -106
  209. package/dist/src/tools/FindTool.d.ts +0 -21
  210. package/dist/src/tools/FindTool.js +0 -114
  211. package/dist/src/tools/PanZoom.d.ts +0 -52
  212. package/dist/src/tools/PanZoom.js +0 -414
  213. package/dist/src/tools/PasteHandler.d.ts +0 -23
  214. package/dist/src/tools/PasteHandler.js +0 -93
  215. package/dist/src/tools/Pen.d.ts +0 -39
  216. package/dist/src/tools/Pen.js +0 -173
  217. package/dist/src/tools/PipetteTool.d.ts +0 -18
  218. package/dist/src/tools/PipetteTool.js +0 -39
  219. package/dist/src/tools/SelectionTool/SelectAllShortcutHandler.d.ts +0 -8
  220. package/dist/src/tools/SelectionTool/SelectAllShortcutHandler.js +0 -22
  221. package/dist/src/tools/SelectionTool/Selection.d.ts +0 -64
  222. package/dist/src/tools/SelectionTool/Selection.js +0 -459
  223. package/dist/src/tools/SelectionTool/SelectionHandle.d.ts +0 -38
  224. package/dist/src/tools/SelectionTool/SelectionHandle.js +0 -81
  225. package/dist/src/tools/SelectionTool/SelectionTool.d.ts +0 -36
  226. package/dist/src/tools/SelectionTool/SelectionTool.js +0 -398
  227. package/dist/src/tools/SelectionTool/TransformMode.d.ts +0 -34
  228. package/dist/src/tools/SelectionTool/TransformMode.js +0 -98
  229. package/dist/src/tools/SelectionTool/types.d.ts +0 -9
  230. package/dist/src/tools/SelectionTool/types.js +0 -11
  231. package/dist/src/tools/TextTool.d.ts +0 -33
  232. package/dist/src/tools/TextTool.js +0 -256
  233. package/dist/src/tools/ToolController.d.ts +0 -18
  234. package/dist/src/tools/ToolController.js +0 -158
  235. package/dist/src/tools/ToolEnabledGroup.d.ts +0 -6
  236. package/dist/src/tools/ToolEnabledGroup.js +0 -11
  237. package/dist/src/tools/ToolSwitcherShortcut.d.ts +0 -16
  238. package/dist/src/tools/ToolSwitcherShortcut.js +0 -32
  239. package/dist/src/tools/ToolbarShortcutHandler.d.ts +0 -12
  240. package/dist/src/tools/ToolbarShortcutHandler.js +0 -23
  241. package/dist/src/tools/UndoRedoShortcut.d.ts +0 -8
  242. package/dist/src/tools/UndoRedoShortcut.js +0 -22
  243. package/dist/src/tools/lib.d.ts +0 -16
  244. package/dist/src/tools/lib.js +0 -16
  245. package/dist/src/tools/localization.d.ts +0 -28
  246. package/dist/src/tools/localization.js +0 -27
  247. package/dist/src/types.d.ts +0 -151
  248. package/dist/src/types.js +0 -35
  249. package/dist/src/util/assertions.d.ts +0 -23
  250. package/dist/src/util/assertions.js +0 -45
  251. package/dist/src/util/fileToBase64.d.ts +0 -3
  252. package/dist/src/util/fileToBase64.js +0 -13
  253. package/dist/src/util/untilNextAnimationFrame.d.ts +0 -3
  254. package/dist/src/util/untilNextAnimationFrame.js +0 -7
  255. package/dist/src/util/waitForTimeout.d.ts +0 -2
  256. package/dist/src/util/waitForTimeout.js +0 -7
  257. package/src/Color4.test.ts +0 -40
  258. package/src/Color4.ts +0 -234
  259. package/src/Editor.css +0 -86
  260. package/src/Editor.loadFrom.test.ts +0 -24
  261. package/src/Editor.toSVG.test.ts +0 -111
  262. package/src/Editor.ts +0 -1122
  263. package/src/EditorImage.test.ts +0 -120
  264. package/src/EditorImage.ts +0 -603
  265. package/src/EventDispatcher.test.ts +0 -123
  266. package/src/EventDispatcher.ts +0 -71
  267. package/src/Pointer.ts +0 -127
  268. package/src/SVGLoader.test.ts +0 -114
  269. package/src/SVGLoader.ts +0 -511
  270. package/src/UndoRedoHistory.test.ts +0 -33
  271. package/src/UndoRedoHistory.ts +0 -102
  272. package/src/Viewport.ts +0 -319
  273. package/src/bundle/bundled.ts +0 -7
  274. package/src/commands/Command.ts +0 -45
  275. package/src/commands/Duplicate.ts +0 -48
  276. package/src/commands/Erase.ts +0 -74
  277. package/src/commands/SerializableCommand.ts +0 -49
  278. package/src/commands/UnresolvedCommand.ts +0 -37
  279. package/src/commands/invertCommand.ts +0 -51
  280. package/src/commands/lib.ts +0 -16
  281. package/src/commands/localization.ts +0 -47
  282. package/src/commands/uniteCommands.test.ts +0 -23
  283. package/src/commands/uniteCommands.ts +0 -135
  284. package/src/components/AbstractComponent.transformBy.test.ts +0 -22
  285. package/src/components/AbstractComponent.ts +0 -364
  286. package/src/components/ImageBackground.test.ts +0 -35
  287. package/src/components/ImageBackground.ts +0 -176
  288. package/src/components/ImageComponent.ts +0 -171
  289. package/src/components/RestylableComponent.ts +0 -142
  290. package/src/components/SVGGlobalAttributesObject.ts +0 -81
  291. package/src/components/Stroke.test.ts +0 -139
  292. package/src/components/Stroke.ts +0 -245
  293. package/src/components/TextComponent.test.ts +0 -99
  294. package/src/components/TextComponent.ts +0 -315
  295. package/src/components/UnknownSVGObject.test.ts +0 -10
  296. package/src/components/UnknownSVGObject.ts +0 -60
  297. package/src/components/builders/ArrowBuilder.ts +0 -107
  298. package/src/components/builders/FreehandLineBuilder.ts +0 -212
  299. package/src/components/builders/LineBuilder.ts +0 -77
  300. package/src/components/builders/PressureSensitiveFreehandLineBuilder.ts +0 -454
  301. package/src/components/builders/RectangleBuilder.ts +0 -74
  302. package/src/components/builders/types.ts +0 -15
  303. package/src/components/lib.ts +0 -25
  304. package/src/components/localization.ts +0 -22
  305. package/src/components/util/StrokeSmoother.ts +0 -293
  306. package/src/components/util/describeComponentList.ts +0 -18
  307. package/src/lib.ts +0 -37
  308. package/src/localization.ts +0 -34
  309. package/src/localizations/de.ts +0 -98
  310. package/src/localizations/en.ts +0 -8
  311. package/src/localizations/es.ts +0 -74
  312. package/src/localizations/getLocalizationTable.test.ts +0 -27
  313. package/src/localizations/getLocalizationTable.ts +0 -55
  314. package/src/math/LineSegment2.test.ts +0 -99
  315. package/src/math/LineSegment2.ts +0 -160
  316. package/src/math/Mat33.test.ts +0 -244
  317. package/src/math/Mat33.ts +0 -437
  318. package/src/math/Path.fromString.test.ts +0 -223
  319. package/src/math/Path.test.ts +0 -198
  320. package/src/math/Path.toString.test.ts +0 -77
  321. package/src/math/Path.ts +0 -790
  322. package/src/math/Rect2.test.ts +0 -204
  323. package/src/math/Rect2.ts +0 -315
  324. package/src/math/Triangle.ts +0 -29
  325. package/src/math/Vec2.test.ts +0 -30
  326. package/src/math/Vec2.ts +0 -18
  327. package/src/math/Vec3.test.ts +0 -44
  328. package/src/math/Vec3.ts +0 -218
  329. package/src/math/lib.ts +0 -15
  330. package/src/math/rounding.test.ts +0 -65
  331. package/src/math/rounding.ts +0 -156
  332. package/src/rendering/Display.ts +0 -249
  333. package/src/rendering/RenderingStyle.test.ts +0 -68
  334. package/src/rendering/RenderingStyle.ts +0 -55
  335. package/src/rendering/TextRenderingStyle.ts +0 -45
  336. package/src/rendering/caching/CacheRecord.test.ts +0 -49
  337. package/src/rendering/caching/CacheRecord.ts +0 -77
  338. package/src/rendering/caching/CacheRecordManager.ts +0 -71
  339. package/src/rendering/caching/RenderingCache.test.ts +0 -44
  340. package/src/rendering/caching/RenderingCache.ts +0 -66
  341. package/src/rendering/caching/RenderingCacheNode.ts +0 -405
  342. package/src/rendering/caching/testUtils.ts +0 -35
  343. package/src/rendering/caching/types.ts +0 -34
  344. package/src/rendering/lib.ts +0 -6
  345. package/src/rendering/localization.ts +0 -20
  346. package/src/rendering/renderers/AbstractRenderer.ts +0 -222
  347. package/src/rendering/renderers/CanvasRenderer.ts +0 -296
  348. package/src/rendering/renderers/DummyRenderer.test.ts +0 -42
  349. package/src/rendering/renderers/DummyRenderer.ts +0 -136
  350. package/src/rendering/renderers/SVGRenderer.ts +0 -354
  351. package/src/rendering/renderers/TextOnlyRenderer.ts +0 -70
  352. package/src/styles.js +0 -7
  353. package/src/testing/beforeEachFile.ts +0 -8
  354. package/src/testing/createEditor.ts +0 -11
  355. package/src/testing/global.d.ts +0 -17
  356. package/src/testing/lib.ts +0 -3
  357. package/src/testing/loadExpectExtensions.ts +0 -25
  358. package/src/testing/sendPenEvent.ts +0 -31
  359. package/src/testing/sendTouchEvent.ts +0 -78
  360. package/src/toolbar/HTMLToolbar.ts +0 -492
  361. package/src/toolbar/IconProvider.ts +0 -736
  362. package/src/toolbar/lib.ts +0 -4
  363. package/src/toolbar/localization.ts +0 -106
  364. package/src/toolbar/makeColorInput.ts +0 -145
  365. package/src/toolbar/toolbar.css +0 -213
  366. package/src/toolbar/types.ts +0 -5
  367. package/src/toolbar/widgets/ActionButtonWidget.ts +0 -39
  368. package/src/toolbar/widgets/BaseToolWidget.ts +0 -56
  369. package/src/toolbar/widgets/BaseWidget.ts +0 -377
  370. package/src/toolbar/widgets/DocumentPropertiesWidget.ts +0 -167
  371. package/src/toolbar/widgets/EraserToolWidget.ts +0 -85
  372. package/src/toolbar/widgets/HandToolWidget.ts +0 -250
  373. package/src/toolbar/widgets/InsertImageWidget.css +0 -44
  374. package/src/toolbar/widgets/InsertImageWidget.ts +0 -223
  375. package/src/toolbar/widgets/OverflowWidget.css +0 -27
  376. package/src/toolbar/widgets/OverflowWidget.ts +0 -92
  377. package/src/toolbar/widgets/PenToolWidget.ts +0 -288
  378. package/src/toolbar/widgets/SelectionToolWidget.ts +0 -190
  379. package/src/toolbar/widgets/TextToolWidget.ts +0 -145
  380. package/src/toolbar/widgets/lib.ts +0 -13
  381. package/src/tools/BaseTool.ts +0 -76
  382. package/src/tools/Eraser.test.ts +0 -103
  383. package/src/tools/Eraser.ts +0 -139
  384. package/src/tools/FindTool.css +0 -7
  385. package/src/tools/FindTool.ts +0 -152
  386. package/src/tools/PanZoom.test.ts +0 -310
  387. package/src/tools/PanZoom.ts +0 -520
  388. package/src/tools/PasteHandler.ts +0 -95
  389. package/src/tools/Pen.test.ts +0 -194
  390. package/src/tools/Pen.ts +0 -226
  391. package/src/tools/PipetteTool.ts +0 -55
  392. package/src/tools/SelectionTool/SelectAllShortcutHandler.ts +0 -28
  393. package/src/tools/SelectionTool/Selection.ts +0 -607
  394. package/src/tools/SelectionTool/SelectionHandle.ts +0 -108
  395. package/src/tools/SelectionTool/SelectionTool.css +0 -23
  396. package/src/tools/SelectionTool/SelectionTool.test.ts +0 -261
  397. package/src/tools/SelectionTool/SelectionTool.ts +0 -480
  398. package/src/tools/SelectionTool/TransformMode.ts +0 -114
  399. package/src/tools/SelectionTool/types.ts +0 -11
  400. package/src/tools/TextTool.ts +0 -326
  401. package/src/tools/ToolController.ts +0 -178
  402. package/src/tools/ToolEnabledGroup.ts +0 -14
  403. package/src/tools/ToolSwitcherShortcut.ts +0 -39
  404. package/src/tools/ToolbarShortcutHandler.ts +0 -34
  405. package/src/tools/UndoRedoShortcut.test.ts +0 -56
  406. package/src/tools/UndoRedoShortcut.ts +0 -25
  407. package/src/tools/lib.ts +0 -21
  408. package/src/tools/localization.ts +0 -66
  409. package/src/types.ts +0 -234
  410. package/src/util/assertions.ts +0 -55
  411. package/src/util/fileToBase64.ts +0 -18
  412. package/src/util/untilNextAnimationFrame.ts +0 -9
  413. package/src/util/waitForTimeout.ts +0 -9
@@ -1,902 +0,0 @@
1
- name: Translation
2
- # This template is auto-generated by build_tools/buildTranslationTemplate.ts
3
- # Do not modify it directly.
4
- description: Translate the editor to a new language!
5
- title: "[Translation]: <language>"
6
- labels: [localization]
7
- assignees: []
8
- body:
9
- - type: markdown
10
- attributes:
11
- value: |
12
- Thank you for taking the time to translate `js-draw`! If you don't have time to translate all of the strings below, feel free to submit an incomplete translation and edit it later. Use this template to update an existing translation or to create a new translation.
13
- - type: markdown
14
- attributes:
15
- value: |
16
- (Optional) If you would like to submit a pull request that applies this translation, note that existing translations are present in [src/localizations/](https://github.com/personalizedrefrigerator/js-draw/tree/main/src/localizations).
17
- - type: input
18
- id: language-name
19
- attributes:
20
- label: "Language"
21
- description: "The name of the language to translate to in English (e.g. Spanish)"
22
- validations:
23
- required: true
24
- - type: input
25
- id: translation-pen
26
- attributes:
27
- label: "pen"
28
- description: "Translate `Pen`."
29
- placeholder: "Pen"
30
- validations:
31
- required: false
32
- - type: input
33
- id: translation-eraser
34
- attributes:
35
- label: "eraser"
36
- description: "Translate `Eraser`."
37
- placeholder: "Eraser"
38
- validations:
39
- required: false
40
- - type: input
41
- id: translation-select
42
- attributes:
43
- label: "select"
44
- description: "Translate `Select`."
45
- placeholder: "Select"
46
- validations:
47
- required: false
48
- - type: input
49
- id: translation-handTool
50
- attributes:
51
- label: "handTool"
52
- description: "Translate `Pan`."
53
- placeholder: "Pan"
54
- validations:
55
- required: false
56
- - type: input
57
- id: translation-zoom
58
- attributes:
59
- label: "zoom"
60
- description: "Translate `Zoom`."
61
- placeholder: "Zoom"
62
- validations:
63
- required: false
64
- - type: input
65
- id: translation-image
66
- attributes:
67
- label: "image"
68
- description: "Translate `Image`."
69
- placeholder: "Image"
70
- validations:
71
- required: false
72
- - type: input
73
- id: translation-reformatSelection
74
- attributes:
75
- label: "reformatSelection"
76
- description: "Translate `Format selection`."
77
- placeholder: "Format selection"
78
- validations:
79
- required: false
80
- - type: input
81
- id: translation-inputAltText
82
- attributes:
83
- label: "inputAltText"
84
- description: "Translate `Alt text: `."
85
- placeholder: "Alt text: "
86
- validations:
87
- required: false
88
- - type: input
89
- id: translation-chooseFile
90
- attributes:
91
- label: "chooseFile"
92
- description: "Translate `Choose file: `."
93
- placeholder: "Choose file: "
94
- validations:
95
- required: false
96
- - type: input
97
- id: translation-submit
98
- attributes:
99
- label: "submit"
100
- description: "Translate `Submit`."
101
- placeholder: "Submit"
102
- validations:
103
- required: false
104
- - type: input
105
- id: translation-cancel
106
- attributes:
107
- label: "cancel"
108
- description: "Translate `Cancel`."
109
- placeholder: "Cancel"
110
- validations:
111
- required: false
112
- - type: input
113
- id: translation-resetView
114
- attributes:
115
- label: "resetView"
116
- description: "Translate `Reset view`."
117
- placeholder: "Reset view"
118
- validations:
119
- required: false
120
- - type: input
121
- id: translation-thicknessLabel
122
- attributes:
123
- label: "thicknessLabel"
124
- description: "Translate `Thickness: `."
125
- placeholder: "Thickness: "
126
- validations:
127
- required: false
128
- - type: input
129
- id: translation-colorLabel
130
- attributes:
131
- label: "colorLabel"
132
- description: "Translate `Color: `."
133
- placeholder: "Color: "
134
- validations:
135
- required: false
136
- - type: input
137
- id: translation-fontLabel
138
- attributes:
139
- label: "fontLabel"
140
- description: "Translate `Font: `."
141
- placeholder: "Font: "
142
- validations:
143
- required: false
144
- - type: input
145
- id: translation-textSize
146
- attributes:
147
- label: "textSize"
148
- description: "Translate `Size: `."
149
- placeholder: "Size: "
150
- validations:
151
- required: false
152
- - type: input
153
- id: translation-resizeImageToSelection
154
- attributes:
155
- label: "resizeImageToSelection"
156
- description: "Translate `Resize image to selection`."
157
- placeholder: "Resize image to selection"
158
- validations:
159
- required: false
160
- - type: input
161
- id: translation-deleteSelection
162
- attributes:
163
- label: "deleteSelection"
164
- description: "Translate `Delete selection`."
165
- placeholder: "Delete selection"
166
- validations:
167
- required: false
168
- - type: input
169
- id: translation-duplicateSelection
170
- attributes:
171
- label: "duplicateSelection"
172
- description: "Translate `Duplicate selection`."
173
- placeholder: "Duplicate selection"
174
- validations:
175
- required: false
176
- - type: input
177
- id: translation-undo
178
- attributes:
179
- label: "undo"
180
- description: "Translate `Undo`."
181
- placeholder: "Undo"
182
- validations:
183
- required: false
184
- - type: input
185
- id: translation-redo
186
- attributes:
187
- label: "redo"
188
- description: "Translate `Redo`."
189
- placeholder: "Redo"
190
- validations:
191
- required: false
192
- - type: input
193
- id: translation-selectObjectType
194
- attributes:
195
- label: "selectObjectType"
196
- description: "Translate `Object type: `."
197
- placeholder: "Object type: "
198
- validations:
199
- required: false
200
- - type: input
201
- id: translation-pickColorFromScreen
202
- attributes:
203
- label: "pickColorFromScreen"
204
- description: "Translate `Pick color from screen`."
205
- placeholder: "Pick color from screen"
206
- validations:
207
- required: false
208
- - type: input
209
- id: translation-clickToPickColorAnnouncement
210
- attributes:
211
- label: "clickToPickColorAnnouncement"
212
- description: "Translate `Click on the screen to pick a color`."
213
- placeholder: "Click on the screen to pick a color"
214
- validations:
215
- required: false
216
- - type: input
217
- id: translation-selectionToolKeyboardShortcuts
218
- attributes:
219
- label: "selectionToolKeyboardShortcuts"
220
- description: "Translate `Selection tool: Use arrow keys to move selected items, lowercase/uppercase ‘i’ and ‘o’ to resize.`."
221
- placeholder: "Selection tool: Use arrow keys to move selected items, lowercase/uppercase ‘i’ and ‘o’ to resize."
222
- validations:
223
- required: false
224
- - type: input
225
- id: translation-documentProperties
226
- attributes:
227
- label: "documentProperties"
228
- description: "Translate `Document`."
229
- placeholder: "Document"
230
- validations:
231
- required: false
232
- - type: input
233
- id: translation-backgroundColor
234
- attributes:
235
- label: "backgroundColor"
236
- description: "Translate `Background Color: `."
237
- placeholder: "Background Color: "
238
- validations:
239
- required: false
240
- - type: input
241
- id: translation-imageWidthOption
242
- attributes:
243
- label: "imageWidthOption"
244
- description: "Translate `Width: `."
245
- placeholder: "Width: "
246
- validations:
247
- required: false
248
- - type: input
249
- id: translation-imageHeightOption
250
- attributes:
251
- label: "imageHeightOption"
252
- description: "Translate `Height: `."
253
- placeholder: "Height: "
254
- validations:
255
- required: false
256
- - type: input
257
- id: translation-toggleOverflow
258
- attributes:
259
- label: "toggleOverflow"
260
- description: "Translate `More`."
261
- placeholder: "More"
262
- validations:
263
- required: false
264
- - type: input
265
- id: translation-touchPanning
266
- attributes:
267
- label: "touchPanning"
268
- description: "Translate `Touchscreen panning`."
269
- placeholder: "Touchscreen panning"
270
- validations:
271
- required: false
272
- - type: input
273
- id: translation-freehandPen
274
- attributes:
275
- label: "freehandPen"
276
- description: "Translate `Freehand`."
277
- placeholder: "Freehand"
278
- validations:
279
- required: false
280
- - type: input
281
- id: translation-pressureSensitiveFreehandPen
282
- attributes:
283
- label: "pressureSensitiveFreehandPen"
284
- description: "Translate `Freehand (pressure sensitive)`."
285
- placeholder: "Freehand (pressure sensitive)"
286
- validations:
287
- required: false
288
- - type: input
289
- id: translation-arrowPen
290
- attributes:
291
- label: "arrowPen"
292
- description: "Translate `Arrow`."
293
- placeholder: "Arrow"
294
- validations:
295
- required: false
296
- - type: input
297
- id: translation-linePen
298
- attributes:
299
- label: "linePen"
300
- description: "Translate `Line`."
301
- placeholder: "Line"
302
- validations:
303
- required: false
304
- - type: input
305
- id: translation-outlinedRectanglePen
306
- attributes:
307
- label: "outlinedRectanglePen"
308
- description: "Translate `Outlined rectangle`."
309
- placeholder: "Outlined rectangle"
310
- validations:
311
- required: false
312
- - type: input
313
- id: translation-filledRectanglePen
314
- attributes:
315
- label: "filledRectanglePen"
316
- description: "Translate `Filled rectangle`."
317
- placeholder: "Filled rectangle"
318
- validations:
319
- required: false
320
- - type: input
321
- id: translation-lockRotation
322
- attributes:
323
- label: "lockRotation"
324
- description: "Translate `Lock rotation`."
325
- placeholder: "Lock rotation"
326
- validations:
327
- required: false
328
- - type: input
329
- id: translation-paste
330
- attributes:
331
- label: "paste"
332
- description: "Translate `Paste`."
333
- placeholder: "Paste"
334
- validations:
335
- required: false
336
- - type: input
337
- id: translation-dropdownShown
338
- attributes:
339
- label: "dropdownShown"
340
- description: "Translate ``(toolName) => `Dropdown for ${toolName} shown` ``."
341
- placeholder: "(toolName) => `Dropdown for ${toolName} shown`"
342
- validations:
343
- required: false
344
- - type: input
345
- id: translation-dropdownHidden
346
- attributes:
347
- label: "dropdownHidden"
348
- description: "Translate ``(toolName) => `Dropdown for ${toolName} hidden` ``."
349
- placeholder: "(toolName) => `Dropdown for ${toolName} hidden`"
350
- validations:
351
- required: false
352
- - type: input
353
- id: translation-zoomLevel
354
- attributes:
355
- label: "zoomLevel"
356
- description: "Translate ``(zoomPercent) => `Zoom: ${zoomPercent}%` ``."
357
- placeholder: "(zoomPercent) => `Zoom: ${zoomPercent}%`"
358
- validations:
359
- required: false
360
- - type: input
361
- id: translation-colorChangedAnnouncement
362
- attributes:
363
- label: "colorChangedAnnouncement"
364
- description: "Translate ``(color) => `Color changed to ${color}` ``."
365
- placeholder: "(color) => `Color changed to ${color}`"
366
- validations:
367
- required: false
368
- - type: input
369
- id: translation-imageSize
370
- attributes:
371
- label: "imageSize"
372
- description: "Translate ``(size, units) => `Image size: ${size} ${units}` ``."
373
- placeholder: "(size, units) => `Image size: ${size} ${units}`"
374
- validations:
375
- required: false
376
- - type: input
377
- id: translation-errorImageHasZeroSize
378
- attributes:
379
- label: "errorImageHasZeroSize"
380
- description: "Translate `Error: Image has zero size`."
381
- placeholder: "Error: Image has zero size"
382
- validations:
383
- required: false
384
- - type: input
385
- id: translation-imageLoadError
386
- attributes:
387
- label: "imageLoadError"
388
- description: "Translate ``(message) => `Error loading image: ${message}` ``."
389
- placeholder: "(message) => `Error loading image: ${message}`"
390
- validations:
391
- required: false
392
- - type: input
393
- id: translation-penTool
394
- attributes:
395
- label: "penTool"
396
- description: "Translate ``(penId) => `Pen ${penId}` ``."
397
- placeholder: "(penId) => `Pen ${penId}`"
398
- validations:
399
- required: false
400
- - type: input
401
- id: translation-selectionTool
402
- attributes:
403
- label: "selectionTool"
404
- description: "Translate `Selection`."
405
- placeholder: "Selection"
406
- validations:
407
- required: false
408
- - type: input
409
- id: translation-selectAllTool
410
- attributes:
411
- label: "selectAllTool"
412
- description: "Translate `Select all shortcut`."
413
- placeholder: "Select all shortcut"
414
- validations:
415
- required: false
416
- - type: input
417
- id: translation-eraserTool
418
- attributes:
419
- label: "eraserTool"
420
- description: "Translate `Eraser`."
421
- placeholder: "Eraser"
422
- validations:
423
- required: false
424
- - type: input
425
- id: translation-touchPanTool
426
- attributes:
427
- label: "touchPanTool"
428
- description: "Translate `Touch panning`."
429
- placeholder: "Touch panning"
430
- validations:
431
- required: false
432
- - type: input
433
- id: translation-twoFingerPanZoomTool
434
- attributes:
435
- label: "twoFingerPanZoomTool"
436
- description: "Translate `Panning and zooming`."
437
- placeholder: "Panning and zooming"
438
- validations:
439
- required: false
440
- - type: input
441
- id: translation-undoRedoTool
442
- attributes:
443
- label: "undoRedoTool"
444
- description: "Translate `Undo/Redo`."
445
- placeholder: "Undo/Redo"
446
- validations:
447
- required: false
448
- - type: input
449
- id: translation-rightClickDragPanTool
450
- attributes:
451
- label: "rightClickDragPanTool"
452
- description: "Translate `Right-click drag`."
453
- placeholder: "Right-click drag"
454
- validations:
455
- required: false
456
- - type: input
457
- id: translation-pipetteTool
458
- attributes:
459
- label: "pipetteTool"
460
- description: "Translate `Pick color from screen`."
461
- placeholder: "Pick color from screen"
462
- validations:
463
- required: false
464
- - type: input
465
- id: translation-keyboardPanZoom
466
- attributes:
467
- label: "keyboardPanZoom"
468
- description: "Translate `Keyboard pan/zoom shortcuts`."
469
- placeholder: "Keyboard pan/zoom shortcuts"
470
- validations:
471
- required: false
472
- - type: input
473
- id: translation-textTool
474
- attributes:
475
- label: "textTool"
476
- description: "Translate `Text`."
477
- placeholder: "Text"
478
- validations:
479
- required: false
480
- - type: input
481
- id: translation-enterTextToInsert
482
- attributes:
483
- label: "enterTextToInsert"
484
- description: "Translate `Text to insert`."
485
- placeholder: "Text to insert"
486
- validations:
487
- required: false
488
- - type: input
489
- id: translation-changeTool
490
- attributes:
491
- label: "changeTool"
492
- description: "Translate `Change tool`."
493
- placeholder: "Change tool"
494
- validations:
495
- required: false
496
- - type: input
497
- id: translation-pasteHandler
498
- attributes:
499
- label: "pasteHandler"
500
- description: "Translate `Copy paste handler`."
501
- placeholder: "Copy paste handler"
502
- validations:
503
- required: false
504
- - type: input
505
- id: translation-findLabel
506
- attributes:
507
- label: "findLabel"
508
- description: "Translate `Find`."
509
- placeholder: "Find"
510
- validations:
511
- required: false
512
- - type: input
513
- id: translation-toNextMatch
514
- attributes:
515
- label: "toNextMatch"
516
- description: "Translate `Next`."
517
- placeholder: "Next"
518
- validations:
519
- required: false
520
- - type: input
521
- id: translation-closeFindDialog
522
- attributes:
523
- label: "closeFindDialog"
524
- description: "Translate `Close`."
525
- placeholder: "Close"
526
- validations:
527
- required: false
528
- - type: input
529
- id: translation-findDialogShown
530
- attributes:
531
- label: "findDialogShown"
532
- description: "Translate `Find dialog shown`."
533
- placeholder: "Find dialog shown"
534
- validations:
535
- required: false
536
- - type: input
537
- id: translation-findDialogHidden
538
- attributes:
539
- label: "findDialogHidden"
540
- description: "Translate `Find dialog hidden`."
541
- placeholder: "Find dialog hidden"
542
- validations:
543
- required: false
544
- - type: input
545
- id: translation-focusedFoundText
546
- attributes:
547
- label: "focusedFoundText"
548
- description: "Translate ``(matchIdx, totalMatches) => `Viewing match ${matchIdx} of ${totalMatches}` ``."
549
- placeholder: "(matchIdx, totalMatches) => `Viewing match ${matchIdx} of ${totalMatches}`"
550
- validations:
551
- required: false
552
- - type: input
553
- id: translation-anyDevicePanning
554
- attributes:
555
- label: "anyDevicePanning"
556
- description: "Translate `Any device panning`."
557
- placeholder: "Any device panning"
558
- validations:
559
- required: false
560
- - type: input
561
- id: translation-copied
562
- attributes:
563
- label: "copied"
564
- description: "Translate ``(count, description) => `Copied ${count} ${description}` ``."
565
- placeholder: "(count, description) => `Copied ${count} ${description}`"
566
- validations:
567
- required: false
568
- - type: input
569
- id: translation-pasted
570
- attributes:
571
- label: "pasted"
572
- description: "Translate ``(count, description) => `Pasted ${count} ${description}` ``."
573
- placeholder: "(count, description) => `Pasted ${count} ${description}`"
574
- validations:
575
- required: false
576
- - type: input
577
- id: translation-toolEnabledAnnouncement
578
- attributes:
579
- label: "toolEnabledAnnouncement"
580
- description: "Translate ``(toolName) => `${toolName} enabled` ``."
581
- placeholder: "(toolName) => `${toolName} enabled`"
582
- validations:
583
- required: false
584
- - type: input
585
- id: translation-toolDisabledAnnouncement
586
- attributes:
587
- label: "toolDisabledAnnouncement"
588
- description: "Translate ``(toolName) => `${toolName} disabled` ``."
589
- placeholder: "(toolName) => `${toolName} disabled`"
590
- validations:
591
- required: false
592
- - type: input
593
- id: translation-updatedViewport
594
- attributes:
595
- label: "updatedViewport"
596
- description: "Translate `Transformed Viewport`."
597
- placeholder: "Transformed Viewport"
598
- validations:
599
- required: false
600
- - type: input
601
- id: translation-transformedElements
602
- attributes:
603
- label: "transformedElements"
604
- description: "Translate ``(elemCount) => `Transformed ${elemCount} element${elemCount === 1 ? '' : 's'}` ``."
605
- placeholder: "(elemCount) => `Transformed ${elemCount} element${elemCount === 1 ? '' : 's'}`"
606
- validations:
607
- required: false
608
- - type: input
609
- id: translation-resizeOutputCommand
610
- attributes:
611
- label: "resizeOutputCommand"
612
- description: "Translate ``(newSize) => `Resized image to ${newSize.w}x${newSize.h}` ``."
613
- placeholder: "(newSize) => `Resized image to ${newSize.w}x${newSize.h}`"
614
- validations:
615
- required: false
616
- - type: input
617
- id: translation-addElementAction
618
- attributes:
619
- label: "addElementAction"
620
- description: "Translate ``(componentDescription) => `Added ${componentDescription}` ``."
621
- placeholder: "(componentDescription) => `Added ${componentDescription}`"
622
- validations:
623
- required: false
624
- - type: input
625
- id: translation-eraseAction
626
- attributes:
627
- label: "eraseAction"
628
- description: "Translate ``(componentDescription, numElems) => `Erased ${numElems} ${componentDescription}` ``."
629
- placeholder: "(componentDescription, numElems) => `Erased ${numElems} ${componentDescription}`"
630
- validations:
631
- required: false
632
- - type: input
633
- id: translation-duplicateAction
634
- attributes:
635
- label: "duplicateAction"
636
- description: "Translate ``(componentDescription, numElems) => `Duplicated ${numElems} ${componentDescription}` ``."
637
- placeholder: "(componentDescription, numElems) => `Duplicated ${numElems} ${componentDescription}`"
638
- validations:
639
- required: false
640
- - type: input
641
- id: translation-unionOf
642
- attributes:
643
- label: "unionOf"
644
- description: "Translate ``(actionDescription, actionCount) => `Union: ${actionCount} ${actionDescription}` ``."
645
- placeholder: "(actionDescription, actionCount) => `Union: ${actionCount} ${actionDescription}`"
646
- validations:
647
- required: false
648
- - type: input
649
- id: translation-inverseOf
650
- attributes:
651
- label: "inverseOf"
652
- description: "Translate ``(actionDescription) => `Inverse of ${actionDescription}` ``."
653
- placeholder: "(actionDescription) => `Inverse of ${actionDescription}`"
654
- validations:
655
- required: false
656
- - type: input
657
- id: translation-elements
658
- attributes:
659
- label: "elements"
660
- description: "Translate `Elements`."
661
- placeholder: "Elements"
662
- validations:
663
- required: false
664
- - type: input
665
- id: translation-erasedNoElements
666
- attributes:
667
- label: "erasedNoElements"
668
- description: "Translate `Erased nothing`."
669
- placeholder: "Erased nothing"
670
- validations:
671
- required: false
672
- - type: input
673
- id: translation-duplicatedNoElements
674
- attributes:
675
- label: "duplicatedNoElements"
676
- description: "Translate `Duplicated nothing`."
677
- placeholder: "Duplicated nothing"
678
- validations:
679
- required: false
680
- - type: input
681
- id: translation-rotatedBy
682
- attributes:
683
- label: "rotatedBy"
684
- description: "Translate ``(degrees) => `Rotated by ${Math.abs(degrees)} degrees ${degrees < 0 ? 'clockwise' : 'counter-clockwise'}` ``."
685
- placeholder: "(degrees) => `Rotated by ${Math.abs(degrees)} degrees ${degrees < 0 ? 'clockwise' : 'counter-clockwise'}`"
686
- validations:
687
- required: false
688
- - type: input
689
- id: translation-movedLeft
690
- attributes:
691
- label: "movedLeft"
692
- description: "Translate `Moved left`."
693
- placeholder: "Moved left"
694
- validations:
695
- required: false
696
- - type: input
697
- id: translation-movedUp
698
- attributes:
699
- label: "movedUp"
700
- description: "Translate `Moved up`."
701
- placeholder: "Moved up"
702
- validations:
703
- required: false
704
- - type: input
705
- id: translation-movedDown
706
- attributes:
707
- label: "movedDown"
708
- description: "Translate `Moved down`."
709
- placeholder: "Moved down"
710
- validations:
711
- required: false
712
- - type: input
713
- id: translation-movedRight
714
- attributes:
715
- label: "movedRight"
716
- description: "Translate `Moved right`."
717
- placeholder: "Moved right"
718
- validations:
719
- required: false
720
- - type: input
721
- id: translation-zoomedOut
722
- attributes:
723
- label: "zoomedOut"
724
- description: "Translate `Zoomed out`."
725
- placeholder: "Zoomed out"
726
- validations:
727
- required: false
728
- - type: input
729
- id: translation-zoomedIn
730
- attributes:
731
- label: "zoomedIn"
732
- description: "Translate `Zoomed in`."
733
- placeholder: "Zoomed in"
734
- validations:
735
- required: false
736
- - type: input
737
- id: translation-selectedElements
738
- attributes:
739
- label: "selectedElements"
740
- description: "Translate ``(count) => `Selected ${count} element${count === 1 ? '' : 's'}` ``."
741
- placeholder: "(count) => `Selected ${count} element${count === 1 ? '' : 's'}`"
742
- validations:
743
- required: false
744
- - type: input
745
- id: translation-unlabeledImageNode
746
- attributes:
747
- label: "unlabeledImageNode"
748
- description: "Translate `Unlabeled image`."
749
- placeholder: "Unlabeled image"
750
- validations:
751
- required: false
752
- - type: input
753
- id: translation-stroke
754
- attributes:
755
- label: "stroke"
756
- description: "Translate `Stroke`."
757
- placeholder: "Stroke"
758
- validations:
759
- required: false
760
- - type: input
761
- id: translation-svgObject
762
- attributes:
763
- label: "svgObject"
764
- description: "Translate `SVG Object`."
765
- placeholder: "SVG Object"
766
- validations:
767
- required: false
768
- - type: input
769
- id: translation-restyledElements
770
- attributes:
771
- label: "restyledElements"
772
- description: "Translate `Restyled elements`."
773
- placeholder: "Restyled elements"
774
- validations:
775
- required: false
776
- - type: input
777
- id: translation-emptyBackground
778
- attributes:
779
- label: "emptyBackground"
780
- description: "Translate `Empty background`."
781
- placeholder: "Empty background"
782
- validations:
783
- required: false
784
- - type: input
785
- id: translation-filledBackgroundWithColor
786
- attributes:
787
- label: "filledBackgroundWithColor"
788
- description: "Translate ``(color) => `Filled background (${color})` ``."
789
- placeholder: "(color) => `Filled background (${color})`"
790
- validations:
791
- required: false
792
- - type: input
793
- id: translation-text
794
- attributes:
795
- label: "text"
796
- description: "Translate ``(text) => `Text object: ${text}` ``."
797
- placeholder: "(text) => `Text object: ${text}`"
798
- validations:
799
- required: false
800
- - type: input
801
- id: translation-imageNode
802
- attributes:
803
- label: "imageNode"
804
- description: "Translate ``(label) => `Image: ${label}` ``."
805
- placeholder: "(label) => `Image: ${label}`"
806
- validations:
807
- required: false
808
- - type: input
809
- id: translation-pathNodeCount
810
- attributes:
811
- label: "pathNodeCount"
812
- description: "Translate ``(count) => `There are ${count} visible path objects.` ``."
813
- placeholder: "(count) => `There are ${count} visible path objects.`"
814
- validations:
815
- required: false
816
- - type: input
817
- id: translation-textNodeCount
818
- attributes:
819
- label: "textNodeCount"
820
- description: "Translate ``(count) => `There are ${count} visible text nodes.` ``."
821
- placeholder: "(count) => `There are ${count} visible text nodes.`"
822
- validations:
823
- required: false
824
- - type: input
825
- id: translation-imageNodeCount
826
- attributes:
827
- label: "imageNodeCount"
828
- description: "Translate ``(nodeCount) => `There are ${nodeCount} visible image nodes.` ``."
829
- placeholder: "(nodeCount) => `There are ${nodeCount} visible image nodes.`"
830
- validations:
831
- required: false
832
- - type: input
833
- id: translation-textNode
834
- attributes:
835
- label: "textNode"
836
- description: "Translate ``(content) => `Text: ${content}` ``."
837
- placeholder: "(content) => `Text: ${content}`"
838
- validations:
839
- required: false
840
- - type: input
841
- id: translation-rerenderAsText
842
- attributes:
843
- label: "rerenderAsText"
844
- description: "Translate `Re-render as text`."
845
- placeholder: "Re-render as text"
846
- validations:
847
- required: false
848
- - type: input
849
- id: translation-accessibilityInputInstructions
850
- attributes:
851
- label: "accessibilityInputInstructions"
852
- description: "Translate `Press \"t\" to read the contents of the viewport as text. Use the arrow keys to move the viewport, click and drag to draw strokes. Press \"w\" to zoom in and \"s\" to zoom out.`."
853
- placeholder: "Press \"t\" to read the contents of the viewport as text. Use the arrow keys to move the viewport, click and drag to draw strokes. Press \"w\" to zoom in and \"s\" to zoom out."
854
- validations:
855
- required: false
856
- - type: input
857
- id: translation-loading
858
- attributes:
859
- label: "loading"
860
- description: "Translate ``(percentage) => `Loading ${percentage}%...` ``."
861
- placeholder: "(percentage) => `Loading ${percentage}%...`"
862
- validations:
863
- required: false
864
- - type: input
865
- id: translation-imageEditor
866
- attributes:
867
- label: "imageEditor"
868
- description: "Translate `Image Editor`."
869
- placeholder: "Image Editor"
870
- validations:
871
- required: false
872
- - type: input
873
- id: translation-doneLoading
874
- attributes:
875
- label: "doneLoading"
876
- description: "Translate `Done loading`."
877
- placeholder: "Done loading"
878
- validations:
879
- required: false
880
- - type: input
881
- id: translation-undoAnnouncement
882
- attributes:
883
- label: "undoAnnouncement"
884
- description: "Translate ``(commandDescription) => `Undid ${commandDescription}` ``."
885
- placeholder: "(commandDescription) => `Undid ${commandDescription}`"
886
- validations:
887
- required: false
888
- - type: input
889
- id: translation-redoAnnouncement
890
- attributes:
891
- label: "redoAnnouncement"
892
- description: "Translate ``(commandDescription) => `Redid ${commandDescription}` ``."
893
- placeholder: "(commandDescription) => `Redid ${commandDescription}`"
894
- validations:
895
- required: false
896
- - type: textarea
897
- id: additional-comments
898
- attributes:
899
- label: "Additional information"
900
- placeholder: "Any additional information/comments on the translation can go here."
901
- validations:
902
- required: false