ictdesigntools.draw.layout¶
Placing things: grids, stacks, rack units and outlines around groups of circles.
grid ¶
grid(
count: int,
columns: int,
pitch_x: float,
pitch_y: float,
x: float = 0.0,
y: float = 0.0,
) -> list[tuple[float, float]]
count positions filling rows of columns left to right, then top to bottom.
Source code in src/ictdesigntools/draw/layout.py
stack ¶
Where each of a run of sizes starts when laid end to end with gap between them.
Source code in src/ictdesigntools/draw/layout.py
centred ¶
Like stack, with the run centred in span.
Source code in src/ictdesigntools/draw/layout.py
rack_y ¶
The top edge of equipment height_u high whose lowest unit is u (numbered 1 from
the bottom, as on the rails) in a rack rack_u high drawn from top down.
Source code in src/ictdesigntools/draw/layout.py
convex_hull ¶
The convex outline around points, anticlockwise (Andrew's monotone chain).
Source code in src/ictdesigntools/draw/layout.py
circle_hull ¶
The convex outline around circles (cx, cy, r): how a sheath shrinks onto what it holds, whatever their sizes.