more to added more options
This commit is contained in:
parent
f49921b930
commit
02fcc688ac
45
examples/ex15.gv
generated
45
examples/ex15.gv
generated
@ -4,10 +4,10 @@ graph {
|
||||
graph [bgcolor="#FFFFFF" fontname=arial nodesep=0.33 rankdir=LR ranksep=2]
|
||||
node [fillcolor="#FFFFFF" fontname=arial height=0 margin=0 shape=none style=filled width=0]
|
||||
edge [fontname=arial style=bold]
|
||||
edge [color="#FF66CC" headclip=false style=dashed tailclip=false]
|
||||
edge [color="#FF66CC" headclip=false style="solid,bold" tailclip=false]
|
||||
X1:p1j:c -- X1:p5j:c [straight=straight]
|
||||
X1:p5j:c -- X1:p7j:c [straight=straight]
|
||||
edge [color="#FF0000" headclip=false style=dashed tailclip=false]
|
||||
edge [color="#FF0000" headclip=false style="solid,bold" tailclip=false]
|
||||
X1:p2j:c -- X1:p6j:c [straight=straight]
|
||||
edge [headclip=true style=bold tailclip=true]
|
||||
X1 [label=<
|
||||
@ -26,6 +26,12 @@ graph {
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table border="0" cellspacing="0" cellpadding="3" cellborder="1">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>SH1</td>
|
||||
<td>SH2</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>GND</td>
|
||||
<td port="p1J"><FONT FACE="Sans" POINT-SIZE="12.0" COLOR="#FF66CC">⬤</FONT></td>
|
||||
@ -70,12 +76,37 @@ graph {
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table border="0" cellspacing="0" cellpadding="3" cellborder="1">
|
||||
<tr>
|
||||
<td>Short</td>
|
||||
<td>Manufacturer</td>
|
||||
<td>M.P.N.</td>
|
||||
<td>Length</td>
|
||||
<td>Description</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SH1</td>
|
||||
<td>WireViz</td>
|
||||
<td>42XCD42A5</td>
|
||||
<td></td>
|
||||
<td>shortPart</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SH2</td>
|
||||
<td>WireViz</td>
|
||||
<td>42XCD42A5</td>
|
||||
<td>42mm</td>
|
||||
<td>shortPart</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
> fillcolor="#FFFFFF" shape=box style=filled]
|
||||
edge [color="#000000" headclip=false style=dashed tailclip=false]
|
||||
edge [color="#000000" headclip=false style="solid,bold" tailclip=false]
|
||||
X2:p1j:c -- X2:p5j:c [straight=straight]
|
||||
X2:p5j:c -- X2:p7j:c [straight=straight]
|
||||
edge [color="#000000" headclip=false style=dashed tailclip=false]
|
||||
edge [color="#000000" headclip=false style="solid,bold" tailclip=false]
|
||||
X2:p2j:c -- X2:p6j:c [straight=straight]
|
||||
edge [headclip=true style=bold tailclip=true]
|
||||
X2 [label=<
|
||||
@ -94,6 +125,12 @@ graph {
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table border="0" cellspacing="0" cellpadding="3" cellborder="1">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>SH1</td>
|
||||
<td>SH2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td port="p1l">1</td>
|
||||
<td>GND</td>
|
||||
|
||||
@ -235,6 +235,8 @@ class Connector:
|
||||
if isinstance(item, dict):
|
||||
self.additional_components[i] = AdditionalComponent(**item)
|
||||
|
||||
# self.shorts = {}
|
||||
|
||||
for i, item in enumerate(self.shorts):
|
||||
if isinstance(item, dict):
|
||||
self.shorts[i] = Short(**item)
|
||||
|
||||
@ -20,6 +20,7 @@ from wireviz.DataClasses import (
|
||||
Options,
|
||||
Tweak,
|
||||
Side,
|
||||
Short,
|
||||
)
|
||||
from wireviz.svgembed import embed_svg_images_file
|
||||
from wireviz.wv_bom import (
|
||||
@ -185,6 +186,9 @@ class Harness:
|
||||
fontname=self.options.fontname,
|
||||
)
|
||||
dot.attr("edge", style="bold", fontname=self.options.fontname)
|
||||
|
||||
# print(self.connectors)
|
||||
# print(self.connectors.values())
|
||||
|
||||
for connector in self.connectors.values():
|
||||
|
||||
@ -307,6 +311,13 @@ class Harness:
|
||||
shorthtml.append(f' <td>Description</td>')
|
||||
shorthtml.append(" </tr>")
|
||||
|
||||
# print(connector.shorts)
|
||||
|
||||
#shorts = connector.shorts
|
||||
#for shortI in shorts.values():
|
||||
# print(shortI)
|
||||
# print(shortI.name)
|
||||
|
||||
for shortName in connector.shorts:
|
||||
short = connector.shorts[shortName]
|
||||
shPins = short.get('pins');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user