[Path] Circular cap extensions should translate to square, not empty
This commit is contained in:
parent
e3f8d28529
commit
2019fc0d74
1 changed files with 3 additions and 1 deletions
|
|
@ -477,11 +477,13 @@ class Path(Shape):
|
||||||
def _calculate_cap_extensions(self) -> NDArray[numpy.float64]:
|
def _calculate_cap_extensions(self) -> NDArray[numpy.float64]:
|
||||||
if self.cap == PathCap.Square:
|
if self.cap == PathCap.Square:
|
||||||
extensions = numpy.full(2, self.width / 2)
|
extensions = numpy.full(2, self.width / 2)
|
||||||
|
elif self.cap == PathCap.Circle:
|
||||||
|
extensions = numpy.full(2, self.width / 2)
|
||||||
elif self.cap == PathCap.SquareCustom:
|
elif self.cap == PathCap.SquareCustom:
|
||||||
assert isinstance(self.cap_extensions, numpy.ndarray)
|
assert isinstance(self.cap_extensions, numpy.ndarray)
|
||||||
extensions = self.cap_extensions
|
extensions = self.cap_extensions
|
||||||
else:
|
else:
|
||||||
# Flush or Circle
|
# Flush
|
||||||
extensions = numpy.zeros(2)
|
extensions = numpy.zeros(2)
|
||||||
return extensions
|
return extensions
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue