Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
smart
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqinghua
smart
Commits
1862edc2
Commit
1862edc2
authored
Jan 29, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
150740a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
ne-topology.component.ts
...bapp/app/netTopology/ne-topology/ne-topology.component.ts
+1
-1
jtopo-editor.js
src/main/webapp/content/javascript/jtopo/js/jtopo-editor.js
+7
-7
No files found.
src/main/webapp/app/netTopology/ne-topology/ne-topology.component.ts
View file @
1862edc2
...
...
@@ -403,7 +403,7 @@ export class NeTopologyComponent implements OnInit, DoCheck, AfterViewInit, OnDe
response
.
forEach
(
e1
=>
{
arr
.
forEach
(
e2
=>
{
if
(
e1
.
linkId
==
e2
.
id
){
e2
.
text
=
"进口流量
:"
+
e1
.
fullValueIn
+
" 出口流量:
"
+
e1
.
fullValueOut
;
e2
.
text
=
"进口流量
:"
+
e1
.
fullValueIn
+
" 出口流量:
"
+
e1
.
fullValueOut
;
}
})
});
...
...
src/main/webapp/content/javascript/jtopo/js/jtopo-editor.js
View file @
1862edc2
...
...
@@ -175,7 +175,7 @@ function TopologyEditor() {
nodeFillColor
:
'22,124,255'
,
// 节点填充颜色
nodeShadow
:
false
,
// 节点是否显示阴影
nodeShadowColor
:
'rgba(0,0,0,0.5)'
,
// 节点阴影的颜色
nodeFont
:
'1
2
px Consolas'
,
// 节点字体
nodeFont
:
'1
0
px Consolas'
,
// 节点字体
nodeFontColor
:
'black'
,
// 节点文字颜色,如"255,255,0"
nodeDefaultWidth
:
32
,
// 新建节点默认宽
nodeDefaultHeight
:
32
,
// 新建节点默认高
...
...
@@ -185,14 +185,14 @@ function TopologyEditor() {
nodeScale
:
0.2
,
// 节点缩放幅度(此处保证X和Y均等缩放)
// Link属性
linkAlpha
:
1
,
// 连线透明度,取值范围[0-1]
linkStrokeColor
:
'
123,165,241
'
,
// 连线的颜色
linkFillColor
:
'
123,165,241
'
,
linkStrokeColor
:
'
0,0,0
'
,
// 连线的颜色
linkFillColor
:
'
0,0,0
'
,
linkShadow
:
false
,
// 是否显示连线阴影
linkShadowColor
:
'rgba(0,0,0,0.5)'
,
linkFont
:
'2
5
px Consolas'
,
// 节点字体
linkFont
:
'2
0
px Consolas'
,
// 节点字体
linkFontColor
:
'red'
,
// 连线文字颜色,如"255,255,0"
linkArrowsRadius
:
0
,
// 线条箭头半径
linkDefaultWidth
:
2
,
// 连线宽度
linkDefaultWidth
:
1
,
// 连线宽度
linkOffsetGap
:
80
,
// 折线拐角处的长度
linkDirection
:
'horizontal'
,
// 折线的方向
// Container属性
...
...
@@ -1184,11 +1184,11 @@ editor.utils = {
link
[
0
].
itemId
=
""
;
link
[
0
].
text
=
""
;
if
(
inItem
){
link
[
0
].
text
=
"进口流量
:
"
+
inItem
.
name
;
link
[
0
].
text
=
"进口流量
:
"
+
inItem
.
name
;
link
[
0
].
itemId
=
(
inItem
.
itemId
)
}
if
(
outItem
){
link
[
0
].
text
+=
" 出口流量
:
"
+
outItem
.
name
;
link
[
0
].
text
+=
" 出口流量
:
"
+
outItem
.
name
;
link
[
0
].
itemId
+=
","
+
(
outItem
.
itemId
);
}
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment