Skip to main content

Function: softballField()

softballField(league, opts?): Scene

Defined in: packages/sporty/src/softball/field.ts:37

Port of sportyR geom_softball() (2.4.5): origin = back tip of home plate, +y toward centre field. units converts the points, anchors and display limits, as R does for softball. Divergence: an unknown displayRange throws (R falls back to "full").

Parameters​

league​

"custom" | "ncaa" | string & object

opts?​

SurfaceOptions<SoftballParamUpdates, "infield_dirt" | "base" | "pitchers_plate" | "batters_box" | "catchers_box" | "foul_line" | "running_lane" | "plot_background" | "pitchers_circle" | "pitchers_lane" | "coaches_box", "full" | "infield"> = {}

Returns​

Scene