-
Notifications
You must be signed in to change notification settings - Fork 253
Description
The following example brings up an interesting (and quite common?) use case for cables containing only a single wire. Similar to the way that connectors can be defined with style: simple
, I suggest to implement cables with this attribute. They would be displayed without a box and should optionally show the wire name/label.
Credits to @EloiVilalta in #293 (comment)
connectors:
C1:
style: simple
type: Connector
C2:
style: simple
type: Connector
cables:
W1:
wirecount: 1
show_name: false
show_wirecount: false
colors: [RD]
connections:
-
- C1: [1]
- W1: [1]
- C2: [1]
The issue with the current implementation is that it requires a lot of space in the graph due to the HTML table. This is not needed for only displaying the label/name as a text.
This would allow for the same principle as virtual splices to be applied to wires instead of connectors. It enables simplified layouts and possibly also grouping of wires into clusters. The latter enforces some structure, but leaves the order of the wires up to the Graphviz engine.
When I use the term virtual splice, I mean a connection between two matching wires in WireViz that in real life represents a continuation of the same wire (no physical cut) and visualized in the diagram as such.
This suggestion also complements #268 (comment), which refers to an example provided by @Halfwalker, who called this feature compact_view.
Similar arrangements should be produced for wires being grouped into a cluster. Splicing a wire in a similar fashion should also be possible.