karate

Karate competition area, in metres from the centre of the mats. The middle of the right start mat is (1.5, 0) in metres; the arrows show which way x (blue) and y (orange) grow.

Karate competition areaDrawn as: a karate kumite area: a matted square of 8 metres with its outer metre in another colour, in a safety area 2 metres wide, with the two start mats. The table, the referee and the four judges are marked. Data: 1 x grows. 1 y grows. 1 the middle of the right start mat. 2 axes.1 x grows1 y grows1 the middle of the right start matthe middle of the right start mat: 1.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: "karate",
  layers: [
    {
      kind: "arrows",
      name: "x grows",
      from: "karate",
      surfaceSize: { length: 12, width: 12, unit: "m" },
      data: [{ x: 1.5, y: 0, x2: 2.94, y2: 0 }],
      style: { width: 1.2, color: "var(--ky-layer-home)" },
    },
    {
      kind: "arrows",
      name: "y grows",
      from: "karate",
      surfaceSize: { length: 12, width: 12, unit: "m" },
      data: [{ x: 1.5, y: 0, x2: 1.5, y2: 1.44 }],
      style: { width: 1.2, color: "var(--ky-layer-away)" },
    },
    {
      kind: "points",
      name: "the middle of the right start mat",
      from: "karate",
      surfaceSize: { length: 12, width: 12, unit: "m" },
      data: [{ x: 1.5, y: 0, title: "the middle of the right start mat: 1.5, 0" }],
      style: { size: 4, shape: "star" },
    },
    {
      kind: "text",
      name: "axes",
      from: "karate",
      surfaceSize: { length: 12, width: 12, unit: "m" },
      data: [{ x: 3.37, y: 0, text: "x" }, { x: 1.5, y: 2.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.