roborock.map

Module for Roborock map related data classes.

1"""Module for Roborock map related data classes."""
2
3from .map_parser import MapParserConfig, ParsedMapData
4
5__all__ = [
6    "MapParserConfig",
7]
@dataclass
class MapParserConfig:
46@dataclass
47class MapParserConfig:
48    """Configuration for the Roborock map parser."""
49
50    drawables: list[Drawable] = field(default_factory=_default_drawable_factory)
51    """List of drawables to include in the map rendering."""
52
53    show_background: bool = True
54    """Whether to show the background of the map."""
55
56    show_walls: bool = True
57    """Whether to show the walls of the map."""
58
59    show_rooms: bool = True
60    """Whether to show the rooms of the map."""
61
62    map_scale: int = DEFAULT_MAP_SCALE
63    """Scale factor for the map."""

Configuration for the Roborock map parser.

MapParserConfig( drawables: list[vacuum_map_parser_base.config.drawable.Drawable] = <factory>, show_background: bool = True, show_walls: bool = True, show_rooms: bool = True, map_scale: int = 4)
drawables: list[vacuum_map_parser_base.config.drawable.Drawable]

List of drawables to include in the map rendering.

show_background: bool = True

Whether to show the background of the map.

show_walls: bool = True

Whether to show the walls of the map.

show_rooms: bool = True

Whether to show the rooms of the map.

map_scale: int = 4

Scale factor for the map.