judo

Judo competition area, in metres from the centre of the tatami. The middle of the tape where the contestant to the referee's right starts is (2, 0) in metres; the arrows show which way x (blue) and y (orange) grow.

Judo contest areaDrawn as: a judo contest area of 10 by 10 metres in a safety area 4 metres wide, laid with tatami of 2 by 1 metres. The tape that marks where the contestants start lies at the centre, 4 metres apart. Data: 1 x grows. 1 y grows. 1 the middle of the tape where the contestant to the referee's right starts. 2 axes.1 x grows1 y grows1 the middle of the tape where the contestant to the referee's right startsthe middle of the tape where the contestant to the referee's right starts: 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: "judo",
  layers: [
    {
      kind: "arrows",
      name: "x grows",
      from: "judo",
      surfaceSize: { length: 18, width: 18, unit: "m" },
      data: [{ x: 2, y: 0, x2: 4.16, y2: 0 }],
      style: { width: 1.2, color: "var(--ky-layer-home)" },
    },
    {
      kind: "arrows",
      name: "y grows",
      from: "judo",
      surfaceSize: { length: 18, width: 18, unit: "m" },
      data: [{ x: 2, y: 0, x2: 2, y2: 2.16 }],
      style: { width: 1.2, color: "var(--ky-layer-away)" },
    },
    {
      kind: "points",
      name: "the middle of the tape where the contestant to the referee's right starts",
      from: "judo",
      surfaceSize: { length: 18, width: 18, unit: "m" },
      data: [
        {
          x: 2,
          y: 0,
          title: "the middle of the tape where the contestant to the referee's right starts: 2, 0",
        },
      ],
      style: { size: 4, shape: "star" },
    },
    {
      kind: "text",
      name: "axes",
      from: "judo",
      surfaceSize: { length: 18, width: 18, unit: "m" },
      data: [{ x: 4.81, y: 0, text: "x" }, { x: 2, y: 3.02, 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.