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:112
Inherited from
SurfaceSceneOptions.arcResolution
centerLogo?
optionalcenterLogo?:number|boolean
Defined in: packages/sdvplot/src/plot/surface.ts:17
A team logo at the surface centre (0, 0): true is 0.25 of the frame height, a number is that fraction in (0, 1] (0 or
out of range throws InputError). Ignored without a team. xTrans/yTrans or a half-court displayRange can move (0, 0) off-frame.
colorUpdates?
optionalcolorUpdates?:Partial<Record<"plot_background"|"court_apron"|"center_circle_outline"|"center_circle_fill"|"division_line"|"endline"|"sideline"|"two_point_range"|"three_point_line"|"painted_area"|"lane_space_mark"|"free_throw_circle_fill"|"free_throw_circle_dash"|"restricted_arc"|"inbounding_line"|"substitution_line"|"team_bench_line"|"backboard"|"basket_ring"|"net"|"offensive_half_court"|"defensive_half_court"|"lane_boundary"|"free_throw_circle_outline"|"baseline_lower_defensive_box"|"lane_lower_defensive_box"|"field_apron"|"end_line"|"field_border"|"field_border_outline"|"red_zone_border"|"red_zone_border_outline"|"goal_line"|"major_yard_line"|"minor_yard_line"|"try_mark"|"coaching_box_line"|"directional_arrow"|"restricted_area"|"coaching_box"|"team_bench_area"|"team_bench_area_outline"|"yardage_marker"|"offensive_half"|"defensive_half"|"offensive_endzone"|"defensive_endzone"|"boards"|"center_line"|"referee_crease"|"zone_line"|"center_faceoff_spot"|"goal_crease_outline"|"goal_crease_fill"|"center_faceoff_circle"|"odzone_faceoff_circle"|"goal_frame"|"off_ice_officials_box"|"ozone_ice"|"nzone_ice"|"dzone_ice"|"restricted_trapezoid"|"faceoff_spot_ring"|"faceoff_spot_stripe"|"faceoff_line"|"goal_fill"|"team_a_bench"|"team_b_bench"|"team_a_penalty_box"|"team_b_penalty_box",string>>
Defined in: packages/sdvplot/src/surfaces.ts:103
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:106
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:104
Inherited from
SurfaceSceneOptions.rotation
season?
optionalseason?:SeasonInput
Defined in: packages/sdvplot/src/surfaces.ts:101
Inherited from
SurfaceSceneOptions.season
team?
optionalteam?:Value
Defined in: packages/sdvplot/src/surfaces.ts:100
Inherited from
SurfaceSceneOptions.team
units?
optionalunits?:"m"|"ft"|"yd"|"in"|"cm"|"mm"
Defined in: packages/sdvplot/src/surfaces.ts:109
Inherited from
SurfaceSceneOptions.units
updates?
optionalupdates?:BasketballParamUpdates&FootballParamUpdates&HockeyParamUpdates
Defined in: packages/sdvplot/src/surfaces.ts:111
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:107
Inherited from
SurfaceSceneOptions.xlim
xTrans?
optionalxTrans?:number
Defined in: packages/sdvplot/src/surfaces.ts:113
Inherited from
SurfaceSceneOptions.xTrans
ylim?
optionalylim?: readonly [number,number]
Defined in: packages/sdvplot/src/surfaces.ts:108
Inherited from
SurfaceSceneOptions.ylim
yTrans?
optionalyTrans?:number
Defined in: packages/sdvplot/src/surfaces.ts:114
Inherited from
SurfaceSceneOptions.yTrans