Skip to main content

Interface: PassArcOptions

Defined in: packages/sdvplot/src/deckgl.ts:120

passArcLayer options.

Properties​

alpha?​

optional alpha?: number

Defined in: packages/sdvplot/src/deckgl.ts:154

The layer's opacity in [0, 1]. Default 1.


background?​

optional background?: string

Defined in: packages/sdvplot/src/deckgl.ts:148

The background the arcs are drawn on. Given, each end's 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 colour at that end, through the shared team palette, as teamColorPalette does in the other adapters. Caveat: a colour that does not read gives way to the team's other colour, so when only one of a team's two colours reads on the background, both ends take it and the arcs no longer show their direction (France's navy and mint on a dark pitch are both mint). Pick a background on which both colours read (France's both read on a mid-tone green such as #4a7f3a), or check that sourceColor and targetColor differ.


fallback?​

optional fallback?: string

Defined in: packages/sdvplot/src/deckgl.ts:150

The colour of a team that does not resolve, or has no colour. Default "#808080".


height?​

optional height?: number

Defined in: packages/sdvplot/src/deckgl.ts:159

deck.gl's getHeight, how high each arc rises for its length, 0 or more (0 draws a straight line). Default none: deck.gl's 1. Lower, such as 0.3, keeps arcs laid flat (tilt: 90) close to their chord, inside the surface.


id?​

optional id?: string

Defined in: packages/sdvplot/src/deckgl.ts:166

The layer id. Default "sdvplot-arcs".


idSystem?​

optional idSystem?: IdSystem

Defined in: packages/sdvplot/src/deckgl.ts:136

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


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/deckgl.ts:132

The league the teams belong to, e.g. "soccer".


season?​

optional season?: SeasonInput

Defined in: packages/sdvplot/src/deckgl.ts:134

The season the teams are resolved for.


team​

team: string

Defined in: packages/sdvplot/src/deckgl.ts:130

Name of the row column holding the team the arc is coloured by.


tilt?​

optional tilt?: number

Defined in: packages/sdvplot/src/deckgl.ts:164

deck.gl's getTilt, degrees in [-90, 90]: 90 lays each arc flat on the surface, so a top-down 2D view (an OrthographicView) shows the curve. Default none: deck.gl's upright arcs, for a pitched 3D view.


which?​

optional which?: Which

Defined in: packages/sdvplot/src/deckgl.ts:138

The colour at the source end, "primary" (default) or "secondary"; the target end takes the other.


width?​

optional width?: number

Defined in: packages/sdvplot/src/deckgl.ts:152

The arc's width in px, 1 or more. Default 2.


x​

x: string

Defined in: packages/sdvplot/src/deckgl.ts:122

Name of the row column holding each arc's source x.


xend​

xend: string

Defined in: packages/sdvplot/src/deckgl.ts:126

Name of the row column holding each arc's target x.


y​

y: string

Defined in: packages/sdvplot/src/deckgl.ts:124

Name of the row column holding each arc's source y.


yend​

yend: string

Defined in: packages/sdvplot/src/deckgl.ts:128

Name of the row column holding each arc's target y.