Retrosheet hit locations (zone centres, in feet). First base is (63.64, 63.64) in feet; the arrows show which way x (blue) and y (orange) grow.
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 svg = drawKyogijo({
sport: "mlb",
layers: [
{
kind: "arrows",
name: "x grows",
from: "retrosheet",
data: [{ x: 63.64, y: 63.64, x2: 142.84, y2: 63.64 }],
style: { width: 1.2, color: "var(--ky-layer-home)" },
},
{
kind: "arrows",
name: "y grows",
from: "retrosheet",
data: [{ x: 63.64, y: 63.64, x2: 63.64, y2: 121.24 }],
style: { width: 1.2, color: "var(--ky-layer-away)" },
},
{
kind: "points",
name: "first base",
from: "retrosheet",
data: [{ x: 63.64, y: 63.64, title: "first base: 63.64, 63.64" }],
style: { size: 4, shape: "star" },
},
{
kind: "text",
name: "axes",
from: "retrosheet",
data: [{ x: 166.6, y: 63.64, text: "x" }, { x: 63.64, y: 144.28, text: "y" }],
style: { size: 4 },
},
],
});
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.