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:
50@dataclass
51class MapParserConfig:
52    """Configuration for the Roborock map parser."""
53
54    drawables: list[Drawable] = field(default_factory=_default_drawable_factory)
55    """List of drawables to include in the map rendering."""
56
57    show_background: bool = True
58    """Whether to show the background of the map."""
59
60    show_walls: bool = True
61    """Whether to show the walls of the map."""
62
63    show_rooms: bool = True
64    """Whether to show the rooms of the map."""
65
66    map_scale: int = DEFAULT_MAP_SCALE
67    """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.