We currently have a box shape inheriting from rectangle with four additional hardcocoded anchors: west0, west1, east0 and east1.
It would be very nice to have a configurable number of anchors (like star) so we can handle any number of wires on any side.
E.g. something like
\node[box, box anchors=0/1/2/3] (f) {f};
would create 0, 1, 2, and 3 0-indexed anchors on the north, east, south and west sides respectively.
So, we could refer to f.e.0, f.s.0, f.s.1, f.w.0, f.w.1 and f.w.2 and get an undefined label error for free if we get them wrong.
Alternatives could be more explicit anchor names (e.g. f.east.0), and more specific tikz keys (e.g. box anchors east).
We currently have a
box
shape inheriting fromrectangle
with four additional hardcocoded anchors:west0
,west1
,east0
andeast1
.It would be very nice to have a configurable number of anchors (like
star
) so we can handle any number of wires on any side.E.g. something like
would create 0, 1, 2, and 3 0-indexed anchors on the north, east, south and west sides respectively. So, we could refer to
f.e.0
,f.s.0
,f.s.1
,f.w.0
,f.w.1
andf.w.2
and get an undefined label error for free if we get them wrong.Alternatives could be more explicit anchor names (e.g.
f.east.0
), and more specific tikz keys (e.g.box anchors east
).