Leaderlines
Leaderline
- class pinout.components.leaderline.Leaderline(direction='hh', **kwargs)
Bases:
pinout.core.Path
Leaderline base object.
- Parameters
direction (str, optional) – 2 letter code, defaults to “hh”
The leaderline connects an origin and destination point. Route taken is controlled with a direction argument where the first character dictates the start direction and the second character the end direction:
vh: vertical , horizontal
hv: horizontal , vertical
hh: horizontal , horizontal
vv: vertical , vertical
- end_points(origin, destination)
Locate origin and destination coordinates.
The end_point method takes two components as arguments and returns coordinates that are aligned with the centre coordinates of the relevant side.
- Parameters
origin (component with width and height attributes and bounding_coords method) – origin component
destination (component with width and height attributes and bounding_coords method) – destination component
- Returns
coordinates of start and end points
- Return type
Tuple ((ox, oy), (dx, dy))
Curved
- class pinout.components.leaderline.Curved(direction='hh', **kwargs)
Bases:
pinout.components.leaderline.Leaderline
Leaderline comprised of one or two curved corners.
Angled
- class pinout.components.leaderline.Angled(direction='hh', **kwargs)
Bases:
pinout.components.leaderline.Leaderline
Leaderline comprised of one or two sharp 90 degree corners.
Straight
- class pinout.components.leaderline.Straight(direction='hh', **kwargs)
Bases:
pinout.components.leaderline.Leaderline
Leaderline comprised of a single straight line.