Comparing version 0.11.1 to 0.11.2
@@ -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 = []; | ||
} | ||
} |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1460830
30299