Releases: personalizedrefrigerator/js-draw
Releases · personalizedrefrigerator/js-draw
v1.22.0
What's Changed
- Features
- Improved copy/paste error handling. If copy/paste from a UI button with the clipboard API fails,
js-draw
now attempts to usedocument.execCommand
. Additionally, ifdocument.execCommand
fails, a section that allows manually copying images has been added to the error dialog. - Make rectangle, line, and arrow shape builders public. This allows selecting all built-in pen styles programmatically. For details, see the Pen.setStrokeFactory documentation.
- Increased selection popover menu button size.
- Improved copy/paste error handling. If copy/paste from a UI button with the clipboard API fails,
- Bug fixes
- Pen tool menu: Hide "shape" or "pen type" selectors when they lack content.
- Fix error when calling .flatten on a canvas-backed Display immediately after creating an editor.
- Other changes
- Formatted the
js-draw
codebase withprettier
.
- Formatted the
Full Changelog: v1.21.3...v1.22.0
v1.21.3
1.21.3
- Bug fixes
- Fix
tools/
directory incorrectly in.npmignore
.
- Fix
v1.21.2
- Bug fixes
- Fix copy icon is small when the selection context menu is opened near the screen edge.
- Prevent selection from flashing when opening the context menu by long-pressing outside the selection box.
- Remove from-root imports (
import ... from 'js-draw/...
).
Full Changelog: v1.21.1...v1.21.2
v1.21.1
- Features
- Selection popover menu with copy/paste/duplicate/delete.
- Make selection keyboard shortcuts configurable.
- Add keyboard shortcuts to scale the selection in both X and Y.
- Changes
- Hide selection handles while creating selections.
- Bug fixes
- Fix drawing strokes with stylus devices not marked as primary (#71).
- Fix
<image>
s with an emptyhref
cause rendering errors.
v1.20.3
v1.20.3
- Bug fixes
- Fix importing
js-draw
,js-draw/Editor
, and other imports that includeSVGLoader
orInsertImageWidget
as ES modules (#70). - Fix importing
js-draw/Editor
as a CommonJS module. - Fix rounding size was too large at some zoom levels with the polyline pen.
- Fix importing
Full Changelog: v1.20.2...v1.20.3
v1.20.2
What's changed?
- Bug fix: Image tool: When multiple images are selected, fixes an issue where the ALT text for some images was set to the string
undefined
.
Full Changelog: v1.20.1...v1.20.2
v1.20.1
What's changed?
- Bug fixes
- Image tool: When multiple images are selected, 7968ee3 fixes an issue where the ALT text for the last selected image would be applied to all images.
Full Changelog: v1.20.0...v1.20.1
v1.20.0
What's changed?
- Features
- Added an additional scroll indicator when the image tool displays multiple images.
-
- This works around a lack of scrollbars in Android WebViews.
-
- Added an additional scroll indicator when the image tool displays multiple images.
- Improvements
- Improve performance when loading large images.
Full Changelog: v1.19.1...v1.20.0
v1.19.1
What's Changed
- Slight memory usage improvement by in #68
- Features
- Support adding multiple images at once from the image tool.
- API to support customizing the default selectable fonts.
- (Beta) Image tool: Support specifying a custom file picker.
- See discussion
- Bug fixes
- Possible fix for eraser button not switching to the eraser tool on some devices.
- Fix rendering text with a multi-word font.
- Improvements
- Decrease size of
Vec2
s in memory.
- Decrease size of
Full Changelog: v1.18.0...v1.19.1
v1.19.0
What's Changed
- Slight memory usage improvement in #68
- Features
- Support adding multiple images at once from the image tool.
- API to support customizing the default selectable fonts.
- (Beta) Image tool: Support specifying a custom file picker.
- See discussion
- Bug fixes
- Possible fix for eraser button not switching to the eraser tool on some devices.
- Fix rendering text with a multi-word font.
- Improvements
- Decrease size of
Vec2
s in memory.
- Decrease size of
Full Changelog: v1.18.0...v1.19.0