Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions netbox/dcim/svg/cables.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,9 @@ def draw_attachment(self):

# Draw attachment (line)
start = (OFFSET + self.center, OFFSET + self.cursor)
height = PADDING * 2 + LINE_HEIGHT + PADDING * 2
end = (start[0], start[1] + height)
end = (start[0], start[1] + CABLE_HEIGHT)
line = Line(start=start, end=end, class_='attachment')
group.add(line)
self.cursor += PADDING * 4

return group

Expand All @@ -358,10 +356,10 @@ def render(self):
# Else: No need to draw parent objects (parent objects are drawn in last "round" as the far-end!)

near_terminations = self.draw_terminations(near_ends, parent_object_nodes)
self.cursor += CABLE_HEIGHT

# Connector (a Cable or WirelessLink)
if links and far_ends:
self.cursor += CABLE_HEIGHT

obj_list = {end.parent_object for end in far_ends}
parent_object_nodes, far_terminations = self.draw_far_objects(obj_list, far_ends)
Expand Down Expand Up @@ -449,6 +447,7 @@ def render(self):
# Attachment
attachment = self.draw_attachment()
self.connectors.append(attachment)
self.cursor += CABLE_HEIGHT

# Object
parent_object_nodes = self.draw_parent_objects(far_ends)
Expand Down