Formations: a rink

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: Formation Hockey, five skaters and the goaltender: 6 positions. Positions: Goaltender, Left defenceman, Right defenceman, Left wing, Centre, Right wing. The six players on the ice at even strength: the goaltender, two defencemen and a line of centre and two wings. Formation Hockey, 1-3-1 power play: 6 positions. Positions: Goaltender, Right defenceman, Left wing, Left defenceman, Right wing, Centre. A power-play set in the attacking zone: one at the point, three across the middle and one low. Which player takes which place varies by team.Formation Hockey, five skaters and the goaltender: 6 positionsPositions: Goaltender, Left defenceman, Right defenceman, Left wing, Centre, Right wing. The six players on the ice at even strength: the goaltender, two defencemen and a line of centre and two wings.GoaltenderLeft defencemanRight defencemanLeft wingCentreRight wingGLDRDLWCRWFormation Hockey, 1-3-1 power play: 6 positionsPositions: Goaltender, Right defenceman, Left wing, Left defenceman, Right wing, Centre. A power-play set in the attacking zone: one at the point, three across the middle and one low. Which player takes which place varies by team.GoaltenderRight defencemanLeft wingLeft defencemanRight wingCentreGRDLWLDRWC

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: "formation", formation: "hockey-5v5", team: "home" },
    { kind: "formation", formation: "hockey-1-3-1", team: "away", attacking: "left" },
  ],
});

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.