Closes #701: Option to always show cable/interface labels on edges (#707)

* Added draw termination labels
This commit is contained in:
Mario
2026-03-10 09:34:45 +01:00
committed by GitHub
parent e20f250425
commit 9d4ef31bdd
10 changed files with 127 additions and 17 deletions
+6 -1
View File
@@ -196,6 +196,11 @@ def get_query_settings(request):
if request.GET["straight_cables"] == "True":
straight_cables = True
draw_termination_labels = False
if "draw_termination_labels" in request.GET:
if request.GET["draw_termination_labels"] == "True":
draw_termination_labels = True
grid_size = 0
if "grid_size" in request.GET:
grid_size = request.GET.getlist('grid_size')
@@ -204,7 +209,7 @@ def get_query_settings(request):
if "node_label_items" in request.GET:
node_label_items = request.GET.getlist('node_label_items')
return filter_id, ignore_cable_type, save_coords, show_unconnected, show_power, show_circuit, show_logical_connections, show_single_cable_logical_conns, show_cables, show_wireless, group_sites, group_locations, group_racks, group_virtualchassis, group, show_neighbors, straight_cables, grid_size, node_label_items
return filter_id, ignore_cable_type, save_coords, show_unconnected, show_power, show_circuit, show_logical_connections, show_single_cable_logical_conns, show_cables, show_wireless, group_sites, group_locations, group_racks, group_virtualchassis, group, show_neighbors, straight_cables, draw_termination_labels, grid_size, node_label_items
class LinePattern():
wireless = [2, 10, 2, 10]