Commit 80342509 authored by zhengjiangtao's avatar zhengjiangtao

修改虚拟云拓扑图样式

parent faa02166
......@@ -396,8 +396,9 @@ class TopologyComponent extends Component {
),
goObj(go.Shape,
{
fromSpot: new go.Spot(0, 0.5, -2, 0),
toSpot: new go.Spot(0, 0.5, -2, 0)
fromSpot: new go.Spot(0, 5, 2, -22),
toSpot: new go.Spot(0, 5, 2, -22)
},
{ width: 6, height: 6, portId: '',fill: null,stroke: null,alignment: new go.Spot(1, 1, -25, 49) },
new go.Binding('portId', 'left_4')
......@@ -405,64 +406,64 @@ class TopologyComponent extends Component {
goObj(go.Shape,
{
fromSpot: new go.Spot(0, 0.5, -2, 0),
toSpot: new go.Spot(0, 0.5, -2, 0)
fromSpot: new go.Spot(0, 5, 2, -22),
toSpot: new go.Spot(0, 5, 2, -22)
},
{ width: 6, height: 6, portId: '', fill: null,stroke: null,alignment: new go.Spot(1, 1, -2, 49) },
new go.Binding('portId', 'left_5')
),
goObj(go.Shape,
{
fromSpot: new go.Spot(0, 0.5, -2, 0),
toSpot: new go.Spot(0, 0.5, -2, 0)
fromSpot: new go.Spot(0, 5, 2, -22),
toSpot: new go.Spot(0, 5, 2, -22)
},
{ width: 6, height: 6, portId: '', fill:null,stroke: null,alignment: new go.Spot(1, 1, 18, 49) },
new go.Binding('portId', 'left_6')
),
goObj(go.Shape,
{
fromSpot: new go.Spot(0, 0.5, -2, 0),
toSpot: new go.Spot(0, 0.5, -2, 0)
fromSpot: new go.Spot(1, 0.5, 2, 0),
toSpot: new go.Spot(1, 0.5, 2, 0)
},
{ width: 6, height: 6, portId: '', fill: null,stroke: null,alignment: new go.Spot(1, 1, 46, 50) },
new go.Binding('portId', 'right_1')
),
goObj(go.Shape,
{
fromSpot: new go.Spot(0, 0.5, -2, 0),
toSpot: new go.Spot(0, 0.5, -2, 0)
fromSpot: new go.Spot(1, 0.5, 2, 0),
toSpot: new go.Spot(1, 0.5, 2, 0)
},
{ width: 6, height: 6, portId: '', fill: null,stroke: null,alignment: new go.Spot(1, 1, 60, 25) },
new go.Binding('portId', 'right_2')
),
goObj(go.Shape,
{
fromSpot: new go.Spot(0, 0.5, -2, 0),
toSpot: new go.Spot(0, 0.5, -2, 0)
fromSpot: new go.Spot(1, 0.5, 2, 0),
toSpot: new go.Spot(1, 0.5, 2, 0)
},
{ width: 6, height: 6, portId: '', fill: 'yellow',toArrow: "BackwardTriangle",stroke: null,alignment: new go.Spot(1, 1, 63, 5) },
{ width: 6, height: 6, portId: '', fill: null,toArrow: "BackwardTriangle",stroke: null,alignment: new go.Spot(1, 1, 63, 5) },
new go.Binding('portId', 'right_3')
),
goObj(go.Shape,
{
fromSpot: new go.Spot(0, 0.5, -2, 0),
toSpot: new go.Spot(0, 0.5, -2, 0)
fromSpot: new go.Spot(1, 0.5, 2, 0),
toSpot: new go.Spot(1, 0.5, 2, 0)
},
{ width: 6, height: 6, portId: '', fill: 'blue',toArrow: "standard",stroke: null,alignment: new go.Spot(1, 1, 45, -15) },
{ width: 6, height: 6, portId: '', fill: null,toArrow: "standard",stroke: null,alignment: new go.Spot(1, 1, 45, -15) },
new go.Binding('portId', 'right_4')
),
goObj(go.Shape,
{
fromSpot: new go.Spot(0, 0.5, -2, 0),
toSpot: new go.Spot(0, 0.5, -2, 0)
fromSpot: new go.Spot(1, 0.5, 2, 0),
toSpot: new go.Spot(1, 0.5, 2, 0)
},
{ width: 6, height: 6, portId: '', fill: 'red',toArrow: "standard",stroke: null,alignment: new go.Spot(1, 1, 30, -40) },
{ width: 6, height: 6, portId: '', fill: null,toArrow: "standard",stroke: null,alignment: new go.Spot(1, 1, 30, -40) },
new go.Binding('portId', 'right_5')
),
goObj(go.Shape,
{
fromSpot: new go.Spot(0, 0.5, -2, 0),
toSpot: new go.Spot(0, 0.5, -2, 0)
fromSpot: new go.Spot(1, 0.5, 2, 0),
toSpot: new go.Spot(1, 0.5, 2, 0)
},
{ width: 6, height: 6, portId: '', fill: null,stroke: null,alignment: new go.Spot(1, 1, 15, -53) },
new go.Binding('portId', 'right_6')
......@@ -470,7 +471,7 @@ class TopologyComponent extends Component {
goObj(go.Shape,
{
fromSpot: new go.Spot(0, 0.5, -2, 0),
toSpot: new go.Spot(0, 0.5, -2, 0)
fromSpot: new go.Spot(0, 0.5, -2, 0),
},
{ width: 6, height: 6, portId: '', fill: null,stroke: null,alignment: new go.Spot(1, 1, -1, -60) },
new go.Binding('portId', 'right_7')
......@@ -478,7 +479,7 @@ class TopologyComponent extends Component {
goObj(go.Shape,
{
fromSpot: new go.Spot(0, 0.5, -2, 0),
toSpot: new go.Spot(0, 0.5, -2, 0)
fromSpot: new go.Spot(0, 0.5, -2, 0),
},
{ width: 6, height: 6, portId: '', fill: null,stroke: null,alignment: new go.Spot(1, 1, -35, -30) },
new go.Binding('portId', 'right_8')
......@@ -497,6 +498,7 @@ class TopologyComponent extends Component {
goObj(go.Placeholder)
) // end Adornment
}
)
);
......@@ -534,8 +536,6 @@ class TopologyComponent extends Component {
new go.Binding('desiredSize', 'size', go.Size.parse).makeTwoWay(go.Size.stringify),
)
);
this.diagram.linkTemplate =
......@@ -547,12 +547,12 @@ class TopologyComponent extends Component {
corner: 2,
curve: go.Link.JumpOver,
fromEndSegmentLength: 20, //设置箭头后线长度
toEndSegmentLength: 20, //设置箭头后线长度
fromEndSegmentLength: 60, //设置箭头后线长度
toEndSegmentLength: 60, //设置箭头后线长度
},
goObj(go.Shape, { toArrow: "standard", stroke: null, fill: "gray"},
goObj(go.Shape, { strokeWidth: 2 },
new go.Binding('stroke', 'warnState', (v) => this.getLinkColor(v))
)
......
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