curling

Curling stones, in feet from the button. The middle of the back line is (0, 6) in feet; the arrows show which way x (blue) and y (orange) grow.

Curling sheetDrawn as: a curling sheet, 45.72 by 4.75 metres, with a house at each end (the 12-, 8- and 4-foot circles round the button), the tee, back, hog and centre lines and the hacks. Data: 1 x grows. 1 y grows. 1 the middle of the back line. 2 axes.1 x grows1 y grows1 the middle of the back linethe middle of the back line: 0, 62 axesxy

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: "curling",
  layers: [
    {
      kind: "arrows",
      name: "x grows",
      from: "curling",
      surfaceSize: { length: 150, width: 15.58, unit: "ft" },
      data: [{ x: 0, y: 6, x2: 1.87, y2: 6 }],
      style: { width: 1.2, color: "var(--ky-layer-home)" },
    },
    {
      kind: "arrows",
      name: "y grows",
      from: "curling",
      surfaceSize: { length: 150, width: 15.58, unit: "ft" },
      data: [{ x: 0, y: 6, x2: 0, y2: 24 }],
      style: { width: 1.2, color: "var(--ky-layer-away)" },
    },
    {
      kind: "points",
      name: "the middle of the back line",
      from: "curling",
      surfaceSize: { length: 150, width: 15.58, unit: "ft" },
      data: [{ x: 0, y: 6, title: "the middle of the back line: 0, 6" }],
      style: { size: 4, shape: "star" },
    },
    {
      kind: "text",
      name: "axes",
      from: "curling",
      surfaceSize: { length: 150, width: 15.58, unit: "ft" },
      data: [{ x: 2.43, y: 6, text: "x" }, { x: 0, y: 31.2, 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.