Code:
const lane = {
font: FONT.normal,
fill: COLOR.background,
line(data) {
return {
width: 1,
color: COLOR[data.getClient('focus') ? 'active' : 'line']
};
},
w: NETWORK.repulsion.column,
h: 234,
origin: {
x: 0,
y: 0
},
v: [
{
shape: 'rect',
rect: {
w: NETWORK.repulsion.column, h: 34, y: 1
}
},
{
shape: 'line',
p1: { x: NETWORK.repulsion.column, y: 34 },
p2: { x: NETWORK.repulsion.column, y: 234 },
line: {
width: 1,
dash: [10, 5]
},
alpha: 0.5
},
{
shape: 'line',
p1: { x: 0, y: 34 },
p2: { x: 0, y: 234 },
line: {
width: 1,
dash: [10, 5]
},
alpha: 0.5
}
]
};
网元在调用setSize增加宽高后,会变形