Made line from dashed to solid bold

This commit is contained in:
Tobias Falk 2024-06-01 11:09:14 +02:00
parent a015da52b8
commit 8c97c5df22
4 changed files with 13 additions and 13 deletions

12
examples/ex15.html generated
View File

@ -100,17 +100,17 @@
<!-- X1&#45;&#45;X1 --> <!-- X1&#45;&#45;X1 -->
<g id="edge1" class="edge"> <g id="edge1" class="edge">
<title>X1:c&#45;&#45;X1:c</title> <title>X1:c&#45;&#45;X1:c</title>
<path fill="none" stroke="#ff66cc" stroke-dasharray="5,2" d="M83.72,-156C83.72,-156 83.72,-60 83.72,-60"/> <path fill="none" stroke="#ff66cc" stroke-width="2" d="M83.72,-156C83.72,-156 83.72,-60 83.72,-60"/>
</g> </g>
<!-- X1&#45;&#45;X1 --> <!-- X1&#45;&#45;X1 -->
<g id="edge2" class="edge"> <g id="edge2" class="edge">
<title>X1:c&#45;&#45;X1:c</title> <title>X1:c&#45;&#45;X1:c</title>
<path fill="none" stroke="#ff66cc" stroke-dasharray="5,2" d="M83.72,-60C83.72,-60 83.72,-12 83.72,-12"/> <path fill="none" stroke="#ff66cc" stroke-width="2" d="M83.72,-60C83.72,-60 83.72,-12 83.72,-12"/>
</g> </g>
<!-- X1&#45;&#45;X1 --> <!-- X1&#45;&#45;X1 -->
<g id="edge3" class="edge"> <g id="edge3" class="edge">
<title>X1:c&#45;&#45;X1:c</title> <title>X1:c&#45;&#45;X1:c</title>
<path fill="none" stroke="#ff0000" stroke-dasharray="5,2" d="M127.53,-132C127.53,-132 127.53,-36 127.53,-36"/> <path fill="none" stroke="#ff0000" stroke-width="2" d="M127.53,-132C127.53,-132 127.53,-36 127.53,-36"/>
</g> </g>
<!-- W1 --> <!-- W1 -->
<g id="node2" class="node"> <g id="node2" class="node">
@ -283,17 +283,17 @@
<!-- X2&#45;&#45;X2 --> <!-- X2&#45;&#45;X2 -->
<g id="edge13" class="edge"> <g id="edge13" class="edge">
<title>X2:c&#45;&#45;X2:c</title> <title>X2:c&#45;&#45;X2:c</title>
<path fill="none" stroke="#000000" stroke-dasharray="5,2" d="M876.53,-159C876.53,-159 876.53,-63 876.53,-63"/> <path fill="none" stroke="#000000" stroke-width="2" d="M876.53,-159C876.53,-159 876.53,-63 876.53,-63"/>
</g> </g>
<!-- X2&#45;&#45;X2 --> <!-- X2&#45;&#45;X2 -->
<g id="edge14" class="edge"> <g id="edge14" class="edge">
<title>X2:c&#45;&#45;X2:c</title> <title>X2:c&#45;&#45;X2:c</title>
<path fill="none" stroke="#000000" stroke-dasharray="5,2" d="M876.53,-63C876.53,-63 876.53,-15 876.53,-15"/> <path fill="none" stroke="#000000" stroke-width="2" d="M876.53,-63C876.53,-63 876.53,-15 876.53,-15"/>
</g> </g>
<!-- X2&#45;&#45;X2 --> <!-- X2&#45;&#45;X2 -->
<g id="edge15" class="edge"> <g id="edge15" class="edge">
<title>X2:c&#45;&#45;X2:c</title> <title>X2:c&#45;&#45;X2:c</title>
<path fill="none" stroke="#000000" stroke-dasharray="5,2" d="M920.34,-135C920.34,-135 920.34,-39 920.34,-39"/> <path fill="none" stroke="#000000" stroke-width="2" d="M920.34,-135C920.34,-135 920.34,-39 920.34,-39"/>
</g> </g>
</g> </g>
</svg> </svg>

BIN
examples/ex15.png generated

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 48 KiB

12
examples/ex15.svg generated
View File

@ -71,17 +71,17 @@
<!-- X1&#45;&#45;X1 --> <!-- X1&#45;&#45;X1 -->
<g id="edge1" class="edge"> <g id="edge1" class="edge">
<title>X1:c&#45;&#45;X1:c</title> <title>X1:c&#45;&#45;X1:c</title>
<path fill="none" stroke="#ff66cc" stroke-dasharray="5,2" d="M83.72,-156C83.72,-156 83.72,-60 83.72,-60"/> <path fill="none" stroke="#ff66cc" stroke-width="2" d="M83.72,-156C83.72,-156 83.72,-60 83.72,-60"/>
</g> </g>
<!-- X1&#45;&#45;X1 --> <!-- X1&#45;&#45;X1 -->
<g id="edge2" class="edge"> <g id="edge2" class="edge">
<title>X1:c&#45;&#45;X1:c</title> <title>X1:c&#45;&#45;X1:c</title>
<path fill="none" stroke="#ff66cc" stroke-dasharray="5,2" d="M83.72,-60C83.72,-60 83.72,-12 83.72,-12"/> <path fill="none" stroke="#ff66cc" stroke-width="2" d="M83.72,-60C83.72,-60 83.72,-12 83.72,-12"/>
</g> </g>
<!-- X1&#45;&#45;X1 --> <!-- X1&#45;&#45;X1 -->
<g id="edge3" class="edge"> <g id="edge3" class="edge">
<title>X1:c&#45;&#45;X1:c</title> <title>X1:c&#45;&#45;X1:c</title>
<path fill="none" stroke="#ff0000" stroke-dasharray="5,2" d="M127.53,-132C127.53,-132 127.53,-36 127.53,-36"/> <path fill="none" stroke="#ff0000" stroke-width="2" d="M127.53,-132C127.53,-132 127.53,-36 127.53,-36"/>
</g> </g>
<!-- W1 --> <!-- W1 -->
<g id="node2" class="node"> <g id="node2" class="node">
@ -254,17 +254,17 @@
<!-- X2&#45;&#45;X2 --> <!-- X2&#45;&#45;X2 -->
<g id="edge13" class="edge"> <g id="edge13" class="edge">
<title>X2:c&#45;&#45;X2:c</title> <title>X2:c&#45;&#45;X2:c</title>
<path fill="none" stroke="#000000" stroke-dasharray="5,2" d="M876.53,-159C876.53,-159 876.53,-63 876.53,-63"/> <path fill="none" stroke="#000000" stroke-width="2" d="M876.53,-159C876.53,-159 876.53,-63 876.53,-63"/>
</g> </g>
<!-- X2&#45;&#45;X2 --> <!-- X2&#45;&#45;X2 -->
<g id="edge14" class="edge"> <g id="edge14" class="edge">
<title>X2:c&#45;&#45;X2:c</title> <title>X2:c&#45;&#45;X2:c</title>
<path fill="none" stroke="#000000" stroke-dasharray="5,2" d="M876.53,-63C876.53,-63 876.53,-15 876.53,-15"/> <path fill="none" stroke="#000000" stroke-width="2" d="M876.53,-63C876.53,-63 876.53,-15 876.53,-15"/>
</g> </g>
<!-- X2&#45;&#45;X2 --> <!-- X2&#45;&#45;X2 -->
<g id="edge15" class="edge"> <g id="edge15" class="edge">
<title>X2:c&#45;&#45;X2:c</title> <title>X2:c&#45;&#45;X2:c</title>
<path fill="none" stroke="#000000" stroke-dasharray="5,2" d="M920.34,-135C920.34,-135 920.34,-39 920.34,-39"/> <path fill="none" stroke="#000000" stroke-width="2" d="M920.34,-135C920.34,-135 920.34,-39 920.34,-39"/>
</g> </g>
</g> </g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -272,7 +272,7 @@ class Harness:
for short, short_color in zip_longest(connector.internal_shorts, connector.internal_shorts_color): for short, short_color in zip_longest(connector.internal_shorts, connector.internal_shorts_color):
if short_color == None: if short_color == None:
short_color = "BK" short_color = "BK"
dot.attr("edge", color=str(wv_colors.translate_color(short_color, "HEX")), headclip="false", tailclip="false", style="dashed") dot.attr("edge", color=str(wv_colors.translate_color(short_color, "HEX")), headclip="false", tailclip="false", style="solid,bold")
for i in range(1, len(short)): for i in range(1, len(short)):
dot.edge( dot.edge(
f"{connector.name}:p{short[i - 1]}j:c", f"{connector.name}:p{short[i - 1]}j:c",