Socket
Socket
Sign inDemoInstall

js-draw

Package Overview
Dependencies
Maintainers
1
Versions
117
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.3.0

Diff

Changelog

Source

1.3.0

  • Features
    • Adds support for images with full-screen backgrounds and no border (see EditorImage.setAutoresizeEnabled). These drawings automatically resize to fit what has been drawn when saved.
    • Scrollbars within the editor. These scrollbars are currently read-only.
  • Bug fixes
    • Fix ctrl+scroll zoom rate is significantly faster than pinch zooming.
    • Fix zoom level jumping when attempting to zoom outside of zoom limits with a touchscreen.
    • Fix elements intersecting the selection rectangle not recognized as selected in some cases.
    • Fix context menu sometimes shown when long-pressing toplevel buttons in the sidebar toolbar (rather than showing the button's tooltip).
  • Other changes
    • Slightly faster loading of large SVGs.
personalizedrefrigerator
published 1.2.2 •

Changelog

Source

1.2.2

  • API fixes
    • Exports pathToRenderable, pathFromRenderable, and pathVisualEquivalent. These functions were renamed in version 1.0.0 and the new versions were not exported.
  • Bug fixes
    • Updates the grid selector widget to use the correct icon foreground for selected items.
personalizedrefrigerator
published 1.2.1 •

Changelog

Source

1.2.1

  • Bug fixes
    • Fix adjustEditorThemeForContrast not ensuring that the selection and the main toolbar background have sufficient contrast.
personalizedrefrigerator
published 1.2.0 •

Changelog

Source

1.2.0

  • Features
    • Added additional Color4 utility functions (fromHSV, fromRGBVector, contrastRatio, and .rgb).
    • Added adjustEditorThemeForContrast function.
  • Other changes
    • Prefers transform to translation when setting the position of the edge toolbar for compatibility with older browsers.
personalizedrefrigerator
published 1.1.0 •

Changelog

Source

1.1.0

  • Features
  • Bug fixes
    • Edge toolbar: Fix edge menu text using incorrect CSS variable (it should use --foreground-color-2 to match --background-color-2).
personalizedrefrigerator
published 1.0.2 •

Changelog

Source

1.0.2

  • Fix .npmignore allowing some unnecessary files.
personalizedrefrigerator
published 1.0.1 •

Changelog

Source

1.0.1

  • Removes default link from the about screen.
    • js-draw can run in contexts where links are not expected.
  • Fixes peer dependency version for @js-draw/material-icons
personalizedrefrigerator
published 1.0.0 •

Changelog

Source

1.0.0

Special thanks to:

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.
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