diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d4f8675969d..256faec23847 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Fixed Interaction handler keyboard handlers () +- Points of invisible shapes are visible in autobordering () ### Security - TDB diff --git a/cvat-canvas/package-lock.json b/cvat-canvas/package-lock.json index 864351ae390e..237dcbd7c20f 100644 --- a/cvat-canvas/package-lock.json +++ b/cvat-canvas/package-lock.json @@ -1,12 +1,12 @@ { "name": "cvat-canvas", - "version": "2.9.0", + "version": "2.9.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "cvat-canvas", - "version": "2.9.0", + "version": "2.9.1", "license": "MIT", "dependencies": { "svg.draggable.js": "2.2.2", diff --git a/cvat-canvas/package.json b/cvat-canvas/package.json index caf30170e4f1..e22bc101587e 100644 --- a/cvat-canvas/package.json +++ b/cvat-canvas/package.json @@ -1,6 +1,6 @@ { "name": "cvat-canvas", - "version": "2.9.0", + "version": "2.9.1", "description": "Part of Computer Vision Annotation Tool which presents its canvas library", "main": "src/canvas.ts", "scripts": { diff --git a/cvat-canvas/src/typescript/autoborderHandler.ts b/cvat-canvas/src/typescript/autoborderHandler.ts index c66191a0255a..e6f8fe0adb47 100644 --- a/cvat-canvas/src/typescript/autoborderHandler.ts +++ b/cvat-canvas/src/typescript/autoborderHandler.ts @@ -237,7 +237,8 @@ export class AutoborderHandlerImpl implements AutoborderHandler { const currentClientID = this.currentShape.node.dataset.originClientId; const shapes = Array.from(this.frameContent.getElementsByClassName('cvat_canvas_shape')).filter( - (shape: HTMLElement): boolean => +shape.getAttribute('clientID') !== this.currentID, + (shape: HTMLElement): boolean => +shape.getAttribute('clientID') !== this.currentID && + !shape.classList.contains('cvat_canvas_hidden'), ); const transformedShapes = shapes .map((shape: HTMLElement): TransformedShape | null => {