Skip to main content

Function: appendSurface()

appendSurface<G, D>(sel, league, o): Sel<SVGGElement, D>

Defined in: packages/sdvplot/src/d3/index.ts:195

Paint a surface key's surface (in team's colours) into sel through the caller's x/y scales. Throws InputError for a key with no surface (see SURFACES).

Type Parameters​

G​

G extends SVGGElement | SVGSVGElement

D​

D

Parameters​

sel​

Sel<G, D>

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" | string & object

o​

D3SurfaceOptions

Returns​

Sel<SVGGElement, D>