Home scores 2: its two stones are nearer the button than every stone of the other team.
The picture above was drawn when the docs were built. The script below draws it again with the published package.
import { curlingStones } from "@johnmorrisdotca/kyogijo-stadiums/charts";
const stones = [
{ x: 0.4, y: 0.3, team: "home", number: 8 },
{ x: -1.2, y: -0.8, team: "home", number: 6 },
{ x: 1.9, y: 1.1, team: "away", number: 7 },
{ x: -2.6, y: 2.8, team: "away", number: 5 },
{ x: 0.2, y: -9, team: "away", number: 3 },
{ x: 0.1, y: -14, team: "home", number: 2 },
];
const chart = curlingStones(stones, { end: 6, hammer: "home", names: { home: "Prairie Ridge", away: "Harbour City" } });
const svg = chart.draw();
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.