Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
疯人忠
Cvat
提交
24027931
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,发现更多精彩内容 >>
未验证
提交
24027931
编写于
9月 18, 2020
作者:
B
Boris Sekachev
提交者:
GitHub
9月 18, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Added more css selectors to cypress testing (#2197)
上级
8d3e0066
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
20 addition
and
26 deletion
+20
-26
cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/cursor-control.tsx
...e/standard-workspace/controls-side-bar/cursor-control.tsx
+1
-1
cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/fit-control.tsx
...page/standard-workspace/controls-side-bar/fit-control.tsx
+6
-4
cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/group-control.tsx
...ge/standard-workspace/controls-side-bar/group-control.tsx
+2
-1
cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/merge-control.tsx
...ge/standard-workspace/controls-side-bar/merge-control.tsx
+2
-1
cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/move-control.tsx
...age/standard-workspace/controls-side-bar/move-control.tsx
+1
-1
cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/resize-control.tsx
...e/standard-workspace/controls-side-bar/resize-control.tsx
+2
-5
cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/rotate-control.tsx
...e/standard-workspace/controls-side-bar/rotate-control.tsx
+2
-6
cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/setup-tag-control.tsx
...tandard-workspace/controls-side-bar/setup-tag-control.tsx
+2
-6
cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/split-control.tsx
...ge/standard-workspace/controls-side-bar/split-control.tsx
+2
-1
未找到文件。
cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/cursor-control.tsx
浏览文件 @
24027931
...
...
@@ -28,7 +28,7 @@ function CursorControl(props: Props): JSX.Element {
<
Icon
component
=
{
CursorIcon
}
className
=
{
activeControl
===
ActiveControl
.
CURSOR
?
'
cvat-active-canvas-control
'
:
'
'
}
?
'
cvat-active-canvas-control
cvat-cursor-control
'
:
'
cvat-cursor-control
'
}
onClick
=
{
activeControl
!==
ActiveControl
.
CURSOR
?
():
void
=>
canvasInstance
.
cancel
()
...
...
cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/fit-control.tsx
浏览文件 @
24027931
...
...
@@ -14,13 +14,15 @@ interface Props {
}
function
FitControl
(
props
:
Props
):
JSX
.
Element
{
const
{
canvasInstance
,
}
=
props
;
const
{
canvasInstance
}
=
props
;
return
(
<
Tooltip
title
=
'Fit the image [Double Click]'
placement
=
'right'
mouseLeaveDelay
=
{
0
}
>
<
Icon
component
=
{
FitIcon
}
onClick
=
{
():
void
=>
canvasInstance
.
fit
()
}
/>
<
Icon
className
=
'cvat-fit-control'
component
=
{
FitIcon
}
onClick
=
{
():
void
=>
canvasInstance
.
fit
()
}
/>
</
Tooltip
>
);
}
...
...
cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/group-control.tsx
浏览文件 @
24027931
...
...
@@ -29,12 +29,13 @@ function GroupControl(props: Props): JSX.Element {
const
dynamicIconProps
=
activeControl
===
ActiveControl
.
GROUP
?
{
className
:
'
cvat-active-canvas-control
'
,
className
:
'
cvat-
group-control cvat-
active-canvas-control
'
,
onClick
:
():
void
=>
{
canvasInstance
.
group
({
enabled
:
false
});
groupObjects
(
false
);
},
}
:
{
className
:
'
cvat-group-control
'
,
onClick
:
():
void
=>
{
canvasInstance
.
cancel
();
canvasInstance
.
group
({
enabled
:
true
});
...
...
cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/merge-control.tsx
浏览文件 @
24027931
...
...
@@ -27,12 +27,13 @@ function MergeControl(props: Props): JSX.Element {
const
dynamicIconProps
=
activeControl
===
ActiveControl
.
MERGE
?
{
className
:
'
cvat-active-canvas-control
'
,
className
:
'
cvat-
merge-control cvat-
active-canvas-control
'
,
onClick
:
():
void
=>
{
canvasInstance
.
merge
({
enabled
:
false
});
mergeObjects
(
false
);
},
}
:
{
className
:
'
cvat-merge-control
'
,
onClick
:
():
void
=>
{
canvasInstance
.
cancel
();
canvasInstance
.
merge
({
enabled
:
true
});
...
...
cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/move-control.tsx
浏览文件 @
24027931
...
...
@@ -23,7 +23,7 @@ function MoveControl(props: Props): JSX.Element {
<
Icon
component
=
{
MoveIcon
}
className
=
{
activeControl
===
ActiveControl
.
DRAG_CANVAS
?
'
cvat-
active-canvas-control
'
:
'
'
}
?
'
cvat-
move-control cvat-active-canvas-control
'
:
'
cvat-move-control
'
}
onClick
=
{
():
void
=>
{
if
(
activeControl
===
ActiveControl
.
DRAG_CANVAS
)
{
canvasInstance
.
dragCanvas
(
false
);
...
...
cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/resize-control.tsx
浏览文件 @
24027931
...
...
@@ -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
);
...
...
cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/rotate-control.tsx
浏览文件 @
24027931
...
...
@@ -17,11 +17,7 @@ interface Props {
}
function
RotateControl
(
props
:
Props
):
JSX
.
Element
{
const
{
anticlockwiseShortcut
,
clockwiseShortcut
,
rotateFrame
,
}
=
props
;
const
{
anticlockwiseShortcut
,
clockwiseShortcut
,
rotateFrame
}
=
props
;
return
(
<
Popover
...
...
@@ -47,7 +43,7 @@ function RotateControl(props: Props): JSX.Element {
)
}
trigger
=
'hover'
>
<
Icon
component
=
{
RotateIcon
}
/>
<
Icon
c
lassName
=
'cvat-rotate-canvas-control'
c
omponent
=
{
RotateIcon
}
/>
</
Popover
>
);
}
...
...
cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/setup-tag-control.tsx
浏览文件 @
24027931
...
...
@@ -17,9 +17,7 @@ interface Props {
}
function
SetupTagControl
(
props
:
Props
):
JSX
.
Element
{
const
{
isDrawing
,
}
=
props
;
const
{
isDrawing
}
=
props
;
const
dynamcPopoverPros
=
isDrawing
?
{
overlayStyle
:
{
...
...
@@ -36,9 +34,7 @@ function SetupTagControl(props: Props): JSX.Element {
<
SetupTagPopoverContainer
/>
)
}
>
<
Icon
component
=
{
TagIcon
}
/>
<
Icon
className
=
'cvat-setup-tag-control'
component
=
{
TagIcon
}
/>
</
Popover
>
);
}
...
...
cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/split-control.tsx
浏览文件 @
24027931
...
...
@@ -27,12 +27,13 @@ function SplitControl(props: Props): JSX.Element {
const
dynamicIconProps
=
activeControl
===
ActiveControl
.
SPLIT
?
{
className
:
'
cvat-active-canvas-control
'
,
className
:
'
cvat-
split-track-control cvat-
active-canvas-control
'
,
onClick
:
():
void
=>
{
canvasInstance
.
split
({
enabled
:
false
});
splitTrack
(
false
);
},
}
:
{
className
:
'
cvat-split-track-control
'
,
onClick
:
():
void
=>
{
canvasInstance
.
cancel
();
canvasInstance
.
split
({
enabled
:
true
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录