Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
疯人忠
Cvat
提交
39764f87
C
Cvat
项目概览
疯人忠
/
Cvat
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
Cvat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
39764f87
编写于
6月 21, 2023
作者:
K
klakhov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
removed ablity to delete frame from GT
上级
6c3ad269
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
20 addition
and
12 deletion
+20
-12
cvat-ui/src/components/annotation-page/top-bar/player-navigation.tsx
.../components/annotation-page/top-bar/player-navigation.tsx
+14
-9
cvat-ui/src/components/annotation-page/top-bar/top-bar.tsx
cvat-ui/src/components/annotation-page/top-bar/top-bar.tsx
+3
-1
cvat-ui/src/containers/annotation-page/top-bar/top-bar.tsx
cvat-ui/src/containers/annotation-page/top-bar/top-bar.tsx
+3
-2
未找到文件。
cvat-ui/src/components/annotation-page/top-bar/player-navigation.tsx
浏览文件 @
39764f87
...
@@ -23,6 +23,7 @@ interface Props {
...
@@ -23,6 +23,7 @@ interface Props {
frameNumber
:
number
;
frameNumber
:
number
;
frameFilename
:
string
;
frameFilename
:
string
;
frameDeleted
:
boolean
;
frameDeleted
:
boolean
;
deleteFrameAvailable
:
boolean
;
deleteFrameShortcut
:
string
;
deleteFrameShortcut
:
string
;
focusFrameInputShortcut
:
string
;
focusFrameInputShortcut
:
string
;
inputFrameRef
:
React
.
RefObject
<
Input
>
;
inputFrameRef
:
React
.
RefObject
<
Input
>
;
...
@@ -51,6 +52,7 @@ function PlayerNavigation(props: Props): JSX.Element {
...
@@ -51,6 +52,7 @@ function PlayerNavigation(props: Props): JSX.Element {
onDeleteFrame
,
onDeleteFrame
,
onRestoreFrame
,
onRestoreFrame
,
switchNavigationBlocked
,
switchNavigationBlocked
,
deleteFrameAvailable
,
}
=
props
;
}
=
props
;
const
[
frameInputValue
,
setFrameInputValue
]
=
useState
<
number
>
(
frameNumber
);
const
[
frameInputValue
,
setFrameInputValue
]
=
useState
<
number
>
(
frameNumber
);
...
@@ -80,6 +82,15 @@ function PlayerNavigation(props: Props): JSX.Element {
...
@@ -80,6 +82,15 @@ function PlayerNavigation(props: Props): JSX.Element {
});
});
}
}
},
[
playing
,
frameNumber
]);
},
[
playing
,
frameNumber
]);
const
deleteFrameIcon
=
!
frameDeleted
?
(
<
CVATTooltip
title
=
{
`Delete the frame
${
deleteFrameShortcut
}
`
}
>
<
DeleteOutlined
className
=
'cvat-player-delete-frame'
onClick
=
{
showDeleteFrameDialog
}
/>
</
CVATTooltip
>
)
:
(
<
CVATTooltip
title
=
'Restore the frame'
>
<
Icon
className
=
'cvat-player-restore-frame'
onClick
=
{
onRestoreFrame
}
component
=
{
RestoreIcon
}
/>
</
CVATTooltip
>
);
return
(
return
(
<>
<>
...
@@ -105,15 +116,9 @@ function PlayerNavigation(props: Props): JSX.Element {
...
@@ -105,15 +116,9 @@ function PlayerNavigation(props: Props): JSX.Element {
<
CVATTooltip
title
=
'Create frame URL'
>
<
CVATTooltip
title
=
'Create frame URL'
>
<
LinkOutlined
className
=
'cvat-player-frame-url-icon'
onClick
=
{
onURLIconClick
}
/>
<
LinkOutlined
className
=
'cvat-player-frame-url-icon'
onClick
=
{
onURLIconClick
}
/>
</
CVATTooltip
>
</
CVATTooltip
>
{
(
!
frameDeleted
)
?
(
{
<
CVATTooltip
title
=
{
`Delete the frame
${
deleteFrameShortcut
}
`
}
>
deleteFrameAvailable
&&
deleteFrameIcon
<
DeleteOutlined
className
=
'cvat-player-delete-frame'
onClick
=
{
showDeleteFrameDialog
}
/>
}
</
CVATTooltip
>
)
:
(
<
CVATTooltip
title
=
'Restore the frame'
>
<
Icon
className
=
'cvat-player-restore-frame'
onClick
=
{
onRestoreFrame
}
component
=
{
RestoreIcon
}
/>
</
CVATTooltip
>
)
}
</
Col
>
</
Col
>
</
Row
>
</
Row
>
</
Col
>
</
Col
>
...
...
cvat-ui/src/components/annotation-page/top-bar/top-bar.tsx
浏览文件 @
39764f87
...
@@ -41,6 +41,7 @@ interface Props {
...
@@ -41,6 +41,7 @@ interface Props {
focusFrameInputShortcut
:
string
;
focusFrameInputShortcut
:
string
;
activeControl
:
ActiveControl
;
activeControl
:
ActiveControl
;
toolsBlockerState
:
ToolsBlockerState
;
toolsBlockerState
:
ToolsBlockerState
;
deleteFrameAvailable
:
boolean
;
changeWorkspace
(
workspace
:
Workspace
):
void
;
changeWorkspace
(
workspace
:
Workspace
):
void
;
showStatistics
():
void
;
showStatistics
():
void
;
showFilters
():
void
;
showFilters
():
void
;
...
@@ -117,6 +118,7 @@ export default function AnnotationTopBarComponent(props: Props): JSX.Element {
...
@@ -117,6 +118,7 @@ export default function AnnotationTopBarComponent(props: Props): JSX.Element {
onFinishDraw
,
onFinishDraw
,
onSwitchToolsBlockerState
,
onSwitchToolsBlockerState
,
onDeleteFrame
,
onDeleteFrame
,
deleteFrameAvailable
,
onRestoreFrame
,
onRestoreFrame
,
switchNavigationBlocked
,
switchNavigationBlocked
,
jobInstance
,
jobInstance
,
...
@@ -146,7 +148,6 @@ export default function AnnotationTopBarComponent(props: Props): JSX.Element {
...
@@ -146,7 +148,6 @@ export default function AnnotationTopBarComponent(props: Props): JSX.Element {
<
PlayerButtons
<
PlayerButtons
playing
=
{
playing
}
playing
=
{
playing
}
playPauseShortcut
=
{
playPauseShortcut
}
playPauseShortcut
=
{
playPauseShortcut
}
deleteFrameShortcut
=
{
deleteFrameShortcut
}
nextFrameShortcut
=
{
nextFrameShortcut
}
nextFrameShortcut
=
{
nextFrameShortcut
}
previousFrameShortcut
=
{
previousFrameShortcut
}
previousFrameShortcut
=
{
previousFrameShortcut
}
forwardShortcut
=
{
forwardShortcut
}
forwardShortcut
=
{
forwardShortcut
}
...
@@ -179,6 +180,7 @@ export default function AnnotationTopBarComponent(props: Props): JSX.Element {
...
@@ -179,6 +180,7 @@ export default function AnnotationTopBarComponent(props: Props): JSX.Element {
onDeleteFrame
=
{
onDeleteFrame
}
onDeleteFrame
=
{
onDeleteFrame
}
onRestoreFrame
=
{
onRestoreFrame
}
onRestoreFrame
=
{
onRestoreFrame
}
switchNavigationBlocked
=
{
switchNavigationBlocked
}
switchNavigationBlocked
=
{
switchNavigationBlocked
}
deleteFrameAvailable
=
{
deleteFrameAvailable
}
/>
/>
</
Row
>
</
Row
>
</
Col
>
</
Col
>
...
...
cvat-ui/src/containers/annotation-page/top-bar/top-bar.tsx
浏览文件 @
39764f87
...
@@ -517,8 +517,8 @@ class AnnotationTopBarContainer extends React.PureComponent<Props, State> {
...
@@ -517,8 +517,8 @@ class AnnotationTopBarContainer extends React.PureComponent<Props, State> {
};
};
private
onDeleteFrame
=
():
void
=>
{
private
onDeleteFrame
=
():
void
=>
{
const
{
deleteFrame
,
frameNumber
}
=
this
.
props
;
const
{
deleteFrame
,
frameNumber
,
jobInstance
}
=
this
.
props
;
deleteFrame
(
frameNumber
);
if
(
jobInstance
.
type
!==
JobType
.
GROUND_TRUTH
)
deleteFrame
(
frameNumber
);
};
};
private
onRestoreFrame
=
():
void
=>
{
private
onRestoreFrame
=
():
void
=>
{
...
@@ -797,6 +797,7 @@ class AnnotationTopBarContainer extends React.PureComponent<Props, State> {
...
@@ -797,6 +797,7 @@ class AnnotationTopBarContainer extends React.PureComponent<Props, State> {
toolsBlockerState
=
{
toolsBlockerState
}
toolsBlockerState
=
{
toolsBlockerState
}
jobInstance
=
{
jobInstance
}
jobInstance
=
{
jobInstance
}
activeControl
=
{
activeControl
}
activeControl
=
{
activeControl
}
deleteFrameAvailable
=
{
jobInstance
.
type
!==
JobType
.
GROUND_TRUTH
}
/>
/>
</>
</>
);
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录