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

@js-draw/math

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@js-draw/math - npm Package Versions

23

1.21.3

Diff

personalizedrefrigerator
published 1.21.2 •

Changelog

Source

1.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/...).
personalizedrefrigerator
published 1.21.1 •

Changelog

Source

1.21.0, 1.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 empty href cause rendering errors.
personalizedrefrigerator
published 1.19.0 •

Changelog

Source

1.19.0, 1.19.1

  • 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 unable to render text with a multi-word font.
  • Improvements
    • Decrease size of Vec2s in memory.
personalizedrefrigerator
published 1.18.0 •

Changelog

Source

1.18.0

  • Features
    • Partial stroke eraser.
    • Improve on and make the polyline pen one of the defaults.
    • Add an API to allow removing pen types from the toolbar.
  • Bug fixes
    • Fix LineSegment2.intersects can return an incorrect value for very-near vertical lines
    • Fix Vec3.eq always returned true when comparing with NaN (e.g. Vec3(NaN, NaN, NaN).eq(Vec3(1, 2, 3)) was true).
    • Fix autoresized images could incorrectly calculate the top-left corner of the full image in some cases.
  • Improvements
    • Fix highlighter pen could include near-duplicate, overlapping copies of curves in its output.
personalizedrefrigerator
published 1.17.0 •

Changelog

Source

1.17.0

  • Features
    • Attach rendered versions of the selection to the clipboard on copy: Support pasting into more applications.
  • Bug fixes
    • Deleting the first character in the background size dialog no longer resets the background size to 100.
    • Fix stroke width not set correctly by SVGRenderer when export zoom is not 100%.
    • Fixed copy/paste between Chrome and Firefox
  • API
    • Simplify API for finding distance between points. (Add .distanceTo method).
    • Simplify API for changing the background of an image (Editor.setBackgroundStyle).
personalizedrefrigerator
published 1.16.0 •

Changelog

Source

1.16.0

  • Features
    • Snap zoom to powers of 10 when zooming with touch. This should make it easier to maintain a consistent zoom in some cases.
  • Bug fixes
    • Collaborative editing: Fix exception thrown when undoing selection transforms that have been partially erased by another user.
    • Selection: Prevent the selection handles from being briefly visible at the top left corner of the screen when starting a new selection.
    • Viewing: Fix large strokes flicker while rotating the screen.
personalizedrefrigerator
published 1.11.1 •

Changelog

Source

1.11.1

  • Bug fixes and improvements
    • Fix pressing <kbd>shift</kbd> not immediately allowing selections to snap to the x/y axes on drag.
    • Decrease blurriness on high resolution displays at some zoom levels.
    • Slightly increase the maximum motion required to trigger autocorrect. It was previously difficult to trigger autocorrect on some devices.
    • Fix color picker toggle button's clickable region was smaller than the visible button.
    • Update Coloris.
    • Fix icons not fading correctly when disabled on some devices.
personalizedrefrigerator
published 1.10.0 •

Changelog

Source

1.10.0

  • Features
    • Added autocorrect for strokes — holding the pen stationary after drawing replaces near-rectangles and lines with lines and rectangles.
    • Added a "decrease image size" button to the image dialog to decrease the size of large images.
  • Bug fixes
    • Fixed: some tools unusable were unusable in right-to-left layout mode
personalizedrefrigerator
published 1.9.0 •

Changelog

Source

1.9.0

  • Performance improvements
    • Don't render components that will be completely covered by other (opaque) components in more cases.
    • Fix some browsers unable to garbage collect the SVG DOM element that an EditorImage was loaded from (when garbage collection should be okay).
  • Improvements
    • Support high resolution displays
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