Skip to main content

Function: features()

Call Signature​

features(sport): readonly ["infield_dirt", "infield_grass", "pitchers_mound", "home_plate", "base", "pitchers_plate", "batters_box", "catchers_box", "foul_line", "running_lane"]

Defined in: packages/sporty/src/api.ts:323

Feature names a scene of this sport can contain (Feature.name).

Parameters​

sport​

"baseball"

Returns​

readonly ["infield_dirt", "infield_grass", "pitchers_mound", "home_plate", "base", "pitchers_plate", "batters_box", "catchers_box", "foul_line", "running_lane"]

Call Signature​

features(sport): readonly ["half_court", "court_apron", "center_circle_outline", "center_circle_fill", "division_line", "endline", "sideline", "two_point_range", "three_point_line", "painted_area", "free_throw_lane_boundary", "lane_space_mark", "free_throw_circle_fill", "free_throw_circle", "free_throw_circle_dash", "restricted_arc", "lower_defensive_box_mark", "inbounding_line", "substitution_line", "team_bench_line", "backboard", "basket_ring", "net"]

Defined in: packages/sporty/src/api.ts:324

Feature names a scene of this sport can contain (Feature.name).

Parameters​

sport​

"basketball"

Returns​

readonly ["half_court", "court_apron", "center_circle_outline", "center_circle_fill", "division_line", "endline", "sideline", "two_point_range", "three_point_line", "painted_area", "free_throw_lane_boundary", "lane_space_mark", "free_throw_circle_fill", "free_throw_circle", "free_throw_circle_dash", "restricted_arc", "lower_defensive_box_mark", "inbounding_line", "substitution_line", "team_bench_line", "backboard", "basket_ring", "net"]

Call Signature​

features(sport): readonly ["sheet_apron", "end", "centre_zone", "house_ring", "button", "tee_line", "back_line", "hog_line", "centre_line", "hack_line", "courtesy_line", "hack_foothold"]

Defined in: packages/sporty/src/api.ts:325

Feature names a scene of this sport can contain (Feature.name).

Parameters​

sport​

"curling"

Returns​

readonly ["sheet_apron", "end", "centre_zone", "house_ring", "button", "tee_line", "back_line", "hog_line", "centre_line", "hack_line", "courtesy_line", "hack_foothold"]

Call Signature​

features(sport): readonly ["half_field", "endzone", "field_apron", "end_line", "sideline", "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", "yardage_marker_box"]

Defined in: packages/sporty/src/api.ts:326

Feature names a scene of this sport can contain (Feature.name).

Parameters​

sport​

"football"

Returns​

readonly ["half_field", "endzone", "field_apron", "end_line", "sideline", "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", "yardage_marker_box"]

Call Signature​

features(sport): readonly ["defensive_zone", "neutral_zone", "offensive_zone", "boards", "center_line", "referee_crease", "zone_line", "goal_line", "goaltenders_restricted_area", "odzone_faceoff_lines", "center_faceoff_spot", "goal_crease_outline", "goal_crease_fill", "center_faceoff_circle", "odzone_faceoff_circle", "nodzone_faceoff_spot_ring", "nodzone_faceoff_spot_stripe", "goal_frame", "goal_frame_fill", "player_bench_outline", "player_bench_area_fill", "penalty_box_outline", "penalty_box_fill", "off_ice_officials_box"]

Defined in: packages/sporty/src/api.ts:327

Feature names a scene of this sport can contain (Feature.name).

Parameters​

sport​

"hockey"

Returns​

readonly ["defensive_zone", "neutral_zone", "offensive_zone", "boards", "center_line", "referee_crease", "zone_line", "goal_line", "goaltenders_restricted_area", "odzone_faceoff_lines", "center_faceoff_spot", "goal_crease_outline", "goal_crease_fill", "center_faceoff_circle", "odzone_faceoff_circle", "nodzone_faceoff_spot_ring", "nodzone_faceoff_spot_stripe", "goal_frame", "goal_frame_fill", "player_bench_outline", "player_bench_area_fill", "penalty_box_outline", "penalty_box_fill", "off_ice_officials_box"]

Call Signature​

features(sport): readonly ["field_apron", "defensive_zone", "neutral_zone", "offensive_zone", "referee_crease_fill", "sideline", "end_line", "change_area_outline", "change_area_fill", "center_line", "player_bench_area_fill", "player_bench_outline", "penalty_box_fill", "penalty_box_outline", "off_field_officials_box", "boards", "wing_line", "restraining_line", "defensive_area_line", "referee_crease", "center_circle", "goal_circle_fill", "goal_circle", "goal_arc", "goal_fan", "goal_fan_hash_mark", "goal_mouth", "goal_mouth_hash_mark", "below_goal_marking", "goal_net", "goal_frame", "goal_line", "face_off_marker"]

Defined in: packages/sporty/src/api.ts:328

Feature names a scene of this sport can contain (Feature.name).

Parameters​

sport​

"lacrosse"

Returns​

readonly ["field_apron", "defensive_zone", "neutral_zone", "offensive_zone", "referee_crease_fill", "sideline", "end_line", "change_area_outline", "change_area_fill", "center_line", "player_bench_area_fill", "player_bench_outline", "penalty_box_fill", "penalty_box_outline", "off_field_officials_box", "boards", "wing_line", "restraining_line", "defensive_area_line", "referee_crease", "center_circle", "goal_circle_fill", "goal_circle", "goal_arc", "goal_fan", "goal_fan_hash_mark", "goal_mouth", "goal_mouth_hash_mark", "below_goal_marking", "goal_net", "goal_frame", "goal_line", "face_off_marker"]

Call Signature​

features(sport): readonly ["half_pitch", "pitch_apron", "touchline", "goal_line", "corner_arc", "halfway_line", "penalty_box", "goal_box", "center_circle", "penalty_mark", "center_mark", "corner_defensive_marks", "goal"]

Defined in: packages/sporty/src/api.ts:329

Feature names a scene of this sport can contain (Feature.name).

Parameters​

sport​

"soccer"

Returns​

readonly ["half_pitch", "pitch_apron", "touchline", "goal_line", "corner_arc", "halfway_line", "penalty_box", "goal_box", "center_circle", "penalty_mark", "center_mark", "corner_defensive_marks", "goal"]

Call Signature​

features(sport): readonly ["court_apron", "doubles_alley", "backcourt", "frontcourt_half", "baseline", "sideline", "serviceline", "center_serviceline", "center_mark", "net"]

Defined in: packages/sporty/src/api.ts:330

Feature names a scene of this sport can contain (Feature.name).

Parameters​

sport​

"tennis"

Returns​

readonly ["court_apron", "doubles_alley", "backcourt", "frontcourt_half", "baseline", "sideline", "serviceline", "center_serviceline", "center_mark", "net"]

Call Signature​

features(sport): readonly ["free_zone", "front_zone", "backcourt", "court_apron", "service_zone_mark", "attack_line", "substitution_zone_dash", "center_line", "end_line", "sideline"]

Defined in: packages/sporty/src/api.ts:331

Feature names a scene of this sport can contain (Feature.name).

Parameters​

sport​

"volleyball"

Returns​

readonly ["free_zone", "front_zone", "backcourt", "court_apron", "service_zone_mark", "attack_line", "substitution_zone_dash", "center_line", "end_line", "sideline"]

Call Signature​

features(sport): readonly string[]

Defined in: packages/sporty/src/api.ts:332

Feature names a scene of this sport can contain (Feature.name).

Parameters​

sport​

Sport

Returns​

readonly string[]