MCPcopy
hub / github.com/slowlydev/f1-dash / getSectorColor

Function getSectorColor

dashboard/src/lib/map.ts:125–130  ·  view source on GitHub ↗
(
	sector: MapSector,
	bySector: boolean | undefined,
	trackColor: string | undefined = "stroke-white",
	yellowSectors: Set<number>,
)

Source from the content-addressed store, hash-verified

123};
124
125export const getSectorColor = (
126 sector: MapSector,
127 bySector: boolean | undefined,
128 trackColor: string | undefined = "stroke-white",
129 yellowSectors: Set<number>,
130) => (bySector ? (yellowSectors.has(sector.number) ? trackColor : "stroke-white") : trackColor);

Callers 1

MapFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected