From 495babf8377165e99bddaf61a51c08bdb9a3cad8 Mon Sep 17 00:00:00 2001 From: jan Date: Mon, 9 Mar 2026 03:27:39 -0700 Subject: [PATCH] [Path] revert endcap changes to avoid double-counting --- masque/shapes/path.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/masque/shapes/path.py b/masque/shapes/path.py index 43cff34..b4ac650 100644 --- a/masque/shapes/path.py +++ b/masque/shapes/path.py @@ -500,13 +500,13 @@ class Path(Shape): return self def _calculate_cap_extensions(self) -> NDArray[numpy.float64]: - if self.cap in (PathCap.Square, PathCap.Circle): + if self.cap == PathCap.Square: extensions = numpy.full(2, self.width / 2) elif self.cap == PathCap.SquareCustom: assert isinstance(self.cap_extensions, numpy.ndarray) extensions = self.cap_extensions else: - # Flush + # Flush or Circle extensions = numpy.zeros(2) return extensions