Socket
Socket
Sign inDemoInstall

@js-draw/math

Package Overview
Dependencies
Maintainers
0
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@js-draw/math - npm Package Versions

2

1.21.1

Diff

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
personalizedrefrigerator
published 1.8.0 •

Changelog

Source

1.8.0

  • Features and improvements
    • Increased the minimum pinch rotation required to start rotation.
    • Performance improvement when zooming in to large strokes (particularly when these strokes are opaque).
  • Bug fixes
    • Fixed some rendering-cache-related display issues.
personalizedrefrigerator
published 1.7.0 •

Changelog

Source

1.7.0

  • Features and improvements
    • Selection tool
      • Improved autoscroll while dragging/transforming large selections
      • Decreased visible size of most selection handles (see discussion)
      • Mapped clicking the rotate handle to a counter-clockwise rotation of 90 degrees (matching the icon).
    • Show more information in the about dialog.
    • Performance improvement when zooming in near the endpoints of a large, stroked (and not filled) stroke.
  • Bug fixes
    • Fix inability to select immediately after touchscreen pinch zooming with an existing selection.
    • Fix selection boundary visible outside of the editor on pages where the editor isn't fullscreen.
    • Fix close/exit icon in the material icon pack's size in the dropdown toolbar.
    • Fix modifier keys (shift, ctrl, etc.) not registered as pressed if first pressed before focusing the editor.
2
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