Commit 1862edc2 authored by wangqinghua's avatar wangqinghua

update

parent 150740a7
......@@ -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;
}
})
});
......
......@@ -175,7 +175,7 @@ function TopologyEditor() {
nodeFillColor: '22,124,255', // 节点填充颜色
nodeShadow: false, // 节点是否显示阴影
nodeShadowColor: 'rgba(0,0,0,0.5)', // 节点阴影的颜色
nodeFont: '12px Consolas', // 节点字体
nodeFont: '10px 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: '25px Consolas', // 节点字体
linkFont: '20px 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);
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment