adapted wire stubs with auto side detection

This commit is contained in:
2025-04-19 00:11:53 +02:00
parent 5616544707
commit 26231b2f48
4 changed files with 80 additions and 52 deletions

View File

@ -73,4 +73,15 @@
#let valid-anchors = (
"center", "north", "east", "west", "south",
"north-east", "north-west", "south-east", "south-west"
)
)
#let get-port-side(element, port) = {
for (side, ports) in element.ports {
for p in ports {
if p.id == port {
return side
}
}
}
panic("Unknown port " + port + " on element " + element.id)
}