Skip to main content

Interface: CyColorOptions

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

The colour options teamStylesheet and passNetwork share.

Extended by​

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.


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".


idSystem?​

optional idSystem?: IdSystem

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

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


nodeSize?​

optional nodeSize?: number

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

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


season?​

optional season?: SeasonInput

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

The season the teams are resolved for.


which?​

optional which?: Which

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

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