Add arbitrary identifier for labels and subpattern/repetition
This commit is contained in:
parent
703c1aa6d8
commit
0b962999b2
3 changed files with 11 additions and 2 deletions
|
|
@ -24,6 +24,9 @@ class Label:
|
|||
# Label string
|
||||
_string = None # type: str
|
||||
|
||||
# Arbitrary identifier tuple
|
||||
identifier: Tuple
|
||||
|
||||
# ---- Properties
|
||||
# offset property
|
||||
@property
|
||||
|
|
@ -76,6 +79,7 @@ class Label:
|
|||
string: str,
|
||||
offset: vector2=(0.0, 0.0),
|
||||
layer: int=0):
|
||||
self.identifier = ()
|
||||
self.string = string
|
||||
self.offset = numpy.array(offset, dtype=float)
|
||||
self.layer = layer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue