mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-30 01:28:56 +00:00
Rotation for label of interfaces
This commit is contained in:
parent
fea1e3ba61
commit
5bf6011429
@ -52,6 +52,7 @@ class Link:
|
||||
label = {
|
||||
"x": -10,
|
||||
"y": -10,
|
||||
"rotation": 0,
|
||||
"text": "{}/{}".format(adapter_number, port_number),
|
||||
"style": "font-size: 10; font-style: Verdana"
|
||||
}
|
||||
|
@ -66,6 +66,7 @@ def test_add_node(async_run, project, compute):
|
||||
'y': -10,
|
||||
'text': '0/4',
|
||||
'x': -10,
|
||||
'rotation': 0,
|
||||
'style': 'font-size: 10; font-style: Verdana'
|
||||
}
|
||||
}
|
||||
@ -89,6 +90,7 @@ def test_update_node(async_run, project, compute):
|
||||
'y': -42,
|
||||
'text': '0/4',
|
||||
'x': -10,
|
||||
'rotation': 0,
|
||||
'style': 'font-size: 10; font-style: Verdana'
|
||||
}
|
||||
project.dump = AsyncioMagicMock()
|
||||
@ -118,6 +120,7 @@ def test_json(async_run, project, compute):
|
||||
'y': -10,
|
||||
'text': '0/4',
|
||||
'x': -10,
|
||||
'rotation': 0,
|
||||
'style': 'font-size: 10; font-style: Verdana'
|
||||
}
|
||||
},
|
||||
@ -129,6 +132,7 @@ def test_json(async_run, project, compute):
|
||||
'y': -10,
|
||||
'text': '1/3',
|
||||
'x': -10,
|
||||
'rotation': 0,
|
||||
'style': 'font-size: 10; font-style: Verdana'
|
||||
}
|
||||
}
|
||||
@ -148,6 +152,7 @@ def test_json(async_run, project, compute):
|
||||
'y': -10,
|
||||
'text': '0/4',
|
||||
'x': -10,
|
||||
'rotation': 0,
|
||||
'style': 'font-size: 10; font-style: Verdana'
|
||||
}
|
||||
},
|
||||
@ -159,6 +164,7 @@ def test_json(async_run, project, compute):
|
||||
'y': -10,
|
||||
'text': '1/3',
|
||||
'x': -10,
|
||||
'rotation': 0,
|
||||
'style': 'font-size: 10; font-style: Verdana'
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user