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?
optionalarcResolution?:number
Defined in: packages/sdvplot/src/react/recharts.tsx:30
colorUpdates?
optionalcolorUpdates?: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?
optionaldisplayRange?: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?
optionalrotation?:number
Defined in: packages/sdvplot/src/react/recharts.tsx:22
Degrees to rotate the surface by.
season?
optionalseason?:SeasonInput
Defined in: packages/sdvplot/src/react/recharts.tsx:18
The season the team's colours are taken from.
team?
optionalteam?:Value
Defined in: packages/sdvplot/src/react/recharts.tsx:16
The team whose colours paint the surface.
units?
optionalunits?:"m"|"ft"|"yd"|"in"|"cm"|"mm"
Defined in: packages/sdvplot/src/react/recharts.tsx:27
updates?
optionalupdates?:Readonly<Record<string,unknown>>
Defined in: packages/sdvplot/src/react/recharts.tsx:29
Sporty parameter overrides for the league's surface.
xAxisId?
optionalxAxisId?: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?
optionalxlim?: readonly [number,number]
Defined in: packages/sdvplot/src/react/recharts.tsx:25
xTrans?
optionalxTrans?:number
Defined in: packages/sdvplot/src/react/recharts.tsx:31
yAxisId?
optionalyAxisId?: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?
optionalylim?: readonly [number,number]
Defined in: packages/sdvplot/src/react/recharts.tsx:26
yTrans?
optionalyTrans?:number
Defined in: packages/sdvplot/src/react/recharts.tsx:32