Skip to content

Commit

Permalink
Merge branch 'develop' into zm/consensus-task-creation
Browse files Browse the repository at this point in the history
  • Loading branch information
klakhov authored Jan 22, 2025
2 parents b0615d4 + c2bfb21 commit d7db85c
Show file tree
Hide file tree
Showing 987 changed files with 1,096 additions and 1,094 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2018-2022 Intel Corporation
// Copyright (C) 2023 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
MIT License

Copyright (c) 2018-2022 Intel Corporation
Copyright (c) 2022-2025 CVAT.ai Corporation
Copyright (C) 2018-2022 Intel Corporation
Copyright (C) 2022-2025 CVAT.ai Corporation

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 4 additions & 0 deletions changelog.d/20250120_142814_klakhov_fix_start_points.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Fixed

- Error: Cannot read properties of undefined (reading 'startPoints') when dragging an object
(<https://github.com/cvat-ai/cvat/pull/8966>)
4 changes: 4 additions & 0 deletions changelog.d/20250121_135206_sekachev.bs_fixed_rendering.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Fixed

- Extra shortcuts enabled from brush tools on views where not necessary
(<https://github.com/cvat-ai/cvat/pull/8971>)
2 changes: 1 addition & 1 deletion cvat-canvas/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2019-2022 Intel Corporation
// Copyright (C) 2023 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas/src/scss/canvas.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2020-2022 Intel Corporation
// Copyright (C) 2022-2023 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas/src/typescript/canvas.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2019-2022 Intel Corporation
// Copyright (C) 2022-2023 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas/src/typescript/canvasController.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2019-2022 Intel Corporation
// Copyright (C) 2022-2024 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas/src/typescript/canvasModel.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2019-2022 Intel Corporation
// Copyright (C) 2022-2024 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
15 changes: 9 additions & 6 deletions cvat-canvas/src/typescript/canvasView.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2019-2022 Intel Corporation
// Copyright (C) 2022-2024 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down Expand Up @@ -1129,9 +1129,12 @@ export class CanvasViewImpl implements CanvasView, Listener {
...(state.shapeType === 'mask' ? { snapToGrid: 1 } : {}),
});

let startCenter = null;
draggableInstance.on('dragstart', (): void => {
onDragStart();
this.draggableShape = shape;
const { cx, cy } = shape.bbox();
startCenter = { x: cx, y: cy };
start = Date.now();
}).on('dragmove', (e: CustomEvent): void => {
onDragMove();
Expand Down Expand Up @@ -1159,18 +1162,18 @@ export class CanvasViewImpl implements CanvasView, Listener {
skeletonSVGTemplate = skeletonSVGTemplate ?? makeSVGFromTemplate(state.label.structure.svg);
setupSkeletonEdges(shape as SVG.G, skeletonSVGTemplate);
}
}).on('dragend', (e: CustomEvent): void => {
}).on('dragend', (): void => {
if (aborted) {
this.resetViewPosition(state.clientID);
return;
}

onDragEnd();
this.draggableShape = null;
const p1 = e.detail.handler.startPoints.point;
const p2 = e.detail.p;
const dx2 = (p1.x - p2.x) ** 2;
const dy2 = (p1.y - p2.y) ** 2;
const { cx, cy } = shape.bbox();

const dx2 = (startCenter.x - cx) ** 2;
const dy2 = (startCenter.y - cy) ** 2;
if (Math.sqrt(dx2 + dy2) > 0) {
if (state.shapeType === 'mask') {
const { points } = state;
Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas/src/typescript/drawHandler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2019-2022 Intel Corporation
// Copyright (C) 2023-2024 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas/src/typescript/editHandler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2019-2022 Intel Corporation
// Copyright (C) 2022-2023 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas/src/typescript/groupHandler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2019-2022 Intel Corporation
// Copyright (C) 2022-2023 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas/src/typescript/interactionHandler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2020-2022 Intel Corporation
// Copyright (C) 2023-2024 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas/src/typescript/masksHandler.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2022-2024 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas/src/typescript/mergeHandler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2019-2022 Intel Corporation
// Copyright (C) 2023 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas/src/typescript/objectSelector.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2023 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas/src/typescript/regionSelector.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2020-2022 Intel Corporation
// Copyright (C) 2023 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas/src/typescript/shared.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2019-2022 Intel Corporation
// Copyright (C) 2024 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas/src/typescript/sliceHandler.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2023-2024 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas/src/typescript/splitHandler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2019-2022 Intel Corporation
// Copyright (C) 2023 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas/src/typescript/zoomHandler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2019-2022 Intel Corporation
// Copyright (C) 2023 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas/webpack.config.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2020-2022 Intel Corporation
// Copyright (C) 2023 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas3d/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2021-2022 Intel Corporation
// Copyright (C) 2023 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas3d/src/typescript/canvas3d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2021-2022 Intel Corporation
// Copyright (C) 2022-2023 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas3d/src/typescript/canvas3dController.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2021-2022 Intel Corporation
// Copyright (C) 2022-2023 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas3d/src/typescript/canvas3dModel.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2021-2022 Intel Corporation
// Copyright (C) 2022-2023 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas3d/src/typescript/canvas3dView.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2021-2022 Intel Corporation
// Copyright (C) 2022-2023 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas3d/src/typescript/consts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2021-2022 Intel Corporation
// Copyright (C) 2022-2023 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas3d/src/typescript/cuboid.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2021-2022 Intel Corporation
// Copyright (C) 2022-2023 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas3d/src/typescript/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2022-2023 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-canvas3d/webpack.config.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2021-2022 Intel Corporation
// Copyright (C) 2023 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-cli/src/cvat_cli/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (C) 2020-2022 Intel Corporation
# Copyright (C) 2022-2024 CVAT.ai Corporation
# Copyright (C) CVAT.ai Corporation
#
# SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-cli/src/cvat_cli/_internal/agent.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2024 CVAT.ai Corporation
# Copyright (C) CVAT.ai Corporation
#
# SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-cli/src/cvat_cli/_internal/command_base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2024 CVAT.ai Corporation
# Copyright (C) CVAT.ai Corporation
#
# SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-cli/src/cvat_cli/_internal/commands_all.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2024 CVAT.ai Corporation
# Copyright (C) CVAT.ai Corporation
#
# SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-cli/src/cvat_cli/_internal/commands_functions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2024 CVAT.ai Corporation
# Copyright (C) CVAT.ai Corporation
#
# SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-cli/src/cvat_cli/_internal/commands_projects.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2024 CVAT.ai Corporation
# Copyright (C) CVAT.ai Corporation
#
# SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-cli/src/cvat_cli/_internal/commands_tasks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2022-2024 CVAT.ai Corporation
# Copyright (C) CVAT.ai Corporation
#
# SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-cli/src/cvat_cli/_internal/common.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (C) 2021-2022 Intel Corporation
# Copyright (C) 2022-2024 CVAT.ai Corporation
# Copyright (C) CVAT.ai Corporation
#
# SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-cli/src/cvat_cli/_internal/parsers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (C) 2021-2022 Intel Corporation
# Copyright (C) 2022-2024 CVAT.ai Corporation
# Copyright (C) CVAT.ai Corporation
#
# SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-cli/src/cvat_cli/_internal/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2024 CVAT.ai Corporation
# Copyright (C) CVAT.ai Corporation
#
# SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-core/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2018-2022 Intel Corporation
// Copyright (C) 2023-2024 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-core/jest.config.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2019-2022 Intel Corporation
// Copyright (C) 2023 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-core/src/analytics-report.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2023-2024 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-core/src/annotation-formats.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2019-2022 Intel Corporation
// Copyright (C) 2023 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-core/src/annotations-actions/annotations-actions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2024 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-core/src/annotations-actions/base-action.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2024 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2024 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-core/src/annotations-actions/base-shapes-action.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2024 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-core/src/annotations-actions/propagate-shapes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2024 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2024 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-core/src/annotations-collection.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2019-2022 Intel Corporation
// Copyright (C) 2022-2025 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
2 changes: 1 addition & 1 deletion cvat-core/src/annotations-filter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2020-2022 Intel Corporation
// Copyright (C) 2023-2024 CVAT.ai Corporation
// Copyright (C) CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT

Expand Down
Loading

0 comments on commit d7db85c

Please sign in to comment.