mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-13 20:08:55 +00:00
Change default z value for nodes to 1
This commit is contained in:
parent
033f005bde
commit
cc52a6a6b5
@ -37,7 +37,7 @@ class Drawing:
|
||||
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
|
||||
if drawing_id is None:
|
||||
self._id = str(uuid.uuid4())
|
||||
|
@ -71,7 +71,7 @@ class Node:
|
||||
self._status = "stopped"
|
||||
self._x = 0
|
||||
self._y = 0
|
||||
self._z = 0
|
||||
self._z = 1 # default z value is 1
|
||||
self._ports = None
|
||||
self._symbol = None
|
||||
self._custom_adapters = []
|
||||
|
Loading…
Reference in New Issue
Block a user