fieldhockey

Field hockey pitch, in metres from the centre. The right penalty spot is (39.2, 0) in metres; the arrows show which way x (blue) and y (orange) grow.

Field hockey pitchDrawn as: a field hockey pitch, 91.4 by 55 metres, with the centre line, the 23-metre lines, the circles, the penalty spots and the goals. Data: 1 x grows. 1 y grows. 1 the right penalty spot. 2 axes.1 x grows1 y grows1 the right penalty spotthe right penalty spot: 39.2, 02 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: "fieldhockey",
  layers: [
    {
      kind: "arrows",
      name: "x grows",
      from: "fieldhockey",
      surfaceSize: { length: 299.86876640419945, width: 180.44619422572177, unit: "ft" },
      data: [{ x: 39.2, y: 0, x2: 50.17, y2: 0 }],
      style: { width: 1.2, color: "var(--ky-layer-home)" },
    },
    {
      kind: "arrows",
      name: "y grows",
      from: "fieldhockey",
      surfaceSize: { length: 299.86876640419945, width: 180.44619422572177, unit: "ft" },
      data: [{ x: 39.2, y: 0, x2: 39.2, y2: 6.6 }],
      style: { width: 1.2, color: "var(--ky-layer-away)" },
    },
    {
      kind: "points",
      name: "the right penalty spot",
      from: "fieldhockey",
      surfaceSize: { length: 299.86876640419945, width: 180.44619422572177, unit: "ft" },
      data: [{ x: 39.2, y: 0, title: "the right penalty spot: 39.2, 0" }],
      style: { size: 4, shape: "star" },
    },
    {
      kind: "text",
      name: "axes",
      from: "fieldhockey",
      surfaceSize: { length: 299.86876640419945, width: 180.44619422572177, unit: "ft" },
      data: [{ x: 53.46, y: 0, text: "x" }, { x: 39.2, y: 9.24, 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.