|
3 | 3 |
|
4 | 4 | import { useEffect, useState } from 'react'; |
5 | 5 |
|
6 | | -import { ANCHOR_SIZE, ResizeAnchor } from '@geti/smart-tools'; |
7 | | -import { RegionOfInterest } from '@geti/smart-tools/types'; |
8 | | - |
9 | | -import { Annotation } from '../../../../../core/annotations/annotation.interface'; |
10 | | -import { Point } from '../../../../../core/annotations/shapes.interface'; |
11 | | -import { ShapeType } from '../../../../../core/annotations/shapetype.enum'; |
12 | | -import { Labels } from '../../../annotation/labels/labels.component'; |
| 6 | +import { Annotation, Point, RegionOfInterest } from '../../shared/interfaces'; |
| 7 | +import { getBoundingBoxInRoi, getBoundingBoxResizePoints, getClampedBoundingBox } from '../../utils/tool-utils'; |
| 8 | +import { ANCHOR_SIZE, ResizeAnchor } from '../resize-anchor.component'; |
13 | 9 | import { TranslateShape } from '../translate-shape.component'; |
14 | | -import { getBoundingBoxInRoi, getBoundingBoxResizePoints, getClampedBoundingBox } from '../utils'; |
15 | 10 |
|
16 | | -import classes from './../../../annotator-canvas.module.scss'; |
| 11 | +import classes from './edit-bounding-box.module.scss'; |
17 | 12 |
|
18 | 13 | interface EditBoundingBoxProps { |
19 | | - annotation: Annotation & { shape: { shapeType: ShapeType.Rect } }; |
| 14 | + annotation: Annotation & { shape: { shapeType: 'rect' } }; |
20 | 15 | disableTranslation?: boolean; |
21 | 16 | disablePoints?: boolean; |
22 | 17 | roi: RegionOfInterest; |
@@ -73,8 +68,6 @@ export const EditBoundingBox = ({ |
73 | 68 | /> |
74 | 69 | </svg> |
75 | 70 |
|
76 | | - <Labels annotation={{ ...annotation, shape }} /> |
77 | | - |
78 | 71 | {disablePoints === false ? ( |
79 | 72 | <svg |
80 | 73 | width={image.width} |
|
0 commit comments