Skip to main content

Interface: TeamColorOptions

Defined in: packages/sdvplot/src/plot/scales.ts:8

Properties​

alpha?​

optional alpha?: number

Defined in: packages/sdvplot/src/plot/scales.ts:18

Opacity in [0, 1], appended as an 8-bit hex alpha to team colours only.


idSystem?​

optional idSystem?: IdSystem

Defined in: packages/sdvplot/src/plot/scales.ts:13


legend?​

optional legend?: boolean

Defined in: packages/sdvplot/src/plot/scales.ts:21


optional naValue?: string

Defined in: packages/sdvplot/src/plot/scales.ts:16

Colour for values that resolve to no team; default "grey". Never gets alpha.


season?​

optional season?: SeasonInput

Defined in: packages/sdvplot/src/plot/scales.ts:12

Season for era-aware resolution; passing it avoids the ambiguity warning for reused abbreviations.


strict?​

optional strict?: boolean

Defined in: packages/sdvplot/src/plot/scales.ts:14


values?​

optional values?: readonly Value[]

Defined in: packages/sdvplot/src/plot/scales.ts:20

Domain = these distinct values; default every team_id and abbr of the league.


which?​

optional which?: Which

Defined in: packages/sdvplot/src/plot/scales.ts:10

"primary" (default) or "secondary".