Refactor connector node generation Further refactor connector node generation Rebuild demos Generate gauge string inside Cable object WIP: refactor cable node generation Implement HTML indentation WIP More WIP Remove old stuff, slightly simplify code Outsource `gv_pin_table()`, simplify padding Add TODOs Outsource `set_dot_basics()` and `apply_dot_tweaks()` Make setting HTML tag attributes easier through `kwargs` Fix and simplify bgcolor logic Reactivate cable edge generation Outsource `gv_edge_wire()` Make connecting things more object-oriented Alphabetize HTML tags, improve bgcolor rendering Make mates object-oriented Run `autoflake -i` Run `autoflake -i --remove-all-unused-imports` Streamline assignment of ports to simple connectors Implement color objects Use color objects in WireViz Re-sort `wv_colors.py` Make green color darker Break longer lines not caught by `black` because they were unbroken strings or comments Make variable name more expressive Apply dot tweaks last Remove unused line Improve subclassing of components, prepare for BOM refactoring Clean up Include nested additional components in BOM do not add autogenerated designators to BOM Improve BOM generation (TODO: wires from a bundle) Prepare `harness.populate_bom()` Change `description` to `type` in additional BOM item YAML Define CLI epilog str in single statement Rename modules, adjust imports, move `build_examples.py` Restructure and update `.gitignore` Clarify `wireviz.parse()` input types Implement BOM population (missing: qty multipliers) Make `pin_objects` and `wire_objects` dictionaries Compute qty's of additional components (WIP) Add qty test file Adapt `tutorial08.yml` (remove `unit` field) Add `tabulate` to dependency list (might remove later if not needed) Sort BOM by category, assign BOM IDs Rename `Options.color_mode` to `.color_output_mod` for consistency Change BOM output file extension from `.bom.tsv` to `.tsv` Implement BOM bubbles Stop recursive nesting of additional components Add BOM bubble to additional component list (WIP) Fix gauge conversion Fix line breaks in code Optimize BOM bubble geometry Implement pin color output Small issue: GraphViz warning ``` Warning: table size too small for content ``` Add some test files to `tests/` directory Update test files Allow multiple colors for components Implement multiple colors for components, improve multicolor table rendering Fix color cell implementation Fix node background color rendering Add test file for node and title bgcolors WIP: BOM modes Add TODO for empty connector pin tables Comment out BOM modes (WIP) and BOM bubbles Resume work on BOM Include part number info in BOM table Fix BOM output in TSV and HTML Add bundles' wires' part number info to BOM Add TODOs Implement bundle part number rendering Improve conductor table rendering Fix additional component BOM table layout Disable CLI BOM output Add suggestions from #246 Add suggestions from #186 Add .vscode/ to .gitignore Fix PyLance problems Update interim version number Fix zero-size cell for simple connectors without type Implement additional parameters dict for components Implement note for additional components Thicken additional component table Add placeholder for add.comp. PN info Apply black
182 lines
14 KiB
XML
Generated
182 lines
14 KiB
XML
Generated
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||
<!-- Generated by graphviz version 2.49.1 (20210923.0004)
|
||
-->
|
||
<!-- Pages: 1 -->
|
||
<svg width="833pt" height="291pt"
|
||
viewBox="0.00 0.00 833.00 291.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 287)">
|
||
<polygon fill="#ffffff" stroke="transparent" points="-4,4 -4,-287 829,-287 829,4 -4,4"/>
|
||
<!-- X1 -->
|
||
<g id="node1" class="node">
|
||
<title>X1</title>
|
||
<polygon fill="#ffffff" stroke="black" points="139,-253 0,-253 0,0 139,0 139,-253"/>
|
||
<polygon fill="#ffffff" stroke="transparent" points="0,0 0,-253 139,-253 139,0 0,0"/>
|
||
<polygon fill="none" stroke="black" points="0.5,-229.5 0.5,-252.5 139.5,-252.5 139.5,-229.5 0.5,-229.5"/>
|
||
<text text-anchor="start" x="61" y="-237.3" font-family="arial" font-size="14.00">X1</text>
|
||
<polygon fill="none" stroke="black" points="0.5,-206.5 0.5,-229.5 48.5,-229.5 48.5,-206.5 0.5,-206.5"/>
|
||
<text text-anchor="start" x="4.5" y="-214.3" font-family="arial" font-size="14.00">D-Sub</text>
|
||
<polygon fill="none" stroke="black" points="48.5,-206.5 48.5,-229.5 99.5,-229.5 99.5,-206.5 48.5,-206.5"/>
|
||
<text text-anchor="start" x="52.5" y="-214.3" font-family="arial" font-size="14.00">female</text>
|
||
<polygon fill="none" stroke="black" points="99.5,-206.5 99.5,-229.5 139.5,-229.5 139.5,-206.5 99.5,-206.5"/>
|
||
<text text-anchor="start" x="103.5" y="-214.3" font-family="arial" font-size="14.00">9-pin</text>
|
||
<polygon fill="none" stroke="black" points="0.5,-183.5 0.5,-206.5 82.5,-206.5 82.5,-183.5 0.5,-183.5"/>
|
||
<text text-anchor="start" x="26" y="-191.3" font-family="arial" font-size="14.00">DCD</text>
|
||
<polygon fill="none" stroke="black" points="82.5,-183.5 82.5,-206.5 139.5,-206.5 139.5,-183.5 82.5,-183.5"/>
|
||
<text text-anchor="start" x="107" y="-191.3" font-family="arial" font-size="14.00">1</text>
|
||
<polygon fill="none" stroke="black" points="0.5,-160.5 0.5,-183.5 82.5,-183.5 82.5,-160.5 0.5,-160.5"/>
|
||
<text text-anchor="start" x="31.5" y="-168.3" font-family="arial" font-size="14.00">RX</text>
|
||
<polygon fill="none" stroke="black" points="82.5,-160.5 82.5,-183.5 139.5,-183.5 139.5,-160.5 82.5,-160.5"/>
|
||
<text text-anchor="start" x="107" y="-168.3" font-family="arial" font-size="14.00">2</text>
|
||
<polygon fill="none" stroke="black" points="0.5,-137.5 0.5,-160.5 82.5,-160.5 82.5,-137.5 0.5,-137.5"/>
|
||
<text text-anchor="start" x="32.5" y="-145.3" font-family="arial" font-size="14.00">TX</text>
|
||
<polygon fill="none" stroke="black" points="82.5,-137.5 82.5,-160.5 139.5,-160.5 139.5,-137.5 82.5,-137.5"/>
|
||
<text text-anchor="start" x="107" y="-145.3" font-family="arial" font-size="14.00">3</text>
|
||
<polygon fill="none" stroke="black" points="0.5,-114.5 0.5,-137.5 82.5,-137.5 82.5,-114.5 0.5,-114.5"/>
|
||
<text text-anchor="start" x="27" y="-122.3" font-family="arial" font-size="14.00">DTR</text>
|
||
<polygon fill="none" stroke="black" points="82.5,-114.5 82.5,-137.5 139.5,-137.5 139.5,-114.5 82.5,-114.5"/>
|
||
<text text-anchor="start" x="107" y="-122.3" font-family="arial" font-size="14.00">4</text>
|
||
<polygon fill="none" stroke="black" points="0.5,-91.5 0.5,-114.5 82.5,-114.5 82.5,-91.5 0.5,-91.5"/>
|
||
<text text-anchor="start" x="25.5" y="-99.3" font-family="arial" font-size="14.00">GND</text>
|
||
<polygon fill="none" stroke="black" points="82.5,-91.5 82.5,-114.5 139.5,-114.5 139.5,-91.5 82.5,-91.5"/>
|
||
<text text-anchor="start" x="107" y="-99.3" font-family="arial" font-size="14.00">5</text>
|
||
<polygon fill="none" stroke="black" points="0.5,-68.5 0.5,-91.5 82.5,-91.5 82.5,-68.5 0.5,-68.5"/>
|
||
<text text-anchor="start" x="26.5" y="-76.3" font-family="arial" font-size="14.00">DSR</text>
|
||
<polygon fill="none" stroke="black" points="82.5,-68.5 82.5,-91.5 139.5,-91.5 139.5,-68.5 82.5,-68.5"/>
|
||
<text text-anchor="start" x="107" y="-76.3" font-family="arial" font-size="14.00">6</text>
|
||
<polygon fill="none" stroke="black" points="0.5,-45.5 0.5,-68.5 82.5,-68.5 82.5,-45.5 0.5,-45.5"/>
|
||
<text text-anchor="start" x="27.5" y="-53.3" font-family="arial" font-size="14.00">RTS</text>
|
||
<polygon fill="none" stroke="black" points="82.5,-45.5 82.5,-68.5 139.5,-68.5 139.5,-45.5 82.5,-45.5"/>
|
||
<text text-anchor="start" x="107" y="-53.3" font-family="arial" font-size="14.00">7</text>
|
||
<polygon fill="none" stroke="black" points="0.5,-22.5 0.5,-45.5 82.5,-45.5 82.5,-22.5 0.5,-22.5"/>
|
||
<text text-anchor="start" x="27.5" y="-30.3" font-family="arial" font-size="14.00">CTS</text>
|
||
<polygon fill="none" stroke="black" points="82.5,-22.5 82.5,-45.5 139.5,-45.5 139.5,-22.5 82.5,-22.5"/>
|
||
<text text-anchor="start" x="107" y="-30.3" font-family="arial" font-size="14.00">8</text>
|
||
<polygon fill="none" stroke="black" points="0.5,0.5 0.5,-22.5 82.5,-22.5 82.5,0.5 0.5,0.5"/>
|
||
<text text-anchor="start" x="34.5" y="-7.3" font-family="arial" font-size="14.00">RI</text>
|
||
<polygon fill="none" stroke="black" points="82.5,0.5 82.5,-22.5 139.5,-22.5 139.5,0.5 82.5,0.5"/>
|
||
<text text-anchor="start" x="107" y="-7.3" font-family="arial" font-size="14.00">9</text>
|
||
</g>
|
||
<!-- X1--X1 -->
|
||
<g id="edge1" class="edge">
|
||
<title>X1:e--X1:e</title>
|
||
<path fill="none" stroke="#000000" stroke-width="2" d="M139.95,-54.55C192,-66.5 298,-66.5 296,-45 298,-23.5 192,-23.5 139.95,-35.45"/>
|
||
<path fill="none" stroke="#ffffff" stroke-width="2" d="M139.5,-56.5C192,-68.5 298,-68.5 298,-45 298,-21.5 192,-21.5 139.5,-33.5"/>
|
||
<path fill="none" stroke="#000000" stroke-width="2" d="M139.05,-58.45C192,-70.5 298,-70.5 300,-45 298,-19.5 192,-19.5 139.05,-31.55"/>
|
||
</g>
|
||
<!-- W1 -->
|
||
<g id="node3" class="node">
|
||
<title>W1</title>
|
||
<polygon fill="#ffffff" stroke="black" points="494,-283 283,-283 283,-84 494,-84 494,-283"/>
|
||
<polygon fill="none" stroke="black" points="283.5,-259.5 283.5,-282.5 494.5,-282.5 494.5,-259.5 283.5,-259.5"/>
|
||
<text text-anchor="start" x="378.5" y="-267.3" font-family="arial" font-size="14.00">W1</text>
|
||
<polygon fill="none" stroke="black" points="283.5,-236.5 283.5,-259.5 318.5,-259.5 318.5,-236.5 283.5,-236.5"/>
|
||
<text text-anchor="start" x="293.5" y="-244.3" font-family="arial" font-size="14.00">3x</text>
|
||
<polygon fill="none" stroke="black" points="318.5,-236.5 318.5,-259.5 398.5,-259.5 398.5,-236.5 318.5,-236.5"/>
|
||
<text text-anchor="start" x="328.5" y="-244.3" font-family="arial" font-size="14.00">0.25 mm²</text>
|
||
<polygon fill="none" stroke="black" points="398.5,-236.5 398.5,-259.5 439.5,-259.5 439.5,-236.5 398.5,-236.5"/>
|
||
<text text-anchor="start" x="408" y="-244.3" font-family="arial" font-size="14.00">+ S</text>
|
||
<polygon fill="none" stroke="black" points="439.5,-236.5 439.5,-259.5 494.5,-259.5 494.5,-236.5 439.5,-236.5"/>
|
||
<text text-anchor="start" x="449" y="-244.3" font-family="arial" font-size="14.00">0.2 m</text>
|
||
<text text-anchor="start" x="315.5" y="-223.3" font-family="arial" font-size="14.00"> </text>
|
||
<text text-anchor="start" x="285.5" y="-204.3" font-family="arial" font-size="14.00">X1:5:GND</text>
|
||
<text text-anchor="start" x="353.5" y="-204.3" font-family="arial" font-size="14.00">     1:WH    </text>
|
||
<text text-anchor="start" x="428.5" y="-204.3" font-family="arial" font-size="14.00">X2:1:GND</text>
|
||
<polygon fill="#000000" stroke="transparent" points="283.5,-196.5 283.5,-198.5 494.5,-198.5 494.5,-196.5 283.5,-196.5"/>
|
||
<polygon fill="#ffffff" stroke="transparent" points="283.5,-194.5 283.5,-196.5 494.5,-196.5 494.5,-194.5 283.5,-194.5"/>
|
||
<polygon fill="#000000" stroke="transparent" points="283.5,-192.5 283.5,-194.5 494.5,-194.5 494.5,-192.5 283.5,-192.5"/>
|
||
<text text-anchor="start" x="291" y="-179.3" font-family="arial" font-size="14.00">X1:2:RX</text>
|
||
<text text-anchor="start" x="355.5" y="-179.3" font-family="arial" font-size="14.00">     2:BN    </text>
|
||
<text text-anchor="start" x="435" y="-179.3" font-family="arial" font-size="14.00">X2:3:TX</text>
|
||
<polygon fill="#000000" stroke="transparent" points="283.5,-171.5 283.5,-173.5 494.5,-173.5 494.5,-171.5 283.5,-171.5"/>
|
||
<polygon fill="#895956" stroke="transparent" points="283.5,-169.5 283.5,-171.5 494.5,-171.5 494.5,-169.5 283.5,-169.5"/>
|
||
<polygon fill="#000000" stroke="transparent" points="283.5,-167.5 283.5,-169.5 494.5,-169.5 494.5,-167.5 283.5,-167.5"/>
|
||
<text text-anchor="start" x="292" y="-154.3" font-family="arial" font-size="14.00">X1:3:TX</text>
|
||
<text text-anchor="start" x="355" y="-154.3" font-family="arial" font-size="14.00">     3:GN    </text>
|
||
<text text-anchor="start" x="434" y="-154.3" font-family="arial" font-size="14.00">X2:2:RX</text>
|
||
<polygon fill="#000000" stroke="transparent" points="283.5,-146.5 283.5,-148.5 494.5,-148.5 494.5,-146.5 283.5,-146.5"/>
|
||
<polygon fill="#00ff00" stroke="transparent" points="283.5,-144.5 283.5,-146.5 494.5,-146.5 494.5,-144.5 283.5,-144.5"/>
|
||
<polygon fill="#000000" stroke="transparent" points="283.5,-142.5 283.5,-144.5 494.5,-144.5 494.5,-142.5 283.5,-142.5"/>
|
||
<text text-anchor="start" x="315.5" y="-129.3" font-family="arial" font-size="14.00"> </text>
|
||
<text text-anchor="start" x="285.5" y="-110.3" font-family="arial" font-size="14.00">X1:5:GND</text>
|
||
<text text-anchor="start" x="369.5" y="-110.3" font-family="arial" font-size="14.00">Shield</text>
|
||
<polygon fill="#000000" stroke="transparent" points="283.5,-102.5 283.5,-104.5 494.5,-104.5 494.5,-102.5 283.5,-102.5"/>
|
||
<text text-anchor="start" x="315.5" y="-89.3" font-family="arial" font-size="14.00"> </text>
|
||
</g>
|
||
<!-- X1--W1 -->
|
||
<g id="edge2" class="edge">
|
||
<title>X1:e--W1:w</title>
|
||
<path fill="none" stroke="#000000" stroke-width="2" d="M139,-100.5C217.18,-102.68 208.81,-195.68 283,-193.5"/>
|
||
<path fill="none" stroke="#ffffff" stroke-width="2" d="M139,-102.5C215.19,-102.5 206.81,-195.5 283,-195.5"/>
|
||
<path fill="none" stroke="#000000" stroke-width="2" d="M139,-104.5C213.19,-102.32 204.82,-195.32 283,-197.5"/>
|
||
</g>
|
||
<!-- X1--W1 -->
|
||
<g id="edge4" class="edge">
|
||
<title>X1:e--W1:w</title>
|
||
<path fill="none" stroke="#000000" stroke-width="2" d="M139,-170.5C202.76,-170.52 218.75,-168.52 283,-168.5"/>
|
||
<path fill="none" stroke="#895956" stroke-width="2" d="M139,-172.5C203.01,-172.5 218.99,-170.5 283,-170.5"/>
|
||
<path fill="none" stroke="#000000" stroke-width="2" d="M139,-174.5C203.25,-174.48 219.24,-172.48 283,-172.5"/>
|
||
</g>
|
||
<!-- X1--W1 -->
|
||
<g id="edge6" class="edge">
|
||
<title>X1:e--W1:w</title>
|
||
<path fill="none" stroke="#000000" stroke-width="2" d="M139,-147.5C202.54,-147.56 218.49,-143.56 283,-143.5"/>
|
||
<path fill="none" stroke="#00ff00" stroke-width="2" d="M139,-149.5C203.02,-149.5 218.98,-145.5 283,-145.5"/>
|
||
<path fill="none" stroke="#000000" stroke-width="2" d="M139,-151.5C203.51,-151.44 219.46,-147.44 283,-147.5"/>
|
||
</g>
|
||
<!-- X1--W1 -->
|
||
<g id="edge8" class="edge">
|
||
<title>X1:e--W1:w</title>
|
||
<path fill="none" stroke="#000000" stroke-width="2" d="M139,-102.5C203,-102.5 219,-103.5 283,-103.5"/>
|
||
</g>
|
||
<!-- X2 -->
|
||
<g id="node2" class="node">
|
||
<title>X2</title>
|
||
<polygon fill="#ffffff" stroke="black" points="825,-254 638,-254 638,-139 825,-139 825,-254"/>
|
||
<polygon fill="#ffffff" stroke="transparent" points="638,-139 638,-254 825,-254 825,-139 638,-139"/>
|
||
<polygon fill="none" stroke="black" points="638.5,-230.5 638.5,-253.5 825.5,-253.5 825.5,-230.5 638.5,-230.5"/>
|
||
<text text-anchor="start" x="723" y="-238.3" font-family="arial" font-size="14.00">X2</text>
|
||
<polygon fill="none" stroke="black" points="638.5,-207.5 638.5,-230.5 734.5,-230.5 734.5,-207.5 638.5,-207.5"/>
|
||
<text text-anchor="start" x="642.5" y="-215.3" font-family="arial" font-size="14.00">Molex KK 254</text>
|
||
<polygon fill="none" stroke="black" points="734.5,-207.5 734.5,-230.5 785.5,-230.5 785.5,-207.5 734.5,-207.5"/>
|
||
<text text-anchor="start" x="738.5" y="-215.3" font-family="arial" font-size="14.00">female</text>
|
||
<polygon fill="none" stroke="black" points="785.5,-207.5 785.5,-230.5 825.5,-230.5 825.5,-207.5 785.5,-207.5"/>
|
||
<text text-anchor="start" x="789.5" y="-215.3" font-family="arial" font-size="14.00">3-pin</text>
|
||
<polygon fill="none" stroke="black" points="638.5,-184.5 638.5,-207.5 720.5,-207.5 720.5,-184.5 638.5,-184.5"/>
|
||
<text text-anchor="start" x="675.5" y="-192.3" font-family="arial" font-size="14.00">1</text>
|
||
<polygon fill="none" stroke="black" points="720.5,-184.5 720.5,-207.5 825.5,-207.5 825.5,-184.5 720.5,-184.5"/>
|
||
<text text-anchor="start" x="757" y="-192.3" font-family="arial" font-size="14.00">GND</text>
|
||
<polygon fill="none" stroke="black" points="638.5,-161.5 638.5,-184.5 720.5,-184.5 720.5,-161.5 638.5,-161.5"/>
|
||
<text text-anchor="start" x="675.5" y="-169.3" font-family="arial" font-size="14.00">2</text>
|
||
<polygon fill="none" stroke="black" points="720.5,-161.5 720.5,-184.5 825.5,-184.5 825.5,-161.5 720.5,-161.5"/>
|
||
<text text-anchor="start" x="763" y="-169.3" font-family="arial" font-size="14.00">RX</text>
|
||
<polygon fill="none" stroke="black" points="638.5,-138.5 638.5,-161.5 720.5,-161.5 720.5,-138.5 638.5,-138.5"/>
|
||
<text text-anchor="start" x="675.5" y="-146.3" font-family="arial" font-size="14.00">3</text>
|
||
<polygon fill="none" stroke="black" points="720.5,-138.5 720.5,-161.5 825.5,-161.5 825.5,-138.5 720.5,-138.5"/>
|
||
<text text-anchor="start" x="764" y="-146.3" font-family="arial" font-size="14.00">TX</text>
|
||
</g>
|
||
<!-- W1--X2 -->
|
||
<g id="edge3" class="edge">
|
||
<title>W1:e--X2:w</title>
|
||
<path fill="none" stroke="#000000" stroke-width="2" d="M494,-193.5C558,-193.5 574,-193.5 638,-193.5"/>
|
||
<path fill="none" stroke="#ffffff" stroke-width="2" d="M494,-195.5C558,-195.5 574,-195.5 638,-195.5"/>
|
||
<path fill="none" stroke="#000000" stroke-width="2" d="M494,-197.5C558,-197.5 574,-197.5 638,-197.5"/>
|
||
</g>
|
||
<!-- W1--X2 -->
|
||
<g id="edge5" class="edge">
|
||
<title>W1:e--X2:w</title>
|
||
<path fill="none" stroke="#000000" stroke-width="2" d="M494,-168.5C557.04,-169.36 571.68,-148.36 638,-147.5"/>
|
||
<path fill="none" stroke="#895956" stroke-width="2" d="M494,-170.5C558.68,-170.5 573.32,-149.5 638,-149.5"/>
|
||
<path fill="none" stroke="#000000" stroke-width="2" d="M494,-172.5C560.32,-171.64 574.96,-150.64 638,-151.5"/>
|
||
</g>
|
||
<!-- W1--X2 -->
|
||
<g id="edge7" class="edge">
|
||
<title>W1:e--X2:w</title>
|
||
<path fill="none" stroke="#000000" stroke-width="2" d="M494,-143.5C560.9,-144.59 574.67,-171.59 638,-170.5"/>
|
||
<path fill="none" stroke="#00ff00" stroke-width="2" d="M494,-145.5C559.12,-145.5 572.88,-172.5 638,-172.5"/>
|
||
<path fill="none" stroke="#000000" stroke-width="2" d="M494,-147.5C557.33,-146.41 571.1,-173.41 638,-174.5"/>
|
||
</g>
|
||
</g>
|
||
</svg>
|