Lineups: two rugby teams

Rugby union fieldDrawn as: a rugby union field, 120 by 70 metres with its in-goal areas, with the 22-metre lines, the half-way line, the dash lines and the goal posts. Data: Lineup in Rugby union, the fifteen: 15 players. Players: Player 1 (Loosehead prop), Player 2 (Hooker), Player 3 (Tighthead prop), Player 4 (Lock), Player 5 (Lock), Player 6 (Blindside flanker), Player 7 (Openside flanker), Player 8 (Number eight), Player 9 (Scrum-half), Player 10 (Fly-half), Player 12 (Inside centre), Player 13 (Outside centre), Player 11 (Left wing), Player 14 (Right wing), Player 15 (Full-back). The fifteen in their numbers, 1 to 15: the pack of eight bound as for a scrum, the scrum-half beside it, the fly-half and the centres in a line behind, the wings wide and the full-back deep. Lineup in Rugby union, the fifteen: 15 players. Players: Player 1 (Loosehead prop), Player 2 (Hooker), Player 3 (Tighthead prop), Player 4 (Lock), Player 5 (Lock), Player 6 (Blindside flanker), Player 7 (Openside flanker), Player 8 (Number eight), Player 9 (Scrum-half), Player 10 (Fly-half), Player 12 (Inside centre), Player 13 (Outside centre), Player 11 (Left wing), Player 14 (Right wing), Player 15 (Full-back). The fifteen in their numbers, 1 to 15: the pack of eight bound as for a scrum, the scrum-half beside it, the fly-half and the centres in a line behind, the wings wide and the full-back deep.Lineup in Rugby union, the fifteen: 15 playersPlayers: Player 1 (Loosehead prop), Player 2 (Hooker), Player 3 (Tighthead prop), Player 4 (Lock), Player 5 (Lock), Player 6 (Blindside flanker), Player 7 (Openside flanker), Player 8 (Number eight), Player 9 (Scrum-half), Player 10 (Fly-half), Player 12 (Inside centre), Player 13 (Outside centre), Player 11 (Left wing), Player 14 (Right wing), Player 15 (Full-back). The fifteen in their numbers, 1 to 15: the pack of eight bound as for a scrum, the scrum-half beside it, the fly-half and the centres in a line behind, the wings wide and the full-back deep.Loosehead prop: Player 1 1Hooker: Player 2 2Tighthead prop: Player 3 3Lock: Player 4 4Lock: Player 5 5Blindside flanker: Player 6 6Openside flanker: Player 7 7Number eight: Player 8 8Scrum-half: Player 9 9Fly-half: Player 10 10Inside centre: Player 12 12Outside centre: Player 13 13Left wing: Player 11 11Right wing: Player 14 14Full-back: Player 15 151Player 12Player 23Player 34Player 45Player 56Player 67Player 78Player 89Player 910Player 1012Player 1213Player 1311Player 1114Player 1415Player 15Lineup in Rugby union, the fifteen: 15 playersPlayers: Player 1 (Loosehead prop), Player 2 (Hooker), Player 3 (Tighthead prop), Player 4 (Lock), Player 5 (Lock), Player 6 (Blindside flanker), Player 7 (Openside flanker), Player 8 (Number eight), Player 9 (Scrum-half), Player 10 (Fly-half), Player 12 (Inside centre), Player 13 (Outside centre), Player 11 (Left wing), Player 14 (Right wing), Player 15 (Full-back). The fifteen in their numbers, 1 to 15: the pack of eight bound as for a scrum, the scrum-half beside it, the fly-half and the centres in a line behind, the wings wide and the full-back deep.Loosehead prop: Player 1 1Hooker: Player 2 2Tighthead prop: Player 3 3Lock: Player 4 4Lock: Player 5 5Blindside flanker: Player 6 6Openside flanker: Player 7 7Number eight: Player 8 8Scrum-half: Player 9 9Fly-half: Player 10 10Inside centre: Player 12 12Outside centre: Player 13 13Left wing: Player 11 11Right wing: Player 14 14Full-back: Player 15 151Player 12Player 23Player 34Player 45Player 56Player 67Player 78Player 89Player 910Player 1012Player 1213Player 1311Player 1114Player 1415Player 15

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 fifteen = () => Array.from({ length: 15 }, (_, i) => ({ pos: String(i + 1), number: i + 1, name: "Player " + (i + 1) }));
const svg = drawKyogijo({ sport: "rugby", layers: [{ kind: "lineup", side: "home", shape: "jersey", players: fifteen() }, { kind: "lineup", side: "away", shape: "jersey", players: fifteen() }] });

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.