Skip to content

five-on-it / apps/client/src/ui/studio/region / addRegionRoad

Function: addRegionRoad() ​

addRegionRoad(spec, points, roadClass): object

Defined in: apps/client/src/ui/studio/region.ts:163

A road of a class over the points clicked: from the first, by way of the middle ones (tiles), to the last.

Parameters ​

spec ​

RegionSpecJson

points ​

readonly Pt[]

roadClass ​

string

Returns ​

object

selection ​

selection: RegionSelection

spec ​

spec: object

Index Signature ​

[key: string]: unknown