[Polygon / Path / PolyCollection] Force polygon/path offset to (0, 0)
And disallow setting it. This offset was basically just a footgun.
This commit is contained in:
parent
e231fa89cb
commit
aca49dc7e3
8 changed files with 107 additions and 53 deletions
|
|
@ -9,7 +9,7 @@ from numpy.typing import NDArray, ArrayLike
|
|||
from . import Shape, Polygon, normalized_shape_tuple
|
||||
from ..error import PatternError
|
||||
from ..repetition import Repetition
|
||||
from ..traits import RotatableImpl
|
||||
from ..traits import PositionableImpl, RotatableImpl
|
||||
from ..utils import is_scalar, get_bit, annotations_t, annotations_lt, annotations_eq, rep2key, SupportsBool
|
||||
|
||||
# Loaded on use:
|
||||
|
|
@ -18,7 +18,7 @@ from ..utils import is_scalar, get_bit, annotations_t, annotations_lt, annotatio
|
|||
|
||||
|
||||
@functools.total_ordering
|
||||
class Text(RotatableImpl, Shape):
|
||||
class Text(PositionableImpl, RotatableImpl, Shape):
|
||||
"""
|
||||
Text (to be printed e.g. as a set of polygons).
|
||||
This is distinct from non-printed Label objects.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue