Skip to main content

Interface: SurfaceBackdropProps

Defined in: packages/sdvplot/src/react/recharts.tsx:12

<SurfaceBackdrop> props: the league whose surface to draw, how to paint it (the options of sdvplot's other surface functions), and which axes place it. The sporty-specific options are typed loosely, so sdvplot/react's types never name @sportsdataverse/sporty (an optional peer); sporty checks them when the surface is built.

Properties​

arcResolution?​

optional arcResolution?: number

Defined in: packages/sdvplot/src/react/recharts.tsx:30


colorUpdates?​

optional colorUpdates?: Readonly<Record<string, string>>

Defined in: packages/sdvplot/src/react/recharts.tsx:20

Overrides on top of the team painting, keyed by sporty colour key (e.g. { painted_area: "#0e2240" }).


displayRange?​

optional displayRange?: string

Defined in: packages/sdvplot/src/react/recharts.tsx:24

A sporty display range for the league's sport, e.g. "defense"; one the sport does not know throws.


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/react/recharts.tsx:14

The league whose court, field or rink to draw, e.g. "nba".


rotation?​

optional rotation?: number

Defined in: packages/sdvplot/src/react/recharts.tsx:22

Degrees to rotate the surface by.


season?​

optional season?: SeasonInput

Defined in: packages/sdvplot/src/react/recharts.tsx:18

The season the team's colours are taken from.


team?​

optional team?: Value

Defined in: packages/sdvplot/src/react/recharts.tsx:16

The team whose colours paint the surface.


units?​

optional units?: "m" | "ft" | "yd" | "in" | "cm" | "mm"

Defined in: packages/sdvplot/src/react/recharts.tsx:27


updates?​

optional updates?: Readonly<Record<string, unknown>>

Defined in: packages/sdvplot/src/react/recharts.tsx:29

Sporty parameter overrides for the league's surface.


xAxisId?​

optional xAxisId?: string | number

Defined in: packages/sdvplot/src/react/recharts.tsx:34

The xAxisId of the numeric x axis the surface's units are on. Default 0.


xlim?​

optional xlim?: readonly [number, number]

Defined in: packages/sdvplot/src/react/recharts.tsx:25


xTrans?​

optional xTrans?: number

Defined in: packages/sdvplot/src/react/recharts.tsx:31


yAxisId?​

optional yAxisId?: string | number

Defined in: packages/sdvplot/src/react/recharts.tsx:36

The yAxisId of the numeric y axis the surface's units are on. Default 0.


ylim?​

optional ylim?: readonly [number, number]

Defined in: packages/sdvplot/src/react/recharts.tsx:26


yTrans?​

optional yTrans?: number

Defined in: packages/sdvplot/src/react/recharts.tsx:32