js-draw 0.14.0 → 0.15.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.
Files changed (88) hide show
  1. package/.github/ISSUE_TEMPLATE/translation.yml +8 -0
  2. package/CHANGELOG.md +8 -1
  3. package/dist/bundle.js +1 -1
  4. package/dist/src/Color4.d.ts +4 -0
  5. package/dist/src/Color4.js +22 -0
  6. package/dist/src/Editor.d.ts +2 -1
  7. package/dist/src/Editor.js +10 -1
  8. package/dist/src/EditorImage.d.ts +1 -0
  9. package/dist/src/EditorImage.js +11 -0
  10. package/dist/src/commands/UnresolvedCommand.d.ts +14 -0
  11. package/dist/src/commands/UnresolvedCommand.js +22 -0
  12. package/dist/src/commands/uniteCommands.js +4 -2
  13. package/dist/src/components/AbstractComponent.d.ts +0 -1
  14. package/dist/src/components/AbstractComponent.js +30 -50
  15. package/dist/src/components/RestylableComponent.d.ts +24 -0
  16. package/dist/src/components/RestylableComponent.js +80 -0
  17. package/dist/src/components/Stroke.d.ts +8 -1
  18. package/dist/src/components/Stroke.js +49 -1
  19. package/dist/src/components/TextComponent.d.ts +10 -10
  20. package/dist/src/components/TextComponent.js +46 -13
  21. package/dist/src/components/lib.d.ts +2 -1
  22. package/dist/src/components/lib.js +2 -1
  23. package/dist/src/components/localization.d.ts +1 -0
  24. package/dist/src/components/localization.js +1 -0
  25. package/dist/src/rendering/TextRenderingStyle.d.ts +23 -0
  26. package/dist/src/rendering/TextRenderingStyle.js +20 -0
  27. package/dist/src/rendering/renderers/AbstractRenderer.d.ts +1 -1
  28. package/dist/src/rendering/renderers/CanvasRenderer.d.ts +1 -1
  29. package/dist/src/rendering/renderers/DummyRenderer.d.ts +1 -1
  30. package/dist/src/rendering/renderers/SVGRenderer.d.ts +1 -1
  31. package/dist/src/rendering/renderers/TextOnlyRenderer.d.ts +1 -1
  32. package/dist/src/toolbar/IconProvider.d.ts +2 -1
  33. package/dist/src/toolbar/IconProvider.js +10 -0
  34. package/dist/src/toolbar/localization.d.ts +1 -0
  35. package/dist/src/toolbar/localization.js +1 -0
  36. package/dist/src/toolbar/widgets/BaseWidget.js +10 -4
  37. package/dist/src/toolbar/widgets/InsertImageWidget.js +2 -1
  38. package/dist/src/toolbar/widgets/SelectionToolWidget.js +77 -1
  39. package/dist/src/tools/Pen.js +2 -2
  40. package/dist/src/tools/SelectionTool/SelectAllShortcutHandler.d.ts +8 -0
  41. package/dist/src/tools/SelectionTool/SelectAllShortcutHandler.js +22 -0
  42. package/dist/src/tools/SelectionTool/Selection.js +1 -1
  43. package/dist/src/tools/SelectionTool/SelectionTool.js +4 -9
  44. package/dist/src/tools/TextTool.d.ts +1 -1
  45. package/dist/src/tools/ToolController.js +2 -0
  46. package/dist/src/tools/lib.d.ts +1 -0
  47. package/dist/src/tools/lib.js +1 -0
  48. package/dist/src/tools/localization.d.ts +1 -0
  49. package/dist/src/tools/localization.js +1 -0
  50. package/package.json +1 -1
  51. package/src/Color4.test.ts +4 -0
  52. package/src/Color4.ts +26 -0
  53. package/src/Editor.toSVG.test.ts +1 -1
  54. package/src/Editor.ts +12 -1
  55. package/src/EditorImage.ts +13 -0
  56. package/src/SVGLoader.ts +2 -1
  57. package/src/commands/UnresolvedCommand.ts +37 -0
  58. package/src/commands/uniteCommands.ts +5 -2
  59. package/src/components/AbstractComponent.ts +36 -61
  60. package/src/components/RestylableComponent.ts +142 -0
  61. package/src/components/Stroke.test.ts +68 -0
  62. package/src/components/Stroke.ts +68 -2
  63. package/src/components/TextComponent.test.ts +56 -2
  64. package/src/components/TextComponent.ts +63 -25
  65. package/src/components/lib.ts +4 -1
  66. package/src/components/localization.ts +3 -0
  67. package/src/math/Rect2.test.ts +18 -6
  68. package/src/rendering/TextRenderingStyle.ts +38 -0
  69. package/src/rendering/renderers/AbstractRenderer.ts +1 -1
  70. package/src/rendering/renderers/CanvasRenderer.ts +2 -1
  71. package/src/rendering/renderers/DummyRenderer.ts +1 -1
  72. package/src/rendering/renderers/SVGRenderer.ts +1 -1
  73. package/src/rendering/renderers/TextOnlyRenderer.ts +1 -1
  74. package/src/toolbar/IconProvider.ts +12 -1
  75. package/src/toolbar/localization.ts +2 -0
  76. package/src/toolbar/widgets/BaseWidget.ts +12 -4
  77. package/src/toolbar/widgets/InsertImageWidget.ts +2 -1
  78. package/src/toolbar/widgets/SelectionToolWidget.ts +95 -1
  79. package/src/tools/PanZoom.test.ts +2 -1
  80. package/src/tools/PasteHandler.ts +1 -1
  81. package/src/tools/Pen.ts +2 -2
  82. package/src/tools/SelectionTool/SelectAllShortcutHandler.ts +28 -0
  83. package/src/tools/SelectionTool/Selection.ts +1 -1
  84. package/src/tools/SelectionTool/SelectionTool.ts +4 -9
  85. package/src/tools/TextTool.ts +2 -1
  86. package/src/tools/ToolController.ts +2 -0
  87. package/src/tools/lib.ts +1 -0
  88. package/src/tools/localization.ts +2 -0
@@ -357,6 +357,14 @@ body:
357
357
  placeholder: "Selection"
358
358
  validations:
359
359
  required: false
360
+ - type: input
361
+ id: translation-selectAllTool
362
+ attributes:
363
+ label: "selectAllTool"
364
+ description: "Translate `Select all shortcut`."
365
+ placeholder: "Select all shortcut"
366
+ validations:
367
+ required: false
360
368
  - type: input
361
369
  id: translation-eraserTool
362
370
  attributes:
package/CHANGELOG.md CHANGED
@@ -1,10 +1,17 @@
1
+ # 0.15.0
2
+ * Adds a "reformat selection" button that allows changing the color of the selection.
3
+ * Bug fixes:
4
+ * Fix ctrl+A not selecting when the selection tool isn't active.
5
+ * Fix ctrl+A selecting text when a toolbar button has focus.
6
+ * Fix incorrect z-order on undo of many-object transform (e.g. dragging objects on top of a background, then undoing, could leave the objects below the background).
7
+
1
8
  # 0.14.0
2
9
  * Adjust default snap distance.
3
10
  * Allow selection tool to mirror objects.
4
11
  * Bug fixes
5
12
  * Allow the meta key (cmd) to activate keyboard shortcuts. (E.g. cmd+a on MacOS should select all).
6
13
  * Fix extra moveTo command being converted to a string with some strokes.
7
- * Fix small icons in newer versions of Safari.
14
+ * Increase size of icons in newer versions of Safari (they had decreased in size).
8
15
 
9
16
  # 0.13.1
10
17
  * Touchscreen panning: Rotation snapping