From 2019fc0d7480c45ca38ea87c5b4efb7d53dfcae1 Mon Sep 17 00:00:00 2001 From: jan Date: Sun, 8 Mar 2026 22:40:08 -0700 Subject: [PATCH] [Path] Circular cap extensions should translate to square, not empty --- masque/shapes/path.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/masque/shapes/path.py b/masque/shapes/path.py index ad6da5d..9c31561 100644 --- a/masque/shapes/path.py +++ b/masque/shapes/path.py @@ -477,11 +477,13 @@ class Path(Shape): def _calculate_cap_extensions(self) -> NDArray[numpy.float64]: if self.cap == PathCap.Square: extensions = numpy.full(2, self.width / 2) + elif self.cap == PathCap.Circle: + 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 or Circle + # Flush extensions = numpy.zeros(2) return extensions