Dynamic Label Sizing
Labels of nodes, ports, and especially of edges can quickly become wider than we're comfortable with, causing diagram elements to increase in size to the point where the diagram becomes illegible. This page documents approaches we're exploring to tackle this problem.
Contents
Basic Ideas
There's two basic approaches for dynamically adjusting the size of labels:
- Wrapping. This strategy splits the label's text into multiple lines, thus decreasing the width, but increasing the height of the label.
- Abbreviating. This strategy shortens the label's text, thus effectively reducing its width and keeping the height constant.
These strategies can either be integrated with the layout algorithm or not. We will mostly be exploring how such strategies can be integrated into the layout algorithm.
Integrating Dynamic Label Sizing With KLay Layered
This is the status of support for dynamic label sizes of the different types of labels:
Label Type | Status |
---|---|
Node | unsupported |
Port | Unsupported |
Edge (Source) | Unsupported |
Edge (Center) | Basic Support |
Edge (Target) | Unsupported |