Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
1647882a
M
mindinsight
项目概览
MindSpore
/
mindinsight
通知
8
Star
4
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mindinsight
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
1647882a
编写于
7月 10, 2020
作者:
W
WeiFeng-mindinsight
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
UI fix step trace bug that text covers others
上级
aeed834f
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
27 addition
and
14 deletion
+27
-14
mindinsight/ui/src/components/autocomplete.vue
mindinsight/ui/src/components/autocomplete.vue
+0
-1
mindinsight/ui/src/views/train-manage/profiling-dashboard.vue
...insight/ui/src/views/train-manage/profiling-dashboard.vue
+12
-5
mindinsight/ui/src/views/train-manage/step-trace.vue
mindinsight/ui/src/views/train-manage/step-trace.vue
+15
-8
未找到文件。
mindinsight/ui/src/components/autocomplete.vue
浏览文件 @
1647882a
...
@@ -22,7 +22,6 @@ limitations under the License.
...
@@ -22,7 +22,6 @@ limitations under the License.
:aria-expanded=
"suggestionVisible"
:aria-expanded=
"suggestionVisible"
:aria-owns=
"id"
>
:aria-owns=
"id"
>
<el-input
ref=
"input"
<el-input
ref=
"input"
class=
"rtl-item"
v-bind=
"[$props, $attrs]"
v-bind=
"[$props, $attrs]"
@
input=
"handleChange"
@
input=
"handleChange"
@
focus=
"handleFocus"
@
focus=
"handleFocus"
...
...
mindinsight/ui/src/views/train-manage/profiling-dashboard.vue
浏览文件 @
1647882a
...
@@ -374,7 +374,7 @@ export default {
...
@@ -374,7 +374,7 @@ export default {
totalTime
:
0
,
totalTime
:
0
,
rowHeight
:
60
,
rowHeight
:
60
,
markerPadding
:
4
,
markerPadding
:
4
,
minRate
:
0.0
5
,
minRate
:
0.0
1
,
namespaceURI
:
'
http://www.w3.org/2000/svg
'
,
namespaceURI
:
'
http://www.w3.org/2000/svg
'
,
resizeTimer
:
null
,
resizeTimer
:
null
,
colorList
:
[
colorList
:
[
...
@@ -687,9 +687,17 @@ export default {
...
@@ -687,9 +687,17 @@ export default {
const
dashedLine
=
this
.
addDashedLine
(
index
);
const
dashedLine
=
this
.
addDashedLine
(
index
);
svg
.
insertBefore
(
dashedLine
,
svg
.
querySelector
(
'
g
'
));
svg
.
insertBefore
(
dashedLine
,
svg
.
querySelector
(
'
g
'
));
let
textOffsets
=
0
;
row
.
forEach
((
i
)
=>
{
row
.
forEach
((
i
)
=>
{
if
(
i
.
duration
)
{
if
(
i
.
duration
)
{
if
(
i
.
name
)
{
if
(
i
.
name
)
{
if
(
i
.
duration
<
minTime
)
{
textOffsets
++
;
}
else
{
textOffsets
=
0
;
}
i
.
textOffsets
=
textOffsets
;
const
tempDom
=
this
.
createRect
(
i
,
index
);
const
tempDom
=
this
.
createRect
(
i
,
index
);
const
tempStr
=
`g
${
const
tempStr
=
`g
${
i
.
duration
>
minTime
?
''
:
'
.arrow
'
i
.
duration
>
minTime
?
''
:
'
.arrow
'
...
@@ -732,7 +740,6 @@ export default {
...
@@ -732,7 +740,6 @@ export default {
const
height
=
40
;
const
height
=
40
;
const
width
=
(
data
.
duration
/
this
.
svg
.
totalTime
)
*
this
.
svg
.
totalWidth
;
const
width
=
(
data
.
duration
/
this
.
svg
.
totalTime
)
*
this
.
svg
.
totalWidth
;
const
fontSize
=
12
;
const
fontSize
=
12
;
const
normalRect
=
data
.
duration
>
this
.
svg
.
minRate
*
this
.
svg
.
totalTime
;
const
x1
=
const
x1
=
(
data
.
start
/
this
.
svg
.
totalTime
)
*
this
.
svg
.
totalWidth
+
(
data
.
start
/
this
.
svg
.
totalTime
)
*
this
.
svg
.
totalWidth
+
...
@@ -775,7 +782,7 @@ export default {
...
@@ -775,7 +782,7 @@ export default {
foreignObject
.
setAttribute
(
foreignObject
.
setAttribute
(
'
x
'
,
'
x
'
,
normalRect
!
data
.
textOffsets
?
x1
?
x1
:
Math
.
min
(
:
Math
.
min
(
this
.
svg
.
svgPadding
*
2
+
this
.
svg
.
totalWidth
-
textWidth
,
this
.
svg
.
svgPadding
*
2
+
this
.
svg
.
totalWidth
-
textWidth
,
...
@@ -785,14 +792,14 @@ export default {
...
@@ -785,14 +792,14 @@ export default {
foreignObject
.
setAttribute
(
foreignObject
.
setAttribute
(
'
y
'
,
'
y
'
,
y1
+
(
height
-
fontSize
)
/
2
+
(
normalRect
?
0
:
fontSize
)
,
y1
+
(
height
-
fontSize
)
/
2
+
data
.
textOffsets
*
fontSize
,
);
);
foreignObject
.
setAttribute
(
'
height
'
,
fontSize
);
foreignObject
.
setAttribute
(
'
height
'
,
fontSize
);
foreignObject
.
setAttribute
(
'
width
'
,
width
);
foreignObject
.
setAttribute
(
'
width
'
,
width
);
foreignObject
.
setAttribute
(
'
style
'
,
`color:
${
color
[
0
]}
`
);
foreignObject
.
setAttribute
(
'
style
'
,
`color:
${
color
[
0
]}
`
);
foreignObject
.
setAttribute
(
foreignObject
.
setAttribute
(
'
class
'
,
'
class
'
,
`content
${
normalRect
?
''
:
'
content-mini
'
}
`
,
`content
${
!
data
.
textOffsets
?
''
:
'
content-mini
'
}
`
,
);
);
const
title
=
document
.
createElementNS
(
this
.
svg
.
namespaceURI
,
'
title
'
);
const
title
=
document
.
createElementNS
(
this
.
svg
.
namespaceURI
,
'
title
'
);
...
...
mindinsight/ui/src/views/train-manage/step-trace.vue
浏览文件 @
1647882a
...
@@ -164,7 +164,7 @@ export default {
...
@@ -164,7 +164,7 @@ export default {
totalTime
:
0
,
totalTime
:
0
,
rowHeight
:
60
,
rowHeight
:
60
,
markerPadding
:
4
,
markerPadding
:
4
,
minRate
:
0.0
5
,
minRate
:
0.0
1
,
namespaceURI
:
'
http://www.w3.org/2000/svg
'
,
namespaceURI
:
'
http://www.w3.org/2000/svg
'
,
resizeTimer
:
null
,
resizeTimer
:
null
,
colorList
:
[
colorList
:
[
...
@@ -483,9 +483,17 @@ export default {
...
@@ -483,9 +483,17 @@ export default {
const
dashedLine
=
this
.
addDashedLine
(
index
);
const
dashedLine
=
this
.
addDashedLine
(
index
);
svg
.
insertBefore
(
dashedLine
,
svg
.
querySelector
(
'
g
'
));
svg
.
insertBefore
(
dashedLine
,
svg
.
querySelector
(
'
g
'
));
let
textOffsets
=
0
;
row
.
forEach
((
i
)
=>
{
row
.
forEach
((
i
)
=>
{
if
(
i
.
duration
)
{
if
(
i
.
duration
)
{
if
(
i
.
name
)
{
if
(
i
.
name
)
{
if
(
i
.
duration
<
minTime
)
{
textOffsets
++
;
}
else
{
textOffsets
=
0
;
}
i
.
textOffsets
=
textOffsets
;
const
tempDom
=
this
.
createRect
(
i
,
index
);
const
tempDom
=
this
.
createRect
(
i
,
index
);
const
tempStr
=
`g
${
const
tempStr
=
`g
${
i
.
duration
>
minTime
?
''
:
'
.arrow
'
i
.
duration
>
minTime
?
''
:
'
.arrow
'
...
@@ -528,7 +536,6 @@ export default {
...
@@ -528,7 +536,6 @@ export default {
const
height
=
40
;
const
height
=
40
;
const
width
=
(
data
.
duration
/
this
.
svg
.
totalTime
)
*
this
.
svg
.
totalWidth
;
const
width
=
(
data
.
duration
/
this
.
svg
.
totalTime
)
*
this
.
svg
.
totalWidth
;
const
fontSize
=
12
;
const
fontSize
=
12
;
const
normalRect
=
data
.
duration
>
this
.
svg
.
minRate
*
this
.
svg
.
totalTime
;
const
x1
=
const
x1
=
(
data
.
start
/
this
.
svg
.
totalTime
)
*
this
.
svg
.
totalWidth
+
(
data
.
start
/
this
.
svg
.
totalTime
)
*
this
.
svg
.
totalWidth
+
...
@@ -571,7 +578,7 @@ export default {
...
@@ -571,7 +578,7 @@ export default {
foreignObject
.
setAttribute
(
foreignObject
.
setAttribute
(
'
x
'
,
'
x
'
,
normalRect
!
data
.
textOffsets
?
x1
?
x1
:
Math
.
min
(
:
Math
.
min
(
this
.
svg
.
svgPadding
*
2
+
this
.
svg
.
totalWidth
-
textWidth
,
this
.
svg
.
svgPadding
*
2
+
this
.
svg
.
totalWidth
-
textWidth
,
...
@@ -581,14 +588,14 @@ export default {
...
@@ -581,14 +588,14 @@ export default {
foreignObject
.
setAttribute
(
foreignObject
.
setAttribute
(
'
y
'
,
'
y
'
,
y1
+
(
height
-
fontSize
)
/
2
+
(
normalRect
?
0
:
fontSize
)
,
y1
+
(
height
-
fontSize
)
/
2
+
data
.
textOffsets
*
fontSize
,
);
);
foreignObject
.
setAttribute
(
'
height
'
,
fontSize
);
foreignObject
.
setAttribute
(
'
height
'
,
fontSize
);
foreignObject
.
setAttribute
(
'
width
'
,
width
);
foreignObject
.
setAttribute
(
'
width
'
,
width
);
foreignObject
.
setAttribute
(
'
style
'
,
`color:
${
color
[
0
]}
`
);
foreignObject
.
setAttribute
(
'
style
'
,
`color:
${
color
[
0
]}
`
);
foreignObject
.
setAttribute
(
foreignObject
.
setAttribute
(
'
class
'
,
'
class
'
,
`content
${
normalRect
?
''
:
'
content-mini
'
}
`
,
`content
${
!
data
.
textOffsets
?
''
:
'
content-mini
'
}
`
,
);
);
const
title
=
document
.
createElementNS
(
this
.
svg
.
namespaceURI
,
'
title
'
);
const
title
=
document
.
createElementNS
(
this
.
svg
.
namespaceURI
,
'
title
'
);
...
@@ -747,8 +754,8 @@ export default {
...
@@ -747,8 +754,8 @@ export default {
}
}
}
}
.step-message
{
.step-message
{
height
:
24
px
;
height
:
32
px
;
line-height
:
24
px
;
line-height
:
16
px
;
margin-top
:
6px
;
margin-top
:
6px
;
margin-left
:
14px
;
margin-left
:
14px
;
overflow-y
:
auto
;
overflow-y
:
auto
;
...
@@ -765,7 +772,7 @@ export default {
...
@@ -765,7 +772,7 @@ export default {
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.pf-content-middle
{
.pf-content-middle
{
padding
:
1
5
px
15px
0
;
padding
:
1
0
px
15px
0
;
height
:
calc
(
100%
-
62px
);
height
:
calc
(
100%
-
62px
);
#trace-container
{
#trace-container
{
width
:
100%
;
width
:
100%
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录