The picture above was drawn when the docs were built. The script below draws it again with the published package.
import { drawGrid } from "@johnmorrisdotca/kyogijo-stadiums/layouts";
const svg = drawGrid([{ sport: "nhl" }, { sport: "nhl", orientation: "portrait" }], {
width: 900,
title: "Shots on the rink",
subtitle: "Wide and tall",
legend: [
{ label: "Goal", color: "#c8102e" },
{ label: "Shot", color: "#1f5fa8", hollow: true },
{ label: "Block", color: "#6b6f72", shape: "x" },
],
});
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.