[Polygon] fix offset error messages
This commit is contained in:
parent
74fa377450
commit
3bf7efc404
1 changed files with 2 additions and 2 deletions
|
|
@ -96,11 +96,11 @@ class Polygon(Shape):
|
||||||
@offset.setter
|
@offset.setter
|
||||||
def offset(self, val: ArrayLike) -> None:
|
def offset(self, val: ArrayLike) -> None:
|
||||||
if numpy.any(val):
|
if numpy.any(val):
|
||||||
raise PatternError('Path offset is forced to (0, 0)')
|
raise PatternError('Polygon offset is forced to (0, 0)')
|
||||||
|
|
||||||
def set_offset(self, val: ArrayLike) -> Self:
|
def set_offset(self, val: ArrayLike) -> Self:
|
||||||
if numpy.any(val):
|
if numpy.any(val):
|
||||||
raise PatternError('Path offset is forced to (0, 0)')
|
raise PatternError('Polygon offset is forced to (0, 0)')
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def translate(self, offset: ArrayLike) -> Self:
|
def translate(self, offset: ArrayLike) -> Self:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue