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    map_scale: int = DEFAULT_MAP_SCALE
56    """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, 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.

map_scale: int = 4

Scale factor for the map.