Fixed issue: autoborder points are visible for invisible shapes (#3931)

* Fixed issue: autoborder points are visible for invisible shapes

* Update version & changelog
main
Boris Sekachev 4 years ago committed by GitHub
parent 1f33f505ef
commit c787f049ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixed Interaction handler keyboard handlers (<https://github.com/openvinotoolkit/cvat/pull/3881>)
- Points of invisible shapes are visible in autobordering (<https://github.com/openvinotoolkit/cvat/pull/3931>)
### Security
- TDB

@ -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",

@ -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": {

@ -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 => {

Loading…
Cancel
Save