js-draw 0.16.0 → 0.17.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 +15 -0
- package/dist/bundle.js +1 -1
- package/dist/src/Editor.js +2 -1
- package/dist/src/EditorImage.js +12 -5
- package/dist/src/SVGLoader.js +6 -0
- package/dist/src/UndoRedoHistory.d.ts +2 -3
- package/dist/src/UndoRedoHistory.js +37 -20
- package/dist/src/components/RestylableComponent.js +2 -2
- package/dist/src/components/localization.d.ts +1 -1
- package/dist/src/components/localization.js +1 -1
- package/dist/src/lib.d.ts +1 -0
- package/dist/src/lib.js +1 -0
- package/dist/src/toolbar/HTMLToolbar.d.ts +1 -0
- package/dist/src/toolbar/HTMLToolbar.js +4 -1
- package/dist/src/toolbar/widgets/OverflowWidget.js +6 -0
- package/dist/src/tools/SelectionTool/SelectionTool.js +1 -1
- package/dist/src/types.d.ts +7 -0
- package/dist/src/types.js +7 -0
- package/package.json +1 -1
- package/src/Editor.css +4 -0
- package/src/Editor.ts +3 -1
- package/src/EditorImage.ts +11 -6
- package/src/SVGLoader.test.ts +57 -0
- package/src/SVGLoader.ts +7 -0
- package/src/UndoRedoHistory.ts +28 -23
- package/src/components/RestylableComponent.ts +2 -2
- package/src/components/localization.ts +2 -2
- package/src/lib.ts +1 -0
- package/src/toolbar/HTMLToolbar.ts +6 -1
- package/src/toolbar/toolbar.css +7 -1
- package/src/toolbar/widgets/OverflowWidget.css +20 -2
- package/src/toolbar/widgets/OverflowWidget.ts +9 -0
- package/src/tools/SelectionTool/SelectionTool.ts +1 -1
- package/src/types.ts +11 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
# 0.17.0
|
2
|
+
* Breaking changes
|
3
|
+
- `SerializableCommand::serialize` may no longer serialize accurately when the command to serialize is not on top of the undo/redo stack.
|
4
|
+
* Toolbar overflow menu:
|
5
|
+
- Prefer horizontal menu to veritcal for only 1-2 overflow items.
|
6
|
+
- Prefer wrapping to scrolling.
|
7
|
+
* Bug fixes
|
8
|
+
- Undo/redo events are now consistently fired after the command is initially applied.
|
9
|
+
|
10
|
+
# 0.16.1
|
11
|
+
* Bug fixes
|
12
|
+
- Fix editor not shrinking vertically in Chromium-based browsers with its container.
|
13
|
+
- Fixes an issue where (on some devices), `tspan`s could grow in font-size when loading from an SVG.
|
14
|
+
- Fix spacers not added in the correct locations in the toolbar.
|
15
|
+
|
1
16
|
# 0.16.0
|
2
17
|
* Configurable background color.
|
3
18
|
* Toolbar buttons are moved to an overflow menu instead of creating a second (or third) line of buttons.
|