# Changelog

All notable changes to this project are written here. The format follows
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project uses
[Semantic Versioning](https://semver.org/).


## [Unreleased]

## [0.63.0] - 2026-11-03

### Added

- **Drop feed files on the demo, kept in the browser (KYOGIJO-STADIUMS-52)** ([feeds](./docs/feeds.md#in-the-demo)): drop one or more feed files (an NHL play-by-play file as the public answer has it, or a kyogijo timeline) on the game section's feed panel or its view, or choose several; the first good one plays, a file that is not a feed is refused by name, and every feed is kept in this browser (localStorage up to about 4 MB in all, IndexedDB past that), listed with its game, file, sport, date and size, with Play, Remove, Remove all and the space used, and still there after a reload. A whole folder can be dropped: files are read one at a time with progress, up to 200 at once and 200 MB kept in all; more is refused in words. Written only on a drop, a choice or a removal; nothing leaves the browser, and a browser that keeps nothing still plays the feed. The adapter is tested on an invented answer in the raw play-by-play shape (`src/feeds.nhl.stub.json`).
- **Bring your own feed: a file or a paste (KYOGIJO-STADIUMS-37)** ([feeds](./docs/feeds.md)): a new entry, `/feeds`, reads a game from a feed into a replay. `readFeed` and `readFeedText` read kyogijo's open timeline (a bare timeline or a game file, with its stoppages and penalties, so that the game clock stops where the replay's does; every value checked, every list capped) and, through a pure adapter, `nhlPlayByPlay`, a play-by-play shaped as the NHL's public one: the puck moved between the plays' places, the shots, goals and whistles, the periods on the game's clock and the sides and players named from the feed at run time. A `FeedError` says what was wrong. The demo's game section has **Bring your own feed**: choose a file or paste a feed, and it plays with the score, the period and the clock on the board.
- **Bring your own feed: an address, and where to find one (KYOGIJO-STADIUMS-37)** ([where to find a feed](./docs/where-to-find-a-feed.md)): with `/feeds` loaded, every mount's and 3D view's `replay` has `fromUrl(url, { format })`, fetched by the reader's browser with no cookie, no referrer and no cache, through no server of ours; `loadFeed` and `feedAddress` do it alone, and a refusal (CORS), a status or an answer too large is said plainly. The one list of where to find a feed, `examples/feeds/where-to-find.json`, has ice hockey beside racing (our made-up sample first, then the NHL's public play-by-play), with what each gives, a sample address, how to find a game, its docs and its terms; the docs page covers both sports in English and Japanese, and the demo's list beside the address field reads it, where **Use** fills the field.
- **Bring your own feed: live (KYOGIJO-STADIUMS-37)**: `replay.follow(url)` and `followFeed` ask the address every 15 seconds (never less than 10) only while the page is shown, play each answer that changed from where the reader was, wait twice as long after an error, and stop when the game is over or the server says 403 or 429. The demo has **Follow live**.

## [0.62.0] - 2026-11-03

### Added

- **Penalties, power plays and the penalty box (KYOGIJO-STADIUMS-48)** ([penalties](./docs/replay.md#penalties-and-the-power-play)): a penalty in a replay is a stoppage with the face-off in the offending side's end; the penalized player skates to his side's penalty box, across the ice from the benches, and sits there for the penalty's time on the game clock while his side plays a skater short (two for overlapping penalties, never below three skaters), then comes back into the play. A timeline has `penalties` now; the board over the arena shows each side's strength and each penalty's clock (the time left in the short side's block of colour, PP in the other's), and `replayBoard` gives `strength` and `penalties`. One rule set, in `/replay`: `hockeyPenaltyEnds` (a minor 2 minutes, a double minor 4, a major 5, a misconduct 10 with a substitute; a power-play goal ends a minor but not a major; coincidental penalties keep the strength even; a third penalty waits), `hockeyPenaltyKind` (the NHL play-by-play's kinds), `hockeyPenaltyBox` (a stand-in for the rink's own boxes), `penaltiesAt` and `replayGameTime`. The example game has its seven penalties (`examples/games/canada-japan.json`, 1.1 MB). Players on the bench are not drawn.

### Fixed

- **Stoppages play like hockey (KYOGIJO-STADIUMS-45)** ([stoppages](./docs/replay.md#stoppages-the-clock-stops-the-players-line-up)): after a goal the example game no longer moves the puck from the net to centre ice as if it were passed. A timeline has `stoppages` now: in each the game clock stands still (the board over the arena shows the same time from the goal to the drop) while the replay's own clock moves on, the puck is dead (it stays where play stopped, in the net after a goal, then is out of sight until the drop), and the players glide to the face-off's line-up at the spot the rules give, a line going off by its bench; the clock runs again at the drop. One rule set for hockey, in `/replay`: `hockeyFaceoffDot` (centre after a goal and at a period's start, the end-zone spot after a save or a frozen puck, the offending side's end after icing or a penalty, the neutral-zone spot after offside, the nearest spot in the zone otherwise), `hockeyFormation` (the line-up of Rule 76), `HOCKEY_DEAD_TIME` and `HOCKEY_RULES` (the speeds and seconds), `hockeyStopOf` (the NHL play-by-play's words), and, for any sport, `addDeadTime`, `replayGameClock`, `replayStoppages`, `stoppageAt` and `restartsBetween`. A `faceoff` event is said at each drop and draws no mark. A trail begins again after a frame its object is not in. `examples/games/canada-japan.json` is made again with the rules: 66 stoppages, about fifteen minutes, 1.1 MB (was 1.3 MB). The other sports' dead time is planned in the docs, not built.

## [0.61.0] - 2026-11-03

### Added

- **Sound: the crowd of each kind of venue, at a level (KYOGIJO-STADIUMS-36)** ([sound](./docs/sound.md)): `@johnmorrisdotca/kyogijo-stadiums/sound` has `createKyogijoSound`, a surface's crowd made in the browser with Web Audio (the building's air, people talking, applause and the crowd's voice, and the pool's water), at five levels from quiet to a roar, heard in the room its venue makes (its roof and its seats: an arena rings, an open stadium does not), as large as the crowd in it and drier from above in 2D. An index of sound sets (`SOUND_BEDS`, `SOUND_SETS`, `SOUND_OF_SPORT`) gives every surface a bed for its kind of venue (arena, open stadium, ballpark, court hall, pool, dojo, ring, track) and the levels it offers (a kyudo hall only two); a surface with none has no sound. Off until turned on: nothing is fetched, made or decoded before, one audio context serves the page, and nothing plays or decodes while it is off, muted, hidden or out of sight. `soundRoom`, `soundMix` and `levelFor` are the rules, pure.
- The demo: a Sound button, a volume slider and the crowd's levels as buttons, kept in the address (`sound=on`, `volume`, `level`), on the real arenas (venues.html), under the surface in Try it (the levels of each surface's venue, none with the crowd off) and over the arena at the top of the page. Its recordings (`demo/sounds/`) are CC0 or in the public domain, each listed with its source, author and licence in [sound credits](./docs/sound-credits.md), made by `pnpm sounds:fetch` and `pnpm sounds` (loudness matched, seamless loops, Opus with AAC); the most a sport loads is under 110 kB. They are not in the npm package.
- **Sound: a game's cues from its replay (KYOGIJO-STADIUMS-36)** ([game cues](./docs/sound.md#game-cues)): `sound.follow(controller, { periods, scoreAt })` plays each sport's cues as the replay goes by them (hockey's goal horn and the crowd's swell, a whistle at a stoppage, the buzzer at a period's end, a ring's bell, a starting gun, an "ooh" at a near miss), none on a seek or while paused, and under `level: "auto"` the crowd follows the game (`excitementAt`: loud late in a close game, a roar after a goal). `cueKindOf` reads a timeline's own words (`touchdown`, `try`, `ippon`, `foul`...); `cuesOf` and `cuesOfChange` are the rules, pure. The demo's game section and every Play a game (the arena at the top of the page, Try it and the real arenas) have the sound, with Follow the game among the levels; `play-game.js` tells a page of the replay it puts on the view (`onReplay`).
- **Sound: live events (KYOGIJO-STADIUMS-36)** ([live events](./docs/sound.md#live-events)): `sound.cue({ kind, team })` plays an event's cues as it happens, and `sound.game(moment)` gives the game's state to the level under `auto`; a goal lifts it to a roar for six seconds. The demo's live score has the sound, and pushes each goal and the game's end as they come.

## [0.60.1] - 2026-11-03

### Fixed

- **The home-screen icon loads under a strict content policy (MODULES-256)**: the demo pages' `apple-touch-icon` link is now relative to the page, so a page that allows images from its own site only (`img-src 'self'`) loads it, and a copy of the site served under another address finds it. The sharing pictures (`og:image`, `twitter:image`) stay absolute. The family's thumbnail file is version 2026-11-03.2.

## [0.60.0] - 2026-11-03

### Added

- **The camera follows the play (KYOGIJO-STADIUMS-46)** ([following the play](./docs/replay.md#following-the-play)): a replay can be watched with a camera that closes in where the action is and pulls back as the players spread, or moves with the puck. Off by default; the replay's bar has **Action** and **Puck** (**Ball** for a ball game) toggles, the setting `follow` (`"action"`, `"puck"`, `"off"`), the controller's `setFollow` and `holdFollow`, and the element's `follow` attribute. Action frames the puck and the five players nearest it, padded, never closer than 2.5 times the surface; Puck centres the puck at twice; from a whistle or a goal to the next `faceoff` event with a place, it goes to that faceoff dot. It eases with a critically damped spring, holds still for small moves (a dead zone), never leaves the surface, always holds the puck, and at rest writes nothing. Flat, it writes the drawing's `viewBox`; in 3D it looks at a point of the floor with a zoom over the view's, so the auto-turn and every viewpoint go on while it follows; the reader's drag, zoom, arrows or a viewpoint hold it until **Resume**. Reduced motion steps. It moves inside the replay's own animation frame, asks for none of its own, and runs nothing while paused, hidden or out of sight. The pure parts are in `/replay`: `followShot`, `followCamera`, `followStop`, `followWindow`, `clampShot`, `frameOf`, `springStep`, `zoomFor`, `FOLLOW_LIMITS`. The demo keeps the choice in its address (`follow=action`, `follow=puck`) for the hero's game, the Try it surface, the game section and the arenas page. `docs/replay.ja.md` is new: the camera in Japanese.

## [0.59.0] - 2026-11-03

### Fixed

- **The stands clear the whole floor, centred (KYOGIJO-STADIUMS-44)** ([the stands and the crowd](./docs/crowd.md#the-venues)): with `crowd`, the bowl's opening was laid out from the playing surface's box alone, so the floor drawn round it ran into the first rows: a court's run-off at the corners (volleyball, sepak takraw, netball), a table tennis area at its ends, a rink's boards, and an athletics track's sprint straight, jumps' runways and pits beyond the oval. The opening is now fitted to everything the surface draws round its playing area (its view with no margin, and an outline where the floor is not a rectangle: the track with its straight and runways, a rink's rounded boards), clear of it all round, corners included, by 2 feet; a floor bigger than the sport's distances (table tennis) gets an opening of its own shape. The bench side's extra room is shared by the two sides, so the opening is centred on the floor and the bowl in the drawing (a soccer ground's touchlines are 23.7 feet from the first row on both sides, where they were 19.7 and 27.7), and the margin holds the roof's shade. The tunnel, the camera platform and the media's desks stay in the seats, the media's desks no longer run round a small opening's corners, and the benches stand between the floor and the first row only where the gap holds them. An artistic swimming area with a crowd keeps the margin the stands need along its sides (it gave them four tenths of it). The flat drawing and the 3D view share the one layout (`crowdStands`), which now gives the `floor` it was fitted to. In 3D, a table tennis table's raised floor (the drawing lifted to the table's height, with the ground the stands stand on) was sorted by its middle with the stands and drawn over the far ones, so from Low corner or Broadcast the bowl looked cut open round a small tile: the bowl is now always drawn over a raised floor, and the faint near stands at a low viewpoint are the walls giving way to the eye, as before. New tests walk every sport with a crowd, at every size and orientation, light and dark: no part of the floor's outline within 2 feet of a seat, nothing of the stands on the floor, the opening centred on the floor and the bowl centred in the drawing and wholly inside it; and in 3D, at every viewpoint, zoom and box, the eye outside the whole scene, nothing near the eye's plane, and no plane of the bowl under the floor. Pictures of a court, a track, a rink, a ring and a table tennis area in their stands are in the docs.

## [0.58.0] - 2026-11-03

### Added

- **Las Vegas: the Strip Circuit, T-Mobile Arena and the Strip's landmarks on one ground (KYOGIJO-STADIUMS-30)** ([districts](./docs/district.md#las-vegas-a-circuit-on-the-ground-and-the-strips-landmarks)): a district's `circuit` option lays a circuit on its ground with the venues, turned as it lies, its pit building and turns' numbers standing in 3D (`circuitPointIn` maps a point of the circuit's plan into the district's, for a race on it); a circuit alone is a district too. A new area of context, `LAS_VEGAS` (`las-vegas`, OpenStreetMap, ODbL), 1.9 km round the lap and the arena: the Strip's buildings and towers at their mapped heights, the streets and the water, and four landmarks by shapes of their own at published sizes, named in English and Japanese (`ContextArea.landmarks`, `landmarks.ts`): the Sphere a dome, the High Roller a wheel, the jets of the Fountains of Bellagio, and Caesars Palace's name over its tallest building. `areaKeysFor` and `loadAreasFor` take the circuit; the lean district reads the circuits with `loadCircuits()` (`CIRCUIT_INDEX` names them). Held to 2,100 planes in 3D (under Seattle's three venues) and 2,565 KB for the demo's page. The demo's district page has the preset "Las Vegas: the Strip Circuit, T-Mobile Arena and the Sphere".
- **A race on the Strip (KYOGIJO-STADIUMS-30)** ([a race on the Strip](./docs/district.md#a-race-on-the-strip)): the circuits' race runs on a district's ground, its twenty made-up cars on the Strip Circuit among T-Mobile Arena, the hotels, the Sphere, the High Roller and the Fountains of Bellagio, flat or in 3D, with the race clock, the speeds, the slider and the timing board. `drawDistrictRace` draws a moment and `mountDistrictRace` plays it in a page (a feed's race too, as `settings.race`); the race's view in a page takes the scene it is drawn in (`mountRaceIn`, `RaceScene`), and the cars are put on the district's ground with `circuitPointIn`. The demo's district page has **Race** beside the view when a circuit is chosen, kept in the address, and the circuits page's link to the district takes the race along. The lean district reads the race with the circuits (`loadCircuits`).
- Fixed: a 3D view in `auto` quality times its frames in the view's one shared animation frame: a district's view that turned or played a race while its quality was being chosen asked for two frames a frame.

## [0.57.0] - 2026-11-03

### Changed

- **The wheel zooms the 3D view** (KAZOKU-UI-45). The wheel over the view now zooms it, as a map does (up in, down out, about the view's middle, which is where the pinch and the buttons zoom; a notch about as much as the + key); before, the plain wheel was the page's and tipped a focused view. A trackpad's pinch (Ctrl or Command and the wheel) still zooms. Shift and the wheel, or a sideways swipe, turns the view. The wheel never tips it: a drag, the arrows and the buttons do. With the pointer anywhere else the wheel scrolls the page, and a wheel that starts while the zoom is already at its end that way scrolls the page too, so a page of views is never trapped; the steps of a turn that reaches the end part-way through stay with the view, so the page does not jump.


## [0.56.0] - 2026-11-03

### Added

- **Bring your own race feed (KYOGIJO-STADIUMS-38)** ([the race feed](./docs/race-feed.md), [where to find a feed](./docs/where-to-find-a-feed.md)): a race on a circuit plays from a feed the reader chooses instead of the simulation. kyogijo's open race timeline (`kind: "kyogijo-race"`: cars, lap crossings, pit stops, retirements, location samples, `live`) is read strictly by `readRaceFeed` and played by `raceFromFeed` (between the times a feed gives, the cars run at the lap's own speeds; location samples are laid on the circuit's line by how far round the lap they are); `openF1Feed` adapts OpenF1-style lap, pit and driver rows. `loadRaceFeed` reads an address with the reader's own browser (no server or proxy of ours, nothing kept) and says in words when a source will not let a page read it (CORS), refuses (403) or is busy (429); `feedFromText` reads pasted text or a file; `followRaceFeed` asks a live race again every 15 seconds, only while the page is visible, and stops when it is over or refused; `mountCircuitRace` takes `race` and `replace`. `raceToFeed` writes any race in the format: the demo's **Sample feed (made up)** (`examples/races/las-vegas-sample.json`) is the simulated race so written, listed first among the suggestions of `examples/feeds/where-to-find.json` (OpenF1, Jolpica F1), which the circuits page shows beside the address field with what each gives, how to find a race and its docs and terms. Every test runs on made-up stubs; none makes a real request.

### Fixed

- A 3D view that goes asks for no frame after it: the measure of the display a view takes in its first moments is stopped on destroy (a view destroyed then asked for one more frame, seen in WebKit when Play a game stopped on another surface), and the frame the auto-turn, a replay and a race share is cleared, a request made in the same tick included (`src/turn.frames.ts`, with unit tests).
- The docs of the race and of the race feed link straight into the live demo (`circuits.html?race=1`, `circuits.html?race=1&feed=sample`).

## [0.55.0] - 2026-11-03

### Added

- **A simulated race on a circuit (KYOGIJO-STADIUMS-32)** ([a race](./docs/circuits.md#a-race)): twenty made-up cars as dots from the grid to the chequered flag over a full race distance (50 laps of Las Vegas, about an hour and twenty-two minutes), with gaps, passes, trains, one or two pit stops each and now and then a retirement, all from a seed. `simulateRace` works it out (the lap's speeds from the bends, `paceProfile`), `raceAt` gives any moment (the order, the gaps to the leader and the car in front, the last and best laps, the stops), `drawRace` and `raceBoard` draw it, and `mountCircuitRace` plays it in a page, flat or in 3D (the cars standing as discs), with a race clock, play, 1×, 10× and 60×, a slider over the whole race and the timing board, in English and Japanese. It is labelled a simulation: every team, driver, code and colour is invented, and no real race is in it; the model's figures were guided by public timing data read once and kept outside the package. Nothing runs while it is paused, hidden or out of sight, the 3D view's auto-turn and the race share one frame, and destroy leaves nothing. The demo's circuits page has a **Race** button, kept in the address with the speed and the moment.

## [0.54.0] - 2026-11-03

### Added

- **Play a game wherever the rink is (KYOGIJO-STADIUMS-42)** ([example games](./docs/example-games.md#the-index)): the demo's **Play a game** toggle is on every view that can play an example game: the real arenas' page in 3D (after Labels; `game=1` in the address), the home page's Try it surface, flat with `mount.replay` and in 3D with `view.replay` (after Dark; `game=1`), and the home page's arena as before (`fgame=1`). Where it shows is the index's to say: `examples/games/index.json` lists each game with the surface it is played on, its file, its frame and its title in English and Japanese, so a new game is its file and one line, and no code. Off until pressed; the game is fetched on the first press only; pressing again gives back the empty surface, and on Try it the reader's own teams and score exactly as they were (the game's sides and live score are laid over them while it plays, and the module code shows the replay). A change of arena, of flat and 3D, of the crowd or of the theme keeps the game at the same moment; another surface, a badge or the flat arena stops it and leaves nothing behind. On an arena with its LED boards on, the scoreboard over the ice follows the game (the replay board of 0.53.0), on the arenas page as on the home page's arena. One controller, `demo/play-game.js`, serves the three, and `e2e/game.demo.mjs` holds the replay's freeze and leak budgets on these pages (no frame while paused, hidden or out of sight; one a frame with the auto-turn; the same elements and listeners after ten times round; nothing left after it stops) and the index's say with a fake index. The 3D views of the arenas page and of Try it no longer leave two listeners on their stage each time they are made again.

### Changed

- The demo's surface picker (KYOGIJO-STADIUMS-43): the Try it panel's Surface choice, 43 chips in one unordered block, is now a row of kinds (field, court, ice, pool, track, budō, mat and ring), then that kind's sports A to Z in the page's language (in Japanese by reading, in gojūon order), then for gridiron football its NFL, CFL and IFAF fields in a small row under it. Each row is a radio group (arrow keys, Home and End move, Space and Enter choose); the address still names the surface (`?sport=cfl`) and brings back its kind and sport; a surface with an example game in `examples/games/index.json` carries a small play mark. The logic is `demo/surface-kinds.js`, with `src/surface-kinds.test.js` and `e2e/surface.demo.mjs`.

## [0.53.0] - 2026-11-03

- **The arena's scoreboard shows the game being played (KYOGIJO-STADIUMS-35)** ([the scoreboard over the arena](./docs/replay.md#the-scoreboard-over-the-arena-follows-the-game)): while a replay plays on a 3D view whose venue has its LED boards on, the scoreboard hung over centre ice shows the replay's score, period and game clock instead of the fixed score of its options. `replayBoard(timeline, t)` (pure, from `replay`) works the board out from the timeline's goals and its new optional `periods` (`start`, `end`, `number`, `length`) and `clock` (`down` or `up`). The board is written when it changes: at once for a goal, a period, a seek, a step or a pause; the clock at most once a second while playing; nothing runs while paused, hidden or out of sight. Without a replay, or after `destroy`, the board is as before, and `view.replay(timeline, { board: false })` leaves it so. The demo's hero passes the example game's periods (a period is twenty minutes on the board's clock). About 4 kB more source for the 3D replay (its budget in `replay.budget.test.js` is 24 kB now).

- Tests and docs, no change to the package: `e2e/centre.demo.mjs` holds that a drag cannot take the 3D view's stadium out of sight (it has no pan, so no Centre button) and that Reset and Home bring it back, and `docs/turn.md` says so.
- The README opens with the package's thumbnail, and the demo carries it as its link preview (og:image) and publishes the card, a dark card and an icon on Pages at `thumbnail.png`, `thumbnail-dark.png` and `icon.png`.
- Docs only (MODULES-247): twelve guides in `docs/guides/` (getting started, a score on a surface, looks and colours, embedding, frameworks, real venues, data on a surface, the 3D view, accessibility and languages, architecture, troubleshooting, upgrading), each with a Japanese twin in `docs/guides/ja/`, in the docs site's contents as its first group (`GUIDES` in `scripts/docs-nav.mjs`; the twins are pages of their own, `guides-ja-<name>.html`); `pnpm docs:site` (the docs site is built by `pnpm site`) and `pnpm docs:check` (`scripts/docs-check.mjs`: the guides, the README, the changelog, the tests of the pages and every example against the built package), run by a `docs` job of the CI; the README has a Guides section and more examples (Angular, a CDN module, a frame, a server, layers and zones, Japanese, GeoJSON and PNG, TypeScript and a bundler); `demo/builder.html`, the way into the stage's Embed section, with `e2e/builder.demo.mjs`. The examples of the guides are run by `pnpm test:readme` and `src/docs.examples.test.js`.

## [0.52.0] - 2026-11-03

### Added

- **A replay plays on the 3D view (KYOGIJO-STADIUMS-23)** ([the replay in 3D](./docs/replay.md#in-3d)): `view.replay(timeline, settings?)` on the handle of `mountKyogijoTurn` gives the same controller as `mount.replay`, and the rink can be turned, tipped and zoomed while the game plays. The players and officials stand up as discs that face the eye (the flat replay's circles, squares, triangles and numbers, turned up), and the ball or the puck, its trail, the passes, the shots and the goals stay on the floor. `stand: false` keeps the players flat. On the view, Space plays and pauses, comma and full stop step, and the arrow keys still turn it; on the replay's controls the arrows step. Nothing runs while it is paused, hidden or out of sight, the auto-turn and the replay share one animation frame, only what moves is written, and destroy leaves nothing; browser tests hold each of these. `replayTurnModel` is the pure model of a frame, and `<kyogijo-field turn>` with a `timeline` plays it on its 3D view.
- **An example game (KYOGIJO-STADIUMS-25)** ([example games](./docs/example-games.md)): `examples/games/canada-japan.json`, a whole made-up game of Canada and Japan, three periods, shaped from a public NHL play-by-play with every team, player, place, time and the result changed. It is in the repository and on the demo's site, not in the npm package.
- The demo: a section, "A game on the ice, in 3D", plays the example game in 3D or flat, with a button for each period, the score on the board as it goes, and the code with a Copy button; the arena at the top of the page has **Play a game**, which loads the game when it is first pressed and plays it on the arena's ice in front of its crowd.

### Changed

- The flat replay's page side is a painter and a driver that the 3D replay shares (`replay.dom.ts`); the flat replay behaves as before.

## [0.51.0] - 2026-11-03

### Added

- **The catalogue: every venue the package draws, the ones being built and the ones wanted, in one list (KYOGIJO-STADIUMS-26)** ([the catalogue](./docs/catalogue.md)). Each venue has a kebab-case id (the package's own key where it has one), its names in English and Japanese, its city and country, its sports, its Wikidata item and its status. **Supported** (332): every real venue the package draws, made from its own data, 43 in their buildings (the real stadiums and the NHL's venues), 288 as a field, court, rink, park or floor only, and the Las Vegas Strip Circuit as a circuit (`CIRCUITS`'s id and names, `drawn: "circuit"`). **Working on** (10): the tennis show courts of KYOGIJO-STADIUMS-22. **Wanted** (132 new venues, and 69 venues drawn as a field whose building is wanted): every venue of the NBA, MLB, NFL, CFL and NHL this season is listed with its true status and its clubs (a shared stadium once, with both), then world soccer, cricket, rugby, Gaelic and Australian football, Japan's sumo and budō halls, Olympic stadiums and athletics, college football, baseball around the world, ovals and pools, great indoor halls, the circuits of Formula One's 2026 calendar and more great circuits (each waits for its track's data).
- **The catalogue as an API: a JSON file and a typed entry.** `catalogue.json` is in the package (`@johnmorrisdotca/kyogijo-stadiums/catalogue.json`) and published with the demo at <https://johnmorrisdotca.github.io/kyogijo-stadiums/catalogue.json>, with a `schemaVersion`, the day its sources were read and the licence of its facts. `@johnmorrisdotca/kyogijo-stadiums/catalogue` exports the same data (`CATALOGUE`, `CATALOGUE_GROUPS`, `CATALOGUE_SPORTS`, `CATALOGUE_COUNTRIES`) with `catalogueById`, `catalogueByStatus`, `catalogueBySport`, `catalogueByGroup`, `catalogueWanted`, `catalogueCoverage` and the types; it draws nothing and imports none of the drawing.
- **Every fact of a new venue is Wikidata's or a named Wikipedia revision's.** `pnpm catalogue:fetch` keeps the raw answers, dated, in `data-sources/catalogue/` (one request at a time, batches of 50, a User-Agent that names the package): the items, labels, coordinates, countries, capacities and places; the NFL's and the CFL's venues checked against the tables of the leagues' lists, and the circuits against the 2026 calendars of Formula One and MotoGP. `pnpm catalogue` makes `src/catalogue.data.ts`, `catalogue.json` and the docs' tables from them; a fact the sources do not give is left out, and `missing` says why. Every new Japanese name was checked by a reviewer.
- **The demo's catalogue page** (`catalogue.html`, linked from the home page): the leagues' coverage ("NFL: 2 of 30 drawn in its building"), tabs for Supported, Working on and Wanted, sport and group chips, a search, a world map with a pin on each venue shown, and cards a page at a time with each venue's flag, status, clubs and a link to its drawing. In English and Japanese, light and dark, at a phone's width.
- Tests: `src/catalogue.test.js` (every supported id is the package's own, every id and item once, every item in the raw answers, the coordinates and capacities the items', the names in both languages or their absence said, the JSON and the entry the same, every league's season complete, the docs' tables made from the data) and `e2e/catalogue.demo.mjs`.

## [0.50.0] - 2026-11-03

### Added

- **Circuits: the Las Vegas Strip Circuit (KYOGIJO-STADIUMS-27)** ([circuits](./docs/circuits.md), [demo](https://johnmorrisdotca.github.io/kyogijo-stadiums/circuits.html)): a new entry, `@johnmorrisdotca/kyogijo-stadiums/circuits`, draws a famous race track as OpenStreetMap maps it. `drawCircuit({ circuit: "las-vegas" })` draws the lap as a ribbon of the track's width along the ways of the circuit's relation (joined in the order and the direction they are driven), the pit lane, the circuit's ground and its pit building, the start line and the chequered finish across the track, arrows the way the lap runs, the 17 turns numbered where OpenStreetMap numbers them, a north arrow, a scale bar and the credit, light and dark, in English and Japanese; `circuitTable` gives the facts with their bases. `mountCircuitTurn` and `circuitTurnMarkup` lay it on the 3D view's turning floor with the pit building standing at its mapped 19.5 metres and each turn's number on a post: 68 planes and 292 elements, a floor of 14.8 KB. The facts are Wikidata's and the English and Japanese articles' (6.201 km, 17 turns, counterclockwise, opened 2023-11-16), each `documented` with its revision; the track's width (12 m) and the pit lane's (8 m) are ours, `plausible`, because no source gives them. The drawn lap measures 6,210 m, 0.15 percent over the published length. OpenStreetMap maps no racing kerb, run-off or gravel here, so none is drawn. No mark of a race, a series or a team. `pnpm circuits:fetch` and `pnpm circuits` fetch and build the data (`data-sources/circuits/2026-11-03/`, `src/circuits.data.ts`, `src/circuits.osm.data.ts`, ODbL apart); tests: `src/circuits.test.ts`, `src/circuits.raw.test.js` (the drawing held to the raw answer) and `e2e/circuits.demo.mjs` (the page in 2D and 3D, the Copy button, and the view that does nothing while idle or hidden and grows nothing as it turns). The demo has a circuits page with its code and a Copy button. The docs say how the next circuit (Monaco, Spa, Indianapolis, Suzuka with its crossing) would be added.

## [0.49.1] - 2026-11-02

### Fixed

- **A judo tournament layout of the IJF's kata area or the AJJF's contest area now lies where its surface is drawn (KYOGIJO-STADIUMS-21)** ([tournament layouts](./docs/multi.md)): `multiLayout` sized every judo floor by the IJF contest area's figures (4 m of safety and common area), whatever the surface's `league`, while the drawing used the league's own, so a layout of `league: "ijf-kata"` (2 m) or `"ajjf"` (sizes made whole numbers of its 91 cm mats) drew its mats smaller than the floor, its labels and the places for the event's words and marks off the areas, and said it needed more floor than it does (two kata areas need 27 by 15 m, not 33 by 19). The floor is now laid from the judo drawing's own plan (`budoPlan`), and karate's from its league's figures. The presets are unchanged (judo 1 x 3 is 47 by 19 m, 1 x 4 is 61 by 19, karate 2 x 3 is 32 by 22, 2 x 4 is 42 by 22). Test: `src/multi.test.ts` lays the IJF's, the kata and the AJJF's floors at one to three areas and checks the layout's tatami is the drawn outline and the last area ends one safety area short of its edge. No new words.

### Changed

- Tests (KYOGIJO-STADIUMS-2): the fingerprint tests no longer break at every version bump. A drawing carries `data-version`, and a drawing with no `id` of its own gets one made from its options and the version, so the hash of the raw text changed with each release and the snapshots, the 90 park hashes and the names fixture were regenerated by hand each time. `src/fingerprint.fixture.ts` hashes the drawing without the version and without those default ids (a page's own id is left alone); twelve test files use it, and the recorded hashes were rewritten once. `src/fingerprint.test.ts` draws the same drawing as version 999.0.0 and checks the fingerprint is the same, the raw hash is not, and a drawing that really changed still changes it. The suite (4,780 tests) also passes with `VERSION` and `package.json` at 0.49.1. The package and its drawings are unchanged.

- The demo (not the package): no more folds one under another, and none in every card (KYOGIJO-STADIUMS-18). On the stadiums, district and judging pages the facts, the floors, the choices, the print and the table were open folds in a stack; they are now tabs under the drawing (`demo/tabs.js`, with the arrow keys), the choices first, so the pane and its options share one screen. On the home page the Data and Charts sets each had a "Show the data as a table" fold in every card (thirteen); one switch above each set now swaps its drawings for the tables that stand for them. Tests in `e2e/stadiums.demo.mjs`, `e2e/district.demo.mjs`, `e2e/judging.demo.mjs`, `e2e/data.demo.mjs` and `e2e/charts.demo.mjs`. No new words, so no new Japanese.

## [0.49.0] - 2026-10-30

### Added

- **The controls of every 3D demo are on the view (SPX-651).** The stadiums, the halls, the judging, the boards, the district and the fly-through pages, and the home page's playground, have the bar the venues page and the featured arena already had, over the view: the walls, the roof and its opening, the boards, the lights, the names, the area round, the gates, the Kodokan's building and floor, the seat names and side judges, where the board goes, the roof and map of the fly-through, flat or 3D and light or dark, each only on the page where it means something. The view's own buttons (viewpoints, turn, tilt, zoom, Auto-turn, Reverse) are under it, and the bar, the view and the buttons are all in the first screen on a desk (1280 by 900) and on a phone (390 by 844), every control 44 pixels or more; the rest of the options stay in the panel (at the side of the view on a desk, under it on a phone, where the text of the page and the district's presets also go). The home page's playground has Flat, 3D, Crowd, Roof and Dark over its view, pressing the panel's own buttons. The choices were already in the address and still are. On a phone the bar is one row that scrolls along.
- **A press on the bar never stops or sends back the turn.** The stadiums' walls, roof and opening, the halls' roof, the district's walls, roofs, area round, gates, building and floor, and the playground's roof now change the scene in place (`update(options, { venue })`) where they mounted the view again; the scene is the same one afterwards, with the same DOM as a fresh page with that choice (checked for each). The fly-through goes on from the same moment, playing if it played.
- Demo only: `demo/view-bar.js` (`moveToBar` puts the labels of a page's existing controls in the bar, `fitView` gives the view the shape that leaves room for the bar and the buttons in the screen, never taller than the package's own shape (16:10, 5:4 on a phone), so that no layer is bigger than it was: the stage's `--rv-ratio` over the package's own `--ky-turn-ratio`, or a narrower box for the boards, whose pictures are made for the package's shape) is shared by every page and by `real-view.js`.
- Tests: `e2e/viewbar.demo.mjs` (the bar, the view and the buttons in the first screen, 44 pixels or more, nothing wider than the screen, on each page; each toggle and list pressed while the view turns, 6 degrees a second, leaves it turning without a jump, and leaves the same scene; the flight's time and play; the home page's two bars), in the three browsers' projects.

### Changed

- The home page's featured arena has its box sized in the stylesheet to leave its buttons in the first screen of a desk (1280 by 900), and the playground's bar is in the page before the script fills it, so that nothing moves when the script runs.

### Cost

- The package is unchanged (no change to `src/` but its version): `dist/` and the device and quality budgets are as in 0.48.2. The demo pages grow by `view-bar.js` and their own lines: 8.2 KB of script on each page (3.2 KB gzipped): the venues page 3,074.7 KB against 3,066.5, the districts 2,435.8 against 2,427.6 (alone), the stadiums 3,062.5 against 3,054.2, the halls 3,158.8 against 3,150.5, the boards 3,170.3 against 3,162.0, the judging 3,063.3 against 3,055.1, the fly-through 3,488.3 against 3,480.0, the home page 5,277.3 against 5,267.3; every page stays inside its budget, none is raised.
- Japanese: one new string, the name of the home page's bar (`stageBar`, `表示の切り替え：平面と3D、観客、屋根、ダークモード`, "Switching the display: flat and 3D, crowd, roof, dark mode"), checked by the Japanese reviewer.
- Known gap: on a phone the home page's header (the family's navigation and the name) fills the first screen, so there the featured arena's bar and the top of its view are in the first screen and its buttons under the view are one scroll down. The senshu and dougu turn demos are not part of this release.

## [0.48.2] - 2026-10-30

### Fixed

- **An arena's hockey seats are the present figure of its article, not the first its infobox gives.** Twelve arenas drew an old figure: Scotiabank Saddledome 16,605 is now 19,289 (1995 to present; 16,605 was 1983 to 1988), Rogers Arena 18,422 is 18,871 (2018 to present), SAP Center 17,562 is 17,435 (2023 to present), Bell Centre 21,273 is 20,962 (2025 to present), Canadian Tire Centre 18,500 is 17,010 (2026 to present), Grand Casino Arena 18,064 is 17,954 (2012 to present), KeyBank Center 18,595 is 19,070 (2013 to present), Lenovo Center 18,730 is 18,547 (2026 to present), PPG Paints Arena 18,087 is 18,187 (2023 to present), Prudential Center 17,625 is 16,514 (2015 to present), State Farm Arena 18,545 is 17,624 (its last ice-hockey figure in the article, 2010 to 2011), and Bridgestone Arena 17,159 is 17,510 (Wikidata's figure for ice hockey). Each arena's `note` keeps the figure it had before. The arena data and the venues now give the same hockey seats. Basketball seats are unchanged.

## [0.48.1] - 2026-10-30

### Changed

- **The docs site is regrouped by task and by sport (SPX-297).** The contents has two views, *By task* (start, sports, venues and 3D, data on a surface, gallery, reference) and *By sport* (a guide and the pictures of each of thirteen sports, and the places), its groups open and shut, one page template with a short header, a 48 px search, contents and Copy buttons, in light and dark, phone first. The home page leads with a live picture for each sport and a still for each place (New York, Montreal, the Saddledome, the roof switch, the quality levels, Vancouver, Seattle, Tokyo and the Kodokan, tournament halls, judging) with the page of the demo that shows it, and the six tasks. The gallery's index has a group of live tiles for each sport and for the real venues (each with a Copy button for its code), a filter by name and a button for each group.
- **The gallery's pages are light.** A picture is drawn from its own file when it comes within a screen or two of the reader, a few at a time, in the page's own stylesheet (so it follows light and dark with the device); the drawings' stylesheet is one cached file, `docs/drawings.css`, and not 197 KB in every page. The pages fall from 0.4 to 1.2 MB to 0.1 to 0.3 MB, and the code is beside each picture, not behind a button. Without script a picture is the image of its file.
- **The README is a front door** (38 KB, from 64 KB): the hero, a showcase in rows (the picture in the middle of each of the first three turns, slowly; the others stand still), the first examples, and links. The rest of its examples are the new page `docs/examples.md` ("Recipes"), run by `pnpm test:readme` like the rest. The README's moving pictures show each frame twice as long (200 ms; the fly-through 520 ms), by changing only the frames' durations (`retimed` in `scripts/webp-animated.mjs`), so the files keep their size.
- Twelve pictures that only the docs use moved from `docs/images` (the README's) to `docs/pictures`.

### Fixed

- **The pictures in the docs pages were not pictures on the site.** A page's image pointed at its file's page on GitHub, not at the file, so the docs site showed none of the screenshots of the 3D views. They are served from the site now, with a dark twin for the dark theme and their size in the tag, so a page does not move as they load.

### Added

- `docs/pictures/quality-{high,medium,low}-3d-desk-{light,dark}.webp`: Seattle's three venues held at each quality tier.
- Tests: every address of the docs site before the regrouping is still a page; the home page and the gallery's index name only pages, headings and pictures that exist, draw their tiles when they come near, and filter; every control of the docs is 48 px; a picture of a page loads, light and dark; the contents' two views.

### Cost

- The package is unchanged (no change to `src/` but its version): `dist/` and the bundle and device budgets are as in 0.48.0. The docs site is bigger by its stills (8 MB of pictures served beside the pages, loaded when near) and smaller in its pages.
- Japanese: the contents, the search and the buttons of the docs site have new words, checked by a reviewer; the pages' own words stay in English.

## [0.48.0] - 2026-10-30

### Added

- **The Scotiabank Saddledome is its own drawing (SPX-646).** A round building under one roof that is a reverse hyperbolic paraboloid (`src/venue.saddle.ts`): the roof is a net of quads on the surface `z = z0 + k (a² − b²)` over the round plan (`saddleHeight`; 8, 10 or 16 cells to a side at `low`, `auto` and `high` detail, the plan mapped on a square grid so every cell is a fair quad), a beam 5 feet deep round its edge that overhangs the wall, leaning walls in `4 × cells` facets with a pier at every second one, the lines of the cladding and a few windows, and at each of the two high points a round stair tower and a square one. Every quad is shaded by its own normal, cut away from above and from the eye's side, and whole from the street, with the roof and the walls on or off. The roof's line runs 60 degrees from north (east-northeast to west-southwest), its low rim stands 78 feet over the ice and its high points 138, read from three photographs of the building taken from known places and from the outline's one bulge (`roof.saddle` in `scripts/venues.data.json`, with what each was read from; the photographs are looked at as evidence and not copied). The bowl is round (`bowl.round`) and its tiers rise 20 and 30 feet (`bowl.rises`) so that the low rim clears the top row (`SADDLE_CLEARANCE`, 8 feet). Side-by-side sheets against the photographs are in the release notes' hand-off, and the page [docs/venues.md](./docs/venues.md#the-scotiabank-saddledome) says what the drawing leaves out.
- **How each rink's direction is known, looked at again for all thirty-two (SPX-645).** `pnpm venues:rink <date>` reads every sports, indoor and building-part feature OpenStreetMap maps within 260 metres of each arena (`data-sources/venues/2026-10-30/`), `pnpm venues` tests them against the first read (an ice inside a building that the venue does not hold is a failure) and writes the table of docs/venues.md with what the English Wikipedia articles and the Commons categories gave (`scripts/venues.rink.json`). Nothing new was found: only TD Garden, Xfinity Mobile Arena and PPG Paints Arena have their ice mapped (TD Garden's parquet floor mapped inside lies along it), the Bridgestone Arena's article says its floor has a north end (a point of the compass, not a heading), and the other arenas stay inferred or not known.
- `RealVenueData.bowl`, `RealVenueData.roof.saddle`, `RealShell.saddle`, `Saddle`, `saddleHeight`, `saddleRoof`, `saddleWalls`, `saddleTowers`, `quadPlane`, `SADDLE_CELLS`, `EAVE`, `TOWERS`, `SADDLE_CLEARANCE`; the demo's venues page lists a saddle roof's measure under the roof.

### Changed

- The saddle roof of the Saddledome is no longer a band of flat pieces over a straight wall that rose 30 feet at the two ends of the rink: `SADDLE_RISE` and `saddleAt` are gone.

### Cost

- The package's script grows by 17.7 KB (5.7 KB gzipped) on the venues page and the district pages (the saddle builder 14.5 KB, 4.8 KB gzipped, the shell's hook and the data), and its data by 1.3 KB (0.5 KB gzipped); style by 1.1 KB. The venues page is 3,065 KB against a budget of 3,165, the districts 2,428 against 2,500. No dependency is added. The Saddledome in 3D with its roof and walls is 718 planes at `high` (against 546; 133 KB of drawing against 71), 413 at `auto` (322; 74 KB against 46) and 295 at `low` (187; 48 KB against 31), the other thirty-one venues as they were; every page stays inside its byte budget.

## [0.47.0] - 2026-10-30

### Added

- **The Olympic Stadium's shell is the building's: 38 ribs, glazed bays and a low white roof (SPX-811).** In place of a plain tall drum under a low lens, the shell is 38 concrete consoles (34 anchored to the ground, 4 fixed to the tower: the French article) round the building's outline, each a curved wing that stands out at its foot and sweeps in to a ring, a glazed bay between each pair (a podium and three bands of glass), white roof panels climbing from the glazing to the ring, and a membrane closing the ring in a low cone, its crown the 52 metres over the field the English article gives. The stands are fitted inside the shell's sweep (`RIBBED_STANDS`), so no row stands out through the roof; the ring's height, the ribs' flare and the bays' profile are ours, from Commons photographs (`src/venue.ribbed.ts`, `RealShell.dome.ribs`, `StadiumRoof` data `ribs` and `top`). Compared with Commons photographs from the plaza, across the river, from Mount Royal and from below the tower (sheets in the backups folder, `2026-10-30-olympic-shell`). Left as it is, honestly: the real ribs are bigger and more curved, the real membrane is pleated and the real tower has about forty cables where the drawing has five.
- **The Montreal Tower's foot is at the rim, it flares and its back curves.** The shaft is twelve horizontal sections between a steep front, from where the mapped axis meets the building's rim to the observatory, and a back that sweeps down from the top in a long curve and flattens along the ground behind the foot; a fan of five cables replaces the three; no plinth. Height, top and axis are the sources' as before.
- **How the Olympic Stadium's field lies, to the nearest 45 degrees (SPX-811).** Nothing maps the field and no article gives a bearing, but the English Wikipedia's list of Montreal's ballparks names a street at first base (Pierre-De Coubertin), left field (Sherbrooke), third base (Pie-IX) and right field (Viau), which bound the stadium on its north, south, west and east: home plate is in the north-west corner and centre field to the south-east, 135 degrees. The new basis is `streets` (`StadiumOsm.axis.basis`, `orientation` in the facts, `said.stadiumStreets` in English and Japanese); the drawing says it is an inference and draws the arrow to north. The seats still fit (49,756 of 49,757).
- **Speed checks per device class (SPX-774).** Three Playwright projects, each a job of its own on the public repository's free CI (`device-desk`: Chromium 1280 by 800, ratio 1, held at `high`; `device-mid-phone`: WebKit, 390 by 844, ratio 3, `medium`; `device-slow-android`: Chromium 412 by 915, ratio 2.6, CPU slowed 6 times, `low`) open every district preset (all twelve, the New York and Montreal ones among them) and the venues page's 3D view and hold each to budgets (`e2e/budgets.device.mjs`, `e2e/device.budgets.json`, `e2e/device.lib.mjs`, docs/quality.md): exact counts that no runner changes (layers, those drawn, elements, the memory the layers take at the device's ratio, the biggest layer; budget = measured plus 15 percent) and a ratio of a step of the turn to the end of its frame over a reference scene measured beside it with the same CPU slowing (budget = twice what it measured, at least one more). The tier is pinned in the address, because `auto` steps down on a slow runner and a step changes what is counted. A test checks that every preset of the page has a budget. About 25 to 45 seconds each on a laptop, one to two minutes with the build on the runner; the three run beside the six demo jobs and add no time to the longest of them. `DEVICE_MEASURE=file.jsonl` writes what each page measured, to make the budgets again.

### Changed

- The Olympic Stadium's district view is 1,096 planes at `high` (775 at `medium`, 424 at `low`), down from 1,111 (870, 519), and 146 more elements (4,503 against 4,357). At the lower tiers the ribs' outer faces and the ring's lip are left out as small parts, and at the coarsest cut there are 19 ribs.
- The package's `dist/` grows by 17.5 KB (5.4 KB gzipped) of script and data: the new shell builder 12.8 KB, the tower and the shell's hook 2 KB, the stadiums' facts 0.4 KB, the rest style and words; no dependency is added.
- `scripts/readme-pictures.mjs`: the stadiums page's Olympic picture is taken from the end-on viewpoint, so the tower is seen in profile.

## [0.46.0] - 2026-10-30

### Added

- **Five stadiums and nine areas of surroundings on the east coast (SPX-654, SPX-653).** Each stadium is the building OpenStreetMap maps, the field lying as the map or the outline says, and a bowl of the seats its article gives ([the east coast](./docs/stadiums.md#the-east-coast)): **Yankee Stadium** (46,537 seats, home plate facing 75.6 degrees from the mapped infield), **Citi Field** (41,922, 14.5 degrees from the mapped grass fitted to the fence), **MetLife Stadium** (82,500 for the NFL's field and 80,663 for a soccer pitch, lying along 166.5 degrees as the mapped pitch does, with no roof, as its article says), **Barclays Center**, the first hall of the basketball court (`sport: "nba"`, 17,732 seats, the court along the building's long axis, an inference the drawing says) and **the Olympic Stadium of Montreal** (49,757 seats for baseball, a fixed roof drawn as a low lens, and **the Montreal Tower**, 165 metres, inclined at 45 degrees, leaning over the bowl in 3D from a broad foot to the observatory over the bowl, with slits, a plinth and cables to the roof: its height, its top (the observatory) and its foot (its funicular line) are OpenStreetMap's, the curve and widths ours). Madison Square Garden, UBS Arena and the Bell Centre were already real venues and now have surroundings. Each stadium adds 1.7 to 3.4 KB of data (0.9 to 1.5 KB gzipped).
- **Their surroundings, one file each, read only when the venue is shown** ([New York and Montreal](./docs/district.md#new-york-and-montreal)): Midtown (round Madison Square Garden), the Bronx, Flushing Meadows, Brooklyn, the Meadowlands, Belmont Park, downtown Montreal, Olympic Park and the city between Montreal's two venues, 36 to 129 KB each as data (14 to 42 KB gzipped). Outlines, streets, water, parks and trees are OpenStreetMap's (ODbL 1.0); New York's heights are the roof heights of the City of New York's Building Footprints (NYC Open Data, read on 2026-10-30; the City's Open Data Law asks that the source and the version be named and changes said, and the City gives no warranty), which give a height to 94 to 99 buildings in a hundred. More than two of New York's venues in one choice take no surroundings (they lie tens of kilometres apart). Four presets on the district page: New York Midtown, New York's six venues at their real distances, Montreal's Olympic Stadium and its tower, and the Bell Centre with the Olympic Stadium.
- `StadiumConfigId` has `nba`; a stadium kind `park` can have a `fixed` roof (drawn as the dome's lens) and a `tower`; `RealShell.tower`, `towerPlanes`, `MOST_DETAIL_AREAS`, `CITYCTX_DETAIL`. The generators read a later day's OpenStreetMap file beside the earlier days' (`pnpm stadiums:fetch <date>` carries the earlier Wikidata and Wikipedia files forward; `pnpm cityctx` reads each file from the newest day that has it, and `minArea` and `exclude` in `scripts/cityctx.data.json` keep a dense area small and a building a venue draws itself out of the context).
- **Roofs are cut away from above and whole from the street (SPX-695).** A roof of a real venue now fades by how high the eye is (`Plane.cut`): from straight above it is cut away to a ghost so the bowl shows, whole at the main camera and below, and whole again at a street's eye whatever side it is on. Before, a roof was as solid from overhead as from the side and gave way only by side.
- **Lumen Field's canopies are arched and the stadium has its tower (SPX-696).** OpenStreetMap's `roof:shape=round` for both canopies is read (`shape`) and drawn as a convex arc in three pieces across; the canopies are a firmer white and the walls under them rise to the canopy's back edge, so the outside of each roof is one face to the crest. A 13-storey tower stands at the open north end with its vertical scoreboard on the face towards the field (`endTower` in the stadium's data: the storeys are the article's, the size and the place ours).
- **T-Mobile Park's roof runs on rails and its facade is a brick tone (SPX-696).** A girder along the north and the south side at the roof's lowest height on four columns each, stays when the roof is open; the walls are a brick tone (the brief's: the article does not say it).
- **The American Airlines Center has a barrel-vaulted roof (SPX-695).** The article says its roof looks like a Quonset hut; the `barrel` kind of roof is a round arch over the rink's short axis (`barrelAt`, `BARREL_RISE`), and the venue's `roof.kind` is `barrel`, documented. Every other arena keeps the lid, marked ours.
- **Cost.** The package grows by 13.1 KB (3.8 KB gzipped) of script and data in the files these changes touch (the roof builder 8.4 KB, the tower, rails and brick, the cutaway, the barrel) and the demo by 1.2 KB of style (`check-pill.css`, 0.6 KB gzipped); no dependency is added. In the district of Seattle's three venues the 3D view holds 170 more elements (every other ray of a fine cut for the canopies, and a column of the rails two strips crossed, are what keep it inside the page's budget of 8,400), and the bundle budgets hold.
- Tests: `src/roof.test.ts` (the cutaway; every real venue and stadium, with the roof on and off, at low, auto and high detail, every roof plane cut away from above and finite); Lumen Field's arcs, wall heights and tower, T-Mobile Park's rails and facade; the barrel.
- **A Roof pill on every demo page with a 3D view of a venue, kept in the address (SPX-695).** The stadiums, district, halls and fly-through pages had a checkbox or none; each now has a pill in the demo's control style (48 px, pressed when on, light and dark, wrapping on a phone), under the one name `roof`: off until asked where the reader looks at the field (venues, home, stadiums, halls: `roof=1`), on until taken off among streets and in flight (district, fly-through: `roof=0`). The venues page and the home page's featured arena already had their Roof chip. The checkbox of each page that had one (`label.check`) is drawn as that pill, from the one file `demo/check-pill.css`; it is still a checkbox for a keyboard, a screen reader and a test.
- **The roof and the walls are two choices on the stadiums and district pages.** Roof and Walls are separate pills (`roof`, `walls` in the address), so a roof can be taken off with the walls standing, and a roof asked for on the stadiums page brings the walls it stands on (which can then be taken off). An older `roof=1` with no `walls` is the walls and the roof, as it was.
- `FlythroughOptions.roof` (true when left out): `false` keeps the roof off for the whole flight with the walls standing; the demo's page has the pill and `roof=0`.
- Tests: `e2e/roof.demo.mjs` (every page's pill is a pill and is kept in, and read from, the address).

- A page listing the thirty-two NHL arenas: the roof each draws, what open sources say of its shape, and the one photo each still needs (`docs/roof-photos-needed.md`).

### Fixed

- The stadiums page's "Roof open (3D)" label read "none, open to the air": two words of its table shared the key `open`.

### Changed

- An open-air stadium of the stadium kind (`roof.kind: "open"`) is drawn with no roof in 3D; before, every stadium of that kind had a lid.

## [0.45.3] - 2026-10-30

### Changed

- **A district page of the demo loads 158 to 243 KB less script and data, and the crowd outside, the words and the venues are read when they are shown (SPX-795, SPX-797).** Three tables that every district page carried, whatever it showed, are files read with a dynamic `import()` by the lean district (`district-lean`), as the venues' records were in 0.45.1:
  - **The walkable ground of the crowd outside** (`walk.data`, 88 KB, 24.5 KB gzipped, Vancouver's alone) is a file for each district (`walk/vancouver.data.js`, 83 KB: written to whole quarter-metres, it is a little smaller than the table was) and `walk.index.ts` lists the districts with their venues. `await loadOutside(venues)`, from `district-lean` and `venue-data`, reads the file of the district a venue stands in, and the outline of each arena of it (the crowd keeps out of the buildings of venues that are not shown too); it reads nothing for venues no mask names. `hasOutside`, `OUTSIDE_VENUES`, `walkIdFor` and the plan itself need no data. `outsideCrowd(plan)` is synchronous and unchanged on the `district` entry, which holds every district's data (`walk.full.ts`); on the lean district it throws, saying so, where it is asked before `loadOutside`. The demo calls `loadOutside` for a choice with a crowd to show, so the pages of Seattle, Tokyo and the Kodokan never fetch the file.
  - **The words** (`strings.js`, 156 KB, 43.5 KB gzipped) are a file for each language: `strings.en.js` (66 KB, 19 gzipped) and `strings.ja.js` (87 KB, 25 gzipped), with `strings.core.ts` holding the types, `fill`, the table and `loadStrings`. `await loadStrings(language)` reads a language (once, the same promise after) and the lean district draws in it; a language not read throws, naming the call. An English page does not read the Japanese, a Japanese page does not read the English, and choosing the other language in the middle of a session reads it then. `KYOGIJO_STRINGS` is synchronous with both languages on every other entry, as before: `strings.ts` imports the two files, each of which holds its language when it is read. The Japanese is moved and not changed (the table's JSON is the same character for character).
  - **The real venues of the NHL's arenas** (`venues.data` 25 KB and `venues.osm.data` 54 KB, 14 KB gzipped together) are two files for each venue (`venues/<key>.data.js`, the facts, and `venues/<key>.osm.data.js`, what OpenStreetMap gave: the licences stay in files apart), about 1 and 1.5 KB each, read by `loadVenueDataFor` with the arena's record, and `venues.index.ts` lists the keys. `VENUES` is the table of the venues held: all 32 on every entry that had them, those read on the lean district, and `venueById` throws for a venue not read yet instead of drawing without it. `VENUES` is no longer frozen (its venues are).
  - **Nothing changes in what is drawn.** `src/venue-data.test.ts` draws every preset in 2D and 3D, in English and Japanese, with surroundings and crowd, through the lean district and the `district` entry, and the characters are the same; the crowd outside is the same people to the last bit; and screenshots of the demo's district page before and after (Vancouver with a crowd of 25, 50 and 75 percent in 2D and 3D, in both languages; Seattle; Tokyo; the Kodokan; a desk and a phone window) are the same pixel for pixel.
- **The entries that had them have them still**, as 0.45.1 did: `src/venue-data.budget.test.js` holds each entry to the venues, the words and the walkable ground it had, and the lean district, `venue-data` and `areas` to none of them in their import graph. The package is 144 files and 99 KB bigger unpacked (1,401 to 1,545 files, 6,982 to 7,083 KB; packed 1,889 to 1,926 KB): the tables stay, and each record is a file again.

### Added

- `loadOutside(venues)` and `loadStrings(language)` on `district-lean` and `venue-data`; `loadWalk`, `registerWalk`, `loadVenue`, `registerVenues`, `hasStrings` and `provideStrings` in the modules that hold the tables (not entry exports).
- Tests: the lean district holds no walkable ground, words or venue until they are read, says which call reads them, reads each once and reads nothing for venues no mask names; the import graph; every entry's tables; `e2e/bundles.demo.mjs` checks the network log of every preset (the one language's words, the venue's two files, the walkable ground for Vancouver's presets alone, and no table of every venue) and of a Japanese page, of a language chosen in the middle of the session, and of choosing venues with and without a crowd.

### Measured

Chromium, a desk window, the demo's pages built from 0.45.2 and from this commit and measured beside each other (`node scripts/bundle-report.mjs --base`), script and data fetched, raw KB (gzipped KB), from the network log. The district pages are opened in 3D from the broadcast viewpoint, as `scripts/bundle-lib.mjs` has them; `bundle-budget.json` is lowered to match for each of them.

| Page | Before | After | Saved |
|---|---|---|---|
| home | 5,185.4 (1,583.1) | 5,193.7 (1,586.8) | -8.3 (-3.7) |
| venues | 2,985.5 (849.8) | 2,992.9 (853.1) | -7.4 (-3.3) |
| district: BC Place and Rogers Arena | 2,513.2 (772.2) | 2,355.3 (738.2) | 157.9 (34.0) |
| district: Rogers Arena alone | 2,512.3 (771.8) | 2,354.4 (737.8) | 157.9 (34.0) |
| district: BC Place (soccer) and Rogers Arena | 2,513.2 (772.2) | 2,355.3 (738.2) | 157.9 (34.0) |
| district: Seattle Center | 2,546.0 (778.9) | 2,305.4 (720.7) | 240.6 (58.2) |
| district: SoDo | 2,515.3 (773.1) | 2,272.8 (714.0) | 242.5 (59.1) |
| district: Seattle, three venues | 2,630.7 (795.8) | 2,390.2 (737.6) | 240.5 (58.2) |
| district: Tokyo Dome City | 2,474.7 (763.1) | 2,232.1 (704.0) | 242.6 (59.1) |
| district: Tokyo Dome City and the Kodokan | 2,474.7 (763.1) | 2,232.1 (704.0) | 242.6 (59.1) |
| district: the Kodokan | 2,416.0 (747.5) | 2,173.4 (688.4) | 242.6 (59.1) |
| stadiums | 2,973.1 (845.5) | 2,980.7 (848.8) | -7.6 (-3.3) |
| halls | 3,069.6 (875.4) | 3,076.9 (878.6) | -7.3 (-3.2) |
| boards | 3,081.0 (865.0) | 3,088.4 (868.2) | -7.4 (-3.2) |
| flythrough | 3,399.0 (987.8) | 3,406.4 (991.1) | -7.4 (-3.3) |
| judging | 2,974.1 (848.6) | 2,981.4 (851.9) | -7.3 (-3.3) |

- **The pages that need everything cost 7 to 8 KB more (3 KB gzipped, a third of a percent)**: the words are two files that gzip a little worse apart, and the index and the loader are new. Their budget is unchanged. A district page of one venue saves 158 KB (Vancouver, which still reads its walkable ground: 24 KB gzipped) to 243 KB.
- What each page saves, raw (gzipped): the walkable ground 88 (24.5) where there is no crowd outside, the words 87 (25) for the language not read (and 66 (19) when it is the other), the venues 79 (14) less the one or two a district shows, and the small index and loaders that are added. The files of the walkable ground, the English words and the venue each load in parallel with the page's other modules, as the records of 0.45.1 do.
- **Times are not claimed.** `bundle-report.mjs` also measured the first paint and the drawn page at 1 and 4 times slower CPU, but the machine's load average was 27 to 42 during the runs (`uptime`) and 3 runs of each page differed by more than a change of this size could make; a change in bytes of this kind is not a change in time that can be told from the noise here.

## [0.45.2] - 2026-10-30

### Changed

- **The 3D view of a district makes its layers as fine as the screen shows them, and no finer: a phone holds a sixteenth of the pixels.** The scene is made 1,400 pixels across and every plane was a layer as fine as that, whatever the screen: a phone shows the scene a sixth of that size, so its layers were five times finer than anything it could draw, and at a ratio of 3 the Kodokan's building alone was 713 megabytes of layers (each floor a layer of 1,114 by 1,186 pixels), which is what an iPhone's browser could not keep (SPX-699). The view now works out the share of its size a layer needs from the scale that fits the scene in its box (at any tip of the view), the zoom, and a margin of a quarter for the perspective, and rounds it up to 0.25, 0.4, 0.6 or 1 (`viewShare`, `viewScale`, `SHARE_LEVELS`; docs/quality.md, "The pixels of the layers"). It holds for every tier, `high` asked for by name too; the 3D view of a single surface is not changed. The Kodokan alone on a phone is made at 0.25 (a sixteenth of the pixels). The floor, which is one layer and holds the thinnest lines of the view, is made at 0.6 at least (`FLOOR_SHARE`), because a one-pixel line such as the north arrow shows steps in Chromium when its layer is made a quarter as fine.
- **The share follows the view.** A zoom that needs a finer share draws the layers again 160 milliseconds after it stops (a pinch is not drawn again at every step, and from the whole view to the nearest it is at most three times); a zoom out or a smaller box makes them coarser only after a second and a half at rest; a new size of the container, a new set of venues and a step of the tier work it out again. The camera, the auto-turn and a drag in the middle of being made are not touched, and `data-share` on `.ky-turn` says the share. A wide screen needs the whole share, so there nothing changes: its screenshots are the same byte for byte.
- **The flat layers were not moved onto a canvas, as SPX-772 first asked, because they are not where a step goes.** Streets, footprints, trees and land are a few paths in the floor, and the floor is one layer (17 elements for the Kodokan). Taking the floor out of the page altogether saves 4 to 6 percent of a turn step in Chromium with the CPU 4 times slower (Seattle 117 to 111 ms and 119 to 113 in two runs); taking every plane out saves three quarters of it (117 to 44). A step costs the planes that stand up (2,175 for Seattle), not what lies flat.
- Costs 5 KB (1 KB gzipped) of script on a district page (2,411 to 2,416 KB); the bundle budget holds.

### Added

- Tests: `viewShare`, the floor's share and `rasterShares` with a ceiling (`src/quality.test.ts`); `e2e/quality.demo.mjs` checks on a phone that the Kodokan's layers are under 120 megabytes, that a zoom in makes them finer a moment after it stops and a zoom out makes them coarser again after a while at rest, and that the floor is where it was.

### Measured

Chromium and WebKit on a Mac Studio, a phone window of 390 by 844 at a ratio of 3, the CPU of Chromium slowed 4 times where said, 40 turn steps a row (`node scripts/perf-district.mjs --quality high,medium,low,auto`); the 0.45.1 site and this one were built beside each other and measured one after the other. The load average of the machine was 18 to 20 before each run (`uptime`) and 15 to 26 during them, so a frame that differs by under 15 percent in Chromium is not a difference. Layers are the boxes times the ratio squared, four bytes a pixel, as the script has always counted them.

| Preset (high) | Planes | Layers MB at ratio 3: before | after | WebKit phone ms a frame: before | after | frames a second: before | after | Chromium phone, 4x CPU, ms: before | after |
|---|---|---|---|---|---|---|---|---|---|
| Rogers Arena alone | 547 | 100 | 25 | 17 | 17 | 59 | 59 | 30 | 32 |
| BC Place and Rogers Arena | 1309 | 118 | 24 | 17 | 17 | 59 | 59 | 81 | 68 |
| BC Place (soccer) and Rogers Arena | 1305 | 118 | 25 | 17 | 17 | 59 | 59 | 64 | 66 |
| Seattle Center | 1088 | 98 | 21 | 105 | 21 | 10 | 48 | 41 | 45 |
| SoDo | 1346 | 86 | 18 | 124 | 26 | 8 | 38 | 66 | 71 |
| Seattle, three venues | 2175 | 50 | 15 | 60 | 31 | 17 | 32 | 119 | 141 |
| Tokyo Dome City | 2049 | 76 | 19 | 121 | 41 | 8 | 24 | 109 | 109 |
| Tokyo Dome City and the Kodokan | 2286 | 78 | 16 | 140 | 54 | 7 | 19 | 119 | 123 |
| The Kodokan alone | 152 | 713 | 64 | 28 | 17 | 36 | 59 | 17 | 17 |

| Kodokan alone, layers MB at ratio 3 | before | after |
|---|---|---|
| high | 713 | 64 |
| medium | 67 | 25 |
| low | 32 | 21 |
| auto (first draw) | 317 | 64 |

- **WebKit, the iPhone's engine, turns the heavy presets two to five times faster** (Seattle Center 105 to 21 ms a frame, SoDo 124 to 26, Tokyo Dome City 121 to 41, Tokyo Dome City and the Kodokan 140 to 54, the Kodokan alone 28 to 17): its frames follow the pixels of the layers. Chromium does not move beyond the noise (a desk window at 4 times slower CPU, built before and after run in turn twice, for BC Place (soccer) and Rogers Arena, Tokyo Dome City, and with the Kodokan: 65 and 60, 95 and 99, 111 and 111 ms, then 64 and 67, 97 and 91, 124 and 113; and a desk window is the same page to the byte). The lower tiers' layers fall too: the Kodokan at `medium` 67 to 25 megabytes, at `low` 32 to 21.
- **The pictures.** Every preset at every tier, in light and dark, in Chromium (a desk window and a phone window) and in WebKit (a phone window): 162 pairs of screenshots. The desk window is the same to the byte. At a ratio of 3 WebKit differs by at most 0.23 percent of the pixels by more than 8 levels of 255 (0.05 percent by more than 32) and Chromium by at most 1.8 and 0.13 percent. Side by side the colours and the places are the same; what differs is thin lines and patterns that alias: a football field's yard lines are clean where they were dotted, rails and the Kodokan's mats are crisper, and in Chromium a one-pixel arrow is a little rougher.

## [0.45.1] - 2026-10-30

### Changed

- **Each district page of the demo loads 22 to 25 percent fewer bytes.** The district page carried 3.27 MB of script and data (933 KB gzipped) whatever it showed; it now carries 2.41 to 2.63 MB (746 to 794 KB gzipped), and a page of one venue reads that venue's record and no other. Four things did it:
  - **Venue data is one file for each venue** (about 440 KB before gzip, 58 after, gone from every district page). `arenas.data.ts`, `parks.data.ts` and `grounds.data.ts` stay, as the entries that have every venue read them; besides them the generators (`pnpm arenas`, `pnpm parks`, `pnpm grounds`) write a file for each record (`src/arenas/rogers-arena.data.ts`, 0.9 KB) and a list of every key with its names and the `import()` of its file (`arenas.index.ts` and its two like, 54 KB together). The drawing reads a venue from a table (`heldArena`, `heldPark`, `heldGround`) that the full lists fill; the new `full.js` (in `sideEffects`) fills it, and **every entry but the new lean one imports it**, so `index`, `district`, `turn`, `stadiums`, `venues` and the rest have every venue as before (`src/venue-data.budget.test.js` holds each entry to what it had).
  - **A lean district.** The new entry `@johnmorrisdotca/kyogijo-stadiums/district-lean` has everything `district` exports and holds no arena, park or ground until `loadVenueDataFor(venues)` has read the files of those it is about to draw (the call `loadAreasFor` is for the areas); with them read it draws what `district` draws, character for character (`src/venue-data.test.ts` draws every preset of the demo in 2D and 3D, in English and Japanese, with surroundings and crowd, through both). `@johnmorrisdotca/kyogijo-stadiums/venue-data` has the loaders (`loadVenueDataFor`, `venueDataKeysFor`, `loadArena`, `loadPark`, `loadGround`) and `venueName(key, language)`, the name of a venue from the lists of names alone, so that a page can list every venue to choose from and read only the records of those chosen. The demo's district page uses the lean entry.
  - **The layers are a part the drawing asks for** (`draw.parts.ts`): `drawKyogijo` took the 300 KB of `layers.ts`, `heat.ts` and what they import into every page, with layers or without. `full.js` fills the table; the lean district leaves it empty, and a drawing that asks for `layers` there throws and says how to have them. Every other entry has them.
  - **Two modules were imported only to be exported again.** `leagues.ts` took the 70 KB of `LEAGUE_SOURCES` into every page that imports it, and `rules.ts` read the table of every park for a list of keys. `index` and `leagues` now export `LEAGUE_SOURCES` from its own file (nothing changes for a caller), and `PARKS_WITHOUT_WALL_HEIGHTS` reads a small generated file (`parks.walls.ts`).
- Added, and nothing removed or changed in shape: the entries `district-lean` and `venue-data`, and `districtRing(key)` (the outline of a venue's building without its record; the crowd outside keeps out of the buildings of venues that are not shown).
- The package is 362 KB bigger unpacked (6.43 to 6.80 MB; 725 to 1,399 files: the records are in the table and again as files of their own).

### Added

- **A budget of bytes for every page of the demo.** `node scripts/bundle-report.mjs` (`pnpm bundles`) lists the scripts and the data each page fetches, raw and gzipped, from a real browser's network log, with its first paint and the moment it has drawn at full speed and at 4 times slower CPU, each with the machine's load; `--base <another site/>` measures two builds a run at a time. `scripts/bundle-budget.json` holds each page to a little over where it is (`pnpm bundles:budget` writes it), `e2e/bundles.demo.mjs` fails a page that grows past it, and CI runs that file in a job of its own (`bundles`).
- Tests: every district preset reads the records of the venues it shows and no other, no table of every venue and no layers, at every quality tier and without a page error; choosing other venues reads their records then, once, and choosing them again reads nothing; the 2D plan reads the same; every venue is listed by name with no record read.

### Measured

Chromium on a Mac Studio, the pages served from the same Mac (no network between page and files, so the bytes matter more to a reader than the times show). 0.45.0 and this release were built beside each other and measured by `scripts/bundle-report.mjs --base`, a run of one and then a run of the other, the median of three. The load average of the machine was 9.3 to 12.7 for every row: lower than it often is, still not quiet. Bytes are script and data, raw and, in brackets, gzipped; times are the first contentful paint and the moment the page says it is drawn, in milliseconds.

| Page | JS + data KB (gzip), before | after | First paint / drawn ms, 1x CPU: before | after | 4x CPU: before | after |
|---|---|---|---|---|---|---|
| Home page | 5174 (1578) | 5180 (1581) | 108 / 874 | 112 / 848 | 672 / 3845 | 700 / 4315 |
| Venues page | 2974 (845) | 2980 (848) | 48 / 146 | 52 / 153 | 384 / 634 | 384 / 617 |
| District: BC Place and Rogers Arena | 3271 (933) | 2508 (771) | 40 / 266 | 36 / 256 | 376 / 1191 | 360 / 1164 |
| District: Rogers Arena alone | 3271 (933) | 2507 (770) | 40 / 218 | 40 / 194 | 352 / 832 | 300 / 780 |
| District: BC Place (soccer) and Rogers Arena | 3271 (933) | 2508 (771) | 40 / 256 | 40 / 234 | 376 / 1171 | 324 / 1079 |
| District: Seattle Center | 3304 (940) | 2541 (777) | 40 / 301 | 40 / 282 | 328 / 1014 | 304 / 921 |
| District: SoDo | 3273 (934) | 2510 (771) | 36 / 350 | 36 / 298 | 296 / 1124 | 284 / 1066 |
| District: Seattle, three venues | 3387 (956) | 2625 (794) | 40 / 336 | 40 / 297 | 312 / 1372 | 292 / 1319 |
| District: Tokyo Dome City | 3233 (924) | 2469 (761) | 40 / 287 | 40 / 259 | 344 / 1183 | 316 / 1124 |
| District: Tokyo Dome City and the Kodokan | 3233 (924) | 2469 (761) | 40 / 340 | 36 / 318 | 340 / 1390 | 284 / 1355 |
| District: the Kodokan alone | 3176 (909) | 2411 (746) | 44 / 207 | 40 / 179 | 340 / 827 | 296 / 734 |

- The district pages are 22 to 25 percent lighter and draw 4 to 15 percent sooner at full speed and 2 to 11 percent sooner with the CPU slowed 4 times (the table). A second run an hour later (load 8 to 17, same method) agrees: 3 to 14 percent and 1 to 9 percent; the home page and the venues page do not move beyond the noise (the home page's 4x time was 12 percent up in the first run and level in the second). The first contentful paint is the page's HTML, drawn before any script runs, and does not move.
- The home page and the venues page grow by 6 KB: the three tables' small core modules, which every entry that has all venues now loads besides the tables.

### What is not smaller, and why

- **The crowd's walkable mask** (`walk.data`, 88 KB) still loads on every district page: `outsideCrowd()` is documented as synchronous, and the plan keeps room round the buildings for the crowd at every level, level 0 included. Splitting it would make that function asynchronous or need a load call first, so it is left as it is for a decision.
- **The Kodokan's floors, the quality tiers' extra code, the gates, the trees and the outside crowd's code** were measured one by one by taking each out of the page's import graph: 2 KB (the Kodokan and the dojo builder; the boxing ring uses the rest), 10 KB (quality), 6 KB (gates) and 23 KB (context, which holds the trees) of script. What they import is shared with what stays, so loading them on demand would save little and would make `mountDistrictTurn` asynchronous.
- **What is left** (lean district, Rogers Arena alone, 2.2 MB of script before gzip): the strings of every sport (156 KB); the sports' families the district never draws (athletics, pools, skating, courts: about 100 KB that `outline.ts`, `uprights.ts` and `draw.ts` still reach); the situation and pageant code (39 and 25 KB: parts like the layers would take them out); the outlines of the venues (`venues.osm.data` 54 KB and `venues.data` 25 KB: the treatment the arenas had would take them out).

## [0.45.0] - 2026-10-30

### Added

- **`quality`: how much the 3D view of a district draws, so that it turns well on every device.** A setting of the 3D view (`quality: "auto" | "high" | "medium" | "low"`, `auto` by default; `view.quality`, `view.tier`, `view.setQuality(quality)`, `onQualityChange`, and `qualityTuning` for a test or an unusual screen; docs/quality.md). `high` is everything as it always was: the same elements and the same pixels as before (checked against 0.44.2 for every preset, in Chromium to the byte of the screenshot, light and dark, and in WebKit at the same place on the page). `auto` starts on `high`, times the frames the view makes while it turns (not the browser's name, not the device's model) and steps a tier down when the mean interval is over 21 ms (under 48 frames a second) for a window, and a tier up when the mean has been 18.5 ms or less for 5 seconds. A try upward that fails is taken back and the next one waits twice as long (5, 10, 20, 40, 80, 160 seconds, at most 5 minutes), so a device on the edge between two tiers settles on the lower and never flickers; a display that refreshes at 30 Hz is measured once, when idle, and not taken for a slow view. A step draws the world again and **keeps the camera where it is** (the lower tiers are framed as `high` is, and the pointer, the auto-turn and a drag in the middle of being made are not touched).
- **The tiers.** `medium`: the 24 biggest buildings round a district stand up (130 at `high`), every other footprint stays on the floor; every other tree; a small venue (under 12 percent of the plan) is one block with its height; the small parts of a venue (benches, glass, goals, posts, masts, fascia, rails) and the faint floors of a building are left out, the crowd in the stands is blocks of colour at most 0.6 full; the crowd outside is half as many people on a canvas 0.7 as wide. `low`: no building stands up (footprints only, shaded by height), one tree in four, a venue under 40 percent of the plan is a ring of walls open at the top with its field showing inside, no crowd outside. A district of one venue is never drawn as a block, and the flat 2D plan is not changed by any tier.
- **The pixel ratio of the layers is capped on a phone or a tablet** (a coarse pointer or a screen of 820 CSS pixels or less on a side, `handheld()`): `auto` makes the layers at a ratio of 2 at most, `medium` 1.5 and `low` 1, and a layer past a budget of device pixels (2 million at `medium`, 1 million at `low` on a handheld) is made smaller still. A layer is made that share as wide and as high and its matrix widens it back, so the picture is the same and it holds the square of the share as many device pixels. **What this does and does not do** is in docs/quality.md: the sizes reported here are the boxes times the ratio squared, which is what the Kodokan's 680 megabytes were counted by; an engine that draws a layer again at the scale its matrix has (Chromium does, and screenshots in both engines do) makes the same pixels from it, and we could not measure the memory an iPhone allocates. What is certain is the tiers' own reduction of layers (the Kodokan's faint floors: 152 planes down to 42 at `medium` and `low`).
- **The demo's district page has the choice in its own controls over the view**: Auto, High, Medium and Low (finger-wide, in light and dark, in English and Japanese) with a line that says what was asked for and what is drawn now ("Auto: drawn at Medium for now."), `?quality=auto|high|medium|low` in the address (`auto`, the default, is left out), and a press changes the tier without moving the camera or stopping the turn.
- `scripts/perf-district.mjs --quality high,medium,low,auto` measures each tier of every preset, and for `auto` turns the view until its tier has stood still for four seconds and says the tier it settled on and the steps it took. Layers are now counted in WebKit too.
- Tests: every tier draws every preset without a page error (unit and demo e2e, three browsers); `high` equals no `quality` (planes, floor, markup); the governor on simulated devices (a fast one, a slow one, one on the edge, a 30 Hz and a 120 Hz display, hitches, pauses); a press and a drag keep the camera; `auto` steps down under a CPU slowed 6 times and back up when it is released (Chromium); a tier held by name is never changed by the frames; each lower tier holds the plane budget of the performance test; the controls are finger-wide and not in the browser's own style.

### Measured

Frames a second of a turn made of pointer moves, planes drawn and layers, on a Mac Studio (Apple silicon) that was **heavily loaded by other work during every run (load average 27 to 90)**, so the numbers are good for comparing tiers and not for their last digit. "Before" is 0.44.2, built beside this release and measured by the same script; `high` here is the same page as before, so those two columns differ only by the load of the minute.

| Preset | Planes: high / medium / low | Chromium, CPU x4, frames a second: before / high / medium / low / auto (tier it settled on) | WebKit phone, ratio 3: before / high / medium / low / auto (tier) |
|---|---|---|---|
| Rogers Arena alone | 547 / 442 / 280 | 30 / 30 / 38 / 44 / 52 (low) | 48 / 59 / 59 / 59 / 59 (high) |
| BC Place and Rogers Arena | 1,309 / 983 / 42 | 14 / 13 / 18 / 60 / 60 (low) | 28 / 63 / 59 / 59 / 59 (high) |
| BC Place (soccer) and Rogers Arena | 1,305 / 983 / 42 | 15 / 15 / 22 / 60 / 60 (low) | 26 / 59 / 59 / 59 / 63 (high) |
| Seattle Center | 1,088 / 606 / 220 | 21 / 22 / 33 / 60 / 61 (low) | 10 / 6 / 19 / 59 / 59 (low) |
| SoDo | 1,346 / 926 / 61 | 15 / 14 / 18 / 60 / 60 (low) | 7 / 4 / 11 / 59 / 59 (low) |
| Seattle, three venues (city) | 2,175 / 280 / 88 | 9 / 8 / 58 / 60 / 58 (medium) | 17 / 15 / 59 / 59 / 63 (medium) |
| Tokyo Dome City | 2,049 / 839 / 42 | 10 / 9 / 21 / 60 / 60 (low) | 9 / 8 / 26 / 59 / 59 (low) |
| Tokyo Dome City and the Kodokan | 2,286 / 900 / 83 | 9 / 8 / 19 / 59 / 60 (low) | 6 / 6 / 31 / 59 / 27 (medium) |
| The Kodokan alone | 152 / 42 / 42 | 60 / 51 / 60 / 60 / 60 (high) | 24 / 36 / 59 / 59 / 59 (medium) |

`auto` settles on 48 frames a second or more on every preset with the CPU slowed 4 times in Chromium (desk and phone window), and on 60 on a desk with nothing slowed, except Tokyo Dome City (48: its `high` takes 20 ms a frame, just under the budget). The one row under 30 is WebKit's Tokyo Dome City and the Kodokan (27, on `medium`, measured at a load average of 60: its `medium` measures 31 on a quieter minute and `low` 59). The planes of `high` are those of 0.44.2, in the same order.

| Preset | Chromium desk, nothing slowed: `auto` frames a second (tier) | Chromium phone, ratio 3: layers in megabytes, before / `auto` at its start / `medium` / `low` |
|---|---|---|
| Rogers Arena alone | 60 (high) | 100 / 44 / 17 / 5 |
| BC Place and Rogers Arena | 60 (high) | 118 / 52 / 22 / 4 |
| BC Place (soccer) and Rogers Arena | 60 (high) | 118 / 53 / 22 / 4 |
| Seattle Center | 60 (high) | 98 / 43 / 18 / 5 |
| SoDo | 60 (high) | 86 / 38 / 18 / 4 |
| Seattle, three venues (city) | 60 (high) | 50 / 22 / 8 / 4 |
| Tokyo Dome City | 48 (high) | 76 / 34 / 15 / 4 |
| Tokyo Dome City and the Kodokan | 60 (high) | 78 / 35 / 14 / 4 |
| The Kodokan alone | 60 (high) | 713 / 317 / 67 / 32 |

(The layer sizes are the page's own boxes times the pixel ratio squared, as before; see what the cap does and does not do above.)

### Changed

- The district page's outside-crowd levels are 48 pixels high, as the new quality bar's are (they were 44).

## [0.44.2] - 2026-10-29

### Changed

- **The district page turns faster, with nothing drawn differently where it can be said**: a step of a turn cost the page's own script and the browser's drawing in proportion to the number of planes of the 3D view, and the view had grown from about 1,200 planes (0.40.2, Seattle) to about 2,200. The faces of an opaque building that turn away from the eye are no longer written to or drawn (`Plane.cull`, set on the walls of the district's surrounding blocks and of a solid Kodokan: a closed solid hides its own far faces, and `layoutOf` takes a `cull` argument that leaves them out, off by default so that a still picture and the tests lay out every plane as before); the matrices and numbers of a step are worked out with less allocation (the layout is the same to the last digit). At the opening view of the Seattle district that is 419 of 2,174 planes left out, and the step costs the main thread 20 to 35 percent less in Chromium (Seattle 28.8 to 23.0 ms, Tokyo Dome City with the Kodokan 31.7 to 23.3 ms, on a 1280 by 800 window; 123 to 99 ms and 133 to 100 ms with the CPU slowed four times) and about a quarter less in WebKit; in the default view of the surroundings, where the hidden walls used to be painted over a neighbour here and there, a few of the edge pixels are not the same (under 2.7 percent of the pixels of a district, almost all the thin line where two walls meet).
- **The demo's pages ask for all their modules at once**: `scripts/module-preload.mjs` writes a `modulepreload` link for every module a page imports, in its head (the district page imports 246 files, seven deep, and the browser used to learn of each only when it had read the one above it). On a connection with a 60 ms delay it opens the district page at 740 ms instead of 1,015, and at 150 ms, 10 Mbit/s and a CPU four times slower at 1,740 ms instead of 2,480.
- **The district page carries the data of the area it shows and no other**: the surroundings of each place (downtown Vancouver's buildings and streets, its water and trees, Seattle's SoDo, Seattle Center and the city view, Tokyo Dome City's PLATEAU buildings) were 600 kilobytes of script that every district preset loaded, and Seattle's city view alone was 465 of them. Each area is one file now (`src/cityctx.<area>.data.ts`, written by `pnpm cityctx`; `osm.context.data.ts` and `plateau.data.ts` were one area already), and the page reads the files of the venues it shows with a dynamic `import()` (`loadAreasFor`, the new `areas` entry), starting the first view's area beside its modules, and the next preset's when it is chosen. Not preloaded: the head names none of them. A test follows each preset's network log and holds it to its own area's files, and another holds the import graph: no entry but `cityctx`, `osm` and `plateau` reaches an area's data. Nothing is drawn differently: the stage of every preset, in 2D and in 3D, is the same pixels as before, and the planes of each view are the same. The bytes of script a page loads, desk window, Chromium (`scripts/perf-district.mjs`; raw kilobytes, gzip in brackets):

  | Preset | Before | After | Area file read |
  |---|---|---|---|
  | Rogers Arena alone, BC Place and Rogers Arena (both configurations) | 3,737 (1,040) | 3,246 (925) | Vancouver's buildings and streets 77 (19), its nature 19 (6) |
  | Seattle Center | 3,737 (1,040) | 3,279 (932) | 128 (32) |
  | SoDo | 3,737 (1,040) | 3,248 (926) | 97 (25) |
  | Seattle, three venues | 3,737 (1,040) | 3,362 (948) | the city view 211 (48) |
  | Tokyo Dome City, and with the Kodokan | 3,737 (1,040) | 3,208 (916) | PLATEAU's buildings 57 (15) |
  | The Kodokan alone | 3,737 (1,040) | 3,151 (901) | none |

  Planes of the 3D view before and after (unchanged): Rogers Arena alone 547, BC Place and Rogers Arena 1,309, with the soccer pitch 1,305, Seattle Center 1,088, SoDo 1,346, Seattle 2,175, Tokyo 2,049, with the Kodokan 2,286, the Kodokan alone 152. A step of a turn and the time to the first draw did not move beyond what the measuring machine's load could hide (load average about 30 while measuring: the same run twice differed by more than the change); the saving is in bytes, and in parsing the data of areas that are not shown. Still loaded by every district page and not part of this change: the venues' own data (`arenas.data`, `parks.data`, `grounds.data`, about 450 kilobytes) and the crowd's walkable mask (`walk.data`, Vancouver's, 90).

### Added

- **`@johnmorrisdotca/kyogijo-stadiums/areas`** (new entry): `loadAreasFor(venues)` reads the areas of context that go with some venues, each from its own file, and gives them for a district's `context` option; `loadArea(key)` reads one, `areaKeysFor(venues)` says which without reading anything, and `AREA_KEYS`, `CITYCTX_VENUES` and `TOKYO_VENUES` list them. It chooses what `contextFor` of the `cityctx` entry does (and Tokyo Dome City's, for the Tokyo venues). The `cityctx`, `osm` and `plateau` entries are unchanged and still export every area at once, so nothing that imports them breaks; `CITYCTX_VENUES` is now defined in the `areas` entry's file and exported by `cityctx` as before.
- `pnpm exec node scripts/perf-district.mjs` measures the district page in Chromium and WebKit, on a desk and a phone window at the device pixel ratios 1, 2 and 3, with the CPU slowed or not: the time to draw, the bytes of script, the elements and planes, the cost of a step of a turn and the memory the layers would take. `e2e/perf.demo.mjs` holds the counts that decide the speed (planes, planes drawn, elements) and the modules' preload to a budget, so that a change that doubles them is found by the test. The slow server of the first-paint tests holds a page's scripts back for at least 1.5 seconds (it was 0.25 to 0.7 for each of seven levels of imports, and with the modules asked for together one pause is all there is).

### Fixed

- **The demo's pages no longer throw a SecurityError in Safari when the view is turned over and over.** Every choice a demo page makes is written into its address with `history.replaceState`, and WebKit refuses the hundred-and-first call in ten seconds; a held arrow key or a run of turn buttons made thirty a second, so the Kodokan's district page (and every other demo page) logged an uncaught error for each. The pages now write through `demo/address.js`, which writes at once while there is room (ninety in ten seconds), keeps only the latest address past that and writes it when the window has room, and never throws. A new end-to-end test turns the Kodokan a full turn at three tilts on every floor and in each state of its building, in Chromium and WebKit, and fails on any page error or any matrix that is not a number. (This is the one error the Kodokan's turn could be made to raise; the crash a reader reported on a phone, perhaps the memory of the large layers at a high pixel ratio, has not been reproduced.)
- **The demo's featured arena keeps its place when the script takes over, in Safari on a Mac.** The venue list in the page's HTML is an empty select, which WebKit on macOS draws shorter than its minimum height, so filling it moved everything under it down by 21 px (the first-paint test failed there, on 0.44.0 and 0.44.1). The row now holds the height of a filled one.

## [0.44.1] - 2026-10-28

### Fixed

- **The wheel over a focused 3D view tips it the way a drag does**: the wheel up lifts the near edge of the surface toward the viewer, like a drag up (it did the opposite, so the wheel and the hand disagreed), and the wheel down lowers it. A drag, the arrow keys and the "Tip the surface away" and "Tip the surface toward you" buttons already agreed (up lifts the near edge); a test now holds all four to one direction, and a finger that is let to turn tips it as a mouse does. Left and right are unchanged. The `pitch` of a view, in the address and in `TurnView`, keeps its meaning.

## [0.44.0] - 2026-10-22

### Added

- **Seattle among its streets, buildings, water and trees, and Vancouver's water, green and trees** ([the district page](./docs/district.md#among-its-streets-buildings-water-and-trees-vancouver-and-seattle)): `context: contextFor(venues)` (new entry `@johnmorrisdotca/kyogijo-stadiums/cityctx`) puts a district in its city. Four areas in the format of downtown Vancouver's: Seattle's SoDo (Lumen Field and T-Mobile Park), Seattle Center (Climate Pledge Arena), the city view of all three, and `VANCOUVER_NATURE` beside `VANCOUVER_CENTRE`. The `streets` layer is the one `pnpm osm-context` makes (carriageways, viaducts, railways, sidewalks and paths with a width); new are `landCover` (water, green and wood, from the grid VoxCity, run locally with no account, makes from OpenStreetMap) and `trees` (the Cities' inventories and OpenStreetMap's tree nodes), and Seattle's buildings carry the City's measured heights (Building Outlines 2015 with USGS 3DEP ground levels). The water, green and trees lie flat on the floor under the streets and add no plane to the 3D view; the 130 biggest buildings stand as blocks. Each area is 12 to 150 KB of data (a third of that gzipped); a district that does not ask carries none. Every layer is credited in English and in Japanese, once, in the description. The raw answers are kept, dated, in `data-sources/cityctx/2026-10-22/`.
- **The district page** has a Seattle Center preset beside Rogers Arena alone, surroundings on for the Seattle venues too, and the choice is "Surroundings: buildings, streets, water and trees" (it was "Surrounding buildings and streets"); `context=0` turns them off.
- `pnpm cityctx:fetch`, `pnpm cityctx:vox` and `pnpm cityctx` make the data; the City of Seattle's 3D Buildings, VoxCity and Sat3DGen are in [the references](./docs/references.md) with what each may be used for.
- **A floor chooser for the Kodokan's building** ([the district page](./docs/district.md#the-floors-of-the-building)): `floor: 0 to 8` (0 is the basement) shows one floor of the building: its plate picked out at its level, in 3D and on the plan, inside the see-through walls, with the floor's name over it; what is drawn on the other floors is left out. The floors are those of the Kodokan's own floor guide, which lists them from the 8th floor to the basement: the 8th the spectators' gallery (the great dojo's gallery, drawn), the 7th the great dojo, the 6th the school dojo (240 jō) and the international dojo (192 jō), the 5th the women's dojo (240 jō), the boys' dojo (114 jō) and a special dojo (no count given: drawn at 40 jō, ours), the 4th to the 2nd plain plates with what the guide lists, the 1st English Wikipedia's (the guide lists nothing), the basement under the ground. No plan of any floor is published: the rooms are the dojo builder's shape for their counts, laid out in rows and put where they stand farthest from the building's walls (ours, and said). The new `KODOKAN_FLOORS` has every floor's words in English and Japanese, `DistrictMember.parts` lets a venue be several surfaces (the rooms of a floor) and `DistrictMember.plate` the floor's plate. The demo's district page has a Kodokan floor choice (kept in the address as `floor=6`, `floor=b1`) and a table of the floors with the chosen one marked; a picture of the 6th floor in the docs.
- **Every floor of the Kodokan is a slab with an edge**: the great dojo's floor and every storey of the building have a top and sides shaded by the way they face, 0.6 metres thick (ours: a floor and its beams) and never thinner than ten pixels at the page's own size or thicker than half a storey, so that from the side a floor is no longer a sheet a pixel thick. The other storeys are faint slabs, the one chosen picked out. The walls on the eye's side of the room are cleared at every turn and tilt, checked in steps of fifteen degrees at seven tilts and at yaw -121.5, pitch 84, zoom 0.83, and a picture from the side is in the docs.
- A plate that other planes stand on is drawn under them (`Plane.under`), and a see-through wall of a tall building is placed by its foot when it is behind what stands in it and by its top when it is in front, so that a far wall is never painted over the rooms and a near one never under them.

### Changed

- A `ContextPlan` has `land` and `trees` beside `streets`, and `contextFloor` draws water, green and wood, the streets, the trees as dots and then the buildings; a layer whose credit is empty adds none to the description.
- **The demo's browser tests run in Playwright's own image and in six jobs** (`demo (chromium-phone 1/1)`, `demo (chromium-desk 1/1)` and `demo (webkit-phone 1/4)` to `4/4`): installing the browsers with their system packages had taken 55 minutes of a 70-minute run, and WebKit, three times slower than Chromium, was a whole shard of its own. A whole run is about 16 minutes. `src/ci.test.js` holds the image's tag to the Playwright version of the lockfile. A desk's gallery is allowed 860 pixels instead of 820, which the Linux of the image sets 8 pixels over.

## [0.43.0] - 2026-10-22

### Fixed

- **A see-through building's walls now fade by the side the eye is on, at every turn and tilt** (`Plane.fadeSide`): the Kodokan's near walls gave way only when the eye was low, and at some angles and tilts a near wall was drawn opaque over the dojo. Every wall between the eye and the room is now clear, a wall on the far side stays whole behind it, and a test turns the view in steps of 15 degrees at six tilts and finds no wall over the dojo's floor that is not clear. The roof is clearer too.
- **The district page's seven presets pushed the crowd bar off the first screen on a phone** (the new preset made the chips wrap into one more row): on a narrow screen the chips are 44 pixels high with a smaller gap, so that the bar and the plan stay in view.
- **Auto-turn could not be kept stopped on the district, stadiums, venues and halls pages**: pressing the button to stop the turn worked, but the pointer coming back over the view turned it again by hover. A reader who has used the Auto-turn button (or the Space key) is left alone by the pointer for the rest of the page; the button toggles every time. A new test presses it on each page, with and without yaw, pitch and zoom in the address, by mouse, keyboard and tap.

### Added

- **The Kodokan in the Tokyo district** ([the district page](./docs/district.md#the-kodokan-the-great-dojo-in-the-air)): `"kodokan"` is a venue of a district. Its main dojo (the great dojo, on the 7th floor, 420 mats, four contest areas at once, a gallery of about 900 on the 8th) is drawn in the air on its real floor, 31.9 metres up, in Project PLATEAU's building (8 storeys, 43.1 metres, its real outline), with the package's judo dojo inside: the four areas, the gallery, the seat of honour. No source gives the floor's shape or the room's place in the building: the floor is a square of 420 jō and the room is put where it stands farthest from the walls (ours, and said). `building: "xray" | "solid" | "none"` draws the building with walls that give way to the eye as it looks in (the default), whole, or not at all. The building is the venue's own, so the surrounding `context` leaves its copy out. A district with the Kodokan carries PLATEAU's credit without any context. New in the Tokyo district of the demo: a Kodokan choice, a Kodokan building choice kept in the address (`building=solid`, `building=none`), and a preset "Tokyo Dome City and the Kodokan". A picture of the dojo in the docs.
- A member of a district can stand on a floor above the ground (`DistrictMember.elevation`, in feet): its planes are lifted, its floor is drawn in the air as a plane of its own and the ground under it is left bare in 3D.
- **Downtown Vancouver among its streets** ([the page](./docs/district.md#among-the-streets-of-downtown-vancouver)): `context: [VANCOUVER_CENTRE]` (new entry `@johnmorrisdotca/kyogijo-stadiums/osm`) draws the carriageways, viaducts, SkyTrain guideway, sidewalks and paths flat under BC Place and Rogers Arena, and the buildings round them flat and, for the biggest 130, standing in 3D, with the heights OpenStreetMap maps (else its levels, else 10 metres, ours). The district's `context` takes a `streets` layer beside the `buildings` one and a `landmark` height of its own. OpenStreetMap, ODbL 1.0, kept apart from the PLATEAU data of Tokyo; `pnpm osm-context` makes it from the raw answer the walkable mask is made from.
- **BC Place's 36 masts**, each 47.5 metres over the rim and leaning out, two crossed strips to a mast (STRUCTURE magazine's count and height, cited; the lean is ours), and the walls in two bands, a podium, a ledge and glazing, for BC Place and Rogers Arena (ours).
- **Rogers Arena's roof closed in the middle by a cap with a long skylight** along the rink (ours, from the brief).
- **The gates of a venue** ([the page](./docs/gates.md)): `venueGates("bc-place")` gives eight gates, one of them Gate G on the south side (Wikipedia's), and `venueGates("rogers-arena")` four on the Pat Quinn Way side and at the north-west, each a point on the building's outline with the way it faces, a name in English and Japanese and how it is known (`documented` or `plausible`); `gates: true` on a district marks them on the plan and the 3D floor. The data the crowd's walk in and out will use for its queues.
- **The district page** has Surrounding buildings and streets for Vancouver (on by default), Retractable roof open (3D, for BC Place and T-Mobile Park, kept in the address as `roofopen=1`) and Gates (`gates=1`).

### Changed

- **The demo's browser tests run in four shards in CI** (`demo (1/4)` to `demo (4/4)`, each building the demo and playing a quarter of the tests in the three projects), and a test that fails on the runner is played once more (`retries: 1` in CI only, the report saying "flaky" for one that passed the second time): the job took 45 to 95 minutes on one runner.

## [0.42.1] - 2026-10-22

Not published on its own; shipped in 0.43.0.

### Fixed

- The README no longer carries the grey "Renamed" box about the package's old name (the 0.4.0 entry below keeps the history).
- **The demo's 3D views keep the camera when the choice changes** (the district, stadiums, venues and layouts pages): another venue or district, another stadium or configuration, another layout, the roof, or the flat view and back used to open the view afresh on its viewpoint, taking away the turn, tilt and zoom the reader had chosen and stopping the auto-turn. The view is now opened where the last one was (turn, tilt, zoom, and Play if it was turning) and only the frame it fits changes. A turn made by hand is in the address as `yaw`, `pitch` and `zoom` (under the home page's `f` prefix for its featured arena), and an address that names them opens on them; a viewpoint chosen from the list or the view's own buttons takes them out again and says itself. A box that is not the viewpoint (the boards, the labels, the language) no longer sends the view back to the viewpoint, and the district and stadiums pages now write `viewpoint=` for every viewpoint but their own default, overhead (a reload used to lose a chosen low corner).

## [0.42.0] - 2026-10-22

Not published on its own; shipped in 0.43.0.

### Added

- **A district among its buildings, from Project PLATEAU** ([the district page](./docs/district.md#among-its-buildings-project-plateau)): `drawDistrict`, `planDistrict` and `buildDistrictTurn` take `context: [TOKYO_DOME_CITY]` (new entry `@johnmorrisdotca/kyogijo-stadiums/plateau`), the 734 buildings within 500 metres of the middle of Tokyo Dome City from the Ministry of Land, Infrastructure, Transport and Tourism's 3D city model of Bunkyo ward (2025 edition). They lie flat on the floor in four tones by height, and the 130 biggest and tallest stand in the 3D view at their real heights, walls lit by the way they face and hip roofs where the model has them: Tokyo Dome Hotel at 155 metres, Bunkyo Civic Center at about 139. The frame takes in the streets round the venues (150 metres) and grows to any landmark of 100 metres or more within 400. A building that is a venue's own (the Dome's stands and roof) is left out; the building Korakuen Hall stands in is a ghost. The data is cut down at build time (`pnpm plateau:fetch` reads the ward's CityGML by range requests, `pnpm plateau` writes `src/plateau.data.ts`: 40 KB, 16 KB gzipped) and nothing is read at run time; the raw fields are in `data-sources/plateau/2026-10-22/`. A district that does not ask is drawn as before and carries none of it. The credit (PLATEAU's site policy: free, commercial use included, compatible with CC BY 4.0; credited, and said to be edited) is in each description in English and in Japanese and in `NOTICE.md`. The data file is one frame with separate layers (`ContextArea.layers`), so trees and land cover can be laid beside the buildings.
- **A Surrounding buildings choice on the district page**, on for Tokyo Dome City (`context=0` in the address turns it off), and a 3D picture of the district among its buildings in the docs.
- The three links John sent (jeantimex/tokyo, mkturkcan/valdrada and a Tokyo Tower model on Printables) in [the references](./docs/references.md), with what each may be used for.

### Changed

- A plane of the 3D view can belong to no building (`APART`): the view stacks such planes by depth among themselves and weaves them into the buildings' (which keep their building-by-building order), so a district's surrounding blocks need no group of their own.

## [0.41.0] - 2026-10-22

Not published on its own; shipped in 0.42.0.

### Added

- **The crowd outside the venue** ([the page](./docs/outside.md)): `outside: { level: 0 | 25 | 50 | 75 | 100 }` on a [district](./docs/district.md) puts that share of the venues' seats' worth of people on the sidewalks, plazas, parks, platforms and grounds round them, in 2D (`mountDistrict`, new) and in the 3D turn (`mountDistrictTurn`, whose view has `setOutside(level)` and `outsideCost()`), never on a carriageway, a railway, water or a building. The crowd is one ordered list, so a level is a prefix of it (nobody moves when the level does), each venue's share is exact to a person at every level and the same options give the same list (`outsideCrowd`, `outsideCount`). It is drawn with no element for a person: two typed arrays, one loop and one `putImageData` on one canvas, laid over the plan or on the 3D floor, where the floor's own matrix carries it round; a district seen whole shows density and a near view shows each person, and nothing is painted again when the view turns. Measured at 100 percent for BC Place and Rogers Arena together (73,371 people): a paint of 2 to 17 ms on a level change (the first about twice that), 0.3 ms more of the main thread a frame while the view turns, 60 frames a second with it as without, and 250 ms once for the mask and the crowd.
- **The walkable mask of Vancouver** (BC Place and Rogers Arena, one mask shared): made from OpenStreetMap's own answer (Overpass, ODbL 1.0, kept raw in `data-sources/walk/2026-10-22/`, credited "(c) OpenStreetMap contributors") by `pnpm walk:fetch` and `pnpm walk` (`scripts/walk-rules.mjs` says what a person may stand on and what stops a crowd) into `src/walk.data.ts`, apart from the CC0 data. `src/outside.raw.test.js` holds all 73,371 people to the raw answer. Only Vancouver has a mask; every other venue comes in a later release, and so do the entrances and the walk in and out.
- **A bar of the five levels** on the demo's [district page](https://johnmorrisdotca.github.io/kyogijo-stadiums/district.html?outside=50), over the plan and the 3D view, kept in the address (`outside=50`), in English and Japanese, with the number of people said in words.
- `pnpm outside:cost` prints the cost of a crowd; `DistrictPlan.origin` is the point the plan's metres are measured from.

## [0.40.2] - 2026-10-21

### Fixed

- **BC Place and Lumen Field still differed between football and soccer, by a few pixels**: 0.40.1 made the frame the building's, but the view's origin still moved with the field, so the picture shifted and its margin changed, and the crowd's tiles started at the field's corner, so the people were a different pattern in each. A stadium of more than one configuration is now laid out in **the venue's own frame**, the middle of its field at the origin: the `viewBox` is the same text for every configuration, the building, the bowl and the crowd are the same numbers and the same tiles (`crowdStands(...).shift` is where the field's middle is in the surface's own frame, and the surface group is shifted by it), and the 3D view's floor, stands and what stands on the field are in the same frame (`uprightsFor` moves the field's things into it). Rendered at one size in a browser, the two configurations differ in no pixel outside the field's surround and the closed seats, in 2D and from overhead in 3D (`e2e/venue.demo.mjs`, Lumen Field too, light and dark, in Chromium and WebKit on macOS and Linux). In the dark the crowd's dimming (`opacity` on `.ky-crowd`) is kept on a layer of its own for a stadium of more than one configuration (`will-change: opacity`): without it Chromium on Linux rounded the dimmed crowd a level or two differently depending on what was drawn over it.
- **The seats a configuration does not open are closed in the same place every time**: BC Place's soccer pitch opens 52,497 of the bowl's 54,500 and Lumen Field's 37,722 of 68,740. A whole bowl that does not open is drawn as empty seats under a pale veil (`ring.closed`), and the seats left over are a block of the next bowl at the middle of the left side, as wide as comes nearest (`bowl.closedSectors`, a `closed` sector in the stands, painted in 2D and on the raked planes in 3D). It replaces the thinner crowd that the upper bowl had in 0.40.1; no random number is used.

## [0.40.1] - 2026-10-21

### Fixed

- **Switching a stadium between football and soccer reshaped the whole drawing** (BC Place, Lumen Field): the view was fitted to the field and the bowl was rebuilt from the configuration's seats, so the building's outline, the scale, the frame and the tint of the ground all changed. Now only the field changes. The view is the building's with a little ground round it, about the middle of the field (the same outline and scale for every configuration, in 2D and in 3D), the bowl is the building's and holds the most seats any configuration has (BC Place's soccer 52,497 opens from the lowest bowl up and draws the other 2,003 seats empty, as Lumen Field's does), and the ground round the building is the football field's beige whichever field lies in it (`data-stadium` on the drawing's root; the dark ground is one for every sport). `planStadium(...).total` for BC Place's soccer is now 54,500, the bowl's, with `open` the configuration's 52,497.
- **The stadiums page's buttons were the browser's own** (the venue buttons) and its field choice differed from the family's: the venues are chips and the field a segmented choice, as on the venues and home pages, 48 pixels high, with a pressed state, in light and dark, and on a phone the chips scroll sideways. A new demo test (`e2e/controls.demo.mjs`) fails on any visible button or select of any demo page that is left in the browser's own style, in light and dark.

## [0.40.0] - 2026-10-21

### Added

- **The named lighting presets** ([the presets](./docs/venues.md#the-lighting-presets)): `lighting: "game" | "intro" | "concert"` join `"night"` and `"lightsDown"`. `game` is white light with the house half lit (a light veil, `u-veil-half`) and a pool of white light round the surface, `intro` the house dark with the home team's colour washed over the surface and the visitors' (the second colour) in the aisle beams, `concert` the house dark with warm amber beams and a purple surface. The presets are a table of constants, `LIGHT_PRESETS` (each preset's `house`, `aisles`, `pool`, and wash and beam colours), with `LIGHTING_PRESETS` (the names) and `LIGHT_COLORS` (the named colours); `LIGHT_PRESETS`, `LIGHTING_PRESETS`, `LIGHT_COLORS` and `resolveLighting` are exported from the main entry and from `/turn` (the 0.39.0 notes named `LIGHT_COLORS` without exporting it), and `WASH` from `/turn`. The `intro`'s team colours are the package's where it has them: the crowd's `home` and `away`, else the colours of a score's two teams, else blue and amber. `lighting: { preset, colors }` passes colours (the first stands for the home team's, the second for the visitors'), and `wash` and `aisles` win over them, for any preset. `resolveLighting(option, team)` now answers `{ preset, house, aisles, pool, beam, wash }`. `TurnModel.lighting` and the view's `data-lighting` say the preset (the stylesheet has a rule for `game` and one for the three dark ones); in the plan the stands' group has `ky-half` or `ky-down`. The `celebration` (colours chasing round the bowl) is to come. Off by default, and a drawing without lighting is exactly what it was.
- **A Lighting choice on the demo**, in place of the Night and Lights down buttons (kept in the address as `lighting=intro` and so on, with `wash=` for the colour of light over the preset's own; an old address's `night=1` and `lights=1` still work): a choice in the bar over the venues page's view and the home page's featured arena, and on the stadiums, tournament layouts and district pages. The intro is shown with sample team colours (a red and a blue that are nobody's). In 3D a change goes in while the view turns, without stopping it or sending it back.

### Fixed

- **A test that raced another** (`src/docs-language.test.js`): it walks the Markdown files from the root, and met the docs examples' scratch folder `.cache` while that test was removing it, so that `pnpm check` failed now and then with an error reading a file that had just gone. `.cache` is skipped.
- **The demo's selects were 24 pixels high on a phone in WebKit** (`e2e/looks.demo.mjs`, "every control is a finger wide", failing on `webkit-phone` since 0.39.0): the bar's colour choice took the chip class, whose `display: inline-flex` WebKit does not honour on a select. The bar's selects are `display: inline-block`, 44 pixels high, no wider than 12 rem (they had taken the venue choice's 16 rem minimum).

## [0.39.1] - 2026-10-21

### Fixed

- **Japanese wording, from a native-quality review**: spectator seating is `観客席` everywhere in the demo and the fly-through (the fly-through's Bowl stage and the venues page's Stands toggle were `客席`, and the "tiers" labels are now `観客席の層数`); the fly-through's Rink stage is `アイスリンク` (and the atlas's rink label), and its badge is `プレーのイメージ` (was `模擬プレー（イメージ）`); the night lighting is `夜間照明` and its toggle `夜間` (was `ナイト`, which also means a court colour and reads as "knight"); the centre-hung scoreboard is `センターハングビジョン（吊り下げ式スコアボード）` (`センタービジョン` reads as the centre-field screen in baseball); two fly-through sentences read more naturally. English is unchanged.

## [0.39.0] - 2026-10-21

### Added

- **Lights down** (`lighting: "lightsDown"`, [lights down](./docs/venues.md#lights-down)): a show's house on the same `lighting` option as the night. The house is nearly black; each stair aisle is lit from above as a beam, drawn in the plane of the seats (so it follows the tier's rake) as a wide faint stroke, a narrower one and a bright core, which is the soft falloff on the steps either side, with two thin lit rails beside it (a vomitory has a broader beam) and the front of every step edged with a thin line of light; the boards glow as at night. In the plan the same, as `ky-cr-beam` and `ky-cr-edge` under a heavier veil. 3D, plan, a district, a tournament hall and the usual stands all take it.
- **A wash of colour of light on the surface** (`lighting: { preset, wash }`): one flat plane over the playing surface in 3D (`light-wash`, with a rink's rounded corners) and a rectangle in the plan (`ky-cr-wash`), a radial gradient brighter over the middle (`WASH`: 0.46 to 0.26, never so much that the markings under it are lost, and a test holds it), with the night's pool of light taking the colour as well. `aisles` is the colour of the beams. Both take a CSS colour (anything else is ignored) or a name from `LIGHT_COLORS`: `white` (the beams' default), `amber`, `purple`, `magenta`, `blue`, `cyan`. `resolveLighting` now answers `{ preset, aisles, wash }`; `LightingPreset` is `"night" | "lightsDown"` and `LightingOptions` takes `{ preset, aisles, wash }`. `TurnModel.lighting` and the view's `data-lighting` say the preset (`"lightsDown"` is darker than `"night"` in the stylesheet). Off by default, and a drawing without lighting is exactly what it was; the presets, the chase and the team colours of the show-lighting plan are to come, on the same option. The beams, edges and wash are static shapes (colours baked in): nothing is worked out as the view turns.
- **A Lights down button and a wash choice on the demo** (kept in the address as `lights=1` and `wash=purple`, `magenta`, `blue` or `white`): in the bar over the venues page's view and the home page's featured arena (Lights down and Night turn each other off; the beams take a colour that goes with the wash), and as a checkbox and a choice on the stadiums, tournament layouts and district pages. In 3D they change the lighting while the view turns, without stopping it or sending it back.

## [0.38.0] - 2026-10-21

### Added

- **Night lighting** (`lighting: "night"`, [night lighting](./docs/venues.md#night-lighting), `src/venue.lighting.ts`): a venue lit as at night. The house goes down (a veil over the seats, the venue's colours set dark in the light theme and in the dark one), the playing surface stays lit with a pool of light round it that is clear over the markings, small lights show along the aisles and stairs, the exits (every fourth aisle, the vomitories) are green, the ribbon boards and the scoreboard of [the LED boards](./docs/venues.md#led-boards) glow with a halo under every panel, and the windows, the coping and the lanes of the concourse are softly lit. `venue: { lighting }` in the 3D view, `crowd: { lighting }` in the plan (and read by the 3D view where `venue.lighting` says nothing), `stadium: { lighting }` round a tournament hall; `"night"`, `true` and `{ preset: "night" }` are the same and `false` is none. It is the base later lightings are added to: the option is a preset name, and `TurnModel.lighting` and the view's `data-lighting` say which. Off by default, and a drawing without it is exactly what it was. Nothing is worked out again as the view turns: the lights are custom properties (`--ky-night-aisle`, `--ky-night-exit`, `--ky-night-rim`) and a few static shapes, one added plane (`night-pool`) to a venue; `turn.update(options, { venue: { lighting } })` changes it while the view turns. The lights are at least seven to one against the seats in both themes (a test holds it). New exports: `LightingOptions` and `LightingPreset`. About 3 KB of source in the one new module.
- **A Night switch on the demo** (kept in the address as `night=1`): a button in the bar over the venues page's view and the home page's featured arena, which lights the plan and the 3D view and, in 3D, changes it without stopping or sending back the turn; a checkbox on the stadiums, tournament layouts and district pages.

### Changed

- **The plan's ribbon boards are outside the crowd's group** (`<g class="ky-cr-ribbon">` follows `<g class="ky-crowd">` and no longer sits inside it), so that the crowd's dimming and the night veil do not reach them.
## [0.37.0] - 2026-10-20

### Added

- **LED boards** (`boards`, [the LED boards](./docs/venues.md#led-boards), `src/venue.boards.ts`): the ribbon boards along the fascia between the seating levels, and a scoreboard hung over the middle of the playing surface, for every real venue (the thirty-two arenas of the NHL, BC Place, Lumen Field, Korakuen Hall and the ballparks), for the usual stands, in a district, and, as `stadium: { boards }`, round a tournament hall. `venue: { boards: true | { ribbon, scoreboard, colors, pattern, score } }` in the 3D view, `crowd: { boards }` in the plan (and read by the 3D view where `venue.boards` says nothing); off by default, and a drawing without it is exactly what it was. The content is generic and ours: panels of colour in `bands`, `blocks`, `chevrons` or `waves`, and a plain score in seven-segment digits (paths, no font); the colours are the asker's, else the crowd's `home` and `away`, else amber, blue and white (any other string than a hex, `rgb()`, `hsl()` or a name is ignored). In 3D a ribbon is the top 3.8 feet of the suite level's wall, a plane of its own (the walk below it is the walk less that strip; a venue with one level has its ribbon on the front of that level), and the scoreboard is four faces with the score on each, a ring of display under them, a cap and a strut, hung over the surface by a fifth of its longer side and sized by it (an arena's is about 28 by 19 feet). A ballpark has no scoreboard over the field, a hall has the layout's own (only ribbons there), and a score drawing's own scoreboard replaces the venue's. Every lit shape carries the class `u-led` (`ky-cr-led` in the plan) over a dark housing, for a lighting layer to make glow; the planes are the kinds `ribbon` and `hung-board` (uprights `ribbon-boards` and `hung-board`, said in words in English and Japanese). `turn.update(options, { venue: { boards } })` changes them while the view turns. New exports: `LedBoardOptions` and `LedBoardPattern`. About 17 KB of source in the one new module (`dist/venue.boards.js`), a ribbon of a 32-arena venue being a few dozen planes.
- **An LED boards switch on the demo** (kept in the address as `boards=1`): a button in the bar over the venues page's view and the home page's featured arena, which draws it in the plan and in 3D and, in 3D, changes it without stopping or sending back the turn; a checkbox on the stadiums, tournament layouts and district pages.

## [0.36.0] - 2026-10-20

### Added

- **A diamond mowing pattern** (`stripePattern: "diamonds"`, `菱形` in the demo): the crosshatch of a ballpark's outfield, as in a photograph of T-Mobile Park. On a ballpark it is squares of 30 feet with their sides along the foul lines, from home plate out, lighter and darker alternately (two passes of 45-degree stripes crossing); on a football field and a soccer pitch it is squares of a band turned 45 degrees, one of them centred on the turf so that both ends are mown alike, whatever the size. It is cut to the fair ground or to the turf by a clip path. The infield grass stays one tone, and a separate infield pattern is not offered: the pattern is the outfield's. [Theming](./docs/theming.md), the gallery's mowing sections.
- **The demo's Mowing choice is for every grass sport**: a football field and a ballpark have it too (it was the soccer pitch's alone), with Diamonds among the choices; the soccer section of the home page shows the diamonds as one more card.

## [0.35.0] - 2026-10-20

### Added

- **The auto-turn goes either way** (`TurnSettings.direction`, `KyogijoTurn.direction()` and `setDirection()`, `turnDirection()`, `TurnSettings.onDirectionChange`, the element's `turn-direction`): `"counterclockwise"` is how it has always turned, the near side swinging to the viewer's right, and stays the default; `"clockwise"` is the other way. The 3D view has a **Reverse** button (`逆回転`), a toggle pressed while it goes clockwise, that changes the way at once without stopping the turn and says so aloud; a drag, the keys and the other buttons are not reversed. Every 3D view has it: the stadiums, the districts, the tournament layouts and the judging view too. [The 3D view](./docs/turn.md#the-auto-turn).

### Changed

- **The demo waits still and turns on the pointer** (`demo/turn-way.js`): every 3D page of the demo (the home page and its featured arena, the venues, stadiums, districts, tournament layouts, judging and boards pages) opens still, turns while the pointer is over the view, and holds when it leaves; a tap on a phone starts it and a second tap holds it; Auto-turn still starts it for good (`spin=on` on the venues page's address), and a reader who prefers reduced motion is never turned for by the pointer. The pages turn at half the old speed (6 degrees a second; the package's own default, 12, is unchanged), and Reverse is kept in the address as `dir=cw`. The replays play while the pointer is over them in the same way. The fly-through page opens still and flies on the pointer at `speed=0.5`, half the pace (`?play=1` has it fly from the start).
- **The README opens on the still pictures again**: the two turning pictures at the head are gone, and each moving picture is beside its own section (the real venues, the tournament layouts, the fly-through), at half the speed (100 milliseconds a frame for the arenas, 260 for the fly-through); the real venues' pictures are taken again with the filled bowls of 0.34.1. The pictures only a page of docs shows are in `docs/pictures`, so that `docs/images` holds the README's own: the family's README lint (`scripts/readme-lint.mjs`) is again its own file with one rule added, the moving pictures' budget.

## [0.34.1] - 2026-10-20

### Fixed

- **No gray empty areas in the 3D view of a real venue** (`src/venue.fill.ts`, [the venues](./docs/venues.md), [the stadiums](./docs/stadiums.md)): the 3D arenas showed flat gray nothing in three places. **The shelf between the bowls** is now the suite level: a facing wall with a band of windows, a pane to every 7 feet, and a ledge. **The apron between the surface and the first row** is a thin dark floor, with the players' benches, the penalty boxes and the timekeeper's table at the usual places on the bench side of an ice rink. **The slab between the back of the bowl and the building** is closed by a back wall with a coping (it gives way to the eye as the building's walls do, keeping a little of itself) and a darker concourse floor with its lanes and joints, out to the building's outline, the annexes included. Every arena of the NHL, every stadium and the hall, and a tournament layout's stadium (`VenueSettings.fill`) have the fill; the usual stands (`crowd: true`) are unchanged. New part kinds `apron`, `bench` and `floor`; a ballpark gets the suite wall and the back wall, and no apron or floor of its own.

## [0.34.0] - 2026-10-20

### Added

- **Koshien Stadium** (`park: "hanshin-koshien-stadium"`, `阪神甲子園球場`, 47,400 seats, open air): the way home plate faces is found by fitting the park's published fence to the grass of the field OpenStreetMap maps (`axis.basis` `pitch`, 172 degrees, the fence 2.9 metres from the mapped edge, `axis.rms`; good to about ten degrees, and the Japanese article puts the annex south, behind centre field). The ivy and the all-dirt infield are plain drawing choices the sources give (`looks.ivyWalls`, `looks.dirtInfield`): green walls in 2D and 3D, and no grass inside the bases. No roof over the field (`StadiumRoof` `open`); the Ginsan roof over the grandstand is not drawn.

## [0.33.0] - 2026-10-20

### Added

- **Tokyo Dome City** ([the real stadiums](./docs/stadiums.md), [the district page](./docs/district.md)): **Tokyo Dome** (`park: "tokyo-dome"`, `東京ドーム`, 45,600 seats for baseball) and **Korakuen Hall** (`stadium: "korakuen-hall"` with `sport: "boxing"`, `後楽園ホール`, 1,403 seats and the balconies' standing places up to 2,005), each in the outline of its building from OpenStreetMap, side by side as a district (`["tokyo-dome", "korakuen-hall"]`).
- **An air-supported roof** (`StadiumRoof` `dome`, `RealShell.roof` `dome`): the 3D roof of Tokyo Dome is a lens over the whole ballpark, a pale skin in rings of pieces from the rim of the walls (26.19 metres) to the crown (56.19), the heights OpenStreetMap maps for the roof as a part of the building; it has no open state (`roofOpen` changes nothing). The roof's outline is kept with its heights (`StadiumOsm.roof.ring`).
- **Nothing is guessed about how Tokyo Dome's field lies.** No diamond is mapped in the dome and the building is nearly round, so the data says `none` and the drawing lies the way that fits the building (fence and stands, with home plate set so that the fair ground is centred), with no arrow to north; the build chooses that stand-in, the docs say it is not a fact, and a lead for later (the roof falls toward the outfield, which faces the garden to the north-west) is written down, not used.
- **A hall, a third kind of stadium** (`StadiumKind` `hall`, `StadiumConfigId` `boxing`): a ring in the middle, seats round it from a first row 8 feet from the ring's box, its names Wikidata's labels (`names`) and no ground or park of the package's; the lowest bowl holds the infobox's seats to the seat (`tiers.lowerSeats`) and the balconies are the closed upper bowl. `districtMember` calls it `kind: "hall"`.
- **A bowl that fits a small building** (`planPark`, `ParkPlan.seatArea`): where a ballpark's usual stands, at 4.6 square feet of plan a seat, do not fit inside its building, the bowl is made steeper (a seat takes less, as an arena's does) until they fit; T-Mobile Park's plan is unchanged.
- **Japanese Wikipedia as a source** (`scripts/stadiums.data.json` `ja`, `evidence`): `pnpm stadiums:fetch` keeps the revision and the sentences of a stadium's Japanese article beside the English one (`articlesJa`), and `pnpm stadiums` checks the revision and that each phrase a fact leans on is in the kept sentences.
- **The demos and the docs.** The stadiums page has the two as tabs (the roof, the orientation and the district link say what each is), the district page has the Tokyo Dome City preset, and the docs have a section for each venue, Tokyo Dome City in [the district page](./docs/district.md), items in [the gallery](https://johnmorrisdotca.github.io/kyogijo-stadiums/docs/gallery-stadiums.html), two pictures, the sources in [references](./docs/references.md) and [NOTICE.md](./NOTICE.md) (the Japanese articles' revisions in [NOTICE.ja.md](./NOTICE.ja.md)). Four descriptions are new in both languages (`said.stadiumHall`, `stadiumRingBuilding`, `stadiumPitchPark`, `stadiumNonePark`).

### Changed

- The development dependency `@johnmorrisdotca/dougu-sports` is 0.13.0 (was 0.2.0): its four new icons, `sport:mma`, `sport:boxing`, `sport:wrestling` and `sport:prowrestling`, are the combat sports' own, so the test of the real set no longer stands in the karate and judo icons for them, and the demo's emblem pickers list them. Kyogijo's own code and its published package are unchanged; the demo (built from this repository) shows the new icons.

## [0.32.0] - 2026-10-20

### Added

- **The real venues of the Atlantic and Metropolitan Divisions**: TD Garden, the KeyBank Center, the Little Caesars Arena, the Amerant Bank Arena, the Bell Centre, the Canadian Tire Centre, the Benchmark International Arena and the Scotiabank Arena; the Lenovo Center, the Nationwide Arena, the Prudential Center, the UBS Arena, Madison Square Garden, the Xfinity Mobile Arena, PPG Paints Arena and the Capital One Arena. That completes the league: all thirty-two arenas, the Western and the Eastern Conference, drawn as the first sixteen were (the outline of the building from OpenStreetMap, read on 2026-10-20; a plausible bowl of the seats, tiers and roof the sources give, each fact labelled `documented` or `plausible`). Three arenas have three seating tiers besides the Grand Casino Arena's: the KeyBank Center's (its article names the 200 and 300 levels), the Bell Centre's (a three-tier layout) and the Canadian Tire Centre's (levels 100, 200 and 300); two tiers are documented for the Lenovo Center, the Prudential Center and Madison Square Garden. The Little Caesars Arena's and the UBS Arena's Wikidata items give no capacity (`seats.wikidata` is `null` there; the infobox's figure for ice hockey is used). Where two outlines carry an arena's Wikidata item (the Xfinity Mobile Arena's) the one tagged `building` is the building; a building that is a relation (the Benchmark International Arena's) is read as the Grand Casino Arena's was.
- **True orientation where OpenStreetMap maps the ice**: TD Garden, the Xfinity Mobile Arena and PPG Paints Arena have the rink mapped inside the building (a rink-sized outline whose long side gives the heading and whose middle is the rink's), so their rinks lie as the ice does (`basis: "mapped"`), not as the building's main hall suggests. Of the thirty-two, three are mapped, eighteen inferred from the main hall and eleven not known. A venue's `osm.ice.source` can now be a relation.
- **The demo's venues page, the home page's featured arena, the gallery and the docs** list all thirty-two by division and conference (the Eastern Conference's two divisions are in the chooser, `venuesInConference("eastern")` has its sixteen, `VENUE_IDS` has thirty-two), and the fly-through page flies each of them.

## [0.31.0] - 2026-10-20

### Added

- **Seattle's stadiums** ([the real stadiums](./docs/stadiums.md), `stadium: "lumen-field"` and `park: "t-mobile-park"` with `crowd: { real: true }`): **Lumen Field** for football (`sport: "nfl"`, 68,740 seats) and soccer (37,722), and **T-Mobile Park** for baseball (`sport: "mlb"`, 47,368), each in the outline of its building as OpenStreetMap maps it, with the roof and a plausible bowl of the seats the sources give. A soccer drawing whose `ground` is `lumen-field` needs no `stadium`; any other sport, a `league` of your own and `crowd: { real: false }` are drawn as before.
- **Lumen Field.** OpenStreetMap maps both its pitches inside the building, lying north and south, so the field's orientation is mapped and not inferred. One bowl of three levels holds the 68,740 seats; a configuration opens its seats from the lowest bowl up (`bowlSeats`, `StadiumPlan.open`), so the soccer pitch closes the upper bowl and part of the middle one, drawn empty. Its roof is the article's canopy over 70 percent of the seats, drawn from the two roof parts OpenStreetMap maps (heights 36 metres, rise 10): strips of triangles from the low edge over the field's side to the high edge over the back of the stands, the bowl lowered to stand under it, the walls to just over the top row, the field and the ends open (`RealShell.roof: "canopy"`, `canopies`).
- **T-Mobile Park, a ballpark.** The usual ballpark stands (`parkLayout`) with each band as deep as its seats need (`planPark`): the Main Level's 20,521 seats the lower bowl, the Club, Suite and View levels' 22,075 the upper, the bleachers' 3,666, all from the article's layout, held to within two percent of 47,368. OpenStreetMap maps the infield but not home plate, so the way out to centre field is the one of the four the infield allows where the park's fence and the stands behind it lie inside the building's outline: 49.4 degrees, north-east (the build refuses to choose where the outline does not decide). The roof is the article's retractable one in four sections, 217 to 269 feet over the field, far over the 21-metre walls: closed, a band to a crown with the fabric across it; open (`roofOpen`), the sections rest over the east side, over the railway where the article says they rest (`RealShell.roof: "panels"`, `panels`, `wall`).
- **The district takes any of them** (`districtMember`, `planDistrict`): a ballpark's key is a venue (`t-mobile-park`, its one configuration `mlb`), its drawing turned about home plate by the heading of the way out to centre field (`stadiumFrameHeading`), and a stadium with several configurations takes the one named (`lumen-field:soccer`). Seattle is two presets of the demo's district page: `["t-mobile-park", "lumen-field"]` as neighbours (459 metres apart, Lumen Field to the north) and, with `mode: "city"`, the same two and `climate-pledge-arena` (3.4 to 3.8 kilometres off) at their real distances, with a grid of kilometres and a name beside each.
- **Data, kept apart as before.** `pnpm stadiums:fetch` now takes the building, the pitches, the infield and the roof parts a stadium names (`osm` in `scripts/stadiums.data.json`) where OpenStreetMap does not tag them with the Wikidata item, joins the outer ways of a relation into one ring, and puts a stadium added later beside the ones already archived; `pnpm stadiums` makes the data files and refuses a figure the sources do not give (a tier's seats not in the article, pitches that do not lie the same way, an outline that does not choose the way out to centre field). The raw answers are in `data-sources/stadiums/2026-10-20/`.
- **The demo's stadiums page** has the three stadiums as tabs and each one's configurations, with the facts of its roof; its district page has the Seattle presets. **The docs** have a section for each stadium, a Seattle section in [the district page](./docs/district.md) and items in [the gallery](https://johnmorrisdotca.github.io/kyogijo-stadiums/docs/gallery-stadiums.html).

### Fixed

- The 3D view gave two bands of a ballpark's bleachers (the left and the right) the same plane ids (`bleachers-front-0` for both); a second strip's planes now have an id of their own.

## [0.30.1] - 2026-10-20

### Added

- **A picture of the fly-through** in the README and in [its page](./docs/flythrough.md): the whole run to Climate Pledge Arena, sped up, as an animated WebP in a light and a dark variant (`turning-flythrough-desk-<light|dark>.webp`, 40 frames, about 300 KB each; `pnpm screenshots:flythrough` makes it from the demo's page by `seek`, without waiting on a clock).

## [0.30.0] - 2026-10-20

### Added

- **The fly-through ends on a game** (`game`, the sixth stage, after `rink`): a short play comes onto the ice while the rink goes on turning from the seat, with a label on the picture that says `Illustrative play`. It is a [replay](./docs/replay.md) timeline of the package's own (`ILLUSTRATIVE_PLAY`, entry `@johnmorrisdotca/kyogijo-stadiums/flythrough`): 101 frames a tenth of a second apart, five skaters and a goalie a side (shirt numbers only, no name, team or league), a puck, two passes, a shot and a goal, and the dots, numbers, trail and events are drawn by the replay's own layers (`replayLayers` through `renderLayers`). It is made up for the picture and says so on the screen, in the stage's words (English and Japanese) and in the docs; it is no real game's data.
- **The play lies on the floor of the 3D arena**: a plane that takes the floor's own transform after each paint and stands in the floor's layer of the stack, so the glass, the boards and the stands in front of the ice hide it as they hide the ice. It runs ten seconds, holds one and a half, fades out and starts again (the dots never jump back in view); its moment is worked out from the clock and not from the turn's folded time, so it does not jump when the turn comes round. A reader who prefers reduced motion gets the moment after the shot as a still.
- **The camera has one more channel** (`game`, how much of the play shows), still one path with no jumps; `playMarkup(moment, { id })`, `playAlpha`, `playMoment` and `PLAY_LOOK` are the rest of the play's API, pure and the same every time. `cameraAt` is a good deal faster (the path's tables are made once).
- Tests for the play (thirteen objects a frame, all on the ice, no skater faster than 40 feet a second and none that jumps, the puck on the stick of whoever has it, the events in order, the same markup for the same moment, no label of a team or a league, said to be made up in both languages) and, in a real browser, that the play is on the ice from the game stage on only, lies where the floor lies at every frame, and its dots move.

## [0.29.0] - 2026-10-20

### Added

- **The real venues of the Central Division**: the United Center, the Ball Arena, the American Airlines Center, the Grand Casino Arena, the Bridgestone Arena, the Enterprise Center, the Delta Center and the Canada Life Centre, drawn the way the Pacific Division's were: the outline of the building from OpenStreetMap (read on 2026-10-20), a plausible bowl of the seats, tiers and roof the sources give, each fact labelled `documented` or `plausible`. With the Pacific Division that is sixteen arenas, the Western Conference's. The Grand Casino Arena is the first of three seating tiers (its article counts four levels, one of them suites) and its building is a relation of two ways in OpenStreetMap; the Canada Life Centre's lower bowl has the 8,812 of its 15,225 seats its article gives. The rink's orientation is inferred from the main hall for twelve of the sixteen and not known for four (the Ball Arena is the new one); none is mapped. A Wikidata capacity for ice hockey that changed over the years (the Grand Casino Arena's 18,064 from 2000 and 17,954 from 2012) is read as the latest. The Eastern Conference follows.
- **Divisions and conferences in the data and the API**: every venue has a `division`, `VENUE_DIVISIONS` and `VENUE_CONFERENCES` give the league's order, and `venuesIn`, `venuesInConference` and `conferenceOf` list and place them. The raw reads are kept per division (`data-sources/venues/<date>/wikidata-<division>.json`, `wikipedia-<division>.json`, which now also keeps the infobox's capacity line, and `osm-<arena>.json`; `pnpm venues:fetch <date> <division>`), and `pnpm venues` also writes the table of `NOTICE.md`.
- **The 3D view's walls and roof apart**: `venue: { walls, roof }` (`walls` follows `roof` when it is left out, so the old `roof: true` is unchanged), and `turn.update(options, { venue })` changes them on a view that is mounted, which goes on turning from where it is.
- **The demo's venues page by division**, with a conference and division chooser, and **the controls on the view**: the stands, walls, roof, building, markings and labels are buttons beside the view (they never stop or restart the turn: the first three draw the scene again through `update`, the others are a style), flat or 3D, the view's own viewpoints, turn, tilt, zoom and Play under it (the 3D view turns by itself when it opens), a compact scrolling bar on a phone, and the choice in the address (`?stands=0&walls=1&roof=1&building=0&markings=0&labels=0&viewpoint=end&spin=off`; an old `roof=1` still means walls and roof).
- **The demo's home page leads with a real arena that turns by itself** (Climate Pledge Arena, any of the sixteen from a list), with the same buttons on it, in the address under `f` (`fv`, `fstands`, `froof`...), and links to the venues page, the tournament layouts in 3D and the judging page's broadcast view.
- **Two moving pictures at the head of the README** (a real arena and a tournament layout turning once round, animated WebP in a light and a dark file, 0.5 to 0.8 MB each) and a "Look at these first" table with one picture of the real venues, the tournament layouts, the judging broadcast view and the combat sports; the other pictures of those sections are on their docs pages. `pnpm screenshots:animation` makes the moving pictures from the demo (`scripts/readme-animation.mjs`, frames from Playwright and the few lines of RIFF in `scripts/webp-animated.mjs`, no other tool). The README lint (`scripts/readme-lint.mjs`) gives a `turning-*` picture a budget of its own and counts a picture a docs page shows as used.

### Changed

- The fly-through demo page's arena tabs (now the sixteen venues) are one row that scrolls on a phone, so that the view stays in sight.

## [0.28.0] - 2026-10-20

### Added

- **The fly-through goes into the bowl** (`bowl` and `rink`, two stages after `arena`): the roof lifts away, and the camera comes in over the stands, tipping lower and nearer and through a shorter lens, to a seat's viewpoint inside the bowl, from where the rink turns. The 3D arena's own `lens` setting does it (a long lens from outside, about 1 from the seat, so that the eye is inside the building and the bowl has a real perspective), and the roof is dissolved with a CSS `filter: opacity()`, so that it composes with the 3D view's own cutting away of the walls. The seat is a place and a height of our own choosing (a pitch, a zoom and a lens, `seat` of `flightPlan`), said to be so, never a real seat; the bowl's words give the venue's seats and tiers.
- **The camera has two more channels** (`logLens`, `roof`), still one path with no jumps: the turn slows from the arena's 12 degrees a second to the rink's 8 and never stops or reverses; the lens, the roof, the zoom and the tip change in one direction only on the way in. `flightPlan` takes `seat` and `rinkTurn`; `PACE` has the seconds of each part; the path now ends on the rink turning.
- Tests for the way in (nothing reverses, the seat is reached where the rink stage starts, the stage stills show the roof lifted and the seat's view) over fourteen lists of stages, and in a real browser the four corners of the rink are followed on the screen at 30 frames a second, from outside and from the seat: each moves a little a frame and none falls behind the eye.

## [0.27.0] - 2026-10-20

### Added

- **BC Place, a real stadium** (`stadium: "bc-place"` with `crowd: { real: true }`, [the real stadiums](./docs/stadiums.md), entry `@johnmorrisdotca/kyogijo-stadiums/stadiums`): the stadium of Vancouver drawn in the outline of its building, as OpenStreetMap maps it, for **football** (`sport: "cfl"`, the 150 by 65 yard field with its 20-yard end zones, 54,500 seats) and for **soccer** (`sport: "soccer"`, the international 105 by 68 metres, 52,497 seats), the same building and bowl for both. A soccer drawing whose `ground` is `bc-place` needs no `stadium`. Any other sport, a `league` of your own and `crowd: { real: false }` are drawn as before.
- **Level one, the building and the field.** The outline is the closed way OpenStreetMap tags with the stadium's Wikidata item (read on 2026-10-20, simplified to a metre). OpenStreetMap also maps the roof as a band with an opening in it, which the article says is the field's size (100 by 85 metres; mapped 101.8 by 85.3): the field lies along that opening, 52.8 degrees from north, which the building's own main hall agrees with to a few degrees, and a small arrow says where north is.
- **Level two, the bowl.** The configuration's seats in two bowls between the first row (the package's gridiron distances from the field) and the building's wall, the lower bowl holding the infobox's 27,695 seats in both configurations and the upper bowl the rest; a bowl that fits holds exactly the configuration's seats (football's 54,500 need 3.4 square feet of floor a seat, soccer's 52,497 need 3.8). Never a seat map; no mark of a club, a league or a tournament.
- **The cable roof, in 3D** (`venue: { roof: true }`): the roof the article describes, retractable and supported by cables. Its rim stands where OpenStreetMap maps it (48 metres), the roof rises 13 metres to the opening, each piece carries a cable, and over the opening lies the fabric (thin, so the seats show through) with the pod in the middle; `venue: { roof: true, roofOpen: true }` gathers the fabric into the pod. `RealShell.roof` has a third kind, `cable`, with a `crown`.
- **A district** (`drawDistrict`, `buildDistrictTurn`, `mountDistrictTurn`, [a district of venues](./docs/district.md), entry `@johnmorrisdotca/kyogijo-stadiums/district`): several real venues of one city on one plan at their real relative positions and orientations, read from the same OpenStreetMap outlines, rotatable together in 3D with the steady camera and drawn in 2D too. It is generic: `venues` is any list of keys (`rogers-arena`, `bc-place`, `bc-place:soccer`), the plan fits itself to them, and `mode` says how: `neighbours` (the default) tight round buildings a few hundred metres apart, with a grid of 100 metres, or `city` at the real distances, with a grid of kilometres and a name beside each venue. `turn` turns the map (`"auto"` lays its long way across the page), `labels` writes the names, and the distance between each pair of middles is in `plan.between`.
- **Buildings stacked building by building.** The 3D view stacks planes by the depth of their middles, which put the roof of a far building over the wall of a near one. A model may now name its buildings (`TurnModel.groups`, `Plane.group`): one building is in front of another when a line can be put between them and the eye is on its side of it (`groupRanks`), the far one drawn first; a model that names none is stacked as before. For BC Place and Rogers Arena depth alone got 56 of 168 views wrong; grouped, none.
- **The demo's pages**: `stadiums.html` (both configurations in 2D and 3D, the roof closed or open, the facts listed) and `district.html?venues=bc-place,rogers-arena` (venues to choose, neighbours or a city, turned or north up, names, 2D or 3D), English and Japanese, light and dark; the venues page links to both. **The docs** have [a page](./docs/stadiums.md) for the stadium, [a page](./docs/district.md) for the district and [a gallery](https://johnmorrisdotca.github.io/kyogijo-stadiums/docs/gallery-stadiums.html) of both.
- **ODbL data kept apart**, as for the venues: what OpenStreetMap gave (outline, roof heights, opening, axis) is only in `src/stadiums.osm.data.ts` and `data-sources/stadiums/`; the facts (seats of each configuration, bowls, roof kind and opening size, each with its article and revision) are in `src/stadiums.data.ts`. `pnpm stadiums:fetch` fetches politely, one request at a time; `pnpm stadiums` makes the data files and the docs' table and refuses a figure the sources do not give. The credit `VENUE_ATTRIBUTION` is in every description.

## [0.26.0] - 2026-10-20

### Added

- **The fly-through** (`mountFlythrough`, [the fly-through](./docs/flythrough.md), entry `@johnmorrisdotca/kyogijo-stadiums/flythrough`): one smooth camera from a map to a real arena. It starts on a map drawn with chizu (handed over as `start: { map, draw, project }`, so the package keeps no dependency; a plain graticule without one), falls to the city and to the building of the arena as OpenStreetMap maps it, and the building rises into the 3D arena, which tips to the sport's main camera and turns. `mountFlythrough(host, { arena, start?, stages?, language?, theme? }, settings?)` gives back `play`, `pause`, `toggle`, `next`, `back`, `goTo(stage)`, `seek(seconds)`, `camera()` and `destroy`. This first release ends on the turning arena; into the bowl, down to the rink and a game on it are the next ones.
- **One path, no jumps.** The camera is ten numbers (how far in, where the arena stands on the screen, how far the map is turned, how much of the map, the plan and the arena shows, the 3D view's turn, tip and zoom), each running through the path's keyframes as a monotone cubic: smooth at every keyframe, still at the start, never overshooting a layer's share. The map's viewBox is true to the ground round the arena and turned to the venue's own orientation as it comes in; the plan hands over to the 3D arena at the same size and place, measured in the stage as it is. `flightPlan`, `cameraAt` and `stageAt` are the path as plain numbers, pure and testable in Node.
- **Controls and reduced motion.** Back, Play or Pause (the clock eases to a stop), Next and a button for each stage; Space, the arrows, the number keys and Home; a skip glides along the path and does not cut. A reader who prefers reduced motion gets each stage as a still (the map, the plan, the arena at the main camera), Next, Back and the stage buttons show the next still at once, and Play steps through them every five seconds.
- **The demo's fly-through page** (`flythrough.html?arena=honda-center`): each of the eight venues, English and Japanese, light and dark, desk and phone, with the OpenStreetMap credit under the stage. No word is stretched (the words are HTML over the layers) and no team's or league's mark is drawn.
- Tests that walk the path at 60 frames a second for every list of stages (no step, no jump of speed), check that every stage is reachable, that the stills show one layer whole, and, in a real browser, that the pin, the plan and the 3D floor never jump on the screen at 30 frames a second and are the same size where they hand over.

### Fixed

- The shared background module in `scripts/` (tooling for the demo and the README pictures; the package ships none of it) is now the family's version 1.0.1: the `id` it is given is made safe (letters, digits, `_` and `-`; `bg-` in front of one that does not start with a letter) before it is written into element ids and `url(#...)`. `test/family-backgrounds.test.ts` draws every preset with hostile ids.

## [0.25.0] - 2026-10-20

### Added

- **The real venues** (`crowd: { real: true }`, [the real venues](./docs/venues.md), entry `@johnmorrisdotca/kyogijo-stadiums/venues`): an NHL arena drawn in the outline of its building, as OpenStreetMap maps it, with the rink lying in it and a plausible bowl of the seats, the seating tiers and the roof the sources give. The first step is the eight arenas of the Pacific Division: the Honda Center, the Scotiabank Saddledome, Rogers Place, the Crypto.com Arena, the SAP Center, the Climate Pledge Arena, Rogers Arena and the T-Mobile Arena. An arena with no venue is drawn with the usual stands, as before; so is any other sport, and a drawing with a `league` of its own.
- **Level one, the building.** The outline is the closed way OpenStreetMap tags with the arena's Wikidata item, read with the Overpass API on 2026-10-20 and simplified to a metre. The drawing is turned so that the rink lies along the page where the building says how it lies, and a small arrow marked N says where north is; the rink's orientation is inferred from the building's main hall (the largest rectangle that fits its outline) for five of the eight, and not known for the three whose building has no direction (drawn east-west with north at the top and no arrow); OpenStreetMap maps the ice in none of them.
- **Level two, the bowl.** The venue's seats for ice hockey, in its number of tiers, between the first row and the building's wall: each tier's outer edge is placed so that its band holds its share of the seats (a lower bowl of 56 percent, or the share a source gives: two thirds in the Crypto.com Arena), with a walk between the tiers and rows no steeper than 36 degrees, and a bowl that fits holds exactly the venue's seats. A building too small for them gets a steeper bowl (the Rogers Arena's), and `fit` says `tight` where even that is not enough. The 3D view raises the tiers as solid raked planes, and with `venue: { roof: true }` the building's walls and its roof: a lid, or the Saddledome's saddle (high at the two ends of the rink, low at the two sides). A neutral crowd, no visitors' block and no mark of a team or a league; never a seat map.
- **Facts with their sources.** `VENUES` holds, for each venue, its seats (Wikidata's figure for ice hockey where its item has one, else the English article's), its number of tiers and its kind of roof, each with whether a source says it (`documented`) or it is ours (`plausible`) and what was read, with the article and revision. Wikidata has no tiers and no roof for any of them; the articles say the Saddledome's roof, the Climate Pledge Arena's, and the tiers of three. `planVenue`, `venueBowl`, `venueOrientation`, `bowlInside` and `venueById` are the rest of the entry.
- **ODbL data kept apart.** What OpenStreetMap gave (outline, height, the axis worked out from it) is ODbL 1.0 data, "(c) OpenStreetMap contributors": it is only in `src/venues.osm.data.ts` and `data-sources/venues/`, offered under the ODbL with the credit `VENUE_ATTRIBUTION`, and the description of a drawing made from it carries the credit. The facts are in `src/venues.data.ts`, CC0 and facts of English Wikipedia articles, and share nothing with it. The raw answers are kept as they were returned, dated (`pnpm venues:fetch` fetches them politely, one request at a time; `pnpm venues` makes the two data files and the table of the docs from them).
- **The demo's venues page** (`venues.html`): each of the eight in 2D and in 3D, the four viewpoints, the roof and walls, light and dark, English and Japanese, with what the drawing is made from listed under it. **The docs** have [a page](./docs/venues.md) and [a gallery](https://johnmorrisdotca.github.io/kyogijo-stadiums/docs/gallery-venues.html) of the eight.
- `CrowdOptions.stands: false` draws no seats (of a real venue only its building and the arrow): what the 3D view's floor needs under the stands it raises.

## [0.24.0] - 2026-10-20

### Added

- **A board over a surface** (`board` in the options of a drawing and of the 3D view, [boards over a surface](./docs/boards.md)): a results board, a bout presentation or a medal table that another package drew (Taisen Brackets', say) is taken as an SVG string with its size and laid over the surface. The package draws no board and imports none: the SVG is written as one image, which cannot run anything, never changed and never stretched (its own shape is kept, so no letter is stretched).
- **Placed by name or by point.** `position` is `top` (the default), `bottom`, `side` (the right edge), `left`, `corner` (the top right), `top-left`, `top-right`, `bottom-left`, `bottom-right`, or a point of your own, `{ x, y, anchor? }`, as shares of the drawing. A named position keeps to its edge, one margin in, and is made smaller, never moved, where it would reach into the middle of the surface (`BOARD_CLEAR`, a third of the width and height, where the score's panel stands), so the middle is never covered unless `cover: true` or a point of your own says so. `share`, `margin`, `opacity` and a `label` for assistive technology are options; `BOARD_POSITIONS` and `placeBoard(board, box)` are exported.
- **In 3D the board is a layer over the view, not a plane**: it does not turn, tip or zoom with the surface, never takes the pointer (a drag on it turns the view), is a share of the view's width in its own shape, and its height is held to what keeps the middle of the view clear. `update` replaces it and keeps the view's turn; where the browser cannot draw in 3D the flat drawing is shown with the board on it.
- **A compact card** takes the board over its surface and not over its strip; **a badge** takes none. A drawing with no board, or with a value that is not a board, is the same text as before.
- **The demo's boards page** (`boards.html`): a swimming final over the pool, a bout over a judo mat, a 100 m final over the athletics stadium, speed skating over the oval and a medal table in a corner, in 2D and 3D, with the position, the width, the opacity and a point of your own in the address, in English and Japanese. **The docs** have [a page](./docs/boards.md) and [a gallery](https://johnmorrisdotca.github.io/kyogijo-stadiums/docs/gallery-boards.html) of every position, how large a board may be, covering the middle and dark and Japanese.
- Taisen Brackets 0.17.1 is a development dependency, for the demo's and the gallery's boards (`pnpm boards` writes `demo/boards-data.js`); it is not imported by the package.

## [0.23.0] - 2026-10-20

### Added

- **The professional wrestling ring** (`sport: "prowrestling"`, [the combat sports page](./docs/combat.md)): the boxing ring's engine with three ropes that are not tied together, a canvas with an apron of a foot, a platform of 40 inches, four padded posts and steel steps at two corners. No rulebook gives a wrestling ring's figures, so every one is typical and says so: most rings are 14 to 20 feet a side between the ropes, 20 feet drawn (`budo.size`, 4.27 m to 6.10 m); the ropes are at about 1, 3 and 5 feet; the platform (`budo.height`) is 0 to 6 feet. The sources (English Wikipedia's "Wrestling ring", Dimensions.com and a 2012 description of a large promotion's ring) differ, the page says where, and the figures that cannot be right (an 8 foot top rope, posts of 9 to 10 feet) are not used. The league is `pro-ring`, the looks are the boxing ring's, `RANGES.prowrestling` has `ropes` and `half`, and in 3D the ring stands as the boxing ring does with three ropes and no ties. It is the forty-third sport.
- **A figure of a ring is now the league's:** `RingFigures` carries whether the ropes are tied and whether the corners are the boxers' (a boxing ring's are, a wrestling ring's are not), and the number of sets of steps.
- **The demo** has the ring in its sport picker, with its looks, the score and the 3D view.


## [0.22.0] - 2026-10-20

### Added

- **The wrestling mats** (`sport: "wrestling"`, [the combat sports page](./docs/combat.md)): the UWW's mat (freestyle, Greco-Roman and women's wrestling are wrestled on the same one: a circle of 9 m with a protection area of 1.5 m, an orange passivity band of 1 m inside the circle, a central circle of 1 m, a platform of 0.80 to 1.10 m), the NCAA's folkstyle mat (a competition circle of 32 to 42 feet with a 2 inch line, a matted area of at least 5 feet, two starting lines closed by a green and a red line) and the high schools' (a circle of at least 28 feet, a safety mat of about 5 feet, the circle of 10 feet, optional from 2024-25, the same starting lines), to scale. The leagues are `uww`, `ncaa-wrestling` and `nfhs-wrestling`; `budo.size` (the circle), `budo.height` (the platform), `budo.circle` and `budo.start` stay within each league and refuse a number outside it; the looks are `blue-red`, `green-beige` and `yellow-blue`; `RANGES.wrestling` has `start`, `passivity` (the UWW's) and `half`. In 3D the UWW's platform is a solid block with the mat as its top, and a folkstyle mat lies on the floor. A figure that is the rule's, one that is typical and one that is ours are told apart in [Sources](./docs/sources.md#the-combat-sports). It is the forty-second sport.
- **The demo** has the mats in its sport picker, with their league and looks, the score of a bout and the 3D view.


## [0.21.0] - 2026-10-20

### Added

- **The boxing ring** (`sport: "boxing"`, [the combat sports page](./docs/combat.md)): a square raised platform with its canvas, four ropes that turn to a post at each corner by an extension, the posts and their pads in red, blue and white, an apron and three sets of steps, to scale from the Nevada Rules of Unarmed Combat (2.050), Wisconsin's SPS 192.38 and the WBC Amateur rules, with Ontario's amateur rules beside them. The leagues are `nruc-ring` (20 feet within the ropes), `wisconsin` (16 to 20 feet) and `wbc-amateur` (4.5 to 6.1 m); `budo.size` and `budo.height` stay within each league's range and refuse a number outside it, `budo.steps` and `budo.corners` take the steps away and make the corners plain; the looks are `white`, `blue` and `black`, light and dark. `RANGES.boxing` has `ropes`, `corner` and `half`; the parts are named for `landmarks` and the features for `featureColors`, in English and Japanese. A figure that is the rule's, one that is typical and one that is ours are told apart in [Sources](./docs/sources.md#the-combat-sports). It is the forty-first sport.
- **The ring in 3D:** the platform is a solid block as the cage's is, the four posts are solid in their corner's colour at 58 inches over the ring floor, each of the four ropes is a thin round bar along each side and out to its post at each corner so that the canvas stays in sight, two ties a side hold the ropes in line, and the steps are three blocks each. Tests hold the order the parts are drawn in from every side, the size of the view as it turns and the scene inside its box at every angle.
- **The demo** has the ring in its sport picker, with its league, its looks, the score of a bout and the 3D view.


## [0.20.0] - 2026-10-20

### Added

- **The MMA cage** (`sport: "mma"`, [the combat sports page](./docs/combat.md)): an eight-sided fenced area on its platform, to scale, from the Nevada Rules of Unarmed Combat (5.010 3) and the IMMAF's rules for amateur competition: 20 to 32 feet across the flats (`budo.size`, 30 feet drawn and 25 feet the smaller cage), a platform of at most 4 feet (`budo.height`) with steps up at each gate, a fence of 5 to 7 feet (`budo.fence`, 6 feet drawn), eight padded posts, two gates opposite each other and a canvas over foam, with a grey, a black and a blue look in light and dark. The leagues are `nruc` and `immaf`; `RANGES.mma` has `cage`, `gate` and `half`; the parts are named for `landmarks` and the features for `featureColors`, in English and Japanese. The cage is named for what it is, an eight-sided cage: no promotion's name or mark is used. It is a sport of the package (40 now), with `SPORTS`, a unit of feet, no home side, a badge glyph, a crowd profile and its sources in `LEAGUE_SOURCES` (the figure of the rule, the figure that is typical and the figure that is ours are told apart).
- **The cage in 3D** (`buildTurn({ sport: "mma" })`): the platform is a solid block (four sides to the floor of the hall and a top that is the drawing's own canvas, lifted), the fence is wire mesh on each of its eight flats with a pad along the top and the foot so that the canvas stays in sight, and gives way to an eye that has it in front of the cage, the posts are solid, the gates are frames of padded rails, and the steps are three blocks each. Tests hold the order the parts are drawn in from every side, the size of the view as it turns and the scene inside its box at every angle.
- **The demo** has the cage in its sport picker, with the looks, the cage's width (30 or 25 feet, `cagesize` in the address), the score of a bout and the 3D view; the docs have a page for it and a gallery of its own.

## [0.19.0] - 2026-10-20

### Added

- **A broadcast view of a judging assignment** (`view: "broadcast"`). The mat large and prominent as a television would show it, 16:9, with the officials superimposed on a board at its side: the package's own score panel drawn for officials (the same dark rounded plate, the mat's name where a score panel has the competition, column heads, a row for each seat with its number on the round badge the seats wear, the name on a coloured chip, the ID where a score would be, and the style at the foot). The board lies beside the contest area and never over it (a test holds the board clear of the mat's picture and of the middle of the contest area for kata and shiai, a bench close up, six long names, and every width), the seat badges stay on the seats, and the whole picture scales evenly: no text is stretched (a test: every font size is in proportion at twice the width). A mat takes a `line` (`Round 2`, `Pool B`, at most 60 characters) shown before the style at the board's foot. `drawJudging` draws it in 2D; `mountJudgingBroadcast` mounts the 3D view from the Broadcast camera with the board laid over it (a share of the view's width so it scales with it, under the view where that is narrower than 640 px, and never taking the pointer); `judgingBoard` is the board alone for a page of your own. Light and dark, English and Japanese. The demo opens it with `?view=broadcast` (3D) or `?view=broadcast&dim=2d`.
- **Printing the plan-and-chart layout** (`judgingPrint`, `judgingPrintSheets`, `judgingPrintStyle`, `JUDGING_PAPER`). One mat to a page on A4 or US letter, portrait or landscape, in the light colours, the picture scaled evenly to the page and anchored at its top; `judgingPrint` is a whole HTML document that opens as the pages on a grey desk and prints as they are (Save as PDF for a file). The demo has a "Print or save as PDF" button with a choice of paper (`?paper=letter`).
- `JudgingDrawing.boards` (where each mat's board, the part of the mat shown and the middle of the contest area are), `matLine`, `KYOGIJO_JUDGING_BOARD_STYLE`, `KYOGIJO_JUDGING_BROADCAST_STYLE`, `BOARD_BASE`, `BROADCAST_RATIO`, `boardFoot`.

### Fixed

- **A box with the picture's words no longer pops up over the mat.** A `<title>` that is a direct child of the root `<svg>` is the browser's tooltip for the whole drawing, so resting the pointer on the 2D plan showed "Judging assignments: Kata, 5 judges, 2 mats" in a box on top of the mat, and on a score on a surface "Mexico 11, USA 10, Final" over its top left. A judging picture now keeps its title and description in a `<defs>` (the picture is still named by them: `aria-labelledby` points at them), and the demo's pages move the title of every drawing they show into a `<defs>` the same way (`demo/quiet.js`); a surface's own markup is unchanged byte for byte, so a page that wants no tooltip does the same with its drawings.

- **Chart lines stay inside their rows in a wide face.** The chart's name and ID lines were fitted to an estimate of the face's width, and in a wider face (Verdana on Windows, DejaVu Sans on Linux, where the demo's browser test of 0.18.1 failed) the last words of a long name crossed the row's right edge by a few pixels. The chart now fits its lines to 94 % of the room, and a browser test sets the board and the chart in Verdana and DejaVu Sans.

### Changed

- The plan view of a judging assignment moved its title and description into a `<defs>` (see above); everything else it draws is as it was. The plan's drawing code is in `judging.plan.ts` and the words in `judging.text.ts`, shared by both views.

## [0.18.1] - 2026-10-20

### Changed

- **The seats show their number, and the names are in the chart.** By default every seat of a judging assignment is a large round numbered badge (the chart's own), in 2D and in 3D, and the chart beside it is the key (`chart: "auto"` now always draws it, unless `seatNames` is on and every name fits). Putting the names on the seats is the new option `seatNames: true` (off by default), which sets them in the chart's own face and weight, scaled evenly, in the biggest size that fits and never below a readable floor, and falls back to the number alone when a name does not fit. The demo has a "Names on the seats too" box (`seatnames=1`).

### Fixed

- **Nothing is squeezed or stretched in a judging picture.** The 3D badges, cards and the mat's sign stood upright, so a tipped view foreshortened them and their type looked squeezed: they now lean back to face the eye squarely (`Plane.lean`, turned and never stretched), at every viewpoint. A test measures each one's shape on the screen against its own, and that no text anywhere has `textLength`, `lengthAdjust` or a two-number `scale`.
- **The tapes of a judo area were hairlines.** The kata area's centre and starting tapes (5 cm by 50 cm) and a contest area's two start tapes, and the sumo's shikiri-sen, are drawn at least 0.75 % of the plan's width across (10.5 cm on a kata area's 14 m, about 4 pixels on a plan 560 pixels across) unless `exactLines: true`, which draws the rule's 5 cm. The floor is a readability aid, not a measurement: a tape's length is always the rule's, and it is widened about its middle. In 3D (the same floor) and in tournament layouts too.

## [0.18.0] - 2026-10-20

### Added

- **Shiai judging assignments** (`style: "shiai"` of `@johnmorrisdotca/kyogijo-stadiums/judging`). A contest area's officials by seat, with a name and an ID, drawn as the kata area's are (a card in the seat where the name fits, the chart of seat, role, name and ID that never cuts a name, 2D and 3D, light and dark, English and Japanese, `mat`, `focus`, `chart`, `orientation`, `judgingTable`). From the IJF Sport and Organisation Rules of 21 January 2026: **the referee**, on the tatami at its centre 2 m back from the line the athletes start on, facing the technical table (Article 9; the Refereeing Rules' Article 2); **the timekeeper and the scorekeeper**, the two technical officials a tatami should have for timing and scoring (the Refereeing Rules' opening article); **the referee supervisor**, on the technical table with the CARE replay system (the same article); and **two side judges**, for an event with no CARE system (Article 13, 5), drawn only with the new `sideJudges: true` or when a mat names them. Which chair at the table is whose, the side judges' places (two opposite corners of the contest area, 2 m out: the Rules give none), the chairs, the table and the cards are ours. In the close-up of the bench (`focus: "bench"`) only the table's seats are drawn and the referee's and side judges' names are in the chart; in 3D the referee's and a side judge's cards stand on posts. Seat words: `referee`, `timekeeper`, `scorekeeper`, `supervisor`, `side-judge-1`, `side-judge-2` (or their numbers 1 to 6, or `judge-1`, `scorer`, `jury`...). The demo, [judging assignments](https://johnmorrisdotca.github.io/kyogijo-stadiums/judging.html), has a Style choice (`style=shiai`), the side judges' checkbox and a row in its editor for each seat; the docs have [a section](./docs/judging.md#the-seats-of-a-contest) and the gallery [a contest](https://johnmorrisdotca.github.io/kyogijo-stadiums/docs/gallery-judging.html#shiai).

### Changed

- `JudgingStyle` is `"kata" | "shiai"`; `JudgingSeat` has `where` (`table`, `mat` or `corner`) and `optional`, and its `role` the contest's roles; `seatsOf(style, "listed")` leaves out the optional seats; `judgingPlan(style, count)` gives each mat's `places` (a chair and a card for each seat, in metres) and its bench; `fitSeats` takes a box for each seat. A kata assignment draws byte for byte what it did.
- `JudoLayout` (the judo plan) also gives `desks` (the technical tables) and `free` (the free zone), as data only: no drawing changes.

## [0.17.0] - 2026-10-20

### Added

- **Judging assignments** (`@johnmorrisdotca/kyogijo-stadiums/judging`: `drawJudging`, `judgingChart`, `judgingTable`, `judgingDrawing`, `mountJudgingTurn`, `judgingTurnMarkup`, `buildJudgingTurn`). Who judges where at a judo tournament: `{ style: "kata", mats: [{ label, officials: [{ seat, name, id }] }] }` gives one SVG for a tablet read live: for each of 1 to 6 mats the judo kata area with a badge at each of the five judges' seats (the seats are the plan's own, 1.25 m apart, the central judge at the centre), the name and the ID in a card in the seat where they fit, and beside the plan (landscape) or under it (portrait) a chart of seat, role, name and ID whose rows grow until every name (up to 120 characters) and ID (up to 64) is whole; a seat with nobody in it says so. A name fits a seat only at a type no smaller than 1.2 % of the picture's width; the cards of a mat share one size; `chart` is `auto` (drawn when a name does not fit, the plan first being given the room the chart would take), `always` or `never`; `mat` draws one mat alone (a tab); `focus: "bench"` shows the judges' bench close up so that the names are as large as they can be. In 3D the judges' table and chairs stand on the judo floor, a name card stands on the table in front of each judge and turns to face the eye, and the mat's name is on a sign over it (`focus: "bench"` fits and turns the view about the bench; the chart goes beside it). Light and dark, English and Japanese, a title and a description that name every seat, and `judgingTable` as a table. The numbering of the seats (1 to 5 from the left of the plan, the central judge 3), the cards, the chart and the heights in 3D are ours: no rule gives them. Data stays with the caller: nothing is fetched, stored or sent; every text is made safe and held to its length. Docs: [judging assignments](./docs/judging.md) and [a gallery](https://johnmorrisdotca.github.io/kyogijo-stadiums/docs/gallery-judging.html). Demo: <https://johnmorrisdotca.github.io/kyogijo-stadiums/judging.html> (a tab for each mat, editable names and IDs kept in its address). Shiai (a referee and judges by the IJF's refereeing positions) is the next release.

### Changed

- `TurnModel` has an optional `lens`, a lens of the model's own used when the settings give none (a view of several benches at once has a longer one); the helpers `box` and `rect` moved from `multi.turn.ts` to `turn.kit.ts`; the 3D view's stylesheet carries the colours and rules of a judging assignment's cards (`--ky-ju-*`, `u-card*`, `u-sign*`, `u-bench*`); `UprightKind` has `judges` and `PartKind` has `card` and `sign`.

## [0.16.1] - 2026-10-20

### Added

- **Sample content for a tournament layout** (`drawMulti({ sample: true })`, or `sample: { event, year, city }`). The places for the event's words and marks are filled as an event would dress them: an invented event name, year and city on the floor and the boards ("Kyogijo Open 2026 · Osaka", in Japanese `競技場杯 2026 · 大阪`) and, in each logo place, a simple emblem of the package's own (a ring with a star, a diamond or waves), in place of the dashed empty places. Nothing real is named or drawn: no event, brand, federation, sponsor or league (a test holds every preset in both languages to that). Off by default, so a layout is still drawn as it is configured; with `slots: false` nothing is drawn. The 3D view carries it on its floor. New `MultiSample` and `MultiWords.sample`.

### Changed

- **The demo's tournament layouts page and every picture of a layout are dressed with sample content.** `halls.html` has a "Sample event content" box, on by default (`sample=0` in its address turns it off and brings the empty places back); the README's and the docs' pictures of layouts (three judo areas, four table tennis areas, the same four in 3D, the gallery) show the invented event, and one picture shows the empty places with a caption (what an organiser configures): `docs/images/multi-judo-empty-*`, `ONLY=multi-judo-empty` takes it. The README gives up some prose to stay under its size budget.
- **Docs only:** the gallery's table tennis text gives the surrounds' range (50 to 100 cm) of the ITTF Statutes 2026.

## [0.16.0] - 2026-10-20

### Added

- **A badminton court has the space round it drawn.** The BWF's Specifications for International Standard Facilities (Statutes 5.3.4, 2.1.3 and 2.2.3) ask for at least 2 m clear behind the baselines and 1.5 m clear from the side lines, so the court's free zone is that (17.4 m by 9.1 m round the 13.4 m by 6.1 m court), where it was none: the Laws of Badminton give no figure, which is why none was drawn. It is one figure for every tournament, so `net.free: "official"` and `"least"` agree, and `"none"` draws the court alone, as before. The 4 m between courts the BWF recommends at Grade 1 and 2 is the layouts' (`badminton-1x4`); the 1.5 m least between courts is `badminton-1x4-min`. The layouts draw the court alone in their bays (`net: { free: "none" }`), as before, since the bays are that space.

### Checked

- **The run-off of the other net sports is what their rulebooks give, and the tournament layouts are built from it.** Tennis (ITF Appendix X: 21 ft behind the baselines and 12 ft beside the side lines, so two courts side by side are 2 x 12 ft = 7.32 m apart, as `tennis-1x3` has them), pickleball (USA Pickleball 3.A.3: a playing surface of 34 by 64 ft recommended, 30 by 60 ft at least, edge to edge) and volleyball (FIVB Rule 1.1: 3 m all round at least, 5 m beside the side lines and 6.5 m behind the end lines in the FIVB's competitions; beach 3 m and 5 m; World ParaVolley's sitting court 3 m, and 4 m and 6 m) were compared figure by figure with their free zones and the `tennis-1x3` and `pickleball-*` bays; nothing needed changing. Volleyball has no layout preset: no source gives an event's arrangement.

## [0.15.0] - 2026-10-20

### Added

- **A table tennis table in its playing area.** The default drawing of `sport: "tabletennis"` is no longer a table on a generic floor: it is the table in the ITTF's playing area, from the Regulations for International Competitions (3.2.3, chapter 3 of the ITTF Statutes 2026, read on 2026-10-20): a space of 14 m by 7 m (5 m high), **enclosed by four dark surrounds** (50 cm to 100 cm high, all one dark colour, 3.2.3.3), **with the umpire's chair in line with the net, the assistant umpire's chair facing it across the table and the umpires' table beside the first** (3.2.3.2, 3.3.2.2), on a floor that is not light (3.2.3.8; both looks are dark blues and greens). New `net.area` picks the kind of event, `standard` (14 m by 7 m), `masters` (10 m by 5 m) or `wheelchair` (8 m by 6 m) (3.2.3.1), and `net.surrounds` and `net.umpires` leave the surrounds or the umpires out; `net.free: "none"` draws the table alone, as before, and `free: "least"` is the Masters area. In 3D (all viewpoints) the area has its own floor, the surrounds stand 75 cm round it (they give way to an eye low on their side, as every wall does) and the chairs and the table are solid blocks. New in `TableTennisFigures`: `space`, `surround`, `umpires`; the features `walls`, `umpires-table` and `chairs` can be restyled. Sizes the rules do not give (a chair 0.5 m, the umpires' table 1.2 m by 0.5 m, 0.9 m from the table, a surround 5 cm thick, 75 cm high) are ours and said so. Docs: [the table tennis playing area](./docs/courts.md#the-table-tennis-playing-area), with pictures.

### Changed

- **The tournament layouts' table tennis areas are that same space.** The bay of each table in `tabletennis-4` and `tabletennis-8` is `ITTF_TABLE.space.standard` (14 m by 7 m, the table in its middle), and the layouts draw the table alone in it (`net: { free: "none" }`: the layout draws the surrounds and the chairs of its bays), so the layouts are byte for byte what they were. A test holds the bay to the space.

### Fixed

- **The surrounds of a table tennis area are 50 cm to 100 cm high, not "about 75 cm", and the corners need no 1.5 m limit.** The layouts' rule text and the sources page quoted the Handbook of 2022; the current text (2025 and 2026) says "a minimum of 50cm and a maximum of 100 cm in height, all of the same dark background colour, but corners may be left open". The 75 cm drawn stays, as a choice of ours inside the rule. The 2026 Statutes are now the preset's source (`ittf-statutes-2026`); the 2022 Handbook's entry says it was superseded.

## [0.14.0] - 2026-10-20

### Added

- **The judo kata area, with its centre tape and its judges** (`budo: { style: "kata" }`, which says `league: "ijf-kata"`; `style: "shiai"` is the contest area, the default). From the IJF's Sport and Organisation Rules of 21 January 2026 (B1.8, the judges' article, B1.10), the Kata Commission's Tournament Handbook of 2024 and its Criteria for the Evaluation of January 2025: an area of 10 m (World Championships) or 8 m, a safety area of at least 2 m, two white tapes of 5 cm by 50 cm 3 m from the centre either side, **and now the tape of the same colour at the centre** (the area had the two only); with `officials`, **the five judges' seats 1.25 m apart on the shomen side, the central judge at the centre, with their table, and the coach's chair at the centre on the opposite side**, where the pair enters (a label says so), and no referee's place. A new `JudoFigures.centre` and `JudoFigures.panel`, four new labels (`centre-tape`, `kata-judges`, `coach-chair`, `kata-entry`, English and Japanese), the two sources in `LEAGUE_SOURCES`, 2D and 3D, light and dark. Docs: a kata section with two pictures in [the budō page](./docs/budo.md#the-kata-area); the gallery has the area with and without its judges. The rules do not say which tape is tori's and which is uke's, nor which way a tape lies, so none is assigned.

### Fixed

- **Two kata areas side by side are 2 m apart, not 4 m.** The kata area took the contest area's 4 m common safe zone, but the Handbook asks for "a common safety area of minimum 2 meters" between adjoining kata areas and B1.8 for a safety area "between and around the mat" of at least 2 m. `IJF_KATA.common` is 2 (`docs/variants.md` said 4).

## [0.13.0] - 2026-10-20

### Added

- **Tournament layouts in 3D** (`mountMultiTurn`, `multiTurnMarkup`, `buildMultiTurn` and `multiPresets` of `@johnmorrisdotca/kyogijo-stadiums/multi`). A layout can be turned like any surface: the same four viewpoints (overhead, broadcast, end-on and low corner), turn, tilt, zoom, reset and auto-turn, the same drag, keys and pinch, and the steady camera of 0.12.2 (a fixed scale for the whole turn, ten-decimal matrices, the lens of 8), with the whole floor fitted at every angle. It is the 3D view and not a second renderer: the layout is built as a `TurnModel`, so the camera, the controls and the tests are the ones every surface has (`mountKyogijoTurn` is now `mountTurn` over `buildTurn`, and `mountMultiTurn` is `mountTurn` over `buildMultiTurn`; `TurnModel` has `presets` and `flat` for a model with viewpoints and a flat drawing of its own). Each surface stands as it does on its own page and in its own cell (`uprightsFor`, moved and turned with the cell, and with the hall when the hall turns the layout): the nets and posts of every net sport and a table tennis table as a top 76 cm over the floor on its skirt and legs, with the table's own drawing on it and a soft shadow on the floor, each table's parts drawn in the right order from every side. What only a layout has is stood up from the figures the flat drawing draws: a surround of 75 cm round each area (the ITTF Handbook, 3.2.3.3), in pieces of at most 3 m, that gives way a little only to an eye low on its side (`Plane.fadeAt`); an umpire's chair and a score table as solid blocks; the scoreboard hung over the middle of the floor and facing the eye, and one at each surface where the layout has them. With `stadium` the stands of the hall are raised on the floor's ground (`standsVenueOf`, the same planes `standsVenue` makes for one surface), with a roof on request. The viewpoints are turned to the layout: a net sport's end-on view looks along its surfaces, and a floor taller than it is wide is turned a quarter so that its long way runs across the screen. The heights of the chairs, the tables and the scoreboard are ours (no rule gives them); the table's, the net's and the surround's are the rulebook's.
- **`halls.html` has the 3D view.** A View choice (`2D` or `3D`, `view=3d` in the address), the viewpoint in the address (`viewpoint=`), the roof of the stadium (`roof=1`) and the 3D view's own controls under the floor; a layout chosen in 3D opens on the viewpoint chosen. Try it: <https://johnmorrisdotca.github.io/kyogijo-stadiums/halls.html?preset=tabletennis-4&view=3d>.
- **Docs and README.** A section "In 3D" on [the layouts page](./docs/multi.md#in-3d) with a picture of a layout in 3D (four table tennis areas, light and dark); the same picture in the README's layouts section.
- **Japanese**, two phrases for the parts named in a layout's 3D description: `競技エリアのフェンス` (the competition area's fence) and `審判席と記録台` (the umpires' chairs and the score tables).

### Changed

- `multiDrawing(options, raise)` (internal to `multi.draw.ts`) is the drawing of a layout with what was worked out to make it; `drawMulti` is its string. A layout made as the floor of a 3D view leaves out what the 3D view stands up. The drawn picture is unchanged.

### Tests

- The size-steadiness test (`src/turn.size.test.ts`) and the camera-fit test (`src/turn.camera.test.ts`) now run on every tournament layout, alone and in a stadium, in place of four layouts used as a plain floor; the depth-order and whole-floor tests of 0.12.2 (`src/turn.raised.test.ts`) run on the tables of the table tennis layouts and on the floor and stands of five layouts at every turn and tip, desk and phone; `src/multi.turn.test.ts` holds each surface to its cell (also in a hall that turns the layout), the surrounds, chairs, scoreboards and stands, the viewpoints and the markup; `e2e/halls.demo.mjs` plays the layouts page in 3D in a real browser (the controls, the address, a full turn's size, the legs under each table's top, the stadium and its roof, Japanese, a phone).

## [0.12.2] - 2026-10-20

### Added

- **The demo leads to the tournament layouts.** A "Tournament layouts" link in the demo's header; under the surface of a sport that has layouts (table tennis, pickleball, curling, judo, karate, badminton, tennis) a "See it as a tournament floor" link to `halls.html` with that sport's first layout chosen (and the page's language and theme); and a link back to the demo from `halls.html`. `halls.html` also takes `theme=light|dark` in its address.

### Fixed

- **A dohyō in the 3D view is a solid block, not a hollow tray, and the floor round it is not cut off.** The whole floor was lifted to the mound's height and always drawn under the mound's four walls, so the walls on the far side showed over the clay and the clay looked sunk in a tray, with the grey hall floor raised level with it. Now the floor lies on the hall's floor, the mound is four sides (a tone darker than the top) and a flat top (the drawing's own clay and straw bales, cropped to the mound's square and lifted to its height), and the sides on the far side are drawn before the top and the ones on the near side after it at every turn. The view is fitted to the whole floor, so no part of it is cut off at any angle, and the stands of a crowd stand on the hall's floor.
- **A table tennis table's far legs no longer show through its top, and its legs stand on something.** The raised floor (the table's top) was always drawn under every plane, so the legs and skirt on the far side were drawn over it. A raised floor now takes its turn among the planes by its middle, like any other, and a soft shadow under the table on the hall's floor seats the legs.
- **The 3D view no longer swells and shrinks as it turns.** A surface going round, by hand or by the auto-turn, grew and shrank rhythmically, and in steps, instead of turning smoothly. There were two causes, both in the camera. The matrix written to each plane (`matrix3d`) rounded every number to four decimals, but its perspective terms are a few ten-thousandths and are multiplied by the pixels of a whole floor, so the rounding bent the perspective by tens of percent and by jumps as the angle changed (a floor's area on the screen jumped by up to a quarter between two views a few degrees apart); the numbers are now written to ten decimals. And the lens was short (1.7 times the box's longer side), so the nearer end of the floor swelled as it swung toward the eye (about a tenth of the area over a turn); the default is now 8 (`lens` still takes any value, and a smaller one brings the swelling back). The scale and the centre were already one for the whole turn (0.10.0); now the floor's area on the screen varies by about one percent over a turn, smoothly, for every sport and a tournament layout used as a floor, light and dark, desk and phone. New tests (`src/turn.size.test.ts`, and one in `e2e/turn.demo.mjs` in a real browser) sample the floor's area over a full turn, as the browser draws the written matrix, and fail on the old camera.

## [0.12.1] - 2026-10-19

The npm page shows the tournament layouts. No change to the package's code.

### Changed

- **README: a showcase for the tournament layouts of 0.12.0.** A new example section, "Several surfaces on one floor", with a short tested example and two pictures in a light and a dark twin (three judo areas, four table tennis areas), and a Features entry; the same pictures are on [the layouts page](./docs/multi.md). Made by `pnpm screenshots:readme` (`ONLY=<subject>` takes just one subject). Several long Features entries of the README (the budō, the 3D view, the surfaces, zones, pools, athletics) are shortened to stay under the README size budget; the detail is on the page each links to.
- **`CONTRIBUTING.md` has a release-checklist line for visual features:** new visual feature? update the README images and add a showcase section if the examples do not show it well.

## [0.12.0] - 2026-10-19

### Added

- **Tournament layouts** (`@johnmorrisdotca/kyogijo-stadiums/multi`): `drawMulti` lays several of the package's own surfaces out together for one large event, to scale, on one floor, as one SVG, with the barriers, the officials' chairs, a scoreboard hung over the middle, the boards along the edges and empty places for the event's own words and marks (on the mats themselves for judo and karate, as those sports print them). Thirteen presets, each with its rule and sources, from table tennis (four and eight areas), pickleball (2 x 2, 2 x 4, 4 x 4), curling (four sheets), judo (three and four areas), karate (six and eight), badminton (the least spacing, and the 4 m the BWF recommends at Grade 1 and 2) and tennis; each says whether it is a rulebook's spacing or an arrangement an event used. `multiLayout` gives the floor a layout needs, `multiFit` whether it fits a hall (a rectangle, an octagon, or a floor of which only the area is known) with five halls and ice pads whose floors are published, and `venue` and `stadium` set the layout in a hall with a real stadium round it at the same scale, reusing the package's stands and crowd. `multiTable` is the text alternative; light and dark, English and Japanese. A demo page, `halls.html`, picks a preset, sets it in a hall and switches the stadium on and off (linked from the demo's gallery section), and the docs gallery has a page for every preset. See [Tournament layouts](./docs/multi.md).
- **Two more parks place a dugout or a bullpen, where their articles do:** `wrigley-field`'s home dugout (third base line) and `griffith-stadium`'s left-field bullpen (388 feet, 1956 to 1961). No generic dugout or bullpen is drawn for the others; `docs/ballparks.md` and `docs/references.md` list what was read and left out and why.

### Changed

- **Docs only:** `docs/situation.md` says plainly what is left undrawn for want of a source (the NHL's older creases, an Olympic hybrid sheet, Buffalo Memorial Auditorium's rink) and what would be needed; `docs/team-shape.md` says the lineup's `jersey` is a flat marker of our own and where full jerseys are drawn.

## [0.11.0] - 2026-10-19

### Added

- **A ground with a running track offers the athletics stadium in the atlas:** `surfacesOf(place)` lists `{ sport: "athletics", ground }` for a ground whose `track` is set, and `surfaceOf(place, "athletics")` returns it; the six grounds Wikidata marks with a track are linked, no other place.
- **A `<title>` on every point and line when the marks are written** (`marks: true`, `pointer: true`): a datum with no `title` of its own is named from its outcome, its team and its place in the data ("goal, home, 3"), so a delegated listener, a hover and a screen reader reach every mark. Nothing is added without `marks`, so a drawing nobody points at is the same string as ever. Heat cells stay without one (size budget; their numbers are in the layer's table).
- **The IFAF's field is named and tested in the situation docs** (`docs/situation.md`): `sport: "ifaf"` takes a football situation on the NFL's 100-yard field, with four downs.

## [0.10.2] - 2026-10-14

### Fixed

- **A team's round mark and its name are painted over the surface's lines.** A hockey rink's face-off circles, red and blue lines and creases, and the lines of the football fields, the ballpark, the lacrosse, rugby, Australian football, Gaelic games, field hockey, handball and netball surfaces and the pools (swimming, water polo, diving, artistic swimming), were written after the team marks and names, so they ran across a logo and a name. The marks and the names now come after every line, and so do the data layers, the lineup, the annotations, the pageant's names and the score's panel, for every sport, look and size. The courts, the pitch, the athletics track, the skating rinks and the budō surfaces already did. The drawing is the same string as before apart from that order, and the internal `bannersOver` flag that chose it is gone.

### Added

- **A test holds the order for every sport:** `src/overlay.order.test.ts` reads the drawing's leaves in paint order and fails when a marking of the surface comes after the first mark, name, layer, lineup, situation widget, annotation, pageant word or score panel, for every sport and every look, wide, tall, with the panel and without it, with layers, landmarks, a situation, a crowd, a special game and every pageant.

## [0.10.1] - 2026-10-14

The docs are one language to a page. No change to the package or its pictures.

### Changed

- **The docs are single-language.** `CONTRIBUTING.md` says so (one page per language, no mixed tables, the Japanese twin named `<name>.ja.md`), and a new test, `src/docs-language.test.js`, fails when an English page holds Japanese outside code or a Japanese page holds English prose. Four pages that mixed the two were split, and the build writes both: [docs/grounds.md](docs/grounds.md) and [docs/grounds.ja.md](docs/grounds.ja.md) (`pnpm grounds`), [docs/variants.md](docs/variants.md) and [docs/variants.ja.md](docs/variants.ja.md) (`pnpm docs:make`), the table of park names in [docs/ballparks.md](docs/ballparks.md) and its Japanese twin [docs/ballparks.ja.md](docs/ballparks.ja.md), and the Japanese Wikipedia articles of [NOTICE.md](NOTICE.md), now in [NOTICE.ja.md](NOTICE.ja.md). The Japanese rule-book words of the pools, the athletics stadium, the skating rinks and the budō are in a new page, [docs/terminology.md](docs/terminology.md), which, like `docs/strings-ja.md`, shows both languages side by side on purpose. Japanese glosses were taken out of the English prose of the other pages, and the README's list of the family and the titles of Japanese rule books cited in the sources are named in the test as exceptions, each with its reason. No change to the package or its pictures.

## [0.10.0] - 2026-10-14

### Added

- **The demo has an optional Background menu.** None by default, then the family's twenty-five backgrounds (`scripts/family-backgrounds.ts`, version 1.0.0, copied byte for byte from taisen-brackets and pinned by version and sha256), also by `?background=<name>`. It draws one behind the stage in the dark or the light variant of the page's look, takes the stage's text colour from the ink the background returns, and loads the module only when one is chosen. It is presentation only: the drawing's SVG is the same string with and without it, and an e2e test holds that. The package ships none of it and still has no dependency.

### Changed

- **Every README picture stands on one of the family's backgrounds,** in a light and a dark twin (ice behind the rinks, floodlights behind the football field, a royal purple behind the ballpark, a glow or a spotlight behind the courts), and `pnpm screenshots:readme` remakes all twenty in one run.
- **The docs' and the README's samples use real countries,** Canada, the USA and Japan first, with their names and colours and no flag (a snippet cannot await Hata); where a sample shows marks it draws a maple leaf and a sun disc of its own. The gallery's teams and the pool races' swimmers' countries are real too.

## [0.9.0] - 2026-10-14

### Added

- **Country flags from a plug-in: `useFlags(render)` and the `flags` option.** A team takes a country's code, `flag: "CA"`, and the flag is drawn by a function you plug in, as the emblems are by `useEmblems`. The renderer is `(code, { shape, size, theme }) => string` (an SVG document, or nothing for a code it has no flag for), synchronous because a drawing is a pure function of its options: it is the shape [Taisen Brackets](https://www.npmjs.com/package/@johnmorrisdotca/taisen-brackets) takes, so one adapter over [Hata](https://github.com/johnmorrisdotca/hata) serves both. `shape` is `round` (a round mark, a pageant's stage), `rect` (a plain mark, a banner, a badge, a pageant's carpet, in its own proportions) or `square`; `size` is a nominal width in pixels; `theme` is `light`, `dark` or `inherit`. `useFlags` is in the main entry and in `/element`; `flags: render` in the options of a drawing (or the `surface` of a chart) wins over it for that drawing. The same code works for `Swimmer.country` and `LineupPlayer.country` (where `flag` is missing), for the `country` of an athlete or a skater of a lane draw or a start list, a layer's mark of the shape `logo` for a team, and the element's `home-flag` and `away-flag` attributes. A team's `flag` wins over its `logo` where the renderer has a flag for the code; with no renderer, or none for the code, a drawing is the text it was (and a code that is not a code is never asked about). A round flag turns with its team's name as a round logo does. Kyogijo imports no flag and keeps no dependencies; `@johnmorrisdotca/hata` 1.5.0 is a development dependency (for the demo and the tests) and an optional peer one. [Flags](./docs/flags.md).

### Changed

- **The demo's teams are real countries, drawn with Hata's flags.** The made-up teams (Harbour City Gulls and the rest) and the sixteen made-up nations of `demo/nations.js` are replaced by Canada, USA, Japan, Mexico, Australia, Brazil, England, Korea, Germany, France and Italy, each with its national flag through the plug-in (the build loads the flags it draws from Hata into the page), and the pool's swimmers, who still do not exist, swim for real countries. The demo's teams have a new "Flag" logo choice, the default; "Own logo" shows a logo of your own beside it: a maple leaf with the word CANADA, a red sun disc with the word JAPAN and, for the others, a roundel of their letters, all drawn in the demo's code. No federation's crest or logo, and no Olympic rings, is used. The embedded frame takes `aflag` and `hflag`. The made-up nations stay, for the tests only, in `src/nations.fixture.ts`, so that no drawing in a test changed.

## [0.8.0] - 2026-10-14

### Added

- **The venue in the 3D view** ([docs/turn.md](./docs/turn.md#the-venue)): the stands, roofs and rooms round a surface are raised from the data the package already has, so that a whole stadium, ballpark, arena or dojo turns by mouse drag, finger, keys and buttons. Every tier of `crowdStands()` is a strip of raked planes (a quad to each straight side, three to each corner, a ballpark's points, 28 round an oval) from the height of its first row to its last, with the crowd's own pattern as texture (people, empty seats, row lines, aisles, the visitors' block, the tifo), the walks between the tiers, a low wall under the first row, and the places the stands are left open left open. A ballpark gets its grandstands and bleachers and, where the park has them, the seats on top of the wall (Fenway Park's Green Monster at 37 ft 2 in). A dojo gets its cream walls over a wood wainscot, painted in the floor's own look, with the doors and windows of `dojoRoom()`, the dais, the banner, the shrine, the balconies as steps of seats behind a rail with the crowd in them, overlooking the floor, and the thickness of the mats at their edge. `venue: true | false | { roof, detail }` is the switch: on when the drawing has a `crowd` or is a dojo, off with `uprights: false`; `roof: true` adds a canopy over the top tier or a lid over a hall. The stands and walls fade on the side nearest the eye as the boards do, so the surface is never hidden. A full soccer bowl is about 110 planes and 500 elements and the biggest venues under 1,000, whatever the seats taken; `detail` cuts the curves coarser or finer. The element reads `turn-venue="false"` and `turn-roof`; the demo has a Roof toggle in 3D.
- **An auto-turn for the 3D view**, a trophy case's slow turn: an Auto-turn toggle button (`aria-pressed`, 44 pixels or more, in English and Japanese) and Space start and stop it; `autoPlay` (`true`, or `"force"`) is the opt-in start, `speed` its degrees a second, `onPlayChange` its callback, and the handle has `playing`, `play()`, `pause()` and `togglePlay()`. It holds while the pointer holds the view, does nothing on a hidden page or off the screen, is stopped by the arrow keys, a viewpoint, the reset or `set`, starts paused for a reader who prefers reduced motion, and moves nothing until Play is pressed unless `autoPlay` asks. The element reads `turn-autoplay` and `turn-speed`.

### Changed

- **The Kodokan's gallery is as its owner counts it, in 2D and 3D.** `dojo.balcony` takes `rows` and `sections` (the seats in each block of a row, with an aisle between blocks, the same on every side): the main dojo has `{ rows: 3, sections: [5, 8, 8, 8, 5] }`, 34 seats to a row and 102 to a side, per the owner and his photographs. `dojoRoom()`'s balconies carry `sections`, `seatWidth`, `aisle`, `aisles` (the shares of a side the aisles lie at) and `sectionsBasis`, and `dojoGallery()` returns `sections` and `aisles`; a side with no `sections` is cut into blocks of about 9 m (ours). The gallery is 3 rows deep by default and its seats are empty: a dojo's crowd density defaults to 0 and people are drawn only when `density` or `attendance` asks. In 2D the aisles lie across the band and each row is dashed cushions with a darker line of backs; in 3D the seats are dark brown cushions and backs in blocks on dark treads, the aisles lighter wood with their stairs, a white rail, honey wood panelling on the walls under the gallery, plain off-white above it with a clock, two doors and three windows, the kamiza's alcove with a framed shrine, a scroll and a plain purple banner, and, with `roof: true`, a pale ceiling band with box lights. The surround of a dojo (when it has one) is polished hardwood: the basketball floor's boards and seams, at half strength, under a warm satin sheen.

- **A dojo's gallery is a proper balcony in 3D and neat seat rows in 2D.** In 3D each balcony has a floor slab that projects over the room (with its thickness showing), a white rail with two bars and posts on its edge, and four tiers of seats drawn as cushions and backs, a seat every 0.6 m, on light treads. In 2D, from above, the gallery is rows of seats along its band (a dashed line to a row, in the gallery's brown) and not a ring of round heads; `crowd` still gives the people in the 3D balcony. The Kodokan's four areas are the IJF's block (8 m areas, 4 m shared safety between them, 3.2 m round in the 26.4 m square of 420 jō): the pale areas are 256 m² of 697.

- **The mats look like mats, in 2D and 3D.** The seams between tatami are drawn a few per cent darker than the mat (ink at 12%, they were 26%), the weave is dark ridges 3% deep at most (it had white ridges 14% deep), the faint light line on the mat edges is a 4% dark one, and the heri, which drew heavy dark bands between the mats, is as faint as a seam unless `colours.heri` names a colour (`--ky-bud-hop` then restores its 0.82). A contest area is just another colour of mat. The walls of every look are a light cream, not a dark grey. This is the drawing of the dojo, judo, karate and kendo themselves, so every drawing of them changes (their fingerprints in the identity test are made again).
- **The dojo's room is a storey high and its gallery is on the upper level.** A dojo with a gallery has walls 4.5 m high, the gallery's floor level with their tops (it was 3 m walls under a gallery at 4 m), the gallery as steps of seats behind a white rail, three large windows high in the wall behind it on the east side, and, with `roof: true`, a pale ceiling over it; `dojoRoom()` gives `upperWindows` and `ceiling` (all ours). The Kodokan's main dojo has a polished wood floor 4 m wide all round the mats (it was 1 m), so its walls stand far out.

- A 3D view with a crowd no longer lays the flat crowd on its floor: the stands are planes, and the floor is the surface with the ground they stand on. `venue: false` gives the flat crowd back. The crowd's `patterns()` take an optional row-lines argument (the 2D drawing is byte for byte as it was).

## [0.7.0] - 2026-10-14

### Removed

- **`roadToFinal` and the road-to-the-final chart moved to [`@johnmorrisdotca/taisen-brackets`](https://www.npmjs.com/package/@johnmorrisdotca/taisen-brackets)** (0.4.0 and later; its `/road` entry), where it is built on the bracket package and shares its look. There is no shim here: import it from taisen. Gone from `@johnmorrisdotca/kyogijo-stadiums/charts`: `roadToFinal`, `ROAD_SIZES`, `KYOGIJO_ROAD_STYLE` (and from `KYOGIJO_STYLE`) and the types `RoadChart`, `RoadDecided`, `RoadFinal`, `RoadFinalist`, `RoadGroupMatch`, `RoadMatch`, `RoadOptions`, `RoadRecord`, `RoadScore`, `RoadSize`, `RoadSizeInfo` and `RoadTotals`. The `road` words are gone from `KYOGIJO_STRINGS` (a custom set of words no longer has to give them), and the docs' section, the demo's "Road to the final" section, its gallery items and its tests went with it.
- **The round mark stays.** `Team.mark`, `markShape` and `KYOGIJO_MARK_STYLE` are for surfaces and are unchanged. The demo's section for them is now "Round marks" (a pitch wide and tall, and a badge), with its own sixteen made-up nations in `demo/nations.js`, the same flags as before.

## [0.6.2] - 2026-10-14

### Fixed

- **A round mark turns with its team's name.** Where a zone's words are turned (along the ends of a wide pitch, and in a tall drawing, where the surface is turned a quarter and the words are turned back) the flag in its circle was turned back to stay upright, so on a wide pitch the flag stood upright beside a name written sideways, and in a tall drawing the flag lay a quarter turn over while the name read upright. The mark's group now lies in the banner's group and takes its turn: the same angle, the same way, as the name, so a flag and its name read as one unit (sideways along the ends of a wide pitch, the right way up in a tall drawing). The clip, the ring, the hairline and the initials of a team with no picture turn with the group, and the clip path's id (`<id>-mk-home-c`, `<id>-mk-away-c`) is unchanged. A flag in a zone that is not turned is as before, and so are the badge and the strip of a compact card, which are not turned. `RoundMark.upright` stays in `mark.ts`, but the score no longer passes it. A test reads the turn of the mark and of the name in every orientation, with logos and with initials, and holds the two equal.

## [0.6.1] - 2026-10-14

### Fixed

- **The 3D view zoomed in and out as it turned.** The camera fitted the scene to its box for each angle on its own, so every angle fitted but the scale changed with the yaw: a long floor was drawn up to 1.8 times as large (overhead; 1.5 times at a tip of 30 degrees and 1.15 to 1.65 times from 60 to 80) at the angle where it is seen end-on as side-on, and the field grew and shrank under a drag or the auto-turn. `fit` now fits the scene at every angle of the circle at the view's pitch (so it takes the pitch and not the yaw) and takes the one scale and centre that hold them all: turning never changes the zoom or sways the scene, and no angle is cut off. The floor is the size it had at its tightest angle (down to 0.55 of its old size where it had room). Tipping the view still rescales it, since the pitch changes the extent; zoom is laid on top of the fit as before. `src/turn.camera.test.ts` holds the scale constant over every yaw, pitch and container, for every sport's scene, and measures every degree of the turn against the box.

## [0.6.0] - 2026-10-14

Six budō sports and a dojo builder (39 sports in all), the situation of a game, lineups, zones, a pointer and goal mouths, the arenas of the NHL, the NBA, the WNBA and the PWHL (330 places on the atlas), and Dougu Sports 0.2.0 for an icon on every sport. The 3D view's keys, buttons and drag now turn the surface the same way.

### Fixed

- **The 3D view turned the wrong way across.** A drag to the right (mouse, or a finger with `touch: "turn"` or a sideways swipe) carried the side of the surface nearest the eye to the left. The drag now takes hold of the surface, as the cube of kyuubu and most 3D viewers do: right carries the near side to the right and left to the left, and the Right and Left arrow keys turn the same way as a drag to that side. Dragging up and down was already right (down tips the top toward the eye) and is unchanged, as are the viewpoints, `set` and the buttons. `drag()` in `/turn` has the opposite sign for `dx`. A browser test drags a marker on the near boards and a unit test holds the signs.
- **The 3D view's buttons and the Up and Down keys turned the wrong way.** After the drag was corrected, the turn-left button turned the way a drag to the right does, and ArrowUp tipped the surface the way a drag down does. A drag, an arrow key and a button toward one side now all move the surface the same way: Left and Right carry the near side that way, Up tips it as a drag up does and Down as a drag down (the up and down buttons follow the keys; the drag's own pitch is unchanged). `nudge(view, "left" | "right" | "up" | "down", degrees)` in `/turn` is the step the keys and buttons share, and a unit test and a browser test hold the three together. The up and down buttons are now named for what they do, "Tip the surface away" and "Tip the surface toward you" (they were "Raise the view" and "Lower the view"), and the announcement says "Turned to 40 degrees, seen from 34 degrees above the floor" where it said "raised 34 degrees".
- **The demo had no icon on the deployed site.** The page's icon was an inline `data:` address, which a sanitizer in front of the deployed page turned into `about:invalid#zCSafez`. The site now ships a static `favicon.svg` and `apple-touch-icon.png` and every page (the demo, the API reference, the docs pages and the gallery) links them.
- **A football lineup's two teams are one size**, so the offence is not shrunk to fit its line.

### Changed

- **The pools follow the World Aquatics Competition Regulations in force from February 2026.** Every citation of a pool figure, a goal and a diving distance is to that edition's numbering (Part Two Article 15 for the swimming pool, Part Four Article 15 and Appendix 2 for diving, Part Six Articles 20 and 21 for water polo, Part Seven Article 12 for artistic swimming), with the June 2025 number beside it. Three figures changed with it: the water polo field is at least 2.00 m deep everywhere (`WATER_POLO.depth`, was 1.80 m, 2.00 m at the Olympic Games and the World Championships); the diving depth at the plummet, `DIVING.H`, has the minima 3.40 m (1 m springboard), 3.70 (3 m), 3.20 (1 m platform), 3.50 (3 m), 3.70 (5 m), 4.10 (7.5 m) and 4.50 m (10 m), and 5.00 m preferred as before (they were 3.50, 3.80, 3.30, 3.60, 3.80, 4.30 and 5.00 m); and a starting block is at least 0.5 by 0.5 m (`SWIMMING.block.length` 0.5, was 0.6, which shows in the 3D view). The drawings of the pools do not change. Not found in the February 2026 text, and marked unverified where they are cited: the false start rope, a pool shared with artistic swimming at 3 m, the 5 m under the boards at the Olympic Games and the World Championships, the lane rope float's 0.15 m. The water polo goal is Part Six Article 21.6 (the old "Appendix 4" is now the video referee protocol) and the field hockey goal is "Field and Equipment Specifications 1.5 (Goals)" of the FIH Rules of Hockey 2026.
- **The Japanese words of the pools** keep the federation's own article numbers (`水球競技ハンドブック` 18.3.2 for `審判台`; `アーティスティックスイミング競技規則` 27.2.8 and 27.2.7 for `ジャッジ台` and `スタート台`), read again in the books of 2023-04-01 and 2026-04-23; the number given for the 5 m mark was the definition of a goal, and is now 18.3.1.

### Added

- **A lineup takes the score to the strip.** A score drawn with a `lineup` layer puts its panel in the compact strip under the surface, as a pageant's `score: "auto"` does, and the situation's pill, scorebug or tag goes to the strip with it, so that nothing hides a player; what the situation lights (a runner's base, a drive's arrows) is drawn under the players. The new option `score: "centre" | "strip" | "auto"` says it, and `score: "centre"` keeps the panel over the surface ([score and layout](./docs/score.md)).
- **Dougu Sports 0.2.0** (the development dependency of the demo and the tests): 167 emblems, an icon for each of the 38 sports including judo, karate, kendo, sumo and kyudo; the dojo takes the judo one.
- **The situation of a game: `situation`** ([docs/situation.md](./docs/situation.md)). Hockey's skaters (a power play or an empty net as a pill, `5v4 PP 1:42`, with the attacking zone tinted in the attacking team's colour and the empty net ringed), a delayed penalty, and a shootout as a strip of dots across centre ice (a goal filled, a miss hollow, the rounds after the third as sudden death); baseball's (softball's and the NPB's) runners lit on the diamond and a scorebug with the outs, the inning and the count; football's line of scrimmage (blue), first-down line (yellow), red zone and down-and-distance tag, and `drive` for a drive chart of arrows by result. The CFL's field of 110 yards with end zones of 20 and its three downs are respected. The badge and the compact card show the pill, the scorebug or the tag in place of the surface's picture, and the description says it in English and Japanese. The Japanese is for review.
- **`situationText`, `readSituation`, `DRIVE_CODES` and `KYOGIJO_SITUATION_STYLE`**, and the types `Situation`, `HockeySituation`, `BaseballSituation`, `FootballSituation`, `DriveLeg`, `DriveResult`, `ShootoutRound`, `SituationRead`.
- **Two rinks:** `league: "olympic"`, the IIHF rink at 60 by 26 m (the IIHF's statement of 9 December 2025 gives it for Milano Cortina 2026, as Beijing 2022 and the NHL's Global Series arenas), and `league: "boston-garden"`, 58.2 by 25.3 m, with the NHL's figures for the rest.
- **`rulesFor("nhl", year).rules.twoLinePass`:** the centre line judged the offside pass from 1943-44 to 2004-05 (data only: no mark on the ice changes).
- The demo has a Situation group of controls, each a finger wide.
- Not found, so not drawn, and set down in [docs/references.md](./docs/references.md): Buffalo Memorial Auditorium's and Maple Leaf Gardens' ice, the NHL goal crease before today's, the NHL's blue lines before 1998-99.
- **Lineups** ([docs/team-shape.md](./docs/team-shape.md#lineups)). A new kind of data layer, `lineup`: a team's players placed by position code, with no coordinates. `{ kind: "lineup", side, formation?, players: [{ pos, name, number, flag?, captain?, line? }] }` reads where each position stands from a formation, draws each player as a disc or a jersey (`shape`) with the shirt number in it and the name under it (a long name shrinks to fit, then is cut with an ellipsis), a small "C" for the captain and a flag badge, and puts the visitors at the other end (`side: "away"`); two teams are two layers. Without a `formation` the one of the sport that places the most of the players is chosen. Short codes (`CB` for either centre-back, `D` for a defenceman, `OF`, the scorer's numbers 1 to 9, `HK`, `SH`...) are listed in `LINEUP_CODES`; hockey's second line is `line: 2`; a volleyball team turns by `rotation`; baseball's designated hitter is listed beside home plate. A lineup is not cut to the surface's outline unless `clip: "surface"`. Types `LineupLayer` and `LineupPlayer`; the table (`layerTable`) lists each place, its player and the captain, and each player with no place.
- **Formations for more sports** (`FORMATIONS` now holds 36): rugby union's fifteen, Australian football's eighteen, three cricket fielding presets (an attacking field with three slips, the one-day powerplay, defending the boundary), volleyball's six places of the rotation, handball's attack and 6-0 defence, a water polo attack, field hockey's 4-3-3 and 3-4-3, netball's seven positions, softball's defence, hockey's two lines, and a traditional basketball set; each with its position names in English and Japanese. `Formation.extra` lists places that a lineup draws and a `formation` layer does not (the designated hitter), `FormationPosition.size` scales a place's mark in a lineup, and `FormationSport` has thirteen sports.
- **The demo's address holds every control.** Sport, league, park, ground, season, size, layout, theme, 3D view and viewpoint, the looks (court, stripes, goals, half, flags, hardwood, crowd and its density, pageant and emblem, pool and track settings), the lineup, the placed points, the code tab and the game itself (names, abbreviations, scores, colours, penalties, logos, status, winner, competition, date, label) are in the address and restored from it, so a shared link reproduces the exact view; a field is written only when it differs from the sport's made-up game. The keys the page already had are unchanged. A "Copy link" button sits beside the code's Copy.
- **Click to place in the demo.** A toggle drops a point where the drawing is clicked and shows its coordinates (feet from the surface's top left, and metres) as the pointer moves; the toggle and the points are in the address (`drop` and `shots`) and in the code, and "Clear points" removes them. A Lineup choice draws made-up teams on sports that have formations.
- **Arenas: the homes of the NHL's, the NBA's, the WNBA's and the PWHL's clubs** ([docs/arenas.md](./docs/arenas.md)). `ARENAS` (from `/arenas` and the main entry; `ARENA_IDS`, `arenaById`, `arenaByName`, `arenasByName`, `arenaByWikidata`, `arenaNameIn`, `arenaOfficialName`, `arenaSourceUrl`, `arenaRinkIn`, `arenaCourtIn`) lists 167 arenas, 57 that a club of those leagues plays in today (every one of the 32 NHL and the 30 NBA arenas) and 110 of the past, back to the Montreal Arena of 1898: the Boston Arena, the Montreal Forum, Maple Leaf Gardens, Boston Garden, the Chicago Stadium, the old Madison Square Garden of 1925, the Spectrum and the halls of the BAA's first season among them. Each has its Wikidata item and coordinates, the names it had with their years (`Staples Center` until 2019), its name in Japanese with the reading, the years it opened and closed or was pulled down, the seats the article gives for hockey and for basketball, and the English article and revision every fact was read from. An arena is listed when a club of those leagues played its home games there; practice rinks, one-off sites and college gyms with no such club are not, nor are the domes whose home was a football or baseball club (the Superdome, the Kingdome, the Silverdome, the Georgia Dome and the Alamodome).
- **The size of a rink, where an article gives one.** Five arenas have a rink other than the NHL's 200 by 85 feet, each with the article, revision and a few words of what it says: Boston Garden (58.2 by 25.3 metres, 190.9 by 83 feet), the Boston Arena (220 by 90 feet until 1972, 200 by 80 from 1972, 200 by 90 from 1995), the Philadelphia Arena (220 by 101), the Barton Street Arena (200 by 80) and the Windsor Arena (195 by 80). The Chicago Stadium, Buffalo's Memorial Auditorium and the Cow Palace are said to have had a short rink that no article measures: `rinkUnknown`, drawn at the NHL's size and said so in the description. No article gives the size of a court.
- **`drawKyogijo({ sport: "nhl", arena })` and `{ sport: "nba", arena }`** (and the `arena` attribute of `<kyogijo-field>`, and `outlineOf`) draw an arena's rink or court at its own size where there is one, with the markings of the `year` (the Boston Arena's ice is 220 by 90 feet in 1926 and 200 by 80 in 1972), titled with the arena's name of that year (`Staples Center, basketball court`) and a description that says the size is the one published for it. An arena that is not one, a hostile value and a sport other than the NHL and the NBA change nothing; a `league` of your own wins over the arena's size.
- **The atlas has the arenas.** `PLACES` is 330 places (158 parks and grounds, the five halls of the budō and the 167 arenas): `Place.kind` is `arena` for the 167, `Place.sport` is `hockey` or `basketball` (the sport of the first club) and the new `Place.sports` has both for the 48 arenas of both; `placesBy({ sport })` matches any of a place's sports, `atlasFacets().sports` is `baseball, basketball, budo, hockey, soccer`, `surfacesOf(arena)` offers the rink and the court (`{ sport: "nhl", arena }`, `{ sport: "nba", arena }`) and `surfaceOf(place, "nhl" | "nba")` the one asked for. `PlaceSurface` and `surfaceOf` have the new arena member. The search finds an arena by its names and by the clubs that played there in English and in Japanese.
- **Tenants: 798 tenants (519 clubs) at 322 of the 330 places** (355 more, all at arenas; the parks' and grounds' are as they were). The WNBA, the PWHL and the Basketball Association of America (the NBA's own first years) are leagues of the table; `pnpm tenants:fetch --arenas` reads the arenas only and adds them to the evidence, and five rows of `scripts/tenants.curated.json` hold a club that an article says starts in the future. Five clubs have an everyday name in Japanese where Wikidata's label carries a disambiguator.
- **The demo's Atlas has hockey and basketball.** The sport filter has Hockey and Basketball, the map a bar across a hockey arena and an upright bar on a basketball arena, the facts of an arena say its rink and court (the NHL's, or the published size), its seats for each sport and its names; the button of the other sport opens the playground on the court beside the rink, and the playground draws the arena. The gallery has eight arenas, including Boston Garden and the Boston Arena in two years.
- **Tooling:** `pnpm arenas` (writes `src/arenas.data.ts` and `docs/arenas.md` from `scripts/arenas.data.json`), `pnpm arenas:fetch` (the evidence from Wikidata and the English Wikipedia, one request at a time, into `scripts/arenas.wikidata.json`) and `pnpm arenas:check` (reads Wikidata again and compares the item, the article, a name, the coordinates and the country).
- **Trophies, medals, balls and crests by id, from Dougu Sports** ([docs/emblems.md](./docs/emblems.md)). `useEmblems(render)` (from the main entry and from `/element`) plugs a renderer of ready-made emblems into the package, which keeps zero dependencies and bundles no art: `import { renderEmblem } from "@johnmorrisdotca/dougu-sports/emblems"; useEmblems(renderEmblem);`. After that an emblem's id is accepted wherever a logo, a flag or a mark was: a team's `logo` in a score, a compact card, a badge and a pageant, the pageant's `emblem`, the road to the final, a layer's `logo`, a swimmer's flag, a court's `centreLogo`, and the element's `home-logo` and `away-logo`. `logo: "crest:shield"` takes the team's `color`, `textColor` and the first letters of its `abbr`; `"cup"` is `"trophy:cup"`, and `/line` after an id gives the outline style.
- **`emblems: render` in the options of one drawing** (and of a road chart): a renderer for that drawing alone, over the page's own.
- **Types:** `EmblemRenderer`, `EmblemDrawOptions`, `EmblemRef` and `EmblemId`, which is the union of Dougu Sports' ids where `@johnmorrisdotca/dougu-sports` is installed beside the package and `string` where it is not. `safePicture` is exported: the check of an address, an image `data:` address or an SVG document, without the emblems. `safeLogo(value, context?)` is that check after looking for an emblem's id, and takes the team's colours for a crest.
- Without a renderer plugged in an id is an address like any other and is refused as before; in development the first refused id with a group (`"crest:shield"`) prints one hint to the console saying how to plug Dougu Sports in (nothing is printed where `process.env.NODE_ENV` is `"production"`).
- The demo's playground has a Ready-made choice for a team's logo and a picker for the pageant's centre (a tile for each of Dougu Sports' 148 emblems, a finger wide, named in English and Japanese), an Outline style chip, and the code tabs add the two lines that plug Dougu Sports in when an id is used. Dougu Sports is a development dependency, used by the docs, the demo and the tests only.
- **`zoneAt`: where a point lies by a sport's own rules** (`@johnmorrisdotca/kyogijo-stadiums/zones`, [docs/zones.md](./docs/zones.md)). `zoneAt(sport, point, { frame, attacking, league, year, park, pitch })` names the zone, the finer area in it and every other area that holds, by id and in English or Japanese, from the package's own figures: hockey's zones, crease, trapezoid, slot and face-off circles; basketball's frontcourt, restricted area, paint, mid-range, corner threes and arc by the league's court and the season's three-point line; soccer's thirds, six-yard box, penalty area, D and half-spaces; baseball's infield, outfield, foul territory, warning track and over the wall by the park's own fence; football's end zones, red zone and hashes. Every other sport answers in its zone sets. Questions: `isThreePointer`, `inPaint`, `inRestrictedArea`, `inSlot`, `inCrease`, `inPenaltyArea`, `inSixYardBox`, `inRedZone`, `betweenHashes`, `isFair`, `overWall`, `onWarningTrack`. Tests hold the hockey slot and the basketball shot zones to the package's own zone sets on a grid.
- **`isHomeRun(park, point, { height })`**, from the park's fence distance and wall height; `homeRun` says why. Where the park's article gives no wall height the answer is `undefined`, and `PARKS_WITHOUT_WALL_HEIGHTS` lists the 59 of the 94 parks that hold none.
- **`clientPointToField(svg, x, y, { provider })` and `fieldPointToClient`** (`.../pointer`, [docs/pointer.md](./docs/pointer.md)): a pointer's place on a drawing in any of the 42 frames (and the surface's own, in any unit), with the zone, through the browser's own matrix, so it holds for wide and tall drawings, any size, padding and viewBox, ranges and the end a team attacks; `clientPointToFrames` gives every frame of the sport at once. A drawing must be made with the new option `pointer: true` (off by default, so that no existing drawing changes); the 3D view answers `null`. Tested by round trip through every frame of every sport and by clicking real drawings in a browser.
- **`marks: true`: `data-mark-id`, `data-index` and `data-zone` on every mark**, with an optional `<title>`, so that one listener can link a mark to a table: the points, lines (and `data-zone-end`), arrows, text, heat cells, hexagons, zone cells, contour bands, players, formation spots, Voronoi cells and network links of the layers. Off by default, so that a drawing stays as compact as ever; on for every layer with `marks: true` in the drawing's options, for one layer with `marks: true` on it, by itself for a layer whose data has an `id` (a new field of every datum; the charts pass a shot's `id` through) and with `pointer: true`. A React and a vanilla delegated listener are in [docs/layers.md](./docs/layers.md#linking-marks-to-a-table). A marked heat map has a path for each cell, about 50 to 90 bytes more each.
- **Goal mouths, the strike zone and the stumps** (`.../target`, [docs/targets.md](./docs/targets.md)). `drawGoalMouth` for hockey (6 by 4 feet), soccer, handball, water polo, lacrosse (6 by 6 feet; the box floor's 4 ft 9 in by 4 with `league: "nll"`) and field hockey, each from its rulebook, with the shots as marks (goal, saved, post, crossbar, wide, high), nine zones (the top shelf and the five-hole in hockey), light and dark, English and Japanese, and as data in every renderer. `drawStrikeZone`: the catcher's view of the 17-inch plate with the rules' zone (`top` and `bottom` as options), the nine cells and the 13-zone chase grid, the batter's side, and the pitches numbered, coloured by result or type and shaped by what became of them. `drawStumps`: Law 8's 28 by 9 inches with the bails, the line zones and the length zones of a delivery.
- **The demo's "Point at the field"**, under "Move a point between providers": click, drag or use the arrow keys on a rink, pitch, court, ballpark or field and read the place in every provider's numbers with the zone's name.
- **Six budo sports and the dojo** (`budo`, [docs/budo.md](./docs/budo.md)): judo (the IJF contest area of 8 to 10 m, its safety area, the common safe zone, the free zone, the platform, the start marks and the 2 by 1 m tatami, in the IJF's yellow and blue, red and blue, and green and beige looks; the AJJF's smaller mat and red danger band; kata), karate (WKF kumite and kata areas), kendo (the FIK's shiai-jo), sumo (the dohyo with its tawara, shikiri-sen and optional tassels) and kyudo (the 28 m kinteki and 60 m enteki ranges with the shajo, azuchi and yatori-michi). Every figure carries its rule number or address in [docs/sources.md](./docs/sources.md).
- **`dojo({ mats, pattern, colours, kamiza, entrances, walls, windows, shinzen, label })`**: a dojo built from real tatami units, in jo or metres (generic 8, 12, 20, 50, 100 and 200 jo), laid so that no four corners meet, in the traditional green and beige or the competitive colours, with several contest areas.
- **Halls in the atlas** (`Place.kind: "hall"`, `HALLS`, `hallSurfaces`): the Kodokan, the Nippon Budokan, the Ryogoku Kokugikan, the Kyoto Butokuden and the Budokwai, each with only facts that can be cited and a generic layout where the real one is not published (said so in the place's notes).
- **The dojo builder grows a room and a history:** `areas: { across, down }` and `areaSize` for a block of contest areas, `outline` (border mats round each area), `surround` (wood round the mats), `dais`, `banner`, `balcony`, `eras` with `era` and `year` (a floor's looks over time, the years `null` where no source gives them), `colours` that really paint, and `texture: "weave"` (the rice-straw weave as one repeating gradient, turned a quarter on a mat that lies across; judo too). The dojo looks `yellow-green` and `green-orange` are new.
- **A dojo's crowd is its gallery** (`crowdStands()` reports `gallery: true`; `dojoGallery()`): a thin band of plain brown seats behind a rail close to the walls, a few neutral people and no team colours, from the same balcony data as `dojoRoom()`; the Budokan and the Kokugikan keep their bowls.
- **`dojoRoom(options)`** (`/budo`): the room round any budo surface as plain data for a 3D view to raise (walls, surround, dais, banners, balconies, doors, windows, shrine, mat thickness, the Budokan's octagon), with the figures that are ours listed in `notes`.
- **The Kodokan as a building:** the main dojo (420 jō, four contest areas, the dais, banner and gallery, in its earlier and its current colours), the Judo School, international, women's and boys' dojos, each drawable on its own.
- Judo scores (ippon, waza-ari, shido), karate points, kendo ippon and the sumo kimarite (82), boards for them, crowd profiles for the Budokan (an octagonal hall) and the Kokugikan, a 3D view with the dohyo's mound and the azuchi, and Japanese names throughout.


## [0.5.0] - 2026-10-14

Thirteen new sports (padel, squash, racquetball, sepak takraw, teqball, roundnet and netball, with sitting volleyball; swimming, water polo, diving and artistic swimming; athletics and skating), which makes 33. A 3D view that stands what a rulebook puts on a surface (nets, posts, goals, walls, blocks, boards, bars, hurdles, boards and platforms) on a floor that turns. A crowd in the stands, and a pageant of flags and crests over the halves. A folded curling sheet, with a heat chart and statistics. A realistic basketball floor. The clubs that played in each ballpark and ground, with their Japanese names as Japanese media say them.

### Added

- **Athletics and skating in the 3D view** ([docs/turn.md](./docs/turn.md#what-stands-on-each-surface)). An athletics stadium has the high jump's uprights 4.02 m apart with a bar, the pole vault's 5.20 m apart with a bar, the discus and hammer cage with its netting 4 m high and 6 m at the front of each side (Facilities Manual 2.4.1.3), the hurdles of the races a drawing marks at their heights (1.067, 0.838 and 0.914 m) in every lane, and the steeplechase's five barriers with the water jump's pit; a skating rink has the padding round a long or short track, 0.80 m high (ISU Rule 228.2), or a figure skating rink's boards, which are cut away on the eye's side like a hockey rink's. New upright kinds `hurdles`, `steeplechase`, `high-jump`, `pole-vault`, `cage`, `padding` and `rink-boards`, in English and Japanese. The javelin, the finish posts and the skating blocks have no height among the figures and are not drawn. Athletics gets a crowd profile (an oval bowl) and skating one (an arena's two tiers); both are in the e2e list.
- **The pools in the 3D view, at the heights of World Aquatics' rules** ([docs/turn.md](./docs/turn.md#what-stands-on-each-surface), [docs/sources.md](./docs/sources.md#heights-in-the-3d-view)). A swimming pool has a numbered starting block 0.7 m high in each lane at each end, a flagged rope 1.8 m above the water 5 m from each wall and the false start rope 1.2 m above it at 15 m; a diving well its springboards (1 m and 3 m) and platforms (5, 7.5 and 10 m, or the ones asked for) on stands and towers; a water polo field a floating goal on each goal line, 3 m wide with the bar's underside 0.9 m over the water; an artistic swimming area the judges' platform (0.6 m) and the starting platform (0.7 m). New upright kinds `starting-blocks`, `backstroke-flags`, `false-start-rope`, `springboards`, `platforms` and `judges-stand`, in English and Japanese (`スタート台`, `背泳ぎ用フラッグ`, `フォルススタートロープ`, `飛板`, `固定台`, `ジャッジ台`). The pools are in the e2e list of surfaces that stand up.
- **Walls give way to the eye in the 3D view.** The glass and walls of a padel court, the walls of squash and racquetball courts and the boards and glass of a rink are cut away on the side nearest the eye, more the lower the eye is, and are whole again from above or from the far side: `Plane.shy`, `fadeOf` and `Layout.fade` (`/turn`).
- **A folded curling sheet has no crowd.** Its enlarged houses cover where the stands would be, so `crowd` on a folded sheet draws nothing; the same sheet with a score shows the whole sheet and keeps its stands, with a pageant as well.
- **A folded curling sheet: `sheet.show: "folded"`** ([docs/curling.md](./docs/curling.md#the-top-end-the-bottom-end-or-both-folded)). The whole sheet as a strip, with its two houses enlarged beside it, so that a sheet 150 feet long and 15 wide fills a roughly square frame. A tall drawing has the top house on the left of the strip and the bottom house on the right; a wide one has the left house above and the right house below (the same drawing turned a quarter). The strip keeps its scale and its numbers, so a data layer lies on it as on a sheet drawn whole; each panel is the same sheet from the hog line to the back line (`sheet.panels: "half"`, the default) or just the house (`"house"`), enlarged until the whole has the shape `sheet.fit` asks (width over height, 0.5 to 2, a square by default; a panel is never longer than the strip), labelled ("Top house", "Bottom house", "Left house", "Right house"; in Japanese too) and joined to the part of the strip it enlarges by a faint fan and a frame. Stones, heat and every other layer are drawn in the strip and again in each panel, at the panel's scale, with the copies hidden from a screen reader and ids of their own. `range: "folded"` says the same (a new name in `RANGES.curling`), the description says what is enlarged and where, a score still shows the whole sheet, and the annotations (`landmarks`, `axes`, `direction`) are not drawn on it. The scene, the canvas, d3, Plot, GeoJSON and PNG read it like any drawing. New: `SheetShow` has `"folded"`, `SheetStyle.panels` and `SheetStyle.fit`, `RangeName` has `"folded"`, and `KYOGIJO_FOLD_STYLE` (written in only by a folded sheet; every other curling drawing is the same text as before).
- **`top` and `bottom` as names for a tall sheet's ends.** `sheet.end` and `range: { name, end }` take `top` (the left end, the far house of a tall drawing, the default) and `bottom` (the right end) as well as `left` and `right`; the new type is `SheetEnd`. The top end alone and the bottom end alone are `show: "half"` or `"house"` with either, and are documented as the three ways to look closer at a tall sheet.
- **`curlingHeat`: where the stones of many ends came to rest** (`@johnmorrisdotca/kyogijo-stadiums/charts`, [docs/curling.md](./docs/curling.md#where-the-stones-of-many-ends-came-to-rest)). A chart on the heat layers: stones counted into square cells (a foot by default), hexagons, a density or the zones of the house (the button, the three rings and the free guard zone), or drawn as translucent discs in each team's colour so that stones that fall on each other build up colour. It judges the stones by `curlingScore`'s rules, and keeps one team's stones (`team`), only the free guards or only the stones in the house (`only`); on the half, the house, the whole sheet or the folded sheet (`show`). The totals say how many stones were in play and drawn, the free guards and the stones in the house for each team, and the share in each zone. New: `CurlingHeatOptions`, `CurlingHeatTotals`, the `titleCurlingHeat`, `curlingHeatStat`, `sumCurlingHeat`, `curlingHeatTeam`, `curlingHeatGuards` and `curlingHeatHouse` words of `KYOGIJO_STRINGS[...].charts` (`en` and `ja`; a custom set of words must give them) and `CurlingOptions.show`, so that `curlingStones` can be folded too.
- **Curling statistics, beside `curlingScore`:** `curlingFreeGuards` (the free guards of a layout: a stone in play between the tee line and the hog line and not touching the house), `curlingInPlay` (the stones in play after each throw, and the most), `curlingHammers` and `curlingEndStats` (each end's record, and for each team its points, hammer efficiency, how often it scored, blanked, was held to one or was stolen from with the hammer, and its steal rate without it), `curlingGuardScores` (the free guard analysis: points against guards, by band, for the team with the hammer and the team without it) and `curlingShotStats` with `curlingIsHit` and `CURLING_HIT_TYPES` (shot percentage, hit rate and the types played). Pure functions of plain data. Written from the rules and from what curlovision and Jordan Myslik's curling analytics describe; nothing of either was copied (see [references](./docs/references.md#curling)), and [Curling](./docs/curling.md#what-other-curling-analyses-offer-and-what-is-here) compares what each offers with what is here.
- **`HeatLegend.region`** (and the same on a `legend` layer): a heat layer's colour bar is sized and placed against a part of the surface in feet instead of the whole of what is shown, so that it can be read on the half of a sheet or in an enlarged house.
- The docs' curling gallery has the folded sheet, the top end and the bottom end, the heat chart in each of its views and a game's ends in one picture; the demo has a Show choice for a curling sheet (whole sheet, top end, bottom end, folded) with finger-wide buttons, in English and Japanese, in the address and in the code it writes.
- **A realistic basketball floor** (`court: { hardwood: true }`, [docs/hardwood.md](./docs/hardwood.md)). The court seen from above as a maple strip floor: boards of one width (2.25 inches by default) running the length of the court, each row ending in different places from the rows next to it, each board with a tone of its own and fine grain along it, all laid from a seed (`seed`, 1 by default) with a generator of our own, so the same options give the same floor in every renderer; the keys, the centre circle and the border are stain, with the wood and the seams showing through (`stain`, 0.82 by default); the strip behind each baseline takes the colour of the team that defends it (`leftColor` and `rightColor`, a team's `color` in a score, or the new `baselineColor`); the baseline words are set in that strip and new `sidelineText` along the sides; `centreLogo` (an image or an SVG document) fills the centre circle; each basket is drawn from above with its backboard, rim, net and padded stanchion and a soft shadow; the coaching box's lines, the scorers' table and the two benches stand along the bottom sideline; and a satin sheen and the shade at the floor's edge are gradients over the paint (`sheen`). Every league of the sport takes it (NBA, WNBA, FIBA, NCAA men's and women's, NFHS, G League), wide and tall, in light and dark, with a score, a `range`, a `host`, and the data layers and charts over it. The detail drops at small sizes: `detail: "auto"` draws the plain floor (broad boards, the stain and the sheen, one shadow, no seams, grain, table or benches) for `detail: "simple"` or a `width` under 480 pixels, and `fine` or `plain` can be asked for. It is made only of patterns, gradients and rectangles, so the scene, the canvas, d3, Plot, GeoJSON and PNG renderers all draw it: the SVG is about 30 kB in the fine detail (the clean court's is about 11 kB) and about 15 kB in the plain, from two tiles of pattern and about 90 more shapes. Off by default, and a drawing without it is the same text as before. New: the options `HardwoodOptions` and `CourtStyle.hardwood`, `CourtStyle.baselineColor` and `CourtStyle.sidelineText`, `KYOGIJO_HARDWOOD_STYLE` (also in `KYOGIJO_STYLE`) and `HARDWOOD_SMALL`.
- The demo's court controls have a "Real hardwood" chip (a finger wide on a phone, in English and Japanese), and the court cards show the real floor in a club's colours and its plain version for small sizes; the docs gallery has the floor in nine drawings, each made from the code beside it.
- **Multi-sport places: the clubs that played in each ballpark and ground** ([docs/atlas.md](./docs/atlas.md#tenants)). `Place.tenants` lists the clubs that played their home matches in a place, each with its `club` (and `clubJa`), `league`, `sport`, first and last year (`from`, `to`), Wikidata item and `source` (the Wikidata statement, the article and revision, and which of the two the years were read from): 443 tenants (333 clubs) at 155 of the 158 places, 117 of them still there, among them the BC Lions and the Whitecaps at BC Place, the Expos and the Alouettes at the Olympic Stadium in Montreal, the Blue Jays, the Argonauts and the Raptors (1995 to 1999) at the Rogers Centre, the Giants and the Jets at MetLife Stadium, the Patriots and the Revolution at Gillette Stadium and the Seahawks, the Sounders and the Reign at Lumen Field. The clubs and their leagues are Wikidata's (CC0, the places' occupants P466 and the clubs' home venues P115) and the `tenants` lines of the infoboxes of the places' English Wikipedia articles (CC BY-SA 4.0, at the revision named); the years are Wikidata's where it has them and the article's otherwise, never guessed. `pnpm tenants:fetch` reads them and `pnpm tenants` builds `src/tenants.data.ts`.
- `tenantsOf(place, { year, league, sport, current })` (`/atlas`): a place's clubs, the current ones first; `placesByClub(name)`: the places a club played in, by its name in English or in Japanese, in full or by a word of it (`Whitecaps`, `ライオンズ`); `surfacesOf(place)`: every surface a place offers, its own first and then one for each sport a tenant plays that the package draws (the CFL's field for BC Place, the NFL's for MetLife Stadium, the NRL's for Stadium Australia); and `surfaceOf(place, sport)`: the surface a place offers for a sport (`surfaceOf(bcPlace, "cfl")` is `{ sport: "cfl" }`, `surfaceOf(fenwayPark, "cfl")` is `undefined`). New: `TENANTS`, the types `Tenant`, `TenantArticle`, `TenantSource`, `TenantSport`, `TenantFilter`, `PlaceSurface` and `SurfaceSport`.
- The demo's Atlas panel lists the clubs that played in a place with their league and years, offers a button for each other surface a place has (BC Place: the CFL field; the Olympic Stadium: the CFL field, the NFL field and the soccer pitch) that opens the playground on that sport, groups the league filter into the main leagues and tournaments and the rest, and finds a place by a club's name in English or Japanese; English and Japanese words for the new controls and for the leagues that have a Japanese name.
- **The 3D view hangs the score up as a scoreboard** (`score: "board" | "floor"` in the settings, `board` by default; [docs/turn.md](./docs/turn.md#the-score)). The badge of the score is put on a dark board that turns to face the eye: hung on cables over the middle of a court or a rink, standing on legs behind an end of a field, a pitch, a table or a curling sheet, behind centre field in a ballpark. The floor loses its panel and keeps the teams' names. This needs a new option for every drawing, `plate: false` (`ScoreOptions.plate`), which draws a score with the teams' places and no panel; on by default, and a drawing without it is the same text as before. New: `Plane.billboard`, `facing`, `scoreboard`, `UprightKind` `"scoreboard"`, `UprightOptions.score`, and the `scoreboard` word of `turn.parts`.
- **A 3D view: `@johnmorrisdotca/kyogijo-stadiums/turn`** ([docs/turn.md](./docs/turn.md)). Any surface as a floor that turns: the flat drawing itself (with its score, data layers and labels) tipped and turned by the mouse, a finger, Ctrl and the wheel or the keys, with four viewpoints (`overhead`, `broadcast`, `end`, `corner`; the broadcast view is turned a little to show the boards, nets and goals their faces, the net sports' is from behind an end line, where a net can be seen, and a curling sheet's is square on) and a reset, in plain DOM and CSS with no dependency. `mountKyogijoTurn(container, options, settings)` mounts it and gives back `view()`, `set()`, `preset()`, `reset()`, `update()`, `svg()` and `destroy()`; `<kyogijo-field turn turn-view="end">` is the element's way (`turn-controls`, `turn-uprights`, `turn-touch`, and `turn` and `turnSettings` properties); `turnMarkup(options, settings)` is the same view as a string, pure, for a server. Every part that stands up is a flat rectangle with a little SVG on it, and every element carries its whole place on the screen in one `matrix3d`, stacked far to near by `z-index`: nothing is nested in 3D (no `preserve-3d`), so Safari on a phone cannot flatten it, and the flat drawing stays where 3D is not available (`turnSupported`), with a sentence that says so. What stands on each surface, at the height the current rulebook gives (each read on 2026-10-13 and cited by rule number in [docs/sources.md](./docs/sources.md#heights-in-the-3d-view), with what is ours said to be): the NHL's glass is 8 ft over the boards at the ends and 6 ft along the sides, the NFL's uprights 45 ft, the CFL's 40 ft and the NCAA's at least 30 ft, rugby league's 16 m, a basket's board lower edge 150 mm under the ring (FIBA 1.1.5) and its stanchion 2 m behind the end line (FIBA 1.4.3).  the volleyball net at 2.43 m or 2.24 m (`netHeight: "women"`) with its posts and antennae, the nets and posts of tennis (and singles sticks), badminton, pickleball and table tennis (the table lifted 76 cm on legs), each basket's backboard, rim, net and stanchion, a rink's boards, glass and goals, the goals of soccer (with corner flags), handball, field hockey and lacrosse, the posts and pylons of football, the posts of rugby, Gaelic football and Australian football, a cricket pitch's stumps, and a ballpark's fence (as high as its walls), foul poles and backstop. `uprightsFor` and `describeUprights` give them as planes and as a sentence; the view's description says what stands in it, with its heights in the rulebook's own unit, in English and Japanese. A finger drags sideways to turn the view and leaves a vertical swipe to the page (`touch: "turn"` keeps every touch); the wheel is the page's unless Ctrl is held or the view is focused; the keys are the arrows, plus and minus, 1 to 4 and 0; the buttons are 44 pixels or more; a viewpoint, a reset and the end of a drag are said in a polite live region; with `prefers-reduced-motion` the view jumps instead of gliding. New: `mountKyogijoTurn`, `turnMarkup`, `turnMarkupOf`, `buildTurn`, `layoutOf`, `turnSupported`, `uprightsFor`, `describeUprights`, `planesOf`, `heightUnit`, `TURN_PRESETS`, `NET_PRESETS`, `TURN_PRESET_NAMES`, `KYOGIJO_TURN_STYLE`, the camera's `fit`, `project`, `cameraMatrix`, `clampView`, `drag` and `step`, the types `KyogijoTurn`, `TurnSettings`, `TurnView`, `TurnPreset`, `TurnModel`, `Uprights`, `UprightOptions`, `Plane` and the rest, the `turn` words of `KYOGIJO_STRINGS` (`en` and `ja`; a custom set of words must give them), and `pitchOf` is exported from the drawing's own module for it.
- The demo's playground has a View switch (Flat, 3D): the surface in 3D with the viewpoint buttons under it, the viewpoint in the address (`view=3d&viewpoint=end`), the 3D code in the code tabs; and `e2e/turn.demo.mjs` plays it in Chromium, on a phone and in WebKit.
- **Seven more court sports, and sitting volleyball** ([docs/courts.md](./docs/courts.md)), each drawn to scale from its governing body's own current rules, with its named looks (light and dark), a free zone where the rulebook gives one, simple and full detail, wide and tall, an outline, a description and labelled parts in English and Japanese, a frame, ranges, a score and a badge (`SPORTS` is now 27):
  - **`padel`** (the FIP's Rules of Padel, review of 1 January 2026): 20 by 10 m inside its walls, the service lines at 6.95 m, the central service line, the net, and the walls and metal fence of the enclosure.
  - **`squash`** (World Squash's Specifications for Squash Courts, 28 November 2017): the short line, half court line and service boxes of the floor, with the front wall laid flat beside it to show its tin, service line and front wall line; `league: "wsf-doubles"` and `"wsf-doubles-wide"` for the doubles courts.
  - **`racquetball`** (the IRF's Official Rules 2026-2028 and Court Specifications): 40 by 20 feet, the short line, service line, service boxes, drive serve lines and the broken receiving line.
  - **`sepaktakraw`** (the ISTAF's Law of the Game, 2013 edition, the one that could be read): 13.4 by 6.1 m, the centre line, four quarter circles, two service circles, the net.
  - **`teqball`** (the FITEQ's rules, 2026): the 3 by 1.5 m table and its net in the middle of a court of 16 by 12 m, the halfway line, the service lines, the surrounds.
  - **`roundnet`** (the International Roundnet Federation's rules, 2022): the set, the no hit zone line, the serving line and the four service positions, on a square with no out of bounds.
  - **`netball`** (World Netball's Rules of Netball, 2024): 30.5 by 15.25 m, the transverse lines, centre circle, goal circles and goalposts with their rings; scored as a goals sport, with the usual score and the home team on the left.
  - **`league: "wpv-sitting"`** of `volleyball` (World ParaVolley's Official Sitting Volleyball Rules 2025-2028): 10 by 6 m, the attack line at 2 m, a 7 m net 1.15 m high.
  - New zone sets `wall-court` (squash, racquetball) and `roundnet-rings`; `net-court` now covers padel, sepak takraw and teqball, and `field-thirds` netball. 36 coordinate frames (7 more), 7 more `half-court` ranges, and 7 more sports in the demo's picker, its gallery and the docs gallery, with the sources and licence notes in [docs/sources.md](./docs/sources.md) and [docs/references.md](./docs/references.md).
  - The colours follow the rulebooks where they give one: squash's lines are red (a dark red on the light floor, a pale red on the dark one; World Squash's specification asks only that markings contrast, clauses 5.01.01 and 10.13, so the red is ours) on the floor and the front wall, with the wall's lines drawn separately as the specification allows; racquetball's lines are the IRF's recommended bright red (blue on the convertible look) on a floor light enough to read them; padel's, netball's and sitting volleyball's lines are white as their rules prefer or require, and sitting volleyball has the wooden floor only (a light indoor floor, Rule 1.2.2).
  - Footvolley is not drawn: the only rulebook found that gives its dimensions is a European league's, not an international governing body's. Futsal is `pitch: "futsal"` of `soccer`, as before.
- **The stands and the crowd** (`crowd: true`, [docs/crowd.md](./docs/crowd.md)) on every surface that has spectators. Seating bowls drawn round the surface at the distance a venue of its kind keeps: a bowl, two sides (`sides`), a horseshoe open at an end (`horseshoe`, `open`), an oval round the oval grounds of Australian football and cricket, an arena's courtside rows with a lower and an upper bowl for the rinks and courts, and for a ballpark grandstands along the foul lines and behind home plate with bleachers behind the park's own fence (laid from `fenceOutline`, with a gap at the batter's eye), each stand on a plaza of its own. A soccer pitch in the stadium of an NFL or CFL club (`GRIDIRON_GROUNDS`, or `stadium: "nfl"` or `"cfl"`) keeps the football field's footprint: the stands stand where a football field's stands are and the 360 by 160 foot field is drawn faintly over the pitch (end zones, five-yard lines, dashed outline), so that the gap is seen to scale: the touchlines are 8.5 feet from the front rows, not the 28 to 36 of a ground built for soccer. The people are a seeded tile of 36 seats repeated as an SVG pattern, each seat empty with the probability the density leaves or a dot of shirt (the team's colour in two shades, or a neutral) with a dot of hair over it, so that the stands are a few shapes and a few kB (about 9 kB added to a soccer drawing, 4.5 kB as blocks) however many seats there are: `density` (0 to 1, 0.85 by default), or `attendance` over `capacity` (a ground's own capacity by default for soccer), `seed`, `home` and `away` colours (the teams' colours of a score, else the sides'), the visitors' block at an end or in a corner (`awayEnd`), a card display in stripes or checks behind a goal (`tifo`, `tifoDesign`), and a tunnel, a camera platform, benches and a media row on the bench side (`gaps`). Aisles and the shade of each tier's front wall and roof edge are drawn in the `fine` detail; for `detail: "simple"` or a `width` under 480 pixels (`detail: "auto"`) the stands are blocks of colour with no pattern. The drawing's ground is made as wide as the stands need (a `margin` of your own is kept). It works wide and tall, light and dark (the crowd is dimmer in the dark), as a score with its round marks, with `range` (a crop shows the stands it covers) and with the data layers over it; a special game (`host`) has none. The scene, the canvas, d3, Plot and PNG renderers draw it. `crowdStands(options)` gives the stands as data in feet in the surface's wide frame (rings with their outlines, `from` and `to`, the height of the first and last row, the rake in degrees, the seats; the visitors' and the card display's sectors; the gaps; the footprint; the reach), with `outlinePath` and `outlinePoints`, so that a view that raises the stands (the 3D view of `work/turn`) can use it: a follow-up. Off by default, and a drawing without it is the same text as before. New: `CrowdOptions`, `CrowdShape`, `CrowdStands`, `StandRing`, `StandSector`, `StandGap`, `StandOutline`, `GRIDIRON_GROUNDS` and `KYOGIJO_CROWD_STYLE` (also in `KYOGIJO_STYLE`; `--ky-cr-home` and `--ky-cr-away` are the crowd's colours).
- **The stands read as seats from above** (polish of the crowd). Row lines every second row follow each tier's curves, with aisles across every tier (square to the front on the sides, fanning round the corners) and every fourth a wider dark vomitory; the visitors' block and a card display are whole sections cut on aisle lines, not wedges (a wedge only round an oval ground); the walk between the tiers is a thin darker band (`concourses`) instead of a wide pale ring, and the roof's edge throws a shade on the upper tier (`roof`, on by default). A soccer pitch's run-off is the 6 metres along the touchlines and 8.5 behind the goal lines that stadium guidance recommends (19.7 and 27.9 feet, 27.7 on the bench side), so that a pitch in a gridiron stadium has the narrower apron at the touchlines (8.5 feet) and a wider one behind the goals (33.8). A ballpark's grandstand edge is a smooth curve with no notches, its bleachers stand 12 feet behind the fence, and where the park has seats on top of a wall (Fenway Park's Green Monster) a band of them runs along the wall at its height (`wallSeats`, `WALL_SEATS`). The stands data gains `aisles` on every ring and `concourses`, a wall's seats are a ring with the tier `wall`, and the tiers of an arena are 7 feet apart.
- The demo has a "Crowd" chip with a "Card display" chip and a "Seats taken" slider (finger-wide on a phone, in English and Japanese), for every sport, and the docs gallery has the stands in ten drawings (soccer in a bowl, soccer in an NFL stadium, a ballpark, an NHL arena, an NBA arena, curling and more), each made from the code beside it.
- **The pageant: each team's flag or crest laid large over its half of the surface, and an emblem in the centre** ([docs/pageant.md](./docs/pageant.md)). `pageant: "carpet"`, `"stage"`, `true` (a carpet) or `PageantOptions` on a score drawing, off by default, so a drawing without it is the same text as before. A **carpet** is the flag or logo laid flat over its half, filling the room the half gives it with a margin of about 5% (`fit: "fill"`, the default: its shape may differ from the flag's ratio by up to 1.75 to 1, the art stretched a little and cropped a little; `fit: "ratio"` keeps the flag's own ratio, `Team.logoRatio`, else the `viewBox` of an SVG logo, else 3 to 2), with a border band (`border`: `dark`, `team` or a colour; `borderWidth`), a soft shadow and a gentle fixed wave of light and shade (`fabric`); a **stage** is the crest on a large round disc with a ring (`ring`: `gold`, `team` or a colour), the crest a round mark inside it. A team with no flag or logo is its colours as a carpet of two with its name across a band, or its initials on its colour on a stage. `emblem` (an address, an image `data:` address or an SVG document as text: yours, none is supplied; `emblemShape` `round` or `plain`, `emblemFit`, `emblemName`) goes in the centre circle, centre ice, centre court, the middle of a field or sheet, or on the mound. Every surface has a place for the pictures: the halves, each side of a cricket pitch, a diamond's infield (home) and outfield (visitors), a curling sheet's two houses; each lies wholly inside the surface's outline (a rink's rounded corners, a fence, an oval). Tall and wide drawings lay the halves where the reader sees them and keep every picture upright. The score stays readable by `score`: `centre` (the plate stays, 15% smaller, and the pictures keep clear of it), `strip` (the compact strip under the drawing, carrying each team's round mark) or `auto` (the default: the strip with an emblem or a large board, else whichever leaves the pictures at least 70% of their width). `lines` is `over` (the default), `under` or `through` the pictures; `scale` and `names` size and name them; under 320 pixels wide or with `detail: "simple"` the fabric, hairlines and name pills are left out; dark theme has its own colours (`--ky-pg-border`, `--ky-pg-edge`, `--ky-pg-seam`, `--ky-pg-shadow`, `--ky-pg-disc`, `--ky-pg-groove`, `--ky-pg-light`); a `range` shows the carpet where the range shows it. `animate: "unfurl"` or `"fade"` is an entrance in CSS only, off by default, inside `@media (prefers-reduced-motion: no-preference)`. Every renderer draws it (the scene, canvas, d3, Plot, PNG); `sceneToGeoJSON` leaves it out, since the GeoJSON is of the surface. New: `Surface.pageant` and `centreRadius` (where a builder puts the pictures and its centre circle), `Team.logoRatio`, the `pageant` words of `KYOGIJO_STRINGS` (`en` and `ja`; a custom set of words must give them), `KYOGIJO_PAGEANT_STYLE`, `KYOGIJO_PAGEANT_MOTION`, the types `PageantOptions` and `PageantStyle`, the `pageant` attribute of `<kyogijo-field>`, and the root's `data-pageant`.
- The demo has "Flags on the halves" under Look: off, carpets or stages, the lines over, under or through, a made-up cup in the centre and the entrance, in English and Japanese, each a finger wide, in the address (`pageant`, `pageantlines`, `emblem`) and in the code it shows; the docs have a page and a gallery of a carpet and a stage on each of the twenty surfaces, the emblem, tall and small, the borders, the lines, a team with no flag, dark and a crop, with made-up nations and flags drawn in code.

### Added

- **Swimming, water polo, diving and artistic swimming** (`sport: "swimming"`, `"waterpolo"`, `"diving"`, `"artisticswimming"`; [docs/pools.md](./docs/pools.md)). Four pools, to scale, from World Aquatics' *Competition Regulations* in force as from 25 June 2025 (Part Two Article 16, Part Four Article 13 and Appendix 2, Part Six Article 18 and Appendix 4, Part Seven Article 27; the 2017 and 2021 Facilities Rules' numbers where they differ), each figure cited in [docs/sources.md](./docs/sources.md#the-pools): the swimming pool of 50 or 25 m and one to ten lanes (25 m wide for eight lanes of 2.5 m, ten lanes 0 to 9 with the end lanes 2.4 m, or the 26 m temporary pool) with its ropes (green, blue and yellow, red floats within 5 m of the walls, a distinct run at 15 and 25 m), the lane markings with their cross lines and the cross lines at 15 m, the touch panels and their target lines, the starting blocks with their lane numbers, the backstroke flags at 5 m and the false start rope at 15 m, and a warm-up pool without the competition fixtures; the water polo field of 25 by 20 m with its ropes and referees' platforms in red, yellow and green, the 2, 5 and 6 m lines, the goals, the goal areas, the re-entry areas, the table and the substitution areas; the diving well with the 1 and 3 m springboards and the 5, 7.5 and 10 m platforms (and the 1 and 3 m platforms) at the preferred distances of Appendix 2 from the walls and from each other, and the three lines across the well; the artistic swimming area (30 by 20 m, or 25 by 15 m with its 12 by 12 m deep part) with its floor lines and platforms. A score on any of them; the home team on the left in water polo.
- **The looks of the water and the deck** (`pool.look`: `flat`, `water`, `tiled`; `pool.deck`: `plain`, `tiled`; `pool.seed`). A flat, clean water by default; a faint net of light on the floor made from a seed (a few soft closed curves in one small repeating tile, the same seed the same light), a gradient across the lanes and, for `tiled`, the floor's tiles, all patterns defined once. Every named look has a palette for the pools, and the stylesheet carries only the rules a drawing uses.
- **A side section** (`pool.section`): the water and its depth (2.5 m for a 50 m pool, 2 m for a 25 m one, or your own), the blocks and panels, the flags 5 m from each end, the false start rope at 15 m, a lane rope at the surface and the least depth the rules ask near a wall with blocks, the height exaggerated and said so.
- **The lanes of a race** (`pool.race`): each swimmer in a lane with a name, three letters and a flag (an address, an image or SVG text you pass; the package bundles no flags), and, once the race is swum, places (a gold, silver or bronze disc for the first three, taken from the times when none is given), times, reaction times, splits, records and `dq`, `dns` and `dnf`. Plates at the starting and the turning end, an event title, and a description that says each lane in words, in English and Japanese. `pace` draws **split pace bars**: each lane the whole race laid flat, each split a bar as long as its share, in a colour from the field's slowest pace to its fastest, under a ruler of distances. A tall drawing lays the names and times along the lanes.
- **`raceTimeline`** (`@johnmorrisdotca/kyogijo-stadiums/replay`): a race replay by lane. The splits of a race become a timeline of the package's replay: each swimmer goes down the first length and back the next at the speed of each split, on the block until the reaction time, with the start, the turns and the finishes as events, in the new `swimming` frame (metres from the middle of the water). `drawFrame`, `mountKyogijo(...).replay` and `<kyogijo-field>` play it. `formatTime` and `parseTime` write and read times as swimming does.
- **`splitsChart`** (`@johnmorrisdotca/kyogijo-stadiums/charts`, [docs/charts.md](./docs/charts.md#the-splits-of-a-race)): the pace bars with a title, a summary, the numbers (`totals`, with the fastest split of the field) and a table of every split.
- **A natatorium** (`pool.venue: "natatorium"`, or `{ pools, apart, labels, seating }`): several pools in one hall, to scale, at least 8 m apart (10 m by default, as the rules keep a swimming pool and a diving well, CR 16.2.17), each drawn by its own sport's builder with the deck, the paint and the names once, and seating along the top. `venueLayout` gives the places.
- Ranges (`pool-end`, `springboards`, `platforms`, `centre-stage`, with `half` and `goal-area`), the zone sets `pool-lanes`, `water-polo-areas` and `pool-thirds`, the four frames, `landmarks` for every pool, features to colour (`water`, `lane-ropes`, `rope-red`, `touch-pads`, `starting-blocks`, `backstroke-flags`, `platforms`, `springboards` and more), `SWIMMING`, `WATER_POLO`, `DIVING` and `ARTISTIC` in `/geometry` (metres, any unit by `dimensionsOf`), and their words in English and Japanese. `Sport` and `SPORTS` grow from 20 to 24; the other twenty draw byte for byte as before.
- The demo has the four pools in its sport picker with the pool's own controls, a Pools section with a made-up race (nations that do not exist, flags drawn in code in `demo/pool-data.js`), the pace bars, a race replay and the natatorium; the docs have a [Pools](./docs/pools.md) page and a gallery page of them, each picture made from the code beside it.

### Added

- **`sport: "athletics"`: the athletics stadium** ([docs/athletics.md](./docs/athletics.md), `@johnmorrisdotca/kyogijo-stadiums/athletics`). The 400 m standard track of World Athletics' Track and Field Facilities Manual (2019) and Technical Rules (in force 1 July 2026): eight lanes of 1.22 m (4 to 9) with the running lines at Rule 14, the finish straight (6 to 10 lanes), the lane numbers, and the start lines of 20 races: the sprints and the hurdles on the straight, the staggers of the 200 m, 400 m, 400 m hurdles, 800 m and the relays, the 800 m's and the 4 x 400 m's breakline, the curved starts of the 1000 m to the 10,000 m and the mile with the group starts, the exchange zones of the 4 x 100 m and 4 x 400 m, and the steeplechase's lap with the water jump inside or outside the second bend. The staggers are worked out from the running lines' radii and the breakline's involute (not copied from the table) and a test holds them to Table 2.2.1.6a (200 m and 400 m within 0.6 mm, 800 m and 4 x 400 m within 2.5 mm). Every field event is in its place in the standard arena (high jump, pole vault, long and triple jump with their boards and pits, shot put, discus and hammer with the cage and the sector of 34.92 degrees, javelin with the 8 m arc and the sector of 28.96 degrees), each switchable with `events`, or alone at a large scale with `layout`. The infield is the soccer pitch (a preset or a size, or a ground's own) or plain grass; the track is red, blue, terracotta or green. `league: "world-athletics-short"` is the covered 200 m banked track of six lanes with a 60 m straight and its own stagger table; a `ground` that has a track draws the stadium with that ground's pitch (six grounds). New: `range: "start"` (a close-up of the start of `athletics.start`, turned so that the athletes run to the right, or up the page in portrait, with stencil lane numbers drawn as paths and lane-sized tags on a bend), `finish`, `bend`, `home-straight`, `back-straight`, `infield`, one range for each field event and `water-jump`; the look `line-drawing` (ink only: black on white with outlines for the track, pits and mats, white on black in dark mode); the frame `athletics` (metres from the middle of the track); the zone set `athletics-track`; the `athletics` words in English and Japanese; `KYOGIJO_ATHLETICS_STYLE` and `KYOGIJO_TRACK_STYLE`.
- **Athletics data charts** (`@johnmorrisdotca/kyogijo-stadiums/athletics`): `laneDraw` (the names and flags on the lanes of a start, at each lane's stagger, with the flags passed as SVG), `raceResults` (places as medal discs, times, reaction times and splits), `raceReplay` (a timeline for the replay: each runner on the curve of his lane from his lane's start line by his reaction time, splits and finish time) and `fieldMarks` (a throw or jump as a mark where it landed, a foul at the line and the best valid mark picked out). The entry also exports the plan, the track's geometry (`stagger`, `breaklineStagger`, `lap`, `pose`), the races and field events (names in English, Japanese and French) and the figures.
- **`sport: "skating"`: the skating rinks** ([docs/skating.md](./docs/skating.md), `@johnmorrisdotca/kyogijo-stadiums/skating`). The ISU's standard 400 m speed skating track (`league: "isu-long-track"`, the default): two lanes (the inner 4 m, the outer 4 m or more), the inner curve of 25 m to 26 m and the straight that makes a lap 400 m (113.57 m, 112.00 m, 110.43 m for 25 m, 25.5 m, 26 m, as the ISU's table has them), the warm-up lane, the lanes' fully painted lines, the blocks of the curves (50 cm apart for the first 15 m, 2 m after, a cone at the entrance), the coaches' area on the crossing straight, the padding, the finishing line with its metres and the starting lines of the 500 m to the 10,000 m, the mass start and the team races: each lane's line worked out from the race's distance back from its finish along the skater's own way (the lane changed once a lap, not on the first straight of the 1000 m and the 1500 m) and held to the layout plan's own dimensions (6.32 m, 6.25 m, 7.32 m, 12.57 m). `league: "isu-short-track"` is the oval of 111.12 m on a rink of 60 by 30 m or more with seven blocks in each curve, five or seven tracks with their starting lines, the finishing line and the five starting positions of the 500 m and the 1000 m; `league: "isu-figure"` the rink of 60 by 30 m (56 by 26 m at the least) with the judges' and the referee's seats at the rinkboard, the technical panel and the kiss and cry. `skating` options: `innerRadius`, `laneWidth`, `warmUp`, `infield`, `blocks`, `coaches`, `padding`, `races`, `start`, `tracks`, `rink`, `furniture`. New: the ranges `crossing-straight`, `first-bend`, `second-bend`, `judges` and `kiss-and-cry` (and `home-straight`, `bend`, `finish`, `start`, `infield` and `half` for the rinks that have them), the frame `skating`, the zone set `skating-track`, the `skating` words in English and Japanese, `KYOGIJO_SKATING_STYLE`. The rinks take the hockey rink's colours in every look.
- **Skating data charts** (`@johnmorrisdotca/kyogijo-stadiums/skating`): `skatingPairs` (a pair's names and flags on the lines of their lanes, the armbands white and red), `skatingGrid` (the starters of a short track race on the five positions), `skatingResults` (medals, times, splits along the lane, lap times in the table), `skatingReplay` (a timeline: each skater on his own way, the lane changed on every crossing) and `figureElements` (a jump, a spin, a step sequence and the other elements of a programme as marks on the ice, the track of a sequence as a line).
- The docs have a page for the stadium, a gallery of it (52 pictures, each made from the code beside it) and the athletics rows of the sources, references, notice, limits, ranges and frames pages.

### Fixed

- **`toPNG` no longer stops the process on a drawing cropped to a range.** resvg (the PNG renderer) panics on a shape with an opacity below 1 that lies wholly outside the viewBox, as the net of a soccer goal does in the `penalty-area` and `defensive-third` ranges: `toPNG` now leaves out the shapes wholly outside the frame (they paint nothing). A test renders every named range of every sport and league, wide and tall, to a PNG.

### Changed

- **A club's name in Japanese is the one Japanese media say.** Wikidata's label is a Japanese Wikipedia page title, and for 33 clubs it is a long transliteration of initials or of a formal name (`ブリティッシュ・コロンビア・ライオンズ`, now `BCライオンズ`; `インテルナツィオナーレ・ミラノ`, now `インテル・ミラノ`), a title with a disambiguator or "history of" (`ボルチモア・コルツの歴史`) or the club's name in another period (`OLレイン`). `scripts/tenants.names-ja.json` holds the everyday form of each, with its kind and a source note, and `Tenant.clubJa` is that form; Wikidata's label is kept in the new `Tenant.aliasesJa`, so a search by it still finds the club. `TENANT_JAPANESE_NAMES` and `nameJaOf` (`/atlas`) give the table and the note on a tenant's name.
- The named looks (`look: "night"` and the others) write one more selector for each sport of the court group into the drawing's style, so a drawing with a look has a longer style text than before; the drawing itself is unchanged.
- The name a reader sees is Kyogijo Stadiums (`競技場` in Japanese): the demo's title, the docs site, the API page, the README and the package description. Code names (`drawKyogijo`, `<kyogijo-field>`) are unchanged.
- The indoor volleyball court shows its centre line: it runs under the net (FIVB Rule 1.3.3) and the net was drawn over it, so only a dark bar showed. The line now shows between the net's edges. The court's other lines were already all there (the boundary, both attack lines, the attack lines' extensions and the service zone's marks in the full detail); the beach court has only its four boundary lines, as the beach rules say.
- The demo's year switch in the atlas is a finger wide before its words arrive, in WebKit too.
- The badminton court's labelled parts use the BWF's words: the line inside the back boundary is the "Doubles long service line" (it was "Long service line", which in singles is the back boundary line itself), and the back boundary line says it is the singles long service line (Diagram A). The short service line's label no longer runs into the net's. An audit of every net sport's figures against the current rulebooks (ITF 2026, FIVB 2025-2028, BWF as amended 26 April 2025, USA Pickleball 2026, ITTF 2026) found no figure to change.

### Fixed

- **The badge's code and score no longer touch.** A 3-digit score (`101`) in the badge and in the strip of a compact card sat 8 units from the team's code (`101CAL`, `AUR99`). The score is measured with the package's text width, the code and the score keep a gap of 10 (the estimate is widened by a tenth for digits and a fifth for capitals, which is what a bold face draws), the code shrinks first (to 12 at the least), then the score, and the flag is left out when the room still runs out, at any width since the strip scales as one drawing. A short score is laid out as before, and no existing drawing changed.
- **BC Place read "FIFA World Cup, FIFA Women's World Cup" only, though it is the BC Lions' home (the CFL, since 1983) and the Whitecaps' (MLS, since 2011).** A place was known through one list, with only the tournaments it staged or the club of its park, so a stadium of two sports showed one. `Place.leagues` now has the league of every club that played there, then the tournaments; `placesBy({ league: "CFL" })` finds BC Place and the Rogers Centre, and `placesBy({ text })` finds a place by a club. A drawing of a place that has no other surface, or of a place's own surface, is the same text as before.

## [0.4.0] - 2026-10-14

Previously `@johnmorrisdotca/kyogijo`; renamed in 0.4.0 to `@johnmorrisdotca/kyogijo-stadiums`.

### Added

- **`roadToFinal`: the road to a tournament's final** (`@johnmorrisdotca/kyogijo-stadiums/charts`, [docs/charts.md](./docs/charts.md#the-road-to-the-final)). The two finalists as large round marks with their names; down the middle the rounds, the last at the top, on a dotted road; on each finalist's side its matches, each as the round mark of both teams with the score between them in large type and FT, AET or the shoot-out under it; and the group stage as a row of small marks, three-letter codes and scores at the foot. A finalist is a `Team` with a `path` of `{ round, opponent, score, decidedBy, pens, homeFirst, note }` and an optional `group`; a round is a key with words in English and Japanese (`round-of-32` to `semi-final`) or any key named in `labels`, so a play-off series (`4-2`) draws as well as a knockout. `final` writes the final's score between the large marks and quiets the loser; `winner` makes the side that won each match brighter; `codes`, `endnote`, `groupLabel`, `theme`, `language` and `style: "none"` as in the other drawings. Four sizes: `card` (1080 by 1350), `square` (1080 by 1080), `wide` (1200 by 675, the finalists at the two ends) and `phone` (390 wide, as tall as the rounds need), listed in `ROAD_SIZES`. It gives back a chart's shape without layers: `options`, `title`, `summary`, `totals` (each finalist's record, the rounds, the champion), `draw(extra)` and `table()`, a row for every match. The SVG is `role="img"` with a title and a description, reads in the scene and every renderer, goes in a `drawGrid`, and has ids of its own; a team with no flag or logo is drawn as its initials on its colour. New: `KYOGIJO_ROAD_STYLE`, the types `RoadChart`, `RoadFinalist`, `RoadMatch`, `RoadGroupMatch`, `RoadFinal`, `RoadOptions`, `RoadScore`, `RoadDecided`, `RoadSize`, `RoadSizeInfo`, `RoadRecord` and `RoadTotals`, and the `road` words of `KYOGIJO_STRINGS` (`en` and `ja`; a custom set of words must give them).
- **A round team mark in a score** ([docs/score.md](./docs/score.md#round-marks)). `mark: "round"` on a team, or `markShape: "round"` on the score, draws its flag or logo clipped to a circle with a thin ring, on each side of the surface (the end zones of a pitch, the halves of a court), in the badge and in the strip of a compact card; where the words are turned (along the ends of a wide pitch, in a tall drawing) the mark turns with them (0.6.1 and before turned it back to stay upright, which left a flag standing beside a name that lay sideways, and sideways in a tall drawing). A round mark with no logo is the team's initials on its colour; `markFit: "contain"` shows a crest whole on a plain disc. Off by default, and a drawing without it is the same text as before. New: `Team.mark`, `Team.markFit`, `ScoreOptions.markShape`, the type `TeamMark` and `KYOGIJO_MARK_STYLE` (`--ky-mark-ring`, `--ky-mark-edge`, `--ky-mark-plain`); a drawing writes the rules in only when it has a round mark.
- The demo has a "Road to the final" section with made-up nations (sixteen that do not exist, each with a simple flag drawn in code in `demo/road-data.js`), a play-off series, and the round mark on a pitch, in English and Japanese; the docs gallery has the same drawings, each made from the code beside it.

### Changed

- **Breaking: the package is now `@johnmorrisdotca/kyogijo-stadiums`** (it was `@johnmorrisdotca/kyogijo`, whose last version is 0.3.0). The code is the same, and so are the names in it: `drawKyogijo`, `mountKyogijo`, `<kyogijo-field>` and the `kyogijo` class are unchanged, and the product is still Kyogijo (`競技場`). What changes is where it is installed and imported from: `npm install @johnmorrisdotca/kyogijo-stadiums`, `import { drawKyogijo } from "@johnmorrisdotca/kyogijo-stadiums"`, and the same for every entry (`/charts`, `/replay`, `/layouts` and the rest) and for the CDNs (`https://cdn.jsdelivr.net/npm/@johnmorrisdotca/kyogijo-stadiums@0/+esm`). The repository is now `github.com/johnmorrisdotca/kyogijo-stadiums` and the demo `johnmorrisdotca.github.io/kyogijo-stadiums/` (the old repository address redirects; the old demo address does not). The demo keeps its choices of language and theme on the device under `kyogijo-stadiums.page.lang` and `kyogijo-stadiums.theme` (they were `kyogijo.`), so each visitor is asked once more. The family's template (`scripts/family-template.mjs`, version 2026-10-14) names the package `kyogijo-stadiums` in the footer and in every package's list of the family.
- **The demo's Ballparks section is short, with filters, and there is a Soccer grounds section like it.** All 94 park cards in one grid made a section 2,200 px tall on a desk and 6,000 px on a phone. It now opens on the MLB parks in use today (30), as two rows of eight on a desk and one row that scrolls sideways on a phone (a row keeps the section to one screen, and the next card shows at the edge to say it scrolls), with "Show all 30 parks" under them: 640 px on a desk and 580 px on a phone. Above the cards are the league (All, MLB, NPB), whether a park is in use (All, Today, Past), the era (a decade, for the past parks), a search that reads every name a park has had, in English and in Japanese (`placesBy`: `Camden Yards`, `甲子園`, `ヤンキースタジアム`; the filters are off while it is typed, so it reaches every park), a count line in a polite live region (`30 of 94 parks`) and a reset. The grounds have the same: the grounds of the World Cup finals open (28 of 64), with group (finals, 2026, clubs), country and search, and the section is no taller. The filters are in the address under their own names (`parkleague`, `parkstatus`, `parkera`, `parkq`, `parkall`; `groundgroup`, `groundcountry`, `groundq`, `groundall`), written only when they are not the default. The build draws the default view of both sections into the HTML, so they are whole with scripts off and move nothing when the script takes over; the e2e tests hold that (a layout shift of 0 with the sections in view) and cover the filters, both searches, show all, the address, the phone and the desk. The package is unchanged.
- **The demo's Every sport and The soccer pitch sections are short too, with chips.** The sport gallery was 4,451 px tall on a desk and 11,941 px on a phone, and the pitches section 3,236 px and 8,455 px, because every card drew tall. They now open on the first cards, wide, in boxes of one shape: two rows of three on a desk and one row that scrolls sideways on a phone with the next card peeking (738 and 458 px for the sports, 755 and 509 px for the pitches), with chips for the family of sport (Football codes, Hockey, Basketball, Baseball, Soccer, Curling, Net sports, Field sports) or the kind of pitch (Presets, Small-sided, Futsal, Famous grounds, Layouts, Mowing and goals; the mowing cards joined the pitches, with 5- and 9-a-side), a count that a screen reader hears, "Show all", and the chips in the address (`galleryfamily`, `galleryall`, `pitchesgroup`, `pitchesall`), English and Japanese. The first view is drawn into the page, and the cards a desk does not show first are boxes that the script draws when the grid comes near the screen, so the page does not carry a drawing of every card and nothing moves when one arrives (the same for the Ballparks and Soccer grounds).
- **Breaking: soccer, rugby (union and league), Australian football, Gaelic games, field hockey, handball and cricket now put the home team first (left) by default; pass `homeSide: "right"` for the old layout** ([docs/score.md](./docs/score.md#which-side-the-home-team-is-on)). The default was the North American "away at home" for every sport, which reversed a soccer score against "Home 2-1 Away". NFL, CFL, IFAF, NHL, NBA, MLB, curling, the net sports and lacrosse (except the `world-men`, `world-women` and `world-box` leagues, which are home first) keep the home team on the right. An explicit `homeSide` always wins. The badge, the compact strip, the order of the teams in the title and the description (`Calvara 1, Aurelia 2`, in Japanese too) and of a shoot-out in the status (`Final · 2-4 pens`) follow the side. New: `homeSideFor(sport, league?)`, and the `HOME_FIRST` and `HOME_FIRST_LEAGUES` tables behind it. `abbreviate()` now says that its guess is not a country code (Spain gives `SPA`, FIFA's is `ESP`): pass each national team's `abbr`.

### Fixed

- **The demo's first paint is whole.** The stage was a thin bar and every panel an empty box until the script ran, then the page jumped (a layout shift of 0.5). The build now draws the playground's first view into the HTML: the default rink, every English word, and the controls in their first state, so the page reads and shows its drawing with scripts off, and the script takes over the nodes that are there. The stage keeps its box from the first byte (its shape, by the drawing's width over its height), and an address that asks for another sport, size or way round has its box, rows and pressed choices set by a small inline script before anything is drawn, so the drawing swaps in place; a page opened in Japanese (the address, a kept choice or the browser) is held back, invisible but laid out, and shown in Japanese rather than English first. The docs, the gallery and the API reference have their header, footer and search words in the HTML too, and set `lang` before paint. The layout shift on load is 0 at every address and width tried (0.003 at most, for a past season whose notes are drawn by the script), and the e2e tests hold it under 0.05. The package is unchanged.

## [0.3.0] - 2026-10-14

### Added

- **Names for every park and ground** ([docs/ballparks.md](./docs/ballparks.md#names), [docs/grounds.md](./docs/grounds.md#names), [docs/references.md](./docs/references.md#names)). Each of the 94 ballparks and 64 grounds has `name`, the everyday name in English (the one English sports media use, with the current sponsor's where that is what people say); `nameJa`, the everyday name in Japanese (every place has one: the 74 ballparks of the United States and Canada, which a Japanese drawing used to name in English, now have the title of their Japanese article); `readingJa`, its reading in kana wherever it has kanji; `localName` and `localLanguage`, the everyday name in the language of the place; and `aliases`, `{ name, lang, kind, from?, to?, source?, revision?, reading? }`: 720 names, each with where it was read, of the kinds `wikipedia` (every article that was cited, English and Japanese, with its revision, so that no citation is lost), `official`, `sponsor`, `former` (with the years a source gives) and `nickname`. The evidence is Wikidata's labels, aliases and properties official name, nickname and name (CC0), read politely by `pnpm names:fetch` into `scripts/names.wikidata.json`, and the infobox and first paragraph of the articles each place cites; a name with no source stops the build. A ground's `names` (the names it had in some years) are as before.
- **Lookups by name**: `parkByName` and `parksByName` (`/parks`), `groundByName` and `groundsByName` (`/grounds`), and `placeByName` and `placesByName` (`/atlas`) find a place by any of its names, in English, in Japanese or in the language of the place, best match first (the everyday names, then the official, cited and sponsors' names, then the former names and the nicknames). The comparison, `plainName`, ignores case, accents, spaces and punctuation, full-width and half-width, hiragana and katakana, the long vowel mark (`ヤンキー・スタジアム` is `ヤンキースタジアム`), the old and new forms of `ヂ`, `ヅ` and `ヴ`, and a leading `The`. The atlas search (`placesBy({ text })`) reads the aliases and the readings too. `officialName`, `parkOfficialName` and `groundOfficialName` give the name a place officially has when it is not the everyday one.
- A drawing says the official name in its description when it is not the name it uses: `Its official name is Hanshin Koshien Stadium.`, `正式名称は阪神甲子園球場です。` (`said.officially` in `KYOGIJO_STRINGS`), in the year of the drawing where the official name is dated.
- The demo's Atlas detail panel lists the official name and the other names (`atlasOfficial`, `atlasAlso`), and its search finds them.

### Changed

- **Breaking: `name` is the everyday name, no longer the title of the article that was cited** (that title is an alias with kind `wikipedia`). Seven English names changed: `hanshin-koshien-stadium` is `Koshien Stadium` (was `Hanshin Koshien Stadium`), `mazda-stadium-hiroshima` `Mazda Stadium` (was `Mazda Zoom-Zoom Stadium Hiroshima`), `rakuten-mobile-park-miyagi` `Rakuten Mobile Saikyo Park Miyagi` (was `Rakuten Mobile Park Miyagi`, the name until 2025), `globe-life-park-in-arlington` `Choctaw Stadium` (as its article is titled now), `olympiastadion-munich` `Munich Olympic Stadium`, `olympiastadion-berlin` `Berlin Olympic Stadium`, and `groupama-stadium` `Groupama Stadium` (was `Parc Olympique Lyonnais`). `nrg-stadium` stays `Reliant Stadium`: its article says it was renamed back from `NRG Stadium` on 1 August 2026, and `NRG Stadium` (2014 to 2026) is a dated name and a `sponsor` alias.
- **Breaking: `nameJa` is the everyday name in Japanese**, as Japanese media say it where the Japanese article says which. Thirteen changed: `甲子園球場` (was `阪神甲子園球場`), `神宮球場` (was `明治神宮野球場`), `マツダスタジアム`, `エスコンフィールド北海道`, `楽天モバイル 最強パーク宮城`, `日産スタジアム` (was `横浜国際総合競技場`), `マラカナン`, `エスタディオ・モヌメンタル`, `ドイチェ・バンク・パルク`, `グルパマ・スタジアム`, `サン・シーロ`, `エティハド・スタジアム` and `カシマサッカースタジアム`; the old names are aliases (`official` or `wikipedia`). `ParkData.nameJa` and `Place.nameJa` are no longer optional: code that builds a `ParkData` or a `Place` of its own must give one.
- **Breaking: `Ground.nameLocal` is now `localName`**, and it is the everyday name in the language of the place (`San Siro` for the Meazza, `Maracanã`, `La Bombonera`, `Лужники`, `日産スタジアム`), not the name of the local article (the official ones are aliases). The parks of Japan, Montreal's two, and every ground outside the English-speaking world have `localName` and `localLanguage` too.
- **Breaking: the SVG written by `drawKyogijo` changes.** The English drawing of 15 grounds and 13 ballparks differs from 0.2.0's (the name, or the sentence that says the official name), and so does the Japanese drawing of every sport wherever it uses a word the native read of the Japanese settled (see below); every drawing's `data-version` reads `0.3.0`, which also changes the ids that are made from it. A stored copy of an old drawing, or a snapshot test of one, needs to be made again.
- **A native read of every Japanese string**, one terminology for the whole package: `ペナルティー` with the long vowel, as the JFA writes it (`ペナルティーエリア`, `ペナルティーアーク`, `ペナルティーマーク`, `ペナルティースポット`), `ウイング`, `本塁` for home plate (was `ホームベース`), `ゴーリー` for the goaltender, `国際標準` for the FIFA pitch, `BCプレイス`, `ゲーリック・ゲームズ`, `中堅正面` for dead centre, `ゴール裏` for behind the goal line, `フェアゾーン` and `ファウルゾーン`, `ゲームごとのスコア`; ranges are written with `〜` (was the full-width tilde `～`), and a size gives its unit once, `105×68m` (was `105m×68m`). English output is unchanged.
- The drawings that changed on purpose: the English drawing of 15 grounds and 13 ballparks (the name, or the sentence that says the official name) and the Japanese drawing of 8 grounds and 84 ballparks (the 74 of the United States and Canada, named in katakana now instead of in English, and 10 of Japan); a test holds every other drawing, in English and in Japanese, to the bytes it had.
- The demo's help text for the sport selector names all 20 sports, in English and in Japanese (it listed 14).
- The demo's Japanese status choices read as the status the drawing prints (`試合終了（延長）`, `試合終了（SO）`, `試合終了（延長戦）`, `試合終了（PK戦）`), and its Japanese page titles and labels follow the same terminology.

### Fixed

- **Spoken times in Japanese read as the time of day.** A replay's length and an event's time were said as `0:12` and `1:12`, which a Japanese reader takes for a clock; they are `12秒` and `1分12秒` now (`replaySpoken`, and the new strings `replay.spokenSeconds`, `replay.spokenMinutes` and `replay.spokenHours`, which a custom set of words must give). English still says `0:12`.
- **A convex hull's area unit was `平方m` in Japanese.** The unit is a word of the language now, `平方メートル`, `平方フィート` and `平方ヤード` (`team.squareUnits`, `team.squareOther`; `team.hullItem` takes the whole unit, `{unit}`, not `square {unit}`). English reads as it did.

## [0.2.0] - 2026-10-14

### Added

- **Layouts: small multiples** (`@johnmorrisdotca/kyogijo/layouts`, [docs/layouts.md](./docs/layouts.md)). `drawGrid(cells, { columns, gap, title, subtitle, endnote, legend, width, height, preset, background, language, theme })` puts many drawings in one SVG, as mplsoccer's `grid` does for pitches: one per park, per period or per player, under a shared title and subtitle, over a credit line, with a key they share. A cell is the options of `drawKyogijo`, a drawing's SVG, a chart, or `{ drawing, label }`. Every drawing keeps its own title and description and gets ids of its own (the same drawing may appear twice, and each rule scoped to an id follows it); the group has a title and a description made from them; the base stylesheet is written once. `preset` fits a social card (`card`, 1200 by 675), a square post (`square`, 1080 by 1080) or a phone (`phone`, 390 wide, one column, as tall as the drawings need); the columns are the number that makes the drawings largest. The scene and every renderer read a grid like any drawing. English and Japanese words for the group's title and description, and a test of every sport, every preset, ids, bounds and renderers.
- **Backgrounds** (`background` in the options of a drawing, and of a grid). A pattern drawn in SVG, with no image and no random number (`felt`, `grass`, `wood`, `ice`, `paper`, `grid`, `dots`), in the drawing's own ink at a low opacity so that it follows light and dark, laid on the apron under the surface; a colour under it; and a photograph (`image`, held to the rules of a team's `logo`, `imageOpacity`, `imageFit`) as an `<image>` between the two. Without a background a drawing is byte for byte as before. The canvas renderer cuts a photograph that fills the ground (`slice`) at its edges.
- **Runnable gallery examples.** Every picture of the gallery has a link to download the drawing as an SVG file and an "Open in a page" link to one HTML file, made when the site is built, that shows the picture, runs the snippet against the package on jsDelivr (`@johnmorrisdotca/kyogijo@<major>/+esm`, with the entries imported as `<major>/charts/+esm` and so on) and keeps the build's picture when the published package has no such feature. No third-party sandbox is used, and the page says that jsDelivr serves only published versions. A test runs every page's script against the source. A gallery page of layouts and backgrounds.
- **Lacrosse, rugby, Australian football, Gaelic games, cricket, field hockey and handball** (`sport: "lacrosse"`, `"rugby"`, `"afl"`, `"gaelic"`, `"cricket"`, `"fieldhockey"`, `"handball"`, [docs/field-sports.md](./docs/field-sports.md)). Each surface to scale from its own current rulebook, every figure cited, rule by rule, in docs/sources.md: World Lacrosse's men's and women's fields and box floor (2025 to 2028), the NCAA's men's and women's fields, the PLL's field (its 2024 book, the newest found) and the NLL's floor; World Rugby's Law 1 (2026), the NRL's (2023) and the IRL's (2024) playing fields; the AFL's Law 3 (2026), as an oval cut at its ends, with six named grounds at the length and width the AFL's venue pages print; the GAA's Rule 1 for football and hurling (2026); the pitch, creases and wickets of the Laws of Cricket (4th Edition 2026) in a ground with a boundary of your own and the ICC's 30-yard circle (October 2026); the FIH's pitch (March 2026) and the IHF's court (1 July 2025). 7 sports, 7 lacrosse leagues, 3 rugby, 2 Gaelic, 3 cricket (`LEAGUES`), the option `field` (`length`, `width`, `inGoal`, `ground`, `boundary`, `circle`: a size within the range each rulebook allows, an error that says the range when it is outside), `FIELD_SPORTS`, `fieldPlan` and `AFL_GROUNDS`.
- **The field sports' scores**: Australian football's `goals` and `behinds` written `10.12 (72)` and Gaelic games' `goals` and `points` written `2-14 (20)`, the total worked out; a cricket board of runs for wickets, overs and each innings (`wickets`, `overs`, `innings`, the status `innings-2`), with the sentences for each in the description.
- Ranges for the field sports (`in-goal`, `twenty-two`, `twenty`, `crease`, `forward-fifty`, `centre-square`, `large-rectangle`, `pitch`, `circle`, `twenty-three`, `goal-area`, with `RangeInfo.leagues` for a range that only some leagues mark), the zone sets `field-thirds` and `cricket-ground`, the frames `lacrosse`, `rugby`, `afl`, `gaelic`, `cricket`, `fieldhockey` and `handball` (the centre of the surface as the origin), landmarks, features (`FEATURES.rugby` and the others), the goal styles for lacrosse, field hockey and handball, `KYOGIJO_FIELDS_STYLE` (the colours of a handball floor and a hockey pitch), a gallery page and English and Japanese words for all of it. The other 13 surfaces' drawings are the same text as before.
- **Walls and quirks of a ballpark** (`walls`, `quirks`, `parkWallsIn`, `parkQuirksIn`, `Park.walls`, `Park.quirks`, [docs/ballparks.md](./docs/ballparks.md)). `walls: true` draws a band outside each stretch of a park's fence whose width and shade (four, light and dark, `KYOGIJO_WALLS_STYLE`) say how high it stands, from the height its article gives (35 parks, 24 of MLB and 11 of Japan: the Green Monster 37 feet 2 inches, the Little Green Monster, the Crawford Boxes, Oracle Park's 24 foot right field wall, the Baggie, Wrigley Field's ivy walls), for the season `year` names; `walls: { legend: true, labels: true }` adds a key and each wall's name and height, in feet or metres, in English or Japanese, and the description lists them. `quirks: true` draws Tal's Hill (2000 to 2016), the Polo Grounds' and Tiger Stadium's overhangs, Pesky's Pole, the Tiger Stadium flagpole, the Polo Grounds' bullpens, Wrigley Field's ivy and basket, the distance to the backstop (43 parks) and the sides of four parks' dugouts; `quirks: { only, labels }` chooses and names them. The element reads `walls` and `quirks`. The data is `walls`, `quirks`, `labels`, `track_ft`, `backstop_ft` and `dugouts` in `scripts/parks.data.json`, each at the revision the park already cites; the angles each stretch covers are our reading of the article's words (docs/references.md), a park whose article gives no figure keeps its drawing, and without the options every park's drawing is byte for byte what it was (a test holds the hash of 90).
- **More points of a fence, and a warning track.** Wrigley Field's two wells (9 points, not 5), Sportsman's Park's twelve markers (not 6) and Milwaukee County Stadium's nine (not 7) are read from their articles' text, each with its label in `Park.labels`; PNC Park's warning track is its published 18 feet and not the rule of thumb of 15. These four parks' drawings change; the other 90 do not.
- **Display ranges and zoom** (`range`, `RANGES`, [docs/ranges.md](./docs/ranges.md)). A drawing cropped to a named part of any of the thirteen surfaces, as sportypy's `display_range` and hockey_rink's partial rinks do, in one option: a rink's `offensive-zone`, `defensive-zone`, `neutral-zone` and `half`; a court's `half-court` and `paint`; a football field's `red-zone`, `between-the-20s`, `end-zone`, `field-of-play`, `own-half` and `opponent-half`; a pitch's `half`, `final-third`, `defensive-third`, `middle-third` and `penalty-area`; a ballpark's `infield` and `outfield`; a net sport's `half-court`; a curling sheet's `sheet`, `half` and `house` (which `sheet.show` and `sheet.end` keep saying); at the end `{ name, end }` asks for, or a box `{ x0, x1, y0, y1 }` in the drawing's frame, in `units` or in any registered frame. The view is cut with a small margin and the orientation is kept; data and heat layers are cut to the range and sized, laid out and binned against it, with the legend inside; `axes`, `landmarks` and `direction` stand against what is shown, on the apron beyond the cut; a score's panel is moved inside the range or, for one too small to hold it, becomes the strip under the drawing, and a team's name is written only where its place is shown. The description says what is shown, in English and Japanese, and the root carries `data-range`. `<kyogijo-field>` reads `range` and `range-end`. Without `range` the drawing is byte for byte what it was, and a test holds every named range of every sport, wide and tall, with data, annotations and a score.
- **Special games** (`host`, `placement` and `event` in the options, `@johnmorrisdotca/kyogijo/events`, [docs/special-games.md](./docs/special-games.md)). One surface set inside another, to scale: the host (a ballpark of `PARKS`, a soccer ground or pitch, a football field, or a plain deck) drawn as it is alone, and the drawing's own surface set inside it through one transform, so that its lines, its team banners, its score and its data `layers` are the inner surface's, in its own frame. `EVENTS` holds 18 games in the order they were played, each with its day, its venue, its host, where the surface stood and its sources: the NHL's Winter Classics of 2009, 2010, 2017, 2018, 2019, 2022 and 2023, the Stadium Series of 2014 at Dodger Stadium and Yankee Stadium, the Heritage Classics of 2003, 2011, 2014, 2016, 2019 and 2023, the 2011 Carrier Classic on USS Carl Vinson, and MLB's London Series of 2019 and 2023 with their published fences. Where a source gives the rink's place (Wrigley Field 2009, Fenway Park 2023) it is used and cited; where none does the place is a convention (`midfield`, `infield`, `diamond`, `deck`, worked out by `conventionPlacement`) and each game says so. `eventOptions(id)` draws a game, `eventFit(id)` says whether its surface lies inside the host or how much of it lies beyond, and a drawing of a game says so in its description, in English and Japanese. A drawing with no host is the same string as before.
- **Renderers** ([docs/renderers.md](./docs/renderers.md)). The drawing as plain data and on other targets, from the code that writes the SVG, with no second drawing and no dependency added: `sceneOf` (`@johnmorrisdotca/kyogijo/scene`) lists every shape in paint order with its colours worked out for light or dark, its matrix, clips, gradients and patterns, and `sceneToSvg` writes it as an SVG that needs no stylesheet; `drawToCanvas(ctx, drawing, { width, theme })` (`/canvas`) paints it on a browser's, an `OffscreenCanvas`'s or a Node canvas's context with the context typed by what is called; `appendSurface(selection, drawing, x, y)` and `surfaceDomain` (`/d3`) put it in a d3 selection by the caller's linear scales; `surfaceMark` and `surfaceScales` (`/plot`) make an Observable Plot mark and its scales; `sceneToGeoJSON(drawing, { frame })` (`/geojson`) writes each shape as an RFC 7946 feature in feet or a provider's frame; `toPNG(drawing, { width })` (`/png`) draws a PNG in Node through the optional peer `@resvg/resvg-js`, loaded when called, with an error that says what to install. The SVG tree gives every drawing back byte for byte (`parseSvg`, `writeSvg`), the style was compared with Chromium's `getComputedStyle` and the canvas with the browser's own drawing of the SVG (`e2e/renderers.demo.mjs`), and the sizes of the code are held to budgets.
- **Tennis, volleyball, badminton, pickleball and table tennis** (`sport: "tennis"`, `"volleyball"`, `"badminton"`, `"pickleball"`, `"tabletennis"`, [docs/courts.md](./docs/courts.md)). Each court to scale from its own rulebook, every figure cited in docs/sources.md: the ITF's Rules of Tennis (2026; the court, the service lines 21 feet from the net, the centre mark, the net posts 3 feet outside the doubles court, the singles sticks on request), the FIVB's Official Volleyball Rules and Official Beach Volleyball Rules (2025-2028; the centre line, the attack line 3 m from its axis, the front zones, the antennae, the free zone, the attack line's extension and the posts 1 m out for the FIVB's competitions; beach volleyball is `league: "fivb-beach"`), the BWF's Laws of Badminton (as amended 26 April 2025, with Diagram A), USA Pickleball's rulebook (2026; the non-volley zones and centerlines) and the ITTF's Laws of Table Tennis (the 2026 statutes; the table and the net). They lie wide; `orientation: "portrait"` lays them tall. `net.look` picks a named look (tennis `hard-blue`, `hard-green`, `clay`, `grass`; volleyball `wood`, `blue`, `sand`; badminton, pickleball and table tennis their own), `net.free` the free zone (`official`, `least`, `none`) and `net.sticks` the tennis singles sticks.
- **A score for the net sports**: each team's `sets` (tennis: its games; pickleball and table tennis: each game's points), `tiebreaks` and `points` in tennis, `serving`; a board of sets and games over the net and a badge with the server's ball; the statuses `set-3`, `game-2`, `tiebreak`, `match-tiebreak`, `retired` and `walkover`; and the server, each set and the game in the description. The board's heads follow each rulebook's word: sets for tennis and volleyball, games for badminton, pickleball and table tennis.
- The leagues `itf`, `fivb`, `fivb-beach`, `bwf`, `usap` and `ittf`, the sources for each, the frames `tennis`, `volleyball`, `badminton`, `pickleball` and `tabletennis` (the centre of the net as the origin), the zone set `net-court` (the front court and the back court on each side of the net), `TENNIS`, `VOLLEYBALL`, `BEACH_VOLLEYBALL`, `BADMINTON`, `PICKLEBALL` and `TABLE_TENNIS` in `/geometry`, `netOf` in `/leagues`, English and Japanese words for all of it, and a gallery page.
- **Styling** ([docs/theming.md](./docs/theming.md)). `look` (the root says `data-palette`, as `data-look` is a net court's) paints a whole drawing in one of seven named palettes (`grass`, `night`, `chalkboard`, `blueprint`, `print`, `broadcast`, `high-contrast`, in `LOOKS`), light and dark, for every sport, as custom properties at no weight; a test holds every painted line of every look, mode and sport to 3:1 against what it is painted on, and the words to 4.5:1 against the apron. `featureColors` colours a part by name (`FEATURES[sport]` lists them: 12 for football, 17 for the rink, 18 for the court, 13 for the ballpark, 14 for the pitch, 15 for the sheet, 8 for each net sport). `lineWidth` (a scale or an absolute width), `lineDash` and `lineOpacity` for the painted lines. `goals` now styles a hockey net, a basketball basket and a football field's posts as it did a soccer goal, and `goalMarkup` takes a function of your own that draws the goals. `stripePattern` mows football fields and ballparks (and adds `circles` for every grass surface, and `rings` and `fan` for a ballpark). Nothing changes in a drawing that uses none of them: a snapshot of 122 drawings proves it. Ideas from sportypy (colours by named feature), ggsoccer (line widths, types and alpha, goal styles and a goal function) and mplsoccer (stripes), credited in docs/references.md; no code is used.
- **Annotations** ([docs/annotations.md](./docs/annotations.md)). `direction` draws an arrow for the end each team attacks (by the sport's rule for the period, with `changedAfter` for a case no rule settles); `axes` draws ticks and numbers along the edges, in the drawing's own numbers or in any registered frame of the sport; `landmarks` names the parts of every surface, in English and Japanese, with a leader to each. They follow a surface turned a quarter with every word upright, make the margin as wide as they need, and are said in the description. A test holds the arrows, the words and the anchors, for every surface wide and tall and with either end attacked, and the soccer penalty arc outside its box in every provider's numbers. The `look`, `line-width`, `line-dash`, `line-opacity` and `landmarks` attributes of `<kyogijo-field>`.
- **Curling** (`sport: "curling"`, [docs/curling.md](./docs/curling.md)). A sheet to scale from R1 of World Curling's Rules of Curling (1 September 2026) and Rule 3 of Curling Canada's Rules of Curling for General Play (2022 to 2026): a house at each end, the tee, back, hog and centre lines, the hacks and, in World Curling's, the hack and courtesy lines; tall by default, with the far house at the top. `league` is `wcf` (the default, in metres) or `curling-canada` (feet); `sheet` sets the length and the width within the rules' range, the colours of the rings, the ice's pebble, the shaded free guard zone and a part of the sheet (`half`, `house`).
- **A curling score**: each team's `ends` and `hammer`, a board on the ice (the ends down a tall sheet, across a wide one) and a badge with the hammer, the statuses `end-6` and `extra-end`, and the ends and the hammer in the description.
- **`curlingStones` and `curlingScore`** (`@johnmorrisdotca/kyogijo/charts`): the stones of an end on the house, judged by the rules (out of play, in the house, counting, the shot rock, a blank end), with the zone set `curling-house`, the frame `curling` (feet from the button) and the stone's size (`STONE_DIAMETER`, from 36 inches round).
- The league `curling-canada`, the sources `wcf-rules` and `curling-canada-rules`, English and Japanese words for all of it, and a gallery page.
- **Team shape** ([docs/team-shape.md](./docs/team-shape.md)). Seven new kinds of data layer for team analysis, each drawn on any surface in its feet or a provider's frame, cut to the surface's outline, in the layer colours of the page (light and dark), with a title, a description, a tooltip for each mark and, with `layerTable(layers, { surface })`, a table of its numbers: `network` (a pass network: a node for each player at the average place of the passes he made and received, sized by touches, a link for each pair sized and shaded by passes, `minPasses`, `directed`, labels), `formation` (a labelled mark for each position of a named formation, with a lineup's numbers and names on them), `voronoi` (space control: each player's cell in his team's colour, each team's share of the surface counted on a grid kept to the surface), `delaunay` (the triangulation of each team's players or of all), `hull` (the convex hull of each team, with its area), `flow` (the mean direction of the movements that start in each cell of a grid, as arrows of the mean length or of one length shaded by steadiness) and `sonar` (direction roses of counts or mean lengths, for all, each player, each cell of a grid or each zone of a zone set). `passNetwork(passes, options)` in the charts entry makes the network with a key, totals and two tables. `FORMATIONS` holds 21 formations in the frames of their sports (soccer 4-4-2, 4-3-3, 4-2-3-1, 4-1-4-1, 3-5-2, 3-4-3, 5-3-2, 5-4-1, 4-3-2-1 and the diamond; hockey five on five and a 1-3-1 power play; basketball five out, four out and one in, and 1-4 high; football's I formation, shotgun, 4-3 and 3-4; baseball's standard defence and an infield shift), with the names of the positions in English and Japanese (conventional: the Laws of the Game name only the goalkeeper) and `los`, `attacking`, `names` and `labels` options; a formation of your own is plain data. The geometry is written for this package with no dependency and exported from the layers entry: `convexHull` (monotone chain), `delaunay` (Bowyer and Watson with ghost triangles for the hull) and `voronoiCells`, held by tests on random points, lattices, points on one circle, collinear, repeated, one, two and no points, and points of huge, tiny and far-off scale. Budgets held by tests: a Voronoi diagram of 22 players under 12 kB, a pass network of 600 passes under 16 kB in under 100 ms, a triangulation of 1,000 points in under 600 ms, a flow field of 5,000 movements under 20 kB in under 150 ms. Ideas from mplsoccer (MIT), credited in docs/references.md; no code of it is used. The gallery has an entry for each, the comparison table a row for them, and docs/sources.md says what its formations rest on.
- **Replay** (`@johnmorrisdotca/kyogijo/replay`, [docs/replay.md](./docs/replay.md)). Tracking data played on any surface: a timeline of frames (`{ t, objects: [{ id, team, x, y, label?, number? }] }`, in any registered frame) and events at times (pass, shot, goal, whistle). Pure functions: `interpolate` (straight, or a Catmull-Rom curve through the frames with `smooth`), `trails`, `possession` (when the data says), `activeEvents` and `drawFrame(options, timeline, t)`, a deterministic SVG string built on the data layers (the home team as circles, the away team as squares, shirt numbers, the ball with its trail, passes and shots as arrows, a goal as a star), with a description that does not change with the time. `createReplay` is the clock as a state machine with no page in it (play, pause, seek, step, speed 0.25 to 4, loop, the events that went by). `mountKyogijo(...).replay(timeline)` and `<kyogijo-field>.timeline` play it with controls under the drawing (play and pause, step back and on, speed, loop, a position slider and the time), the keyboard (space, the arrow keys, shift and the arrows, Home and End), and only the marks that move moved on `requestAnimationFrame`, never the surface. `prefers-reduced-motion` is followed: nothing plays by itself and play steps instead; a hidden page pauses; a live region says each goal, shot, pass and whistle as it passes; every control is named in English and Japanese. `update()` keeps the replay. A score that changes through `update()` now swells and settles once (a fade only, with reduced motion). The demo has a Replay section with a made-up, seeded play on the rink and on the pitch, the gallery has a frame of each, and 22 players and a ball for 60 seconds at 25 frames a second are held to a time and size budget.
- **A docs site** at `/docs/` of the demo site, made by `pnpm site` from `docs/*.md`: 31 pages in groups, a search box over every title and heading, the pages before and after, a copy button on every block of code, light and dark, phone width, and the contents in Japanese. The README keeps the pitch, the first minute, one example per area and the family block, and is about 37,000 characters instead of 64,000; its reference sections moved to [docs/](./docs/README.md) (getting started, surfaces, score and layout, soccer, ballparks, units, coordinate frames, accessibility, limits, entry points, architecture).
- **A gallery** in the docs site: every surface, league variant, season, park and ground sample, layer kind, heat layer and chart, each drawn by the build from the code shown beside it, with a copy button. A test runs every snippet.
- **How it compares** ([docs/compare.md](./docs/compare.md)): a table against sportypy, sportyR, `@sportsdataverse/sporty`, hockey_rink, mplsoccer, ggsoccer, GeomMLBStadiums, gavinr's spring-training parks and thestadi.com, from each README.
- **Coordinate frames and surface units as tables made from the code** (`pnpm docs:make`), with the same spot drawn in each of the 16 frames side by side.
- Every `ts` example of the README and of every docs page is run, and what it prints is held to its comment lines.
- **Ready-made charts** (`@johnmorrisdotca/kyogijo/charts`, [docs/charts.md](./docs/charts.md)). One call each makes the layers and the drawing options for a chart, so a good chart takes one line and every layer can still be changed: `nbaShotChart` (made and missed shots and the six shot zones coloured by field-goal percentage, diverging from the league's), `nhlShotMap` (goals and shots sized by expected goals, `fold` to put both ends on one, slot zones or hexagons), `mlbSprayChart` (balls in play on the park of their season, past parks included, a mark for each hit type, balls beyond the fence drawn beyond it, spray zones by the side the batter bats from, Retrosheet codes as well as Statcast's `hc_x` and `hc_y`), `nflPassChart` (destinations by outcome and air yards, the line of scrimmage, the pass grid's completion percentages) and `soccerShotMap` with `goalMouth()` / `soccerGoalMouth` (shots sized by expected goals on the pitch or its half, a view of the goal frame with where each shot crossed the goal line, xG totals). Each chart has a key, a legend, a title and description for every layer and a table; the drawings are deterministic, held by fingerprints and size budgets; its words are in English and Japanese; every example on the page is run by a test. The tables of layers and heat layers now name the unit of a frame's own numbers (tenths of a foot for the NBA's) and not the drawing's. The demo has a Charts section.
- **Heat layers.** Five new kinds of data layer: `heatmap` (a binned statistic on a grid over the surface), `hexbin`, `zones` (named zones with aggregated values and labels), `contour` (a Gaussian kernel density, Scott's rule by default, drawn as filled bands or lines) and `legend`. Statistics are `count`, `sum`, `mean`, `median`, `max`, `min`, `percent`, `rate` (a field-goal percentage from made and missed) or a function, with `normalize`, `minCount`, a `domain`, a diverging `center` and cell or zone labels. Cells, hexagons and bands are cut to the surface's outline. Ten zone sets, each cited in docs/sources.md: soccer positional zones (juego de posición), thirds, channels and the 18 zones; the NBA's shot zones; the NHL's slot and home plate; baseball's spray zones and Retrosheet's sectors; football's pass grid. Five built-in colour ramps (`ember`, `ocean`, `mono`, `balance`, `tide`) with a light and a dark set, checked against every surface's colour; custom stops. Each layer has a title, a description that names its hottest cells or zones and, with `layerTable(layers, { surface })`, a table of its numbers. A 50 by 30 grid is held under 30 kB on every sport and 10,000 marks make a density in under 500 ms. The `/layers` entry exports the numbers (`binGrid`, `hexBins`, `densityGrid`, `contourRings` and more), `ZONE_SETS` and `buildZoneSet`. The demo's Data section shows a rink heat map, an NBA shot-zone chart with field-goal percentages, a soccer positional heat map and a density contour.
- **Past ballparks.** `PARKS` grows by 44 past parks, and every park carries its Wikidata item (`wikidata`, `parkByWikidata`). A past park has the seasons it was used (`from`, `to`) and, where an article dates earlier fences, `periods`, chosen by the new `year` option (`parkPointsIn`).
- **Units.** `SURFACE_UNITS` names the unit each rulebook states its figures in; `convertLength`, `lengthsIn`, `dimensionsOf`, `surfaceSize` and `fenceIn` give every dimension in feet, inches, yards, metres, centimetres or millimetres; the `units` option says what the lengths of a drawing's options (`margin`, `fence`) are in.
- **Coordinate frames** (`@johnmorrisdotca/kyogijo/frames`). `toSurface`, `fromSurface` and `convert` put a provider's points on a surface and move them between providers, with `units`, `anchors`, `limits` and `attacking`; the frames of the NHL API, HockeyTech, NBA stats, NFL tracking data, MLBAM and Retrosheet's hit locations; `registerFrame` and `piecewise` for the frames of other sports.
- **Soccer.** `sport: "soccer"` draws a pitch from Law 1 of the IFAB Laws of the Game at any size (`pitch`), with presets (international, UEFA, MLS, NCAA, the Laws' least and most, the FA's 9-, 7- and 5-a-side, FIFA's futsal), half pitches, six mowing patterns, four goal styles, corner flags, teams in their penalty areas and a score with extra time and penalties (`Team.penalties`, `final-aet`, `final-pens`). Ten data providers (`SOCCER_PROVIDERS`) as frames, a pitch drawn in a provider's own coordinates (`pitchType`) with an empty `ky-data` group for raw data, and `rescale` between any two, landmark to landmark.
- **Data layers** (`layers` in the options; `drawLayers`, `layerTable` and the `@johnmorrisdotca/kyogijo/layers` entry). Points (seven shapes and team logos), lines, arrows (curved, wavy, open or filled heads, comet lines that fade along their length) and text over any surface, in the surface's feet, any unit or a provider's frame, cut to the boards, the fence or the court's lines with a clip path for each drawing, upright when the surface lies tall. Size by value, colour by value, team or outcome, filled and hollow outcomes (`OUTCOMES`), new colour properties (`--ky-layer`, `--ky-layer-home`, `--ky-layer-away`, `--ky-layer-edge`, `--ky-layer-hollow`, `--ky-layer-ink`, `--ky-layer-halo`) that follow a score drawing's teams. A title and a description for each layer, a tooltip for each mark and an HTML table of the data. 1,000 points add about 60 kB; 10,000 are drawn in about 20 ms. The demo has a Data section with a shot map, a pass map and a spray chart made from seeded, made-up data.
- **Surfaces through the years** (`@johnmorrisdotca/kyogijo/eras`). `year` draws a surface as its league's rules marked it in a season, for the NHL, the NBA, the NFL, the CFL and baseball: the NHL's centre red line, goal lines, blue lines and trapezoid, the NBA's lane, three-point line and restricted area, the NFL's hash marks and goal posts, the CFL's end zones, hash marks and goal posts (and the field planned for 2027), the baseball pitcher's box and plate, batter's boxes and home plate. `rulesFor`, `eraChanges`, `eraStates`, `eraRange`, `seasonLabel` and `footballIn`; each change has the season it began in, a sentence in English and Japanese and its sources, and a marking no source covers is listed in `gaps` rather than guessed. The demo has a season slider.
- **Famous soccer grounds.** `GROUNDS` (`@johnmorrisdotca/kyogijo/grounds`) has 64 grounds: the venue of every men's World Cup final from 1930 to 2022 and the 2026 final, all 16 venues of 2026, the venue of every Women's World Cup final, and well-known club grounds (both Wembleys, the Maracanã, Camp Nou, the Bernabéu, San Siro, Old Trafford, Anfield, Signal Iduna Park, the Allianz Arena, La Bombonera, Hampden Park, Celtic Park, the Estádio da Luz, the Parc des Princes, Saitama Stadium 2002, Nissan Stadium, the Seoul World Cup Stadium and more). Each has its city, country, Wikidata item and coordinates, the names it had with their years, its name in the place's language and in Japanese, its opening and closing years, capacity, the World Cups it staged, the pitch's length and width where its English Wikipedia article publishes them (42 of 64; the others are drawn at 105 by 68 m and marked `pitchSize: "default"`), and the article and revision each was read from. `drawKyogijo({ sport: "soccer", ground: "maracana", year })` draws the pitch at the ground's size under its name for the year; `groundById`, `groundByWikidata`, `groundNameIn`, `groundsHosting`, `groundSourceUrl`. `pnpm grounds` builds the data and docs/grounds.md; `pnpm grounds:check` asks Wikidata again. The demo has a ground picker.
- **A stadium atlas** (`@johnmorrisdotca/kyogijo/atlas`). `PLACES` joins the 94 ballparks and 64 soccer grounds into one list with where each stands (`lat`, `lon`, Wikidata's P625), its country and city, its sport, leagues, whether it is in use today or of the past, and the years it was in use; `placesBy({ sport, kind, league, country, status, year, text })`, `placeById`, `atlasFacets` and `surfaceOf`. Every park now has its coordinates and the years it opened and closed (`pnpm parks:coordinates` fetches them, `pnpm parks:check` compares them with Wikidata). The demo has an Atlas: a chizu world map with a marker on every place (a circle for today, a diamond for the past), filters, a year slider, a list and the chosen place's surface beside the map; docs/atlas.md has a picture of the map, made by `pnpm site`.
- **League variants** (`@johnmorrisdotca/kyogijo/leagues`). `league` draws a surface as one league's rulebook marks it, with `sport` naming the family: basketball (the WNBA, FIBA, NCAA men and women, NFHS, the G League), hockey (the IIHF, NCAA men and women, AHL, ECHL, OHL, WHL, QMJHL, USHL, PWHL), football (the NCAA, NFHS 11, 9, 8 and 6 players, Texas six-man, the Indoor Football League) and baseball and softball (MiLB, NCAA, NFHS, Little League and its Intermediate division, three PONY divisions, NCAA and NFHS softball, USA Softball fast and slow pitch, WBSC slow pitch). Each league has its figures in its own unit, its name in English and Japanese, its sources with edition and address (`LEAGUES`, `VARIANTS`, `LEAGUE_SOURCES`, `leagueFigures`), and the changes a source dates (`leagueChanges`, `leagueAt`): the WNBA lane (2004), the NCAA restricted-area arc, the IIHF blue line and goalkeepers' trapezoid, the AHL blue lines (2005-06) and the NCAA men's trapezoid (2026-27). Score mode, themes, orientation, badges, `year` and data layers work on every league. The demo has a league picker; docs/variants.md lists every figure and docs/references.md what could not be cited.

### Changed

- **Breaking: the park status `"historic"` is now `"past"`.** `Park["status"]` is `"current" | "secondary" | "past"`, as for the grounds and the atlas; the six NPB parks that read `"historic"` read `"past"` (the type and the value in `PARKS`). Code that compares `park.status === "historic"` must compare with `"past"`.
- **Breaking: `Sport` and `SPORTS` grow from 6 to 20 sports.** The type was `"nfl" | "cfl" | "ifaf" | "nhl" | "nba" | "mlb"`; it now also has `"soccer"`, `"curling"`, the net sports (`"tennis"`, `"volleyball"`, `"badminton"`, `"pickleball"`, `"tabletennis"`) and the field sports (`"lacrosse"`, `"rugby"`, `"afl"`, `"gaelic"`, `"cricket"`, `"fieldhockey"`, `"handball"`). A TypeScript `switch` over `Sport` that is checked to be exhaustive must add a case for each, and code that loops over `SPORTS` now meets all twenty.
- **Breaking: the NHL trapezoid is 22 feet wide at the goal line, not 18.** `NHL.trapezoid.atGoalLine` was 18 feet; Rule 1.8 has 22 feet, the figure since 2014-15, when the trapezoid was widened by 2 feet each side (18 feet from 2005-06 to 2013-14, which `rulesFor("nhl", year)` and a drawing with `year` still give). The rink is drawn with the wider trapezoid by default.
- **Breaking: the NHL's hash marks are 5 feet 7 inches apart, not 5 feet 11 inches.** The marks beside an end-zone circle were drawn 5 feet 11 inches apart, which added the lines' width to a gap it does not enter; Rule 1.9 says 5 feet 7 inches (`NHL.hashApart`). The AHL, ECHL, OHL, WHL and PWHL, which share the NHL's Rule 1, change with it. docs/sources.md also records where the NHL's Rule 1.8 (a 22-foot trapezoid at the goal line, drawn) and Rule 27.8 (18 feet) disagree.
- **Breaking: MLB bases are 18 inches square, not 15.** `MLB.baseSize` was 15 inches; Rule 2.03 of the Official Baseball Rules has 18 inches from the 2023 season. The size is now a marking in `rulesFor("mlb", year)` (`baseSize`, 15 inches before 2023, 18 from 2023, with `eraChanges("mlb")` listing it), so the field is drawn with 18-inch bases by default and 15-inch ones for a season before 2023.
- **Breaking: the SVG written by `drawKyogijo` changes.** Every NHL drawing (the trapezoid and the hash marks) and every MLB drawing (the bases) differs from 0.1.0's, so a stored copy of an old drawing, or a snapshot test of one, needs to be made again. Every drawing's stylesheet is also about 2 kB larger.

### Fixed

- **NHL hash marks were 3 feet apart before 2014-15.** The rulebook of 2012-13 (Rule 1.9) says "three feet (3') apart", and the NHL and NHLPA release of 6 October 2014 moves them to 5 feet 7 inches for 2014-15. `rulesFor("nhl", year).rules.hashApart` is 3 feet through 2013-14 and 5 feet 7 inches after, `eraChanges("nhl")` lists both (`nhl.hashApart.2012`, `nhl.hashApart.2014`) and a rink drawn for an earlier season has the marks 3 feet apart. Seasons before 2012-13 are cited by no rulebook read, so they keep 3 feet and `gaps` names `hashApart`. The AHL, ECHL, OHL, WHL and PWHL are unchanged: no page read dates a change of their marks.
- **docs/sources.md cited the wrong baseball rule for home plate.** Home plate is Official Baseball Rules 2.02 (Home Base) in the 2024 edition; 2.03 is The Bases. The 90-foot square is 2.01, not 2.01 and 2.02.

## [0.1.0] - 2026-10-13

### Added

- **Six surfaces drawn to scale as SVG**: the NFL, CFL and IFAF football fields, the NHL rink, the NBA court and the baseball field, each from its rulebook or federation diagram, with every figure cited in docs/sources.md.
- **Score mode.** `drawKyogijo`, `drawScore` and `drawBadge` put each team's name and logo on its side (the end zones, the ends of the ice, the halves of the court, the dugouts) and the score in the middle, with the competition, the status, the date and an emphasis on the winner. Sizes `full`, `compact` and `badge`.
- **Wide, tall or fit the box.** `orientation: "landscape" | "portrait" | "auto"`: portrait turns the surface a quarter with every word upright and the teams top and bottom; `auto` follows `aspect`, and `mountKyogijo` watches the container and draws again when its shape changes.
- **Every ballpark.** `PARKS` has the 30 MLB parks, the 12 NPB home parks and eight other NPB grounds, each fence drawn from the distances published for it, with the article and revision each was read from. `park` and `fence` options; names in English and Japanese.
- **Theming.** Every colour is a custom property in a light and a dark set, `colors` sets them from code, and a court has its own look (`court`) with five to start from in `COURT_THEMES`.
- **Four ways in.** The function, `mountKyogijo` for a container, the `<kyogijo-field>` custom element with parts, and a frame (`embed.html`) for a page that runs no script; `@johnmorrisdotca/kyogijo/react` for React, which does not import it.
- **Accessible.** Each drawing is an `img` with a title and a description in English or Japanese.
- **The demo** with every sport and every park, wide and tall, light and dark, badges, compact cards, court looks, a live score, snippets for the four ways in, and the API reference.
