gaelic

Gaelic games field, in metres from the centre. The middle of the right 45 m line is (27.5, 0) in metres; the arrows show which way x (blue) and y (orange) grow.

Gaelic football fieldDrawn as: a field for Gaelic football, 145 by 90 metres, with its lines across, the two rectangles at each end, the 13 and 40 metre arcs, the penalty point and the goalposts. Data: 1 x grows. 1 y grows. 1 the middle of the right 45 m line. 2 axes.1 x grows1 y grows1 the middle of the right 45 m linethe middle of the right 45 m line: 27.5, 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: "gaelic",
  layers: [
    {
      kind: "arrows",
      name: "x grows",
      from: "gaelic",
      surfaceSize: { length: 475.72178477690284, width: 295.2755905511811, unit: "ft" },
      data: [{ x: 27.5, y: 0, x2: 44.9, y2: 0 }],
      style: { width: 1.2, color: "var(--ky-layer-home)" },
    },
    {
      kind: "arrows",
      name: "y grows",
      from: "gaelic",
      surfaceSize: { length: 475.72178477690284, width: 295.2755905511811, unit: "ft" },
      data: [{ x: 27.5, y: 0, x2: 27.5, y2: 10.8 }],
      style: { width: 1.2, color: "var(--ky-layer-away)" },
    },
    {
      kind: "points",
      name: "the middle of the right 45 m line",
      from: "gaelic",
      surfaceSize: { length: 475.72178477690284, width: 295.2755905511811, unit: "ft" },
      data: [{ x: 27.5, y: 0, title: "the middle of the right 45 m line: 27.5, 0" }],
      style: { size: 4, shape: "star" },
    },
    {
      kind: "text",
      name: "axes",
      from: "gaelic",
      surfaceSize: { length: 475.72178477690284, width: 295.2755905511811, unit: "ft" },
      data: [{ x: 50.12, y: 0, text: "x" }, { x: 27.5, y: 15.12, 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.