Lineups: a ballpark with the designated hitter
Baseball field Drawn as: a baseball field, with a 90-foot infield, the mound, the foul lines and the outfield fence. Data: Lineup in Baseball, standard defence: 10 players. Players: Cole (Pitcher), Rutschman (Catcher), Alonso (First baseman), Albies (Second baseman), Witt (Shortstop), Ramirez (Third baseman), Soto (Left fielder), Trout (Centre fielder), Judge (Right fielder), Ohtani (Designated hitter). The nine fielders where they usually stand: a straight infield and the outfielders in their fields. Lineup in Baseball, standard defence: 10 players Players: Cole (Pitcher), Rutschman (Catcher), Alonso (First baseman), Albies (Second baseman), Witt (Shortstop), Ramirez (Third baseman), Soto (Left fielder), Trout (Centre fielder), Judge (Right fielder), Ohtani (Designated hitter). The nine fielders where they usually stand: a straight infield and the outfielders in their fields. Pitcher: Cole 1 Catcher: Rutschman 2 First baseman: Alonso 3 Second baseman: Albies 4 Shortstop: Witt 5 Third baseman: Ramirez 6 Left fielder: Soto 7 Centre fielder: Trout 8 Right fielder: Judge 9 Designated hitter: Ohtani 10 1 Cole 2 Rutschman 3 Alonso 4 Albies 5 Witt 6 Ramirez 7 Soto 8 Trout 9 Judge 10 Ohtani
The picture above was drawn when the docs were built. The script below draws it again with the published package.
import { drawKyogijo } from "@johnmorrisdotca/kyogijo-stadiums";
const codes = ["P", "C", "1B", "2B", "SS", "3B", "LF", "CF", "RF", "DH"];
const names = ["Cole", "Rutschman", "Alonso", "Albies", "Witt", "Ramirez", "Soto", "Trout", "Judge", "Ohtani"];
const players = codes.map((pos, i) => ({ pos, name: names[i], number: i + 1 }));
const svg = drawKyogijo({ sport: "mlb", layers: [{ kind: "lineup", shape: "jersey", players }] });
This page imports the package from jsDelivr (major version 0), which serves only versions that have been published to npm. A feature added after the last release is not in it: the page then keeps the picture above and says why. The docs were built from version 0.6.1.