tzurshubi commited on
Commit
c54e8fa
·
verified ·
1 Parent(s): afdfed5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -549,7 +549,7 @@ def make_figure(d: int,
549
  x=[x1, x2],
550
  y=[y1, y2],
551
  mode="lines",
552
- line=dict(width=max(1, edge_w * 2), color=dim_color(b)),
553
  opacity=1.0,
554
  hoverinfo="skip",
555
  name=f"path bit {b}",
@@ -566,7 +566,7 @@ def make_figure(d: int,
566
  x=[x1, x2],
567
  y=[y1, y2],
568
  mode="lines",
569
- line=dict(width=max(1, edge_w * 2), color="red"),
570
  opacity=1.0,
571
  hoverinfo="skip",
572
  name="negated path",
@@ -584,7 +584,7 @@ def make_figure(d: int,
584
  x=[x1, x2],
585
  y=[y1, y2],
586
  mode="lines",
587
- line=dict(width=max(2, edge_w * 3), color="#2563EB"),
588
  opacity=1.0,
589
  hoverinfo="skip",
590
  name="selected subpath",
@@ -608,7 +608,7 @@ def make_figure(d: int,
608
  x=[x1, x2],
609
  y=[y1, y2],
610
  mode="lines",
611
- line=dict(width=max(2, edge_w * 3), color="#DC2626"),
612
  opacity=1.0,
613
  hoverinfo="skip",
614
  name="switch dims selection",
@@ -641,13 +641,13 @@ def make_figure(d: int,
641
 
642
  # --- size ---
643
  if sel_active and v in selected_vertices:
644
- sizes.append(base_size * 2.6)
645
  elif switch_active and v in switch_vertices:
646
- sizes.append(base_size * 2.6)
647
  elif mark_distances and v in neighbor_set:
648
- sizes.append(base_size * 1.4)
649
  else:
650
- sizes.append(base_size * (2 if v in in_path else 1))
651
 
652
  # --- color ---
653
  if sel_active and v in selected_vertices:
 
549
  x=[x1, x2],
550
  y=[y1, y2],
551
  mode="lines",
552
+ line=dict(width=max(1, edge_w * 1.6), color=dim_color(b)),
553
  opacity=1.0,
554
  hoverinfo="skip",
555
  name=f"path bit {b}",
 
566
  x=[x1, x2],
567
  y=[y1, y2],
568
  mode="lines",
569
+ line=dict(width=max(1, edge_w * 1.6), color="red"),
570
  opacity=1.0,
571
  hoverinfo="skip",
572
  name="negated path",
 
584
  x=[x1, x2],
585
  y=[y1, y2],
586
  mode="lines",
587
+ line=dict(width=max(2, edge_w * 2), color="#2563EB"),
588
  opacity=1.0,
589
  hoverinfo="skip",
590
  name="selected subpath",
 
608
  x=[x1, x2],
609
  y=[y1, y2],
610
  mode="lines",
611
+ line=dict(width=max(2, edge_w * 2), color="#DC2626"),
612
  opacity=1.0,
613
  hoverinfo="skip",
614
  name="switch dims selection",
 
641
 
642
  # --- size ---
643
  if sel_active and v in selected_vertices:
644
+ sizes.append(base_size * 2.2)
645
  elif switch_active and v in switch_vertices:
646
+ sizes.append(base_size * 2.2)
647
  elif mark_distances and v in neighbor_set:
648
+ sizes.append(base_size * 1.2)
649
  else:
650
+ sizes.append(base_size * (1.6 if v in in_path else 1))
651
 
652
  # --- color ---
653
  if sel_active and v in selected_vertices: