Interface: SurfaceOpts
Defined in: packages/sdvplot/src/plot/surface.ts:12
Sporty's surface options plus team painting; colorUpdates overrides are keyed by sporty colour keys.
Extends
SurfaceSceneOptions
Properties
arcResolution?
optionalarcResolution?:number
Defined in: packages/sdvplot/src/surfaces.ts:224
Inherited from
SurfaceSceneOptions.arcResolution
centerLogo?
optionalcenterLogo?:number|boolean
Defined in: packages/sdvplot/src/plot/surface.ts:22
The team's logo at the surface centre, moved with xTrans / yTrans and rotation as the surface is: true is 0.25
of the frame height, a number is that fraction in (0, 1] (0 or out of range throws InputError). A baseball or softball
field's origin is home plate, so there the logo goes in shallow centre field, as in sdvplotR and sdvplot: at x = 0,
midway between second base (baseline_distance * sqrt(2)) and the centre-field fence, and with true 0.15 x
center_field_distance across (60 ft on an MLB field, at 263.6 ft from home plate). On grass (football, soccer,
baseball, softball) it is the team's dark-background logo. Ignored without a team (sdvplotR errors instead). A
half-surface displayRange can leave the logo off-frame.
colorUpdates?
optionalcolorUpdates?:Partial<Record<AnyColorKey,string>>
Defined in: packages/sdvplot/src/surfaces.ts:206
Overrides on top of the team painting, keyed by sporty colour key.
Inherited from
SurfaceSceneOptions.colorUpdates
displayRange?
optionaldisplayRange?:AnyRange
Defined in: packages/sdvplot/src/surfaces.ts:209
A sporty display range for the league's sport; one the sport does not know throws sporty's UnknownDisplayRangeError.
Inherited from
SurfaceSceneOptions.displayRange
rotation?
optionalrotation?:number
Defined in: packages/sdvplot/src/surfaces.ts:207
Inherited from
SurfaceSceneOptions.rotation
season?
optionalseason?:SeasonInput
Defined in: packages/sdvplot/src/surfaces.ts:204
Inherited from
SurfaceSceneOptions.season
team?
optionalteam?:Value
Defined in: packages/sdvplot/src/surfaces.ts:203
A team of the league, painting the surface; only for keys that are sdv team leagues (otherwise InputError).
Inherited from
SurfaceSceneOptions.team
units?
optionalunits?:"m"|"ft"|"yd"|"in"|"cm"|"mm"
Defined in: packages/sdvplot/src/surfaces.ts:212
Inherited from
SurfaceSceneOptions.units
updates?
optionalupdates?:BaseballParamUpdates&BasketballParamUpdates&CurlingParamUpdates&FootballParamUpdates&HockeyParamUpdates&LacrosseParamUpdates&SoccerParamUpdates&SoftballParamUpdates&TennisParamUpdates&VolleyballParamUpdates
Defined in: packages/sdvplot/src/surfaces.ts:214
Sporty parameter overrides (intersected across sports so each sport's own keys type-check).
Inherited from
SurfaceSceneOptions.updates
xlim?
optionalxlim?: readonly [number,number]
Defined in: packages/sdvplot/src/surfaces.ts:210
Inherited from
SurfaceSceneOptions.xlim
xTrans?
optionalxTrans?:number
Defined in: packages/sdvplot/src/surfaces.ts:225
Inherited from
SurfaceSceneOptions.xTrans
ylim?
optionalylim?: readonly [number,number]
Defined in: packages/sdvplot/src/surfaces.ts:211
Inherited from
SurfaceSceneOptions.ylim
yTrans?
optionalyTrans?:number
Defined in: packages/sdvplot/src/surfaces.ts:226
Inherited from
SurfaceSceneOptions.yTrans