|
|
|
|
@ -16,17 +16,14 @@ interface Props {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function ResizeControl(props: Props): JSX.Element {
|
|
|
|
|
const {
|
|
|
|
|
activeControl,
|
|
|
|
|
canvasInstance,
|
|
|
|
|
} = props;
|
|
|
|
|
const { activeControl, canvasInstance } = props;
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<Tooltip title='Select a region of interest' placement='right' mouseLeaveDelay={0}>
|
|
|
|
|
<Icon
|
|
|
|
|
component={ZoomIcon}
|
|
|
|
|
className={activeControl === ActiveControl.ZOOM_CANVAS
|
|
|
|
|
? 'cvat-active-canvas-control' : ''}
|
|
|
|
|
? 'cvat-resize-control cvat-active-canvas-control' : 'cvat-resize-control'}
|
|
|
|
|
onClick={(): void => {
|
|
|
|
|
if (activeControl === ActiveControl.ZOOM_CANVAS) {
|
|
|
|
|
canvasInstance.zoomCanvas(false);
|
|
|
|
|
|