Skip to content

Commit

Permalink
Deletes annotations via eraser tool (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbavery authored and jsbroks committed Sep 18, 2019
1 parent 5fa6dcf commit e26ce4e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/src/components/annotator/Annotation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,10 @@ export default {
this.addUndo(action);
},
simplifyPath() {
if (this.compoundPath != null && this.compoundPath.isEmpty()) {
this.deleteAnnotation();
return;
}
let simplify = this.simplify;
this.compoundPath.flatten(1);
Expand Down

0 comments on commit e26ce4e

Please sign in to comment.