volleyball

Volleyball court, in metres from the centre of the net. The middle of the right attack line is (3, 0) in metres; the arrows show which way x (blue) and y (orange) grow.

Volleyball courtDrawn as: a volleyball court, 18 by 9 metres, with its centre line, attack lines, the net and its antennae. Data: 1 x grows. 1 y grows. 1 the middle of the right attack line. 2 axes.1 x grows1 y grows1 the middle of the right attack linethe middle of the right attack line: 3, 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: "volleyball",
  layers: [
    {
      kind: "arrows",
      name: "x grows",
      from: "volleyball",
      surfaceSize: { length: 18, width: 9, unit: "m" },
      data: [{ x: 3, y: 0, x2: 5.16, y2: 0 }],
      style: { width: 1.2, color: "var(--ky-layer-home)" },
    },
    {
      kind: "arrows",
      name: "y grows",
      from: "volleyball",
      surfaceSize: { length: 18, width: 9, unit: "m" },
      data: [{ x: 3, y: 0, x2: 3, y2: 1.08 }],
      style: { width: 1.2, color: "var(--ky-layer-away)" },
    },
    {
      kind: "points",
      name: "the middle of the right attack line",
      from: "volleyball",
      surfaceSize: { length: 18, width: 9, unit: "m" },
      data: [{ x: 3, y: 0, title: "the middle of the right attack line: 3, 0" }],
      style: { size: 4, shape: "star" },
    },
    {
      kind: "text",
      name: "axes",
      from: "volleyball",
      surfaceSize: { length: 18, width: 9, unit: "m" },
      data: [{ x: 5.81, y: 0, text: "x" }, { x: 3, y: 1.51, 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.