Skip to content

five-on-it / apps/client/src/ui/studio/RegionMap

apps/client/src/ui/studio/RegionMap ​

The studio's map of a region spec: its tiles shaded by the level of their highest corner (as the region's solver found them, else the base level), the spawn apron, its water and lava, its roads as solved (else straight between their tiles), its features drawn from the spec (a hill's, a mountain's, a volcano's and a valley's reach round their corner; a plateau, a lake and a landuse area over their tiles; a ski run from its top to its foot), its towns' footprints, the selection's points as handles that snap to the grid's corners or tiles as they are dragged, the issues pinned. A click on an element selects it (the select tool), a click elsewhere is the tool's. The ids and data- attributes are the end-to-end tests' contract.

Interfaces ​

Functions ​