swimming

Swimming pool, in metres from the centre of the water. The 15 m cross line in lane 1 is (-10, -8.75) in metres; the arrows show which way x (blue) and y (orange) grow.

Swimming poolDrawn as: a swimming pool, 50 by 25 metres, with 8 lanes, lane ropes, the lane markings on the floor, starting blocks, touch panels, backstroke flags and a false start rope. Data: 1 x grows. 1 y grows. 1 the 15 m cross line in lane 1. 2 axes.88776655443322111 x grows1 y grows1 the 15 m cross line in lane 1the 15 m cross line in lane 1: -10, -8.752 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: "swimming",
  layers: [
    {
      kind: "arrows",
      name: "x grows",
      from: "swimming",
      surfaceSize: { length: 50, width: 25, unit: "m" },
      data: [{ x: -10, y: -8.75, x2: -4, y2: -8.75 }],
      style: { width: 1.2, color: "var(--ky-layer-home)" },
    },
    {
      kind: "arrows",
      name: "y grows",
      from: "swimming",
      surfaceSize: { length: 50, width: 25, unit: "m" },
      data: [{ x: -10, y: -8.75, x2: -10, y2: -5.63 }],
      style: { width: 1.2, color: "var(--ky-layer-away)" },
    },
    {
      kind: "points",
      name: "the 15 m cross line in lane 1",
      from: "swimming",
      surfaceSize: { length: 50, width: 25, unit: "m" },
      data: [{ x: -10, y: -8.75, title: "the 15 m cross line in lane 1: -10, -8.75" }],
      style: { size: 4, shape: "star" },
    },
    {
      kind: "text",
      name: "axes",
      from: "swimming",
      surfaceSize: { length: 50, width: 25, unit: "m" },
      data: [{ x: -2.2, y: -8.75, text: "x" }, { x: -10, y: -4.38, 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.