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

Change default z value for nodes to 1

This commit is contained in:
grossmj 2018-08-08 14:33:10 +07:00
parent 033f005bde
commit cc52a6a6b5
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ class Drawing:
text, images, rectangle... They are pure SVG elements. text, images, rectangle... They are pure SVG elements.
""" """
def __init__(self, project, drawing_id=None, svg="<svg></svg>", x=0, y=0, z=0, rotation=0): def __init__(self, project, drawing_id=None, svg="<svg></svg>", x=0, y=0, z=2, rotation=0):
self._project = project self._project = project
if drawing_id is None: if drawing_id is None:
self._id = str(uuid.uuid4()) self._id = str(uuid.uuid4())

View File

@ -71,7 +71,7 @@ class Node:
self._status = "stopped" self._status = "stopped"
self._x = 0 self._x = 0
self._y = 0 self._y = 0
self._z = 0 self._z = 1 # default z value is 1
self._ports = None self._ports = None
self._symbol = None self._symbol = None
self._custom_adapters = [] self._custom_adapters = []