Releases: personalizedrefrigerator/js-draw
Releases · personalizedrefrigerator/js-draw
v1.28.0
1.28.0
- API changes:
- New API for loading custom components from SVG (
SVGLoaderPlugin
, see the "Custom components" guide). - For consistency, renamed
Elements
->Components
in severalEditorImage
methods. For example,getAllElements
was renamed togetAllComponents
.- The old spellings can still be used, but are deprecated.
- New APIs for creating
StrokeComponent
s (staticStroke.fromStroked
,Stroke.fromFilled
).
- New API for loading custom components from SVG (
- Bug fixes
- Collaborative editing: Fixed an issue where
Duplicate
commands caused editors to become out of sync (commit bee6451).- Note: This change adjusts how
Duplicate
commands are serialized. Although new editors can still deserialize oldDuplicate
commands, old editors will be unable to deserializeDuplicate
commands created by new editors.
- Note: This change adjusts how
- Fixed two incorrect uses of
aria
(commits ffa1ca7, 56975a1). - AbstractRenderer API: Fixed
.pushTransform
and.popTransform
were not applied to paths in some cases (commit 370a5b1).
- Collaborative editing: Fixed an issue where
v1.27.2
v1.27.1
v1.26.0
1.26.0
- Bug fixes and improvements
- Selection tool: Improved keyboard focus behavior when opening and closing the selection menu.
- Selection tool: Increased touch target size for the selection menu button.
- Text tool: Fixed text tool edits existing text in some cases when it shouldn't.
- API: Fixed
EditorImage.getLeavesIntersectingRegion
sometimes included items with bounding boxes that do not intersect the target region. - Collaborative editing: Selection tool: Fix duplications created with ctrl+d while moving the selection failed to properly sync.
- Other changes
- Selection UI: Updated the selection overflow menu icon to use IconProvider as the icon source.
- Update license year
- Build system: Migrated from Webpack to ESBuild.
v1.25.0
1.25.0
- New APIs
- Allow overriding the default global clipboard API using
EditorSettings
.
- Allow overriding the default global clipboard API using
- Bug fixes
- Prevent enter from finalizing
TextComponent
s if composing.
- Prevent enter from finalizing
- Other changes
- Allow
text/plain
clipboard data to be auto-detected as SVG when pasting.
- Allow
v1.24.2
1.24.2
- Bug fixes
- Fixed: Nested text components were not rendered near the default maximum zoom level.
- Optimized regular expression in
Mat33
.
v1.24.1
v1.24.0
v1.23.1
1.23.0, 1.23.1
- Features
@js-draw/math
: AddedColor4.fromRGBArray
.@js-draw/material-icons
: Added option to create material icons for a specific instance/version ofjs-draw
. This should allow including@js-draw/material-icons
as a bundle directly from a CDN.
- Bug fixes
- Fix notices specified in editor settings were not shown in the about dialog (commit)
- Other changes
v1.23.0
1.23.0
- Features
@js-draw/math
: AddedColor4.fromRGBArray
.@js-draw/material-icons
: Added option to create material icons for a specific instance/version ofjs-draw
. This should allow including@js-draw/material-icons
as a bundle directly from a CDN.
- Bug fixes
- Fix notices specified in editor settings were not shown in the about dialog (commit)
- Other changes