Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

js-draw

Package Overview
Dependencies
Maintainers
0
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-draw - npm Package Versions

1
12

1.0.0

Diff

Changelog

Source

1.0.0

Special thanks to:

  • Joplin SAS for supporting the development of this release
  • Marta Le Colloec (@MartaLC) for designing the new toolbar!

Breaking changes (see the migration guide)

  • The --secondary-foreground-color and --secondary-background-color are no longer used for selected items. Use --selection-foreground-color and --selection-background-color instead.
  • The Pen constructor now accepts parameters in a different format — the PenStyle should contain the pen factory.
  • Timestamps in Pointers and StrokeDataPoints use performance.now instead of Date.now.
  • A more specific selector than .imageEditorContainer is now required to override the width and height of an editor. Use .js-draw.imageEditorContainer or body .imageEditorContainer.

Other changes

  • New default toolbar (see makeEdgeToolbar).
  • New material icon pack
  • Preserve <g> element parents when writing SVGs.
  • Fix: Editor thinks control key is still pressed after shortcuts like ctrl+Tab that defocus the editor before a keyup event is sent for ctrl.
personalizedrefrigerator
published 0.25.1 •

Changelog

Source

0.25.1

  • Bug fixes
    • Fixes a bug in old versions of Chromium-based browsers: Strokes disappear on left mouse button up.
personalizedrefrigerator
published 0.25.0 •

Changelog

Source

0.25.0

  • Bug fixes
    • Fix strokes sometimes not scaling correctly when zooming.
    • Possible fix for pen strokes being canceled on some devices (#23).
  • Other changes
    • New UI for pen subtypes.
personalizedrefrigerator
published 0.24.1 •

Changelog

Source

0.24.1

  • Bug fixes
    • Fixed a regression from v0.24.0: Some key combinations were recognized incorrectly. For example, r and R both, by default, caused the screen to rotate in the same direction (rather than opposite directions).
personalizedrefrigerator
published 0.24.0 •

Changelog

Source

0.24.0

  • Bug fixes
    • Fix italic <text ...></text> objects not supported.
  • Features
    • Support rendering relatively positioned text loaded from SVGs.
    • New drawable shape: circle. (Note, however, that SVG ellipses/elliptical arcs are not yet suppported.)
    • Exposes an API that allows configuration of some keyboard shortcuts.
personalizedrefrigerator
published 0.23.1 •

Changelog

Source

0.23.1

  • Bug fixes
    • Fix regression: overflow menu in toolbar could be pushed off screen on window resize.
    • Fix animations running despite prefers-reduced-motion being set to reduce.
    • Fix TextWidget content duplicating when added to/removed from overflow widget.
personalizedrefrigerator
published 0.23.0 •

Changelog

Source

0.23.0

  • Bug fixes
    • Fix background disappearing when near maximum zoom in certain images.
    • Fix default pen size not matching zoom when repeatedly drawing dots.
  • Features/enhancements
    • Animations for showing/hiding dropdowns in the toolbar.
    • Lock drawing/selection transformation to the x or y axis when holding shift
personalizedrefrigerator
published 0.22.1 •

Changelog

Source

0.22.1

  • Bug fixes
    • Fix color picker not having keyboard focus on open.
    • Fix screen readers not reading whether a toggle button was enabled/disabled.
    • Work around a command serialization/deserialization issue by caching the serialized form of commands in some instances.
personalizedrefrigerator
published 0.22.0 •

Changelog

Source

0.22.0

  • Improved German localization (thanks to @Mr-Kanister)
  • Behavior changes
    • Closing the color picker:
      • Don't draw when the user clicks on the canvas to close the color picker. Drawing is still done if the user clicks and drags.
  • Bug fixes
    • Fix eraser flickering while erasing strokes.
    • Fix in-progress strokes flickering during collaborative editing when incoming strokes are added to the editor.
personalizedrefrigerator
published 0.21.0 •

Changelog

Source

0.21.0

  • Color picker (adjustments to integration of the Coloris library)
    • Allow the user to start drawing without an extra click when closing the color picker.
    • Increase the size of sliders' touch targets for easier selection.
  • Adjust stroke smoothing: Strokes should now be closer to user input.
  • Erasing and selecting: Use the edge rather than the center of strokes to determine eraser/selection intersection.
    • This was previously only the case for filled strokes (as produced by the flat-tip pen).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc