Skip to content

Port labels: render outside the block, no more chunky expansion#281

Merged
milanofthe merged 1 commit intomainfrom
feature/port-labels-redesign
May 5, 2026
Merged

Port labels: render outside the block, no more chunky expansion#281
milanofthe merged 1 commit intomainfrom
feature/port-labels-redesign

Conversation

@milanofthe
Copy link
Copy Markdown
Member

@milanofthe milanofthe commented May 5, 2026

  • Port labels render as absolutely-positioned spans outside the block bounds — block size stays the same whether labels are toggled on or off
  • For vertical block orientations, labels use writing-mode: sideways-{lr|rl} to read parallel to the wire (top edge bottom-to-top, bottom edge top-to-bottom — both reading outward from the block)
  • The handle/wire is always below the label from the label's perspective; anchor sits at label's bottom-left or bottom-right
  • Hover over a port handle highlights the matching label in the node accent color; same accent applies when the block is selected
  • Tooltip on handle hover is suppressed when the label is already visible (no double-info)
  • applyPortLabelSync runs recursively on model load so Scope/Spectrum/Adder/Divider port names match their labels/operations params from the start (previously synced only on the next param edit)

@milanofthe milanofthe merged commit 745b663 into main May 5, 2026
4 checks passed
@milanofthe milanofthe deleted the feature/port-labels-redesign branch May 5, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant