Interface: TeamStylesheetOptions
Defined in: packages/sdvplot/src/cytoscape.ts:88
teamStylesheet options.
Extends
Properties
background?
optionalbackground?:string
Defined in: packages/sdvplot/src/cytoscape.ts:81
The background the network is drawn on (Cytoscape's container). Given, every team colour keeps 3:1 contrast
against it (dark mode) and aims to stay distinct (CIE76 ΔE of 20 or more) from every other team's, through the
shared team palette, as teamColorPalette does in the other adapters (when it cannot, it keeps the readable colour
and warns once); a headshot node's name takes the ink that reads on it.
Inherited from
fallback?
optionalfallback?:string
Defined in: packages/sdvplot/src/cytoscape.ts:83
The colour of an element whose team does not resolve, or has no colour. Default "#808080".
Inherited from
idSystem?
optionalidSystem?:IdSystem
Defined in: packages/sdvplot/src/cytoscape.ts:72
How the team values are read. Default "auto".
Inherited from
league
league:
"aaf"|"ahl"|"ajhl"|"bchl"|"cchl"|"cebl"|"cfb"|"cfl"|"chl"|"cricket"|"easl"|"echl"|"f1"|"fiba"|"gojhl"|"iihf"|"kijhl"|"lba"|"mbb"|"mhl"|"milb"|"mjhl"|"mlb"|"nba"|"nbagl"|"nbl"|"ncaa_baseball"|"ncaa_mhockey"|"ncaa_softball"|"ncaa_whockey"|"nfl"|"nhl"|"nojhl"|"ohl"|"ojhl"|"phf"|"pwhl"|"qmjhl"|"sjhl"|"soccer"|"sphl"|"ufl"|"usfl"|"ushl"|"vijhl"|"wbb"|"whl"|"wnba"|"xfl"
Defined in: packages/sdvplot/src/cytoscape.ts:90
The league the teams belong to, e.g. "soccer".
nodeSize?
optionalnodeSize?:number
Defined in: packages/sdvplot/src/cytoscape.ts:85
A node's diameter in px, 1 or more. Default 40.
Inherited from
season?
optionalseason?:SeasonInput
Defined in: packages/sdvplot/src/cytoscape.ts:70
The season the teams are resolved for.
Inherited from
teams
teams: readonly
unknown[]
Defined in: packages/sdvplot/src/cytoscape.ts:92
The teams to colour, as the elements name them before resolving (see idSystem).
which?
optionalwhich?:Which
Defined in: packages/sdvplot/src/cytoscape.ts:74
The team colour drawn, "primary" (default) or "secondary".