未验证 提交 c787f049 编写于 作者: B Boris Sekachev 提交者: GitHub

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

* Fixed issue: autoborder points are visible for invisible shapes

* Update version & changelog
上级 1f33f505
......@@ -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
......
{
"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",
......
{
"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 => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册