Skip to content

Releases: personalizedrefrigerator/js-draw

v1.22.0

12 Nov 06:51
Compare
Choose a tag to compare

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 use document.execCommand. Additionally, if document.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.
  • 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 with prettier.

Full Changelog: v1.21.3...v1.22.0

v1.21.3

23 Sep 18:17
Compare
Choose a tag to compare

1.21.3

  • Bug fixes
    • Fix tools/ directory incorrectly in .npmignore.

v1.21.2

23 Sep 18:07
Compare
Choose a tag to compare
  • 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

17 Sep 03:59
Compare
Choose a tag to compare
  • 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 empty href cause rendering errors.

v1.20.3

04 Jun 16:46
Compare
Choose a tag to compare

v1.20.3

  • Bug fixes
    • Fix importing js-draw, js-draw/Editor, and other imports that include SVGLoader or InsertImageWidget 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.

Full Changelog: v1.20.2...v1.20.3

v1.20.2

20 May 02:42
Compare
Choose a tag to compare

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

19 May 03:56
Compare
Choose a tag to compare

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

17 May 00:18
Compare
Choose a tag to compare

What's changed?

  • Features
  • Improvements
    • Improve performance when loading large images.

Full Changelog: v1.19.1...v1.20.0

v1.19.1

15 May 15:42
Compare
Choose a tag to compare

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.
  • 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 Vec2s in memory.

Full Changelog: v1.18.0...v1.19.1

v1.19.0

15 May 15:39
Compare
Choose a tag to compare

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.
  • 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 Vec2s in memory.

Full Changelog: v1.18.0...v1.19.0