1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00

Store rotation for labels

This commit is contained in:
Julien Duponchelle 2016-07-01 15:30:38 +02:00
parent 818174824b
commit 71d4c0a13a
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8
2 changed files with 7 additions and 2 deletions

View File

@ -68,8 +68,9 @@ class Node:
self._label = { self._label = {
"y": -25, "y": -25,
"text": "", "text": "",
"style": "", "style": "font-size: 10;font-familly: Verdana",
"x": -17 "x": -17,
"rotation": 0
} }
# Update node properties with additional elements # Update node properties with additional elements
for prop in kwargs: for prop in kwargs:

View File

@ -31,6 +31,10 @@ LABEL_OBJECT_SCHEMA = {
"description": "Relative Y position of the label", "description": "Relative Y position of the label",
"type": "integer" "type": "integer"
}, },
"rotation": {
"description": "Rotation of the label",
"type": "integer"
},
}, },
"required": [ "required": [
"text", "text",