Skip to content

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

Function: addFeature() ​

addFeature(spec, kind, at): object

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

A feature of a kind put at the corner nearest a point, with the sizes its kind needs.

Parameters ​

spec ​

RegionSpecJson

kind ​

"ski" | "hill" | "mountain" | "plateau" | "valley" | "lake" | "volcano"

at ​

Pt

Returns ​

object

selection ​

selection: RegionSelection

spec ​

spec: object

Index Signature ​

[key: string]: unknown