mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-05 20:31:51 +02:00
Issues #126: refactor figures sorting.
This commit is contained in:
parent
32bad69fc5
commit
5a934e2f37
2 changed files with 7 additions and 7 deletions
|
@ -529,6 +529,10 @@ class Constructor:
|
|||
)
|
||||
self.points.append(point)
|
||||
|
||||
def get_sorted_figures(self) -> list[StyledFigure]:
|
||||
"""Get all figures sorted by priority."""
|
||||
return sorted(self.figures, key=lambda x: x.line_style.priority)
|
||||
|
||||
|
||||
def check_level_number(tags: Tags, level: float) -> bool:
|
||||
"""Check if element described by tags is no the specified level."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue