Artistic swimming area, in metres from the centre of the water. Centre stage, at the pool's edge is (0, -10) in metres; 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: "artisticswimming",
layers: [
{
kind: "arrows",
name: "x grows",
from: "artisticswimming",
surfaceSize: { length: 30, width: 20, unit: "m" },
data: [{ x: 0, y: -10, x2: 3.6, y2: -10 }],
style: { width: 1.2, color: "var(--ky-layer-home)" },
},
{
kind: "arrows",
name: "y grows",
from: "artisticswimming",
surfaceSize: { length: 30, width: 20, unit: "m" },
data: [{ x: 0, y: -10, x2: 0, y2: -7.6 }],
style: { width: 1.2, color: "var(--ky-layer-away)" },
},
{
kind: "points",
name: "centre stage, at the pool's edge",
from: "artisticswimming",
surfaceSize: { length: 30, width: 20, unit: "m" },
data: [{ x: 0, y: -10, title: "centre stage, at the pool's edge: 0, -10" }],
style: { size: 4, shape: "star" },
},
{
kind: "text",
name: "axes",
from: "artisticswimming",
surfaceSize: { length: 30, width: 20, unit: "m" },
data: [{ x: 4.68, y: -10, text: "x" }, { x: 0, y: -6.64, 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.