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