Skip to content

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

apps/client/src/ui/studio/frame ​

The studio's frame: where a city spec's points and its solved plan stand on the studio's map. The game's points are [x, z] in metres, x growing westward (east is −x) and z northward; the map is an SVG in metres, north up and east to the right, so a point is drawn at [−x, −z]. A spec's point may be more than coordinates (a grid's point in its own frame, a hill's top, a roundabout's arm, a point along a road): specPoint finds where the solver puts it, as far as the spec and the plan say, for the handles the studio draws and drags.

Type Aliases ​

Functions ​