Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ All notable changes to this project will be documented here.

Nothing yet.

## [0.16.2] - Apr 2nd, 2025
- Fixed bug introduced in v0.15.0 where using the erase tool such that a polygon was separated into multiple disjoint regions would cause an unrecoverable error.

## [0.16.1] - Jan 13th, 2025
- Added `click_and_drag_poly_annotations` flag to the configuration object, that when set to false prevents continuous points from being added to a polyline or polygon annotations when clicking and dragging.

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.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.16.1",
"version": "0.16.2",
"main": "dist/ulabel.js",
"module": "dist/ulabel.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/geometric_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export class GeometricUtils {
ret = temp_coords;
} else {
// TODO (joshua-dean): See if this casting can be better
ret = <ULabelSpatialPayload2D[]><unknown> temp_coords[0].concat(temp[1]);
ret = <ULabelSpatialPayload2D[]><unknown> temp_coords[0].concat(temp_coords[1]);
}
return GeometricUtils.turf_simplify_complex_polygon(ret);
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4293,8 +4293,8 @@ export class ULabel {
let new_spatial_payload = [];

if (current_subtask["state"]["is_in_erase_mode"]) {
let merged_polygon = null;
for (let split_polygon of split_polygons) {
let merged_polygon;
// Erase the brush from the annotation
merged_polygon = GeometricUtils.subtract_polygons(split_polygon, brush_polygon);
if (merged_polygon !== null) {
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.16.1";
export const ULABEL_VERSION = "0.16.2";