mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +00:00
Store rotation for labels
This commit is contained in:
parent
818174824b
commit
71d4c0a13a
@ -68,8 +68,9 @@ class Node:
|
||||
self._label = {
|
||||
"y": -25,
|
||||
"text": "",
|
||||
"style": "",
|
||||
"x": -17
|
||||
"style": "font-size: 10;font-familly: Verdana",
|
||||
"x": -17,
|
||||
"rotation": 0
|
||||
}
|
||||
# Update node properties with additional elements
|
||||
for prop in kwargs:
|
||||
|
@ -31,6 +31,10 @@ LABEL_OBJECT_SCHEMA = {
|
||||
"description": "Relative Y position of the label",
|
||||
"type": "integer"
|
||||
},
|
||||
"rotation": {
|
||||
"description": "Rotation of the label",
|
||||
"type": "integer"
|
||||
},
|
||||
},
|
||||
"required": [
|
||||
"text",
|
||||
|
Loading…
Reference in New Issue
Block a user