43 Commits

Author SHA1 Message Date
KV
0c6b6f390d Compute sensible default values for unspecified image attributes
The goal is to enable the user to avoid specifying more attributes
than strictly needed.
2020-08-16 23:53:12 +02:00
KV
d289f95bc3 Add a minor image scaling to example 08 2020-08-16 16:27:14 +02:00
KV
204379a125 Move image attributes into Image dataclass to fix change requests
@formatc1702 requested changes in his review of #153:
- Lowercase attribute values
- Nested image attributes
- Avoid sending the whole node object as argument to helper functions
- Simplify html_size_attr()
- Move the resources folder
2020-08-15 07:13:23 +02:00
KV
06e6c49aa9 Expand example 08 with images and captions
- Stereo phone plug (a slight modification of a public domain image
  from https://openclipart.org/detail/192396/headphones-connctor ).
- Cable cross-section drawn to match the wire colors in example 08.
- Make the cable jacket and shield colors match the cross-section.
- Images for embedding in the connector and cable nodes are stored
  in a new resources folder.
2020-08-13 22:51:21 +02:00
Daniel Rojas
a69fc76651 Rebuild examples 2020-07-21 22:08:25 +02:00
Daniel Rojas
2a963bfef6 Update example input files 2020-07-21 22:01:10 +02:00
Daniel Rojas
8f833d9da5 Rebuild examples 2020-07-20 08:21:54 +02:00
Daniel Rojas
afbd11ccd4 Update example input files 2020-07-20 08:21:54 +02:00
Daniel Rojas
0da4441678 Rebuild examples 2020-07-19 19:05:35 +02:00
Andrew Katz
b147aa0eb1 Finish adding multicolor support 2020-07-19 18:59:34 +02:00
Daniel Rojas
b988e9b063 Update example YAML files 2020-07-10 19:21:33 +02:00
Daniel Rojas
21b3c9e59b Rebuild examples 2020-07-02 19:16:56 +02:00
Daniel Rojas
65a4d6bd07 Update example+tutorial input files
tut
2020-07-02 19:16:56 +02:00
KV
77bf398176 Add cable type in a couple of examples 2020-07-02 07:44:17 +02:00
Daniel Rojas
49322fc65f Fix demo 01 2020-06-30 17:58:44 +02:00
Daniel Rojas
9d2c193533 Update example 08 to hide pincount on 3.5mm jack 2020-06-29 17:46:45 +02:00
Daniel Rojas
52a8af298d Rebuild example 02 after fixes from #41 2020-06-29 14:44:44 +02:00
Andreas Nordin
08e53bcd48
Feature: bidirectional AWG/mm2 unit conversion (#41)
* Fix AWG<-> mm2 conversions

Add an inverted dictionary and a lookup function from awg -> mm2. Also
do some minor refactoring. Both sides of the conversion table were
converted to strings, since '0000' and '2/0' are perfectly valid AWG
values.

* Update example ex02 with awg -> mm2 conversion

Show conversions for ex02, and make sure it displays conversions in both
directions. Rebuild the example files.

* Fix faulty conversion of non-(mm2,AWG) units

The parsing allows arbitrary units to be used for cable dimensions --
this might be valid units, e.g. square inches, or invalid, e.g. bananas.
We only allow conversion between mm2 and AWG, so check that the
gauge_unit is either of those before conversion. If not, pass through as
is.

* Fix AWG string casing in output

Convert e.g. 'awg, 'AwG' to upper case for consistent rendering. Leave
any other input gauge units as they were.

Co-authored-by: Daniel Rojas <github@danielrojas.net>
2020-06-29 14:41:45 +02:00
Daniel Rojas
790e9c93c4 Update demos and examples 2020-06-27 23:46:22 +02:00
Morrison-Reed Elliot (BEG/EVS1-NA)
c3621498a7 implemented functionality to hide pins that are not connected 2020-06-24 11:47:08 -04:00
Daniel Rojas
4fa700eb2d Include BOM in example gallery 2020-06-14 21:56:06 +02:00
Daniel Rojas
ccf4db5555 Update examples and readme
Tune demo 02
2020-06-14 21:56:06 +02:00
Daniel Rojas
d5356260ca Change type: bundle to category: bundle 2020-06-14 17:52:22 +02:00
Daniel Rojas
93be0cba49 Change wire lengths on demo 02
for better cutlist functionality demo
2020-06-14 00:30:05 +02:00
Daniel Rojas
a43d7701f4 Change 'gender' to 'subtype' for more flexibility 2020-06-13 20:15:48 +02:00
Daniel Rojas
19f0a82544 Improve handling of mm² and AWG gauges 2020-06-13 17:57:20 +02:00
Daniel Rojas
3eaabc3b53 Rename nodes and wires to connectors and cables 2020-06-13 16:11:09 +02:00
Daniel Rojas
2687afcdd2 Rename num_wires to wirecount 2020-06-13 15:46:26 +02:00
Daniel Rojas
5bff36d4c4 Rename num_pins to pincount 2020-06-13 15:40:21 +02:00
Daniel Rojas
fdf5694534 Update examples and to-do list 2020-06-04 21:29:40 +02:00
Daniel Rojas
7151346e38 Add daisy chain examples 2020-05-30 14:19:25 +02:00
Daniel Rojas
d86ec0ad68 Auto-generate example gallery 2020-05-30 12:05:56 +02:00
Daniel Rojas
8aeabd03c3 Update and automate examples and demos 2020-05-30 11:25:36 +02:00
Daniel Rojas
fcf67145bf Show from/to designators on wire bundle 2020-05-29 22:55:39 +02:00
Daniel Rojas
12b4746e01 Fine-tune examples 2020-05-29 22:45:19 +02:00
Daniel Rojas
3becef7829 Add support for wire bundles 2020-05-29 22:37:48 +02:00
Daniel Rojas
2dd21ae6aa Change some default parameter values 2020-05-29 19:20:10 +02:00
Daniel Rojas
ab922928de Simplify __init__ functions, Pt. I 2020-05-28 18:37:44 +02:00
Daniel Rojas
591829b6fc Add unnamed connector ('ferrule') support proof of concept 2020-05-27 21:52:47 +02:00
Daniel Rojas
c58cda04b1 Update readme + todo 2020-05-27 20:06:36 +02:00
Daniel Rojas
c38d2b1876 Move examples 2020-05-27 19:55:29 +02:00
Daniel Rojas
492710baa6 Update examples, change output file extension from .dot to .gv 2020-05-24 13:54:02 +02:00
Daniel Rojas
30fe715166 Move examples 2020-05-24 13:41:34 +02:00