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

js-draw

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-draw - npm Package Compare versions

Comparing version 0.11.1 to 0.11.2

3

CHANGELOG.md

@@ -0,1 +1,4 @@

# 0.11.2
* Fix eraser regression: Erasing multiple strokes, one after another, caused strokes to un-erase.
# 0.11.1

@@ -2,0 +5,0 @@ * Performance: Faster eraser and selection tools.

@@ -42,2 +42,3 @@ import BaseTool from './BaseTool';

this.partialCommands.forEach(cmd => cmd.unapply(this.editor));
this.partialCommands = [];
const command = new Erase(this.toRemove);

@@ -49,3 +50,4 @@ this.editor.dispatch(command); // dispatch: Makes undo-able.

this.partialCommands.forEach(cmd => cmd.unapply(this.editor));
this.partialCommands = [];
}
}

2

package.json
{
"name": "js-draw",
"version": "0.11.1",
"version": "0.11.2",
"description": "Draw pictures using a pen, touchscreen, or mouse! JS-draw is a drawing library for JavaScript and TypeScript. ",

@@ -5,0 +5,0 @@ "main": "./dist/src/lib.d.ts",

@@ -60,2 +60,3 @@ import { PointerEvt } from '../types';

this.partialCommands.forEach(cmd => cmd.unapply(this.editor));
this.partialCommands = [];

@@ -69,3 +70,4 @@ const command = new Erase(this.toRemove);

this.partialCommands.forEach(cmd => cmd.unapply(this.editor));
this.partialCommands = [];
}
}

Sorry, the diff of this file is too big to display

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