@johnmorrisdotca/kyogijo-stadiums 0.57.0 → 0.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/NOTICE.md +2 -0
- package/README.md +1 -1
- package/catalogue.json +1 -1
- package/dist/areas.d.ts +8 -3
- package/dist/areas.js +14 -5
- package/dist/athletics/plan.d.ts +2 -0
- package/dist/athletics/plan.js +20 -4
- package/dist/catalogue.data.js +1 -1
- package/dist/circuits-entry.d.ts +1 -1
- package/dist/circuits-entry.js +1 -1
- package/dist/circuits.draw.js +7 -4
- package/dist/circuits.held.d.ts +1 -0
- package/dist/circuits.held.js +13 -0
- package/dist/circuits.index.d.ts +15 -0
- package/dist/circuits.index.js +28 -0
- package/dist/circuits.race.dom.d.ts +25 -5
- package/dist/circuits.race.dom.js +22 -7
- package/dist/circuits.race.draw.d.ts +1 -1
- package/dist/circuits.race.draw.js +4 -4
- package/dist/circuits.turn.d.ts +8 -0
- package/dist/circuits.turn.js +29 -21
- package/dist/circuits.types.d.ts +2 -0
- package/dist/circuits.words.d.ts +4 -0
- package/dist/circuits.words.js +6 -0
- package/dist/cityctx-entry.d.ts +1 -1
- package/dist/cityctx-entry.js +1 -1
- package/dist/cityctx.d.ts +2 -2
- package/dist/cityctx.data.d.ts +2 -1
- package/dist/cityctx.data.js +3 -2
- package/dist/cityctx.js +9 -3
- package/dist/cityctx.las-vegas.data.d.ts +3 -0
- package/dist/cityctx.las-vegas.data.js +1387 -0
- package/dist/context.d.ts +11 -1
- package/dist/context.js +18 -4
- package/dist/crowd.d.ts +18 -0
- package/dist/crowd.js +88 -18
- package/dist/district-entry.d.ts +1 -0
- package/dist/district-entry.js +2 -0
- package/dist/district.api.d.ts +9 -2
- package/dist/district.api.js +7 -1
- package/dist/district.circuit.d.ts +34 -0
- package/dist/district.circuit.js +13 -0
- package/dist/district.d.ts +27 -3
- package/dist/district.js +85 -15
- package/dist/district.race.d.ts +40 -0
- package/dist/district.race.js +60 -0
- package/dist/district.turn.js +27 -1
- package/dist/draw.js +22 -7
- package/dist/landmarks.d.ts +105 -0
- package/dist/landmarks.js +160 -0
- package/dist/surfaces/artistic.js +3 -1
- package/dist/surfaces/athletics.js +2 -0
- package/dist/surfaces/hockey.js +3 -1
- package/dist/surfaces/surface.d.ts +7 -0
- package/dist/surfaces/surface.js +9 -0
- package/dist/turn.dom.js +5 -5
- package/dist/turn.markup.js +12 -1
- package/dist/turn.style.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -1
package/dist/circuits.words.d.ts
CHANGED
|
@@ -18,6 +18,10 @@ export interface CircuitWords {
|
|
|
18
18
|
standingNoBuilding: string;
|
|
19
19
|
/** The credit of the data. */
|
|
20
20
|
credit: string;
|
|
21
|
+
/** A circuit in a district: its sentence beside the venues', the description of a district of the circuit alone, and its title. */
|
|
22
|
+
inDistrict: string;
|
|
23
|
+
districtAlone: string;
|
|
24
|
+
districtTitle: string;
|
|
21
25
|
/** A turn's number, for a screen reader. */
|
|
22
26
|
turn: string;
|
|
23
27
|
/** The scale bar's unit. */
|
package/dist/circuits.words.js
CHANGED
|
@@ -12,6 +12,9 @@ export const CIRCUIT_WORDS = Object.freeze({
|
|
|
12
12
|
standing: "In 3D the pit building stands {height} m high, and each turn's number stands on a post.",
|
|
13
13
|
standingNoBuilding: "In 3D each turn's number stands on a post.",
|
|
14
14
|
credit: "Map data: {credit}.",
|
|
15
|
+
inDistrict: "{name}, a lap of {km} km, lies on the same ground where OpenStreetMap maps it.",
|
|
16
|
+
districtAlone: "A plan of {name}, a lap of {km} km, where OpenStreetMap maps it, among what lies round it.",
|
|
17
|
+
districtTitle: "{name} and its surroundings",
|
|
15
18
|
turn: "Turn {n}",
|
|
16
19
|
metres: "m",
|
|
17
20
|
northArrow: "North",
|
|
@@ -30,6 +33,9 @@ export const CIRCUIT_WORDS = Object.freeze({
|
|
|
30
33
|
standing: "3D表示では、ピットビルは高さ{height} mで建ち、各コーナーの番号はポールの上に掲げられます。",
|
|
31
34
|
standingNoBuilding: "3D表示では、各コーナーの番号はポールの上に掲げられます。",
|
|
32
35
|
credit: "地図データ:{credit}。",
|
|
36
|
+
inDistrict: "1周{km} kmの{name}も、OpenStreetMapに登録された位置のとおり同じ地面に描いています。",
|
|
37
|
+
districtAlone: "1周{km} kmの{name}を、OpenStreetMapに登録された位置のとおり、周辺の様子とあわせて描いた平面図です。",
|
|
38
|
+
districtTitle: "{name}とその周辺",
|
|
33
39
|
turn: "ターン{n}",
|
|
34
40
|
metres: "m",
|
|
35
41
|
northArrow: "北",
|
package/dist/cityctx-entry.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./strings.ts";
|
|
2
|
-
export { CITYCTX_AREAS, SEATTLE_CENTER, SEATTLE_CITY, SEATTLE_SODO, VANCOUVER_NATURE } from "./cityctx.data.ts";
|
|
2
|
+
export { CITYCTX_AREAS, LAS_VEGAS, SEATTLE_CENTER, SEATTLE_CITY, SEATTLE_SODO, VANCOUVER_NATURE } from "./cityctx.data.ts";
|
|
3
3
|
export { CITYCTX_VENUES, contextFor } from "./cityctx.ts";
|
|
4
4
|
export type { ContextArea } from "./context.ts";
|
package/dist/cityctx-entry.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// The surroundings of the venues of Vancouver and Seattle (streets, buildings, water, green, trees), as data a district takes in its `context` option, from OpenStreetMap (ODbL 1.0) and the Cities' open data, with their credits; `contextFor` says which go with some venues.
|
|
2
2
|
// The words in both languages, as this entry has always carried them (the lean district reads one language when it is asked to).
|
|
3
3
|
import "./strings.js";
|
|
4
|
-
export { CITYCTX_AREAS, SEATTLE_CENTER, SEATTLE_CITY, SEATTLE_SODO, VANCOUVER_NATURE } from "./cityctx.data.js";
|
|
4
|
+
export { CITYCTX_AREAS, LAS_VEGAS, SEATTLE_CENTER, SEATTLE_CITY, SEATTLE_SODO, VANCOUVER_NATURE } from "./cityctx.data.js";
|
|
5
5
|
export { CITYCTX_VENUES, contextFor } from "./cityctx.js";
|
package/dist/cityctx.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { CITYCTX_VENUES };
|
|
|
5
5
|
/**
|
|
6
6
|
* The areas of context that go with some venues, for a district's `context` option: downtown Vancouver's buildings and streets (`VANCOUVER_CENTRE`, of `./osm`) with its water, green and trees (`VANCOUVER_NATURE`) for BC Place and
|
|
7
7
|
* Rogers Arena; Seattle's SoDo for Lumen Field and T-Mobile Park, Seattle Center's for Climate Pledge Arena, and the city's own, with streets and the buildings that matter from far, for a district that holds venues of both (they are
|
|
8
|
-
* three kilometres apart, so the detail of either would be a speck). A venue of
|
|
8
|
+
* three kilometres apart, so the detail of either would be a speck); Las Vegas's for T-Mobile Arena and the Las Vegas Strip Circuit (`circuit`). A venue of none of these cities has none. This one carries every area's data; `loadAreasFor` of the `areas` entry reads only the ones asked for.
|
|
9
9
|
* @example
|
|
10
10
|
* ```ts
|
|
11
11
|
* import { contextFor } from "@johnmorrisdotca/kyogijo-stadiums/cityctx";
|
|
@@ -13,4 +13,4 @@ export { CITYCTX_VENUES };
|
|
|
13
13
|
* // [ 'vancouver', 'vancouver-nature' ]
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
|
-
export declare function contextFor(venues: readonly string[]): ContextArea[];
|
|
16
|
+
export declare function contextFor(venues: readonly string[], circuit?: string): ContextArea[];
|
package/dist/cityctx.data.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { BELMONT_PARK } from "./cityctx.belmont-park.data.ts";
|
|
|
12
12
|
import { MONTREAL_DOWNTOWN } from "./cityctx.montreal-downtown.data.ts";
|
|
13
13
|
import { MONTREAL_OLYMPIC } from "./cityctx.montreal-olympic.data.ts";
|
|
14
14
|
import { MONTREAL_CITY } from "./cityctx.montreal-city.data.ts";
|
|
15
|
-
|
|
15
|
+
import { LAS_VEGAS } from "./cityctx.las-vegas.data.ts";
|
|
16
|
+
export { VANCOUVER_NATURE, SEATTLE_SODO, SEATTLE_CENTER, SEATTLE_CITY, NYC_MIDTOWN, NYC_BRONX, NYC_FLUSHING, NYC_BROOKLYN, MEADOWLANDS, BELMONT_PARK, MONTREAL_DOWNTOWN, MONTREAL_OLYMPIC, MONTREAL_CITY, LAS_VEGAS };
|
|
16
17
|
/** Every area, by key. */
|
|
17
18
|
export declare const CITYCTX_AREAS: Readonly<Record<string, ContextArea>>;
|
package/dist/cityctx.data.js
CHANGED
|
@@ -11,6 +11,7 @@ import { BELMONT_PARK } from "./cityctx.belmont-park.data.js";
|
|
|
11
11
|
import { MONTREAL_DOWNTOWN } from "./cityctx.montreal-downtown.data.js";
|
|
12
12
|
import { MONTREAL_OLYMPIC } from "./cityctx.montreal-olympic.data.js";
|
|
13
13
|
import { MONTREAL_CITY } from "./cityctx.montreal-city.data.js";
|
|
14
|
-
|
|
14
|
+
import { LAS_VEGAS } from "./cityctx.las-vegas.data.js";
|
|
15
|
+
export { VANCOUVER_NATURE, SEATTLE_SODO, SEATTLE_CENTER, SEATTLE_CITY, NYC_MIDTOWN, NYC_BRONX, NYC_FLUSHING, NYC_BROOKLYN, MEADOWLANDS, BELMONT_PARK, MONTREAL_DOWNTOWN, MONTREAL_OLYMPIC, MONTREAL_CITY, LAS_VEGAS };
|
|
15
16
|
/** Every area, by key. */
|
|
16
|
-
export const CITYCTX_AREAS = { "vancouver-nature": VANCOUVER_NATURE, "seattle-sodo": SEATTLE_SODO, "seattle-center": SEATTLE_CENTER, "seattle-city": SEATTLE_CITY, "nyc-midtown": NYC_MIDTOWN, "nyc-bronx": NYC_BRONX, "nyc-flushing": NYC_FLUSHING, "nyc-brooklyn": NYC_BROOKLYN, "meadowlands": MEADOWLANDS, "belmont-park": BELMONT_PARK, "montreal-downtown": MONTREAL_DOWNTOWN, "montreal-olympic": MONTREAL_OLYMPIC, "montreal-city": MONTREAL_CITY };
|
|
17
|
+
export const CITYCTX_AREAS = { "vancouver-nature": VANCOUVER_NATURE, "seattle-sodo": SEATTLE_SODO, "seattle-center": SEATTLE_CENTER, "seattle-city": SEATTLE_CITY, "nyc-midtown": NYC_MIDTOWN, "nyc-bronx": NYC_BRONX, "nyc-flushing": NYC_FLUSHING, "nyc-brooklyn": NYC_BROOKLYN, "meadowlands": MEADOWLANDS, "belmont-park": BELMONT_PARK, "montreal-downtown": MONTREAL_DOWNTOWN, "montreal-olympic": MONTREAL_OLYMPIC, "montreal-city": MONTREAL_CITY, "las-vegas": LAS_VEGAS };
|
package/dist/cityctx.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SEATTLE_CENTER, SEATTLE_CITY, SEATTLE_SODO, VANCOUVER_NATURE } from "./cityctx.data.js";
|
|
2
2
|
import { VANCOUVER_CENTRE } from "./osm.context.data.js";
|
|
3
|
-
import { CITYCTX_DETAIL, CITYCTX_VENUES, MOST_DETAIL_AREAS } from "./areas.js";
|
|
3
|
+
import { CIRCUIT_AREAS, CITYCTX_DETAIL, CITYCTX_VENUES, MOST_DETAIL_AREAS } from "./areas.js";
|
|
4
|
+
import { LAS_VEGAS } from "./cityctx.las-vegas.data.js";
|
|
4
5
|
import { BELMONT_PARK } from "./cityctx.belmont-park.data.js";
|
|
5
6
|
import { MEADOWLANDS } from "./cityctx.meadowlands.data.js";
|
|
6
7
|
import { MONTREAL_CITY } from "./cityctx.montreal-city.data.js";
|
|
@@ -15,7 +16,7 @@ export { CITYCTX_VENUES };
|
|
|
15
16
|
/**
|
|
16
17
|
* The areas of context that go with some venues, for a district's `context` option: downtown Vancouver's buildings and streets (`VANCOUVER_CENTRE`, of `./osm`) with its water, green and trees (`VANCOUVER_NATURE`) for BC Place and
|
|
17
18
|
* Rogers Arena; Seattle's SoDo for Lumen Field and T-Mobile Park, Seattle Center's for Climate Pledge Arena, and the city's own, with streets and the buildings that matter from far, for a district that holds venues of both (they are
|
|
18
|
-
* three kilometres apart, so the detail of either would be a speck). A venue of
|
|
19
|
+
* three kilometres apart, so the detail of either would be a speck); Las Vegas's for T-Mobile Arena and the Las Vegas Strip Circuit (`circuit`). A venue of none of these cities has none. This one carries every area's data; `loadAreasFor` of the `areas` entry reads only the ones asked for.
|
|
19
20
|
* @example
|
|
20
21
|
* ```ts
|
|
21
22
|
* import { contextFor } from "@johnmorrisdotca/kyogijo-stadiums/cityctx";
|
|
@@ -23,10 +24,15 @@ export { CITYCTX_VENUES };
|
|
|
23
24
|
* // [ 'vancouver', 'vancouver-nature' ]
|
|
24
25
|
* ```
|
|
25
26
|
*/
|
|
26
|
-
export function contextFor(venues) {
|
|
27
|
+
export function contextFor(venues, circuit) {
|
|
27
28
|
const ids = new Set(venues.map((key) => key.split(":")[0]));
|
|
28
29
|
const has = (list) => list.some((id) => ids.has(id));
|
|
29
30
|
const areas = [];
|
|
31
|
+
// A circuit's surroundings, for the circuit or a venue beside it.
|
|
32
|
+
const circuits = { "las-vegas": LAS_VEGAS };
|
|
33
|
+
for (const [key, round] of Object.entries(CIRCUIT_AREAS))
|
|
34
|
+
if (has(round.venues) || (circuit !== undefined && round.circuits.includes(circuit)))
|
|
35
|
+
areas.push(circuits[key]);
|
|
30
36
|
if (has(CITYCTX_VENUES.vancouver))
|
|
31
37
|
areas.push(VANCOUVER_CENTRE, VANCOUVER_NATURE);
|
|
32
38
|
const [sodo, center] = [has(CITYCTX_VENUES.sodo), has(CITYCTX_VENUES.center)];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ContextArea } from "./context.ts";
|
|
2
|
+
/** Las Vegas: the Strip Circuit, T-Mobile Arena and the Strip between them: 421 buildings, 905 street lines, 16 land cover outlines and 0 trees within 1900 metres of the middle, read 2026-11-03. */
|
|
3
|
+
export declare const LAS_VEGAS: ContextArea;
|