Commit graph masque/masque/builder/tools.py
Author SHA1 Message Date
55f0a626f3 [AutoTool] pass in kwargs to straight fn call 2026-01-19 21:18:48 -08:00
ae9d6fd173 [AutoTool] consolidate duplicate code for path() and render() 2026-01-19 21:18:48 -08:00
aa8281a0fe [AutoTool] add add_complementary_transitions() 2026-01-19 21:18:48 -08:00
ff8553f624 [AutoTool] Use more dataclasses to clarify internal code 2026-01-19 21:17:05 -08:00
e201b7415b [AutoTool] support min/max length for straight segments 2026-01-19 21:15:55 -08:00
a904db1104 [BasicTool/AutoTool] fix port orientation for straight segments when using RenderPather 2026-01-19 21:15:55 -08:00
9fb46cb234 [AutoTool] Add first pass for AutoTool 2026-01-19 21:15:55 -08:00
d5a7101c26 [Pather / RenderPather] move common functionality into PatherMixin; redo hierarchy
- (BREAKING change) Pather.mpath no longer wraps the whole bus into a
container, since this has no equivalent in RenderPather. Possible this
functionality will return in the future
- Removed `tool_port_names` arg from Pather functions
- In general RenderPather should be much closer to Pather now
2026-01-19 21:15:55 -08:00
a2fa7648df [BasicTool] enable straight to handle trees (not just flat patterns) 2025-10-26 18:43:14 -07:00
aa175fbb75 [builder.tools] Handle in_ptype=None 2025-10-26 18:28:21 -07:00
ad00ade097 [Tool] correctly set input ptype 2025-05-28 00:39:44 -07:00
8035daee7e mark intentionally unused args 2024-07-28 20:31:41 -07:00
4c69e773fd pass kwargs down into gen_straight() 2024-07-28 20:31:41 -07:00
6ec94fb3c3 import Sequence et al from collections.abc not typing 2024-07-28 19:33:16 -07:00
30982d742b make sure kwargs get passed into gen_straight() 2024-06-03 16:53:03 -07:00
jan
1bdb998085 Generalize underscore into SINGLE_USE_PREFIX 2023-10-15 23:01:47 -07:00
jan
5f5c78455b Add missing final vertex when the path ends in a bend 2023-10-15 16:18:34 -07:00
jan
4de82ab2ba fix transition calculation 2023-10-15 16:18:34 -07:00
jan
bfd81f777c Cleanup based on flake8 lint 2023-10-15 16:18:34 -07:00
jan
dec084818a some further work on Tool interface 2023-10-15 16:18:34 -07:00
jan
590b6b36bd No need for Builder 2023-10-15 16:18:34 -07:00
jan
80e0c5daa8 path() should return a tree 2023-10-15 16:18:34 -07:00
jan
5001664547 doc updates 2023-10-15 16:18:34 -07:00
jan
ceaa4923ef fix broken import 2023-10-15 16:18:34 -07:00
6975787717 remove unused import 2023-10-15 16:18:34 -07:00
f7f5a62f54 Update comments 2023-10-15 16:18:33 -07:00
jan
91465b7175 don't keep track of y-mirroring separately from x 2023-10-15 16:18:33 -07:00
jan
9bc8d29b85 renderbuilder fixes 2023-10-15 16:18:33 -07:00
jan
9a28e1617c renderpather, get_bounds includes repetitions, Boundable 2023-10-15 16:18:33 -07:00
jan
9a077ea2df move to dicty layers and targets 2023-10-15 16:18:33 -07:00
jan
3028ea0941 pather fixes / type updates 2023-10-15 16:18:33 -07:00
jan
5f24ceb13f add RenderPather 2023-10-15 16:18:33 -07:00
1463535676 modernize type annotations 2023-10-15 16:18:33 -07:00
5452bc5608 more fixes and improvements 2023-10-15 16:18:32 -07:00
6549faddbb wip -- more fixes 2023-10-15 16:18:32 -07:00
1c3c032434 Add functionality for building paths (single use wires/waveguides/etc) 2023-10-15 16:18:32 -07:00