Shots in the rink's own numbers

A point is where the rink puts it, wherever the rink stands.

NHL hockey rink in Wrigley FieldDrawn as: an ice hockey rink, 200 by 85 feet with rounded corners, with its red and blue lines, face-off circles, creases and goal nets. Part of the rink, 30 percent of its area, lies outside the outline of Wrigley Field. A ballpark's outline is the fair ground inside the fence, so a surface over the infield reaches into foul ground. Data: 3 shots. By outcome: goal 1.3 shotsBy outcome: goal 1.

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: "nhl",
  host: { park: "wrigley-field" },
  placement: { x: 0, y: -69.5, angle: 0 },
  layers: [{ kind: "points", name: "shots", data: [{ x: 172, y: 30 }, { x: 160, y: 55 }, { x: 28, y: 42.5, outcome: "goal" }] }],
});

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.