@johnmorrisdotca/kyogijo-stadiums 0.56.0 → 0.58.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 +15 -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/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/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/landmarks.d.ts +105 -0
- package/dist/landmarks.js +160 -0
- package/dist/turn.camera.d.ts +6 -3
- package/dist/turn.camera.js +10 -3
- package/dist/turn.dom.js +27 -14
- 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/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;
|