js-draw 0.4.1 → 0.5.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/CHANGELOG.md +8 -0
- package/dist/bundle.js +1 -1
- package/dist/src/Editor.d.ts +1 -1
- package/dist/src/Editor.js +5 -2
- package/dist/src/components/builders/FreehandLineBuilder.js +1 -1
- package/dist/src/rendering/renderers/SVGRenderer.js +1 -1
- package/dist/src/toolbar/widgets/BaseWidget.d.ts +2 -0
- package/dist/src/toolbar/widgets/BaseWidget.js +15 -0
- package/dist/src/toolbar/widgets/PenToolWidget.d.ts +2 -0
- package/dist/src/toolbar/widgets/PenToolWidget.js +14 -0
- package/dist/src/tools/ToolController.js +2 -0
- package/dist/src/tools/ToolbarShortcutHandler.d.ts +12 -0
- package/dist/src/tools/ToolbarShortcutHandler.js +23 -0
- package/dist/src/tools/lib.d.ts +1 -0
- package/dist/src/tools/lib.js +1 -0
- package/dist/src/types.d.ts +4 -2
- package/package.json +1 -1
- package/src/Editor.ts +6 -2
- package/src/components/builders/FreehandLineBuilder.ts +1 -1
- package/src/rendering/renderers/SVGRenderer.ts +1 -1
- package/src/toolbar/widgets/BaseWidget.ts +19 -1
- package/src/toolbar/widgets/PenToolWidget.ts +18 -1
- package/src/tools/SelectionTool/SelectionTool.css +1 -1
- package/src/tools/ToolController.ts +2 -0
- package/src/tools/ToolbarShortcutHandler.ts +34 -0
- package/src/tools/UndoRedoShortcut.test.ts +3 -0
- package/src/tools/lib.ts +1 -0
- package/src/types.ts +13 -8
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
# 0.5.0
|
2
|
+
* Increase contrast between selection box/background
|
3
|
+
* Keyboard shortcuts
|
4
|
+
* `Ctrl+1` through `Ctrl+9`: Switch pen drawing mode.
|
5
|
+
* For this to work, the `ToolbarShortcutHandler` must be loaded (and the toolbar must also be loaded).
|
6
|
+
* Bug fixes
|
7
|
+
* Fix text shifting away from strokes on paste.
|
8
|
+
|
1
9
|
# 0.4.1
|
2
10
|
* Bug fixes
|
3
11
|
* Fix in-progress strokes occasionally flickering and disappearing.
|