Wyscout pitch coordinates. The right penalty mark is (90, 50) in percent; 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: "soccer",
pitchType: "wyscout",
layers: [
{
kind: "arrows",
name: "x grows",
from: "wyscout",
surfaceSize: { length: 105, width: 68, unit: "m" },
data: [{ x: 90, y: 50, x2: 102, y2: 50 }],
style: { width: 1.2, color: "var(--ky-layer-home)" },
},
{
kind: "arrows",
name: "y grows",
from: "wyscout",
surfaceSize: { length: 105, width: 68, unit: "m" },
data: [{ x: 90, y: 50, x2: 90, y2: 62 }],
style: { width: 1.2, color: "var(--ky-layer-away)" },
},
{
kind: "points",
name: "the right penalty mark",
from: "wyscout",
surfaceSize: { length: 105, width: 68, unit: "m" },
data: [{ x: 90, y: 50, title: "the right penalty mark: 90, 50" }],
style: { size: 4, shape: "star" },
},
{
kind: "text",
name: "axes",
from: "wyscout",
surfaceSize: { length: 105, width: 68, unit: "m" },
data: [{ x: 105.6, y: 50, text: "x" }, { x: 90, y: 66.8, 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.