Lineups: a rink with a second line

NHL hockey rinkDrawn as: an ice hockey rink, 200 by 85 feet with rounded corners, with its red and blue lines, face-off circles, creases and goal nets. Data: Lineup in Hockey, two lines: 9 players. Players: Hellebuyck (Goaltender), Josi (Left defenceman), Makar (Right defenceman), Marner (Left wing), McDavid (Centre), Rantanen (Right wing), Hyman (Left wing on the second line), Draisaitl (Centre on the second line), Kane (Right wing on the second line). Captain: Josi. The six on the ice and, in a row along the bench side, the next forward line and defence pair, each marked as the second unit. The codes of the second unit end in 2.Lineup in Hockey, two lines: 9 playersPlayers: Hellebuyck (Goaltender), Josi (Left defenceman), Makar (Right defenceman), Marner (Left wing), McDavid (Centre), Rantanen (Right wing), Hyman (Left wing on the second line), Draisaitl (Centre on the second line), Kane (Right wing on the second line). Captain: Josi. The six on the ice and, in a row along the bench side, the next forward line and defence pair, each marked as the second unit. The codes of the second unit end in 2.Goaltender: Hellebuyck 37Left defenceman: Josi 59Right defenceman: Makar 8Left wing: Marner 16Centre: McDavid 97Right wing: Rantanen 96Left defenceman on the second pairRight defenceman on the second pairLeft wing on the second line: Hyman 18Centre on the second line: Draisaitl 29Right wing on the second line: Kane 93Captain37Hellebuyck59JosiC8Makar16Marner97McDavid96RantanenLD2RD218Hyman29Draisaitl93Kane

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: "nhl",
  layers: [
    {
      kind: "lineup",
      side: "home",
      players: [
        { pos: "G", name: "Hellebuyck", number: 37 }, { pos: "D", name: "Josi", number: 59, captain: true }, { pos: "D", name: "Makar", number: 8 },
        { pos: "LW", name: "Marner", number: 16 }, { pos: "C", name: "McDavid", number: 97 }, { pos: "RW", name: "Rantanen", number: 96 },
        { pos: "LW", name: "Hyman", number: 18, line: 2 }, { pos: "C", name: "Draisaitl", number: 29, line: 2 }, { pos: "RW", name: "Kane", number: 93, line: 2 },
      ],
    },
  ],
});

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.