27 lines
784 B
Python
27 lines
784 B
Python
from dataclasses import dataclass
|
|
|
|
from .color import Color
|
|
from .marker import Marker
|
|
|
|
|
|
@dataclass
|
|
class MarkerSet:
|
|
name: str
|
|
|
|
markers: list[Marker]
|
|
|
|
# Icon to use for the marker group. If None, the default icon will be used.
|
|
icon: str | None = None
|
|
|
|
# Default icon to use for the markers in the group. If None, the default icon will be used.
|
|
default_icon: str | None = None
|
|
|
|
# Default icon size to use for the markers in the group. If None, the default icon size will be used.
|
|
default_icon_size: tuple[int, int] | None = None
|
|
|
|
# Default color to use for the markers in the group. If None, the default color will be used.
|
|
default_color: Color | None = None
|
|
|
|
# Whether to show this marker group by default.
|
|
show_by_default: bool = True
|