A race replay, the 1000 m

Each skater is on his own way: the first straight of the 1000 m in one lane, then a lane changed on every crossing.

Replay of the 1000 mDrawn as: a speed skating track of 400 metres, its inner lane and its outer lane, the inner curve of 25 metres radius, the outer lane 4 metres wide and the straights 113.57 metres long, with the warm-up lane, the blocks of the curves and the finishing line. Races marked: 1000 m. Data: Replay, 1:12. 2 tracked objects. By team: home 1, away 1. 3 events.PlayersBy team: home 1, away 1.A 1B 2Shirt numbers12

The picture above was drawn when the docs were built. The script below draws it again with the published package.

import { skatingReplay } from "@johnmorrisdotca/kyogijo-stadiums/skating";
import { drawFrame } from "@johnmorrisdotca/kyogijo-stadiums/replay";

const replay = skatingReplay([{ name: "A", lane: "inner", time: 68 }, { name: "B", lane: "outer", time: 69 }], { race: "1000m" });
const svg = drawFrame(replay.options, replay.timeline, 30, replay.look);

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.