|
|
|
@ -5,17 +5,20 @@ import numpy
|
|
|
|
|
from numpy.typing import ArrayLike, NDArray
|
|
|
|
|
|
|
|
|
|
from .repetition import Repetition
|
|
|
|
|
from .utils import rotation_matrix_2d, AutoSlots, annotations_t
|
|
|
|
|
from .utils import rotation_matrix_2d, annotations_t
|
|
|
|
|
from .traits import PositionableImpl, Copyable, Pivotable, RepeatableImpl, Bounded
|
|
|
|
|
from .traits import AnnotatableImpl
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Label(PositionableImpl, RepeatableImpl, AnnotatableImpl,
|
|
|
|
|
Bounded, Pivotable, Copyable, metaclass=AutoSlots):
|
|
|
|
|
class Label(PositionableImpl, RepeatableImpl, AnnotatableImpl, Bounded, Pivotable, Copyable):
|
|
|
|
|
"""
|
|
|
|
|
A text annotation with a position (but no size; it is not drawn)
|
|
|
|
|
"""
|
|
|
|
|
__slots__ = ( '_string', )
|
|
|
|
|
__slots__ = (
|
|
|
|
|
'_string',
|
|
|
|
|
# Inherited
|
|
|
|
|
'_offset', '_repetition', '_annotations',
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
_string: str
|
|
|
|
|
""" Label string """
|
|
|
|
|