mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Make x,y optional for creating links via API. Fixes #1630
This commit is contained in:
1 parent
63c0bfe46e
commit
647dde1bb4
3 files changed
+7
-27
No files matched your search
@@ -248,11 +248,8 @@ class Link:
|
||||
|
||||
if label is None:
|
||||
label = {
|
||||
"x": -10,
|
||||
"y": -10,
|
||||
"rotation": 0,
|
||||
"text": html.escape("{}/{}".format(adapter_number, port_number)),
|
||||
"style": "font-size: 10; font-style: Verdana"
|
||||
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;"
|
||||
}
|
||||
|
||||
self._nodes.append({
|
||||
|
||||
@@ -39,9 +39,7 @@ LABEL_OBJECT_SCHEMA = {
|
||||
},
|
||||
},
|
||||
"required": [
|
||||
"text",
|
||||
"x",
|
||||
"y"
|
||||
"text"
|
||||
],
|
||||
"additionalProperties": False
|
||||
}
|
||||
Reference in new issue
Block a user