js-draw 0.11.2 → 0.12.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 (49) hide show
  1. package/.github/workflows/github-pages.yml +2 -0
  2. package/CHANGELOG.md +12 -0
  3. package/dist/bundle.js +1 -1
  4. package/dist/src/Color4.d.ts +1 -0
  5. package/dist/src/Color4.js +1 -0
  6. package/dist/src/Editor.js +4 -5
  7. package/dist/src/EditorImage.js +1 -11
  8. package/dist/src/SVGLoader.js +43 -35
  9. package/dist/src/components/AbstractComponent.d.ts +1 -0
  10. package/dist/src/components/AbstractComponent.js +15 -0
  11. package/dist/src/math/Rect2.d.ts +1 -0
  12. package/dist/src/math/Rect2.js +20 -0
  13. package/dist/src/toolbar/HTMLToolbar.d.ts +51 -0
  14. package/dist/src/toolbar/HTMLToolbar.js +63 -5
  15. package/dist/src/toolbar/IconProvider.d.ts +1 -1
  16. package/dist/src/toolbar/IconProvider.js +38 -9
  17. package/dist/src/toolbar/widgets/EraserToolWidget.d.ts +8 -1
  18. package/dist/src/toolbar/widgets/EraserToolWidget.js +45 -4
  19. package/dist/src/toolbar/widgets/PenToolWidget.js +2 -2
  20. package/dist/src/toolbar/widgets/SelectionToolWidget.js +12 -3
  21. package/dist/src/tools/Eraser.d.ts +10 -1
  22. package/dist/src/tools/Eraser.js +65 -13
  23. package/dist/src/tools/SelectionTool/Selection.d.ts +4 -1
  24. package/dist/src/tools/SelectionTool/Selection.js +64 -27
  25. package/dist/src/tools/SelectionTool/SelectionTool.js +3 -1
  26. package/dist/src/tools/TextTool.js +21 -6
  27. package/dist/src/tools/ToolController.js +3 -3
  28. package/dist/src/types.d.ts +2 -2
  29. package/package.json +1 -1
  30. package/src/Color4.ts +1 -0
  31. package/src/Editor.ts +3 -4
  32. package/src/EditorImage.ts +1 -11
  33. package/src/SVGLoader.ts +14 -14
  34. package/src/components/AbstractComponent.ts +19 -0
  35. package/src/math/Rect2.test.ts +22 -0
  36. package/src/math/Rect2.ts +26 -0
  37. package/src/toolbar/HTMLToolbar.ts +81 -5
  38. package/src/toolbar/IconProvider.ts +39 -9
  39. package/src/toolbar/widgets/EraserToolWidget.ts +64 -5
  40. package/src/toolbar/widgets/PenToolWidget.ts +2 -2
  41. package/src/toolbar/widgets/SelectionToolWidget.ts +2 -2
  42. package/src/tools/Eraser.test.ts +79 -0
  43. package/src/tools/Eraser.ts +81 -17
  44. package/src/tools/SelectionTool/Selection.ts +73 -23
  45. package/src/tools/SelectionTool/SelectionTool.test.ts +138 -21
  46. package/src/tools/SelectionTool/SelectionTool.ts +3 -1
  47. package/src/tools/TextTool.ts +26 -8
  48. package/src/tools/ToolController.ts +3 -3
  49. package/src/types.ts +2 -2
@@ -42,6 +42,8 @@ jobs:
42
42
  run: yarn doc
43
43
  - name: Build
44
44
  run: cd docs/example && yarn install && yarn build
45
+ - name: Remove flies that don't need to be uploaded
46
+ run: cd docs/ && rm -rf example*/node_modules/
45
47
  - name: Setup Pages
46
48
  uses: actions/configure-pages@v2
47
49
  - name: Upload artifact
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # 0.12.0
2
+ * Make the eraser's size adjustable.
3
+ * Bug fixes:
4
+ * Fixed a regression with the selection tool where pressing `Ctrl+D` while dragging the selection wouldn't duplicate at the selection's current location.
5
+ * Fixed a regression where, in some browsers (Chrome, but not Firefox), editing a text component would duplicate that component.
6
+
7
+ # 0.11.3
8
+ * Adjust default pen sizes.
9
+ * Fix arrow/line icons being difficult to see with very thin stroke sizes.
10
+ * Potential fix for content of current text input being discarded when clicking "save".
11
+ * Loading images: Minor performance improvement.
12
+
1
13
  # 0.11.2
2
14
  * Fix eraser regression: Erasing multiple strokes, one after another, caused strokes to un-erase.
3
15