Skip to main content

Interface: TeamStylesheetOptions

Defined in: packages/sdvplot/src/cytoscape.ts:88

teamStylesheet options.

Extends​

Properties​

background?​

optional background?: 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​

CyColorOptions.background


fallback?​

optional fallback?: 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​

CyColorOptions.fallback


idSystem?​

optional idSystem?: IdSystem

Defined in: packages/sdvplot/src/cytoscape.ts:72

How the team values are read. Default "auto".

Inherited from​

CyColorOptions.idSystem


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?​

optional nodeSize?: number

Defined in: packages/sdvplot/src/cytoscape.ts:85

A node's diameter in px, 1 or more. Default 40.

Inherited from​

CyColorOptions.nodeSize


season?​

optional season?: SeasonInput

Defined in: packages/sdvplot/src/cytoscape.ts:70

The season the teams are resolved for.

Inherited from​

CyColorOptions.season


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?​

optional which?: Which

Defined in: packages/sdvplot/src/cytoscape.ts:74

The team colour drawn, "primary" (default) or "secondary".

Inherited from​

CyColorOptions.which