A half court on the chalkboard

NBA basketball courtDrawn as: a basketball court, 94 by 50 feet, with its keys, three-point lines, free-throw circles and the centre circle. Shows only the half court at the left end. Home attacks the right end. Axes in the drawing's own numbers, in ft: x from 0 to 47, y from 0 to 50. Labelled parts: Baseline, Halfway line, Key, Free-throw line, Free-throw circle, Backboard, Basket, Three-point line, Restricted area.Home attacking01020304001020304050BackboardRestricted areaKeyFree-throw circleBaselineBasketFree-throw lineThree-point lineHalfway line

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: "nba",
  range: "half-court",
  look: "chalkboard",
  landmarks: true,
  direction: { home: "right" },
  axes: { ticks: 10 },
});

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.