478 Commits

Author SHA1 Message Date
Daniel Rojas
cc0bd76e99 Break longer lines not caught by black
because they were unbroken strings or comments
2023-09-12 19:41:21 +02:00
Daniel Rojas
95cc1be647 Make green color darker 2023-09-12 19:37:11 +02:00
Daniel Rojas
22cd25871c Re-sort wv_colors.py 2023-09-12 19:37:11 +02:00
Daniel Rojas
e95f4bd53b Use color objects in WireViz 2023-09-12 19:37:11 +02:00
Daniel Rojas
1b31a6f044 Implement color objects 2023-09-12 19:37:11 +02:00
Daniel Rojas
03518abdcd Add cleanup.sh (maybe move/delete later? or add commit hook?) 2023-09-12 19:37:11 +02:00
Daniel Rojas
8200e891d0 Streamline assignment of ports to simple connectors 2023-09-12 19:37:11 +02:00
Daniel Rojas
94f9d96197 Add sample use to devtools.txt 2023-09-12 19:37:11 +02:00
Daniel Rojas
ebd271d54c Run autoflake -i --remove-all-unused-imports 2023-09-12 19:37:10 +02:00
Daniel Rojas
21bfebb9b4 Run autoflake -i 2023-09-12 19:37:10 +02:00
Daniel Rojas
9b40858d56 Add devtools.txt 2023-09-12 19:37:10 +02:00
Daniel Rojas
fc820079fc Make mates object-oriented 2023-09-12 19:37:10 +02:00
Daniel Rojas
9e6d327c15 Alphabetize HTML tags, improve bgcolor rendering 2023-09-12 19:37:10 +02:00
Daniel Rojas
d9513865e2 Make connecting things more object-oriented 2023-09-12 19:37:10 +02:00
Daniel Rojas
8aaee0c85a Outsource gv_edge_wire() 2023-09-12 19:37:09 +02:00
Daniel Rojas
266eb659bb Reactivate cable edge generation 2023-09-12 19:37:09 +02:00
Daniel Rojas
84dd10a2dc Fix and simplify bgcolor logic 2023-09-12 19:37:09 +02:00
Daniel Rojas
31c5e1aad9 Make setting HTML tag attributes easier through kwargs 2023-09-12 19:37:09 +02:00
Daniel Rojas
587b359fa0 Outsource set_dot_basics() and apply_dot_tweaks() 2023-09-12 19:37:09 +02:00
Daniel Rojas
2f03dcd1a3 Add TODOs 2023-09-12 19:37:09 +02:00
Daniel Rojas
064c7fd7c8 Outsource gv_pin_table(), simplify padding 2023-09-12 19:37:09 +02:00
Daniel Rojas
0078a18953 Remove old stuff, slightly simplify code 2023-09-12 19:37:08 +02:00
Daniel Rojas
d65222953e More WIP 2023-09-12 19:37:08 +02:00
Daniel Rojas
f46bce6867 WIP 2023-09-12 19:37:08 +02:00
Daniel Rojas
1f8dd49eb9 Implement HTML indentation 2023-09-12 19:37:08 +02:00
Daniel Rojas
d348ebe4ce WIP: refactor cable node generation 2023-09-12 19:37:08 +02:00
Daniel Rojas
7134b6841f Generate gauge string inside Cable object 2023-09-12 19:37:08 +02:00
Daniel Rojas
98e594cf96 Rebuild demos 2023-09-12 19:37:08 +02:00
Daniel Rojas
60b2f6caa9 Further refactor connector node generation 2023-09-12 19:37:07 +02:00
Daniel Rojas
046a1c2ea6 Refactor connector node generation 2023-09-12 19:37:07 +02:00
Daniel Rojas
f7359ff9b1 WIP 2023-09-12 19:37:06 +02:00
Daniel Rojas
82b5cb710f Add temporary loop to demo01
for debugging purposes
2023-09-12 19:37:06 +02:00
Daniel Rojas
1435d9c607 Add metadata.title to demo01.yml
to avoid diffs later when calling via CLI
2023-09-12 19:37:06 +02:00
Daniel Rojas
e034fb3519 Rebuild all examples before refactoring
no diff should ocurr as a result of the refactoring
2023-09-12 19:37:06 +02:00
Daniel Rojas
18782444b1 Make prefix for autogenerated component names configurable
`edotor.net` does not seem to like leading underscores, which makes GraphViz debugging difficult.
2023-09-12 19:37:05 +02:00
KV
9cb9ede487 Add #256 2023-09-08 21:02:53 +02:00
Andreas Motl
c0590ff20f Update .gitignore (#256)
Add two more folders to be ignored.

- .idea: Used by PyCharm
- .venv: My convention for creating virtualenvs
2023-09-08 20:56:15 +02:00
kvid
a26f734b94 Update src/wireviz/DataClasses.py as requested in review (#264)
No need to reference github issue in the code.

Co-authored-by: Daniel Rojas <github@danielrojas.net>
2023-09-08 17:37:25 +02:00
KV
f6c3a37563 Make sure loop connected pins are not hidden (#264)
- Resolves #263 that describes warnings and weird loop drawing because
  loop connected pins are hidden when hide_disconnected_pins=True.

- Activate loop pins as early as possible to enable correct counting of
  connected pins when
  connector.additional_components.qty_multiplier=populated.

- Check that loop pins actually exist before activating them.
2023-09-08 17:37:25 +02:00
KV
23bc184620 Add #318 2023-09-03 00:10:12 +02:00
RedshiftVelocities
6f9007f45d
Use portable OS error codes so program doesn't crash (#318)
Hard-coding OS error numbers that differ between different platforms
caused the program to crash at platforms using a different error number.

Using the Standard errno system symbols will avoid this problem.

Co-authored-by: kvid <kvid@users.noreply.github.com>
2023-09-01 22:24:34 +02:00
KV
f9d1dd0148 Fix bug commented in #186
Changes in #186 made it impossible to hide cable wire numbers.

https://github.com/wireviz/WireViz/pull/186#discussion_r716246852
2023-08-27 15:47:08 +02:00
KV
5eb208daf5 Fix typo in issue link text 2023-08-27 15:40:28 +02:00
Julien Lecoeur
9dbf4538fd Fix graphviz file header (#261)
The two header comments were missing trailing newlines.

This behavior is introduced by v0.18 of the graphviz Python package;
where as v0.17 did include the newline automatically.

Closes #258
2023-08-27 15:31:17 +02:00
Daniel Rojas
92af90518c Add v0.3.2 to changelog 2023-06-07 20:55:08 +02:00
Daniel Rojas
509dc75762 Update changelog 2023-06-07 19:56:28 +02:00
Daniel Rojas
0ef285ad13 Fix header levels 2023-06-07 19:26:33 +02:00
Daniel Rojas
3356569c35 Add v0.3.1 release 2023-06-07 19:26:33 +02:00
Daniel Rojas
c085ddab80 Add section for v0.4 2023-06-07 19:26:33 +02:00
Daniel Rojas
d94f39bea0 Fix typo 2023-06-07 19:26:33 +02:00