PathCap
Path endpoint geometry.
PathCap controls how the start and end of a path are rendered. It is
used with Cell.add_path() to select the cap style.
Path corners use miter joins with a four-half-width limit and bevel fallback;
round caps are approximated with 16 segments per semicircle.
cell.add_path(
[Point(0, 0), Point(100, 0)],
width=0.5,
layer=Layer(1, 0),
cap=PathCap.ROUND,
)Variants
attributeFLUSHPathCapFlush (square) ends at path endpoints. The path terminates exactly at the first and last point with no extension. This is the default.
attributeROUNDPathCapRound ends. A semicircle with diameter equal to the path width magnitude is drawn at each endpoint.
attributeHALF_WIDTH_EXTENSIONPathCapSquare ends extending half the path width magnitude past the endpoints. Each
end is extended by abs(width) / 2 along the path direction.