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.
- package/.github/workflows/github-pages.yml +2 -0
- package/CHANGELOG.md +12 -0
- package/dist/bundle.js +1 -1
- package/dist/src/Color4.d.ts +1 -0
- package/dist/src/Color4.js +1 -0
- package/dist/src/Editor.js +4 -5
- package/dist/src/EditorImage.js +1 -11
- package/dist/src/SVGLoader.js +43 -35
- package/dist/src/components/AbstractComponent.d.ts +1 -0
- package/dist/src/components/AbstractComponent.js +15 -0
- package/dist/src/math/Rect2.d.ts +1 -0
- package/dist/src/math/Rect2.js +20 -0
- package/dist/src/toolbar/HTMLToolbar.d.ts +51 -0
- package/dist/src/toolbar/HTMLToolbar.js +63 -5
- package/dist/src/toolbar/IconProvider.d.ts +1 -1
- package/dist/src/toolbar/IconProvider.js +38 -9
- package/dist/src/toolbar/widgets/EraserToolWidget.d.ts +8 -1
- package/dist/src/toolbar/widgets/EraserToolWidget.js +45 -4
- package/dist/src/toolbar/widgets/PenToolWidget.js +2 -2
- package/dist/src/toolbar/widgets/SelectionToolWidget.js +12 -3
- package/dist/src/tools/Eraser.d.ts +10 -1
- package/dist/src/tools/Eraser.js +65 -13
- package/dist/src/tools/SelectionTool/Selection.d.ts +4 -1
- package/dist/src/tools/SelectionTool/Selection.js +64 -27
- package/dist/src/tools/SelectionTool/SelectionTool.js +3 -1
- package/dist/src/tools/TextTool.js +21 -6
- package/dist/src/tools/ToolController.js +3 -3
- package/dist/src/types.d.ts +2 -2
- package/package.json +1 -1
- package/src/Color4.ts +1 -0
- package/src/Editor.ts +3 -4
- package/src/EditorImage.ts +1 -11
- package/src/SVGLoader.ts +14 -14
- package/src/components/AbstractComponent.ts +19 -0
- package/src/math/Rect2.test.ts +22 -0
- package/src/math/Rect2.ts +26 -0
- package/src/toolbar/HTMLToolbar.ts +81 -5
- package/src/toolbar/IconProvider.ts +39 -9
- package/src/toolbar/widgets/EraserToolWidget.ts +64 -5
- package/src/toolbar/widgets/PenToolWidget.ts +2 -2
- package/src/toolbar/widgets/SelectionToolWidget.ts +2 -2
- package/src/tools/Eraser.test.ts +79 -0
- package/src/tools/Eraser.ts +81 -17
- package/src/tools/SelectionTool/Selection.ts +73 -23
- package/src/tools/SelectionTool/SelectionTool.test.ts +138 -21
- package/src/tools/SelectionTool/SelectionTool.ts +3 -1
- package/src/tools/TextTool.ts +26 -8
- package/src/tools/ToolController.ts +3 -3
- 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
|
|