Skip to content

Commit

Permalink
Merge pull request #137 from SenteraLLC/fix/cancel-draw
Browse files Browse the repository at this point in the history
Fix/cancel draw
  • Loading branch information
TrevorBurgoyne authored Apr 5, 2024
2 parents daefee7 + 1330e3a commit 1c239e6
Show file tree
Hide file tree
Showing 7 changed files with 164 additions and 134 deletions.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ All notable changes to this project will be documented here.

Nothing yet.

## [0.9.4] - April 4th, 2024
- Fix bug where vanish mode was disabled during brush/erase mode
- Align `undo` behavior for polygons and polylines with that of other annotations (once complete, the undo will delete the entire annotation rather than undoing only the last point)
- `Escape` keybind to cancel an in-progress annotation

## [0.9.3] - March 22nd, 2024
- Fix bug where erase mode could perist when changing annotation mode
- When user provides an `initial_line_size`, use that as the default size for new annotations, independent of zoom
Expand Down
2 changes: 1 addition & 1 deletion dist/ulabel.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ulabel.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ulabel",
"description": "An image annotation tool.",
"version": "0.9.3",
"version": "0.9.4",
"main": "dist/ulabel.js",
"module": "dist/ulabel.js",
"scripts": {
Expand Down
282 changes: 155 additions & 127 deletions src/index.js

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions src/toolbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1320,9 +1320,6 @@ export class AnnotationResizeItem extends ToolboxItem {
public update_annotation_size(ulabel: ULabel, subtask: ULabelSubtask, size: number | ValidResizeValues): void {
if (subtask === null) return;

// If in brush mode, the keybind was probably meant for the brush
if (subtask.state.is_in_brush_mode) return;

const small_size = 1.5;
const large_size = 5;
const increment_size = 0.5;
Expand Down
2 changes: 1 addition & 1 deletion src/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const ULABEL_VERSION = "0.9.3";
export const ULABEL_VERSION = "0.9.4";

0 comments on commit 1c239e6

Please sign in to comment.