The strike zone, left-handed, by pitch type, dark

Strike zone: where the pitches crossed the plateThe strike zone seen from the catcher's position: the plate 17 inches wide, the zone from 1.6 to 3.6 feet above the ground. The batter stands on the right. Data: 3 pitches. By outcome: Ball 1, Called strike 1, Swinging strike 1. 3 pitch numbers.Zone 11Zone 22Zone 33Zone 44Zone 55Zone 66Zone 77Zone 88Zone 99Zone 11, high and leftZone 12, high and rightZone 13, low and leftZone 14, low and rightL3 pitchesBy outcome: Ball 1, Called strike 1, Swinging strike 1.called-strike, 1ball, 2swinging-strike, 33 pitch numbers123

The picture above was drawn when the docs were built. The script below draws it again with the published package.

import { drawStrikeZone } from "@johnmorrisdotca/kyogijo-stadiums/target";

const pitches = [
  { x: 0.3, z: 2.9, outcome: "called-strike", type: "FF" },
  { x: -1.1, z: 1.4, outcome: "ball", type: "CH" },
  { x: 0.5, z: 1.8, outcome: "swinging-strike", type: "SL" },
];
const svg = drawStrikeZone(pitches, { bats: "L", colorBy: "type", theme: "dark", top: 3.6, bottom: 1.6 }).svg;

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.64.0.