Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
VisualDL
提交
0d77dd69
V
VisualDL
项目概览
PaddlePaddle
/
VisualDL
接近 2 年 前同步成功
通知
89
Star
4655
Fork
642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
5
Wiki
分析
仓库
DevOps
项目成员
Pages
V
VisualDL
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
5
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
0d77dd69
编写于
4月 09, 2018
作者:
D
daminglu
提交者:
GitHub
4月 09, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Polish for release (#378)
上级
747329e0
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
22 addition
and
20 deletion
+22
-20
frontend/src/graph/Graph.vue
frontend/src/graph/Graph.vue
+0
-1
frontend/src/graph/ui/Chart.vue
frontend/src/graph/ui/Chart.vue
+15
-16
frontend/src/graph/ui/Config.vue
frontend/src/graph/ui/Config.vue
+5
-1
frontend/template/index.html
frontend/template/index.html
+1
-1
frontend/tool/webpack.config.js
frontend/tool/webpack.config.js
+1
-1
未找到文件。
frontend/src/graph/Graph.vue
浏览文件 @
0d77dd69
...
...
@@ -3,7 +3,6 @@
<div
class=
"visual-dl-page-left"
>
<ui-chart
:do-download=
"doDownload"
:cur-node=
"curNode"
@
curNodeUpdated=
"curNode = $event"
@
triggerDownload=
"doDownload = $event"
/>
...
...
frontend/src/graph/ui/Chart.vue
浏览文件 @
0d77dd69
...
...
@@ -20,10 +20,7 @@ export default {
type
:
Boolean
,
required
:
true
,
},
'
curNode
'
:
{
type
:
Object
,
default
:
{},
}},
},
computed
:
{},
data
()
{
return
{
...
...
@@ -95,9 +92,9 @@ export default {
nodeKey
,
{
label
:
buildInputNodeLabel
(
curInputNode
),
style
:
'
opacity: 0.1;
'
+
'
stroke-width: 3px;
'
,
class
:
'
input
'
,
style
:
'
stroke: #A3D39C; stroke-width: 3px;
'
+
'
stroke-dasharray: 5, 5;
'
,
labelStyle
:
'
font-size: 0.8em;
'
,
}
...
...
@@ -116,8 +113,11 @@ export default {
nodeKey
,
{
label
:
curOpLabel
+
'
'
.
repeat
(
Math
.
floor
(
curOpLabel
.
length
/
5
)),
shape
:
'
rect
'
,
class
:
'
operator
'
,
style
:
'
opacity: 0.5;
'
,
style
:
'
stroke-width: 3px;
'
+
'
opacity: 0.1;
'
+
'
rx: 10; ry: 10;
'
,
}
);
...
...
@@ -131,8 +131,8 @@ export default {
{
label
:
outputNodeKey
+
outputPadding
,
class
:
'
output
'
,
style
:
'
opacity: 0.
5
;
'
+
'
stroke-width:
2
px;
'
+
style
:
'
opacity: 0.
1
;
'
+
'
stroke-width:
3
px;
'
+
'
stroke-dasharray: 5, 5;
'
,
shape
:
'
diamond
'
,
...
...
@@ -158,8 +158,8 @@ export default {
svg
.
attr
(
'
viewBox
'
,
'
0 0
'
+
g
.
graph
().
width
+
'
'
+
g
.
graph
().
height
);
svg
.
selectAll
(
'
.node
'
).
on
(
'
click
'
,
function
(
d
,
i
)
{
chartScope
.
curNode
=
g
.
node
(
d
);
let
nodeType
=
c
hartScope
.
c
urNode
.
class
;
let
curNode
=
g
.
node
(
d
);
let
nodeType
=
curNode
.
class
;
let
nodeInfo
=
null
;
if
(
nodeType
===
'
operator
'
)
{
let
opIndex
=
d
.
slice
(
7
);
// remove prefix "opNode_"
...
...
@@ -188,16 +188,15 @@ export default {
.node ellipse
.node polygon
stroke: #333
fill: #fff
stroke-color: #41b3a3
stroke-width: 1.5px
.edgePath path.path
stroke: #333
fill: none
stroke-width: 1.5px
.operator
fill: #
41b3a3
fill: #
008c99
.operator > rect
rx: 10;
...
...
@@ -207,10 +206,10 @@ export default {
cursor: pointer
.output
fill: #
c38d9e
fill: #
015249
.input
fill: #
e8a87c
fill: #
6c648b
.visual-dl-graph-charts
width inherit
...
...
frontend/src/graph/ui/Config.vue
浏览文件 @
0d77dd69
...
...
@@ -66,6 +66,10 @@ export default {
height 26px
.graph-config-upper
height 400px
height 150px
.node-info
font-family 'Courier New', sans-serif
font-weight bold
</
style
>
frontend/template/index.html
浏览文件 @
0d77dd69
...
...
@@ -6,7 +6,7 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=Edge"
>
<link
href=
'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons'
rel=
"stylesheet"
>
<script
src=
"https://dagrejs.github.io/project/dagre-d3/latest/dagre-d3.min.js"
></script>
<script
type=
"text/javascript"
src=
"https://dagrejs.github.io/project/dagre-d3/latest/dagre-d3.min.js"
></script>
</head>
<body>
<div
id=
"root"
></div>
...
...
frontend/tool/webpack.config.js
浏览文件 @
0d77dd69
...
...
@@ -125,7 +125,7 @@ const config = {
new
ExtractTextPlugin
({
filename
:
'
[name].css
'
})
],
externals
:
{
dagreD3
:
'
dagre-d3
'
dagreD3
:
'
dagre-d3
'
,
}
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录