@a2f0/skyline 0.2.5 → 0.2.7

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/docs/package.md CHANGED
@@ -138,7 +138,8 @@ the scene's code cannot load, building details in a panel over the skyline, and
138
138
  reduced motion. `F`, pressed inside the viewer, shows its element fullscreen.
139
139
 
140
140
  The scene's control bar starts folded behind its star; set `controls: 'open'` to
141
- start it open, with no fold, from its first frame. Visitors can still fold it.
141
+ start it open, with no fold, from its first frame, as the site's own viewer at
142
+ skyline.devopsrockstars.com does. Visitors can still fold it.
142
143
  Open, the bar shows the camera hint and the OpenStreetMap credit for the streets
143
144
  and footprints. Set `attribution: false` to leave the credit out. OpenStreetMap's
144
145
  [licence](https://www.openstreetmap.org/copyright) requires crediting its contributors
@@ -130,7 +130,7 @@ export const colourMaterials = {
130
130
  piers: ["concrete"],
131
131
  "corner balconies": ["concrete"],
132
132
  },
133
- // A grey precast slab.
133
+ // A warm white precast slab with bronze-tinted glass.
134
134
  "building-michigan-plaza-front-tall": {
135
135
  shell: ["neutral"],
136
136
  "walls and windows": ["glass", { ...windows(0x727272, 0x484848), 0x666666: "concrete" }],
@@ -277,7 +277,9 @@ export const toneOf = (grey) => new THREE.Color(grey, grey, grey).getHex();
277
277
  // granite and Crain's aluminium pass white at their own greys here, so a higher factor would
278
278
  // brighten only the darker materials. The Railway Exchange is left out: the view shows its shaded
279
279
  // Michigan front, not the sunlit Jackson front its colour is measured on; that front renders 0.82
280
- // of the photograph's shaded Michigan front.
280
+ // of the photograph's shaded Michigan front. The seven measured next (FID-COL-004) spread wider,
281
+ // 0.25 to 1.56 on their measured materials and 0.14 on Kemper's whole face, where the scene's sun
282
+ // lights their faces differently from the photograph's; docs/viewer.md and their audits give each.
281
283
  export const exposure = 1.4;
282
284
  // A grey in its measured colour: the swatch's colour scaled by the grey's brightness against the
283
285
  // swatch's grey, both in linear light, so a darker surface of one material stays darker. A colour
@@ -1,5 +1,5 @@
1
1
  // By day no office lights show: lit and dim windows are the glass, in its measured colour.
2
- const glass = (colour) => ({ glass: colour, "lit window": colour, "dim window": colour });
2
+ const glass = (colour, material = "glass") => ({ [material]: colour, "lit window": colour, "dim window": colour });
3
3
  export const measuredColours = {
4
4
  // docs/railway-exchange-reference.md, 2026-10-09 — Daytime colours from Chicago.jpg.
5
5
  "building-railway-exchange": {
@@ -55,6 +55,54 @@ export const measuredColours = {
55
55
  "dark metal": null,
56
56
  neutral: null,
57
57
  },
58
+ // docs/willoughby-tower-reference.md, 2026-10-09 — Daytime colours from Chicago.jpg.
59
+ "building-willoughby-tower": {
60
+ limestone: 0xccbdab,
61
+ ...glass(0x4d4541),
62
+ "dark granite": null,
63
+ neutral: null,
64
+ },
65
+ // docs/heritage-geographic-reference.md, 2026-10-09 — Daytime colours from Chicago.jpg.
66
+ "building-heritage-at-millennium-park": {
67
+ limestone: 0xd8dad6,
68
+ "green glass": 0x475861,
69
+ "lit window": 0x475861,
70
+ bronze: 0x475861,
71
+ concrete: null,
72
+ "buff brick": null,
73
+ neutral: null,
74
+ },
75
+ // docs/kemper-geographic-reference.md, 2026-10-09 — Daytime colours from Chicago.jpg.
76
+ "building-kemper": {
77
+ marble: 0xc3c0b6,
78
+ ...glass(0x535455),
79
+ aluminium: null,
80
+ },
81
+ // docs/north-wabash-reference.md, 2026-10-09 — Daytime colours from Chicago.jpg.
82
+ "building-330-north-wabash": {
83
+ ...glass(0x2f4052, "bronze glass"),
84
+ bronze: 0x2f4052,
85
+ "dark granite": null,
86
+ neutral: null,
87
+ },
88
+ // docs/millennium-park-plaza-reference.md, 2026-10-09 — Daytime colours from Chicago.jpg.
89
+ "building-michigan-plaza-front-tall": {
90
+ concrete: 0xe5d6c9,
91
+ ...glass(0x3c342a),
92
+ neutral: null,
93
+ },
94
+ // docs/trump-reference.md, 2026-10-09 — Daytime colours from Chicago.jpg.
95
+ "building-trump-tower-only": {
96
+ ...glass(0x6f838e),
97
+ stainless: null,
98
+ },
99
+ // docs/340-on-the-park-reference.md, 2026-10-09 — Daytime colours from Chicago.jpg.
100
+ "building-340-on-the-park": {
101
+ concrete: 0xdfe3e1,
102
+ ...glass(0x637c84, "green glass"),
103
+ aluminium: null,
104
+ neutral: null,
105
+ },
58
106
  };
59
107
  // The sunny day the colour toggle shows: the sky's blue at the top of the view and its haze just
60
108
  // above the horizon, each the median of a clear box of the same panorama (scripts/sample-colours.ts,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a2f0/skyline",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "Interactive Chicago skyline viewer and reusable Three.js building models",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -130,7 +130,7 @@ export const colourMaterials = {
130
130
  piers: ["concrete"],
131
131
  "corner balconies": ["concrete"],
132
132
  },
133
- // A grey precast slab.
133
+ // A warm white precast slab with bronze-tinted glass.
134
134
  "building-michigan-plaza-front-tall": {
135
135
  shell: ["neutral"],
136
136
  "walls and windows": ["glass", { ...windows(0x727272, 0x484848), 0x666666: "concrete" }],
@@ -277,7 +277,9 @@ export const toneOf = (grey) => new THREE.Color(grey, grey, grey).getHex();
277
277
  // granite and Crain's aluminium pass white at their own greys here, so a higher factor would
278
278
  // brighten only the darker materials. The Railway Exchange is left out: the view shows its shaded
279
279
  // Michigan front, not the sunlit Jackson front its colour is measured on; that front renders 0.82
280
- // of the photograph's shaded Michigan front.
280
+ // of the photograph's shaded Michigan front. The seven measured next (FID-COL-004) spread wider,
281
+ // 0.25 to 1.56 on their measured materials and 0.14 on Kemper's whole face, where the scene's sun
282
+ // lights their faces differently from the photograph's; docs/viewer.md and their audits give each.
281
283
  export const exposure = 1.4;
282
284
  // A grey in its measured colour: the swatch's colour scaled by the grey's brightness against the
283
285
  // swatch's grey, both in linear light, so a darker surface of one material stays darker. A colour
@@ -1,5 +1,5 @@
1
1
  // By day no office lights show: lit and dim windows are the glass, in its measured colour.
2
- const glass = (colour) => ({ glass: colour, "lit window": colour, "dim window": colour });
2
+ const glass = (colour, material = "glass") => ({ [material]: colour, "lit window": colour, "dim window": colour });
3
3
  export const measuredColours = {
4
4
  // docs/railway-exchange-reference.md, 2026-10-09 — Daytime colours from Chicago.jpg.
5
5
  "building-railway-exchange": {
@@ -55,6 +55,54 @@ export const measuredColours = {
55
55
  "dark metal": null,
56
56
  neutral: null,
57
57
  },
58
+ // docs/willoughby-tower-reference.md, 2026-10-09 — Daytime colours from Chicago.jpg.
59
+ "building-willoughby-tower": {
60
+ limestone: 0xccbdab,
61
+ ...glass(0x4d4541),
62
+ "dark granite": null,
63
+ neutral: null,
64
+ },
65
+ // docs/heritage-geographic-reference.md, 2026-10-09 — Daytime colours from Chicago.jpg.
66
+ "building-heritage-at-millennium-park": {
67
+ limestone: 0xd8dad6,
68
+ "green glass": 0x475861,
69
+ "lit window": 0x475861,
70
+ bronze: 0x475861,
71
+ concrete: null,
72
+ "buff brick": null,
73
+ neutral: null,
74
+ },
75
+ // docs/kemper-geographic-reference.md, 2026-10-09 — Daytime colours from Chicago.jpg.
76
+ "building-kemper": {
77
+ marble: 0xc3c0b6,
78
+ ...glass(0x535455),
79
+ aluminium: null,
80
+ },
81
+ // docs/north-wabash-reference.md, 2026-10-09 — Daytime colours from Chicago.jpg.
82
+ "building-330-north-wabash": {
83
+ ...glass(0x2f4052, "bronze glass"),
84
+ bronze: 0x2f4052,
85
+ "dark granite": null,
86
+ neutral: null,
87
+ },
88
+ // docs/millennium-park-plaza-reference.md, 2026-10-09 — Daytime colours from Chicago.jpg.
89
+ "building-michigan-plaza-front-tall": {
90
+ concrete: 0xe5d6c9,
91
+ ...glass(0x3c342a),
92
+ neutral: null,
93
+ },
94
+ // docs/trump-reference.md, 2026-10-09 — Daytime colours from Chicago.jpg.
95
+ "building-trump-tower-only": {
96
+ ...glass(0x6f838e),
97
+ stainless: null,
98
+ },
99
+ // docs/340-on-the-park-reference.md, 2026-10-09 — Daytime colours from Chicago.jpg.
100
+ "building-340-on-the-park": {
101
+ concrete: 0xdfe3e1,
102
+ ...glass(0x637c84, "green glass"),
103
+ aluminium: null,
104
+ neutral: null,
105
+ },
58
106
  };
59
107
  // The sunny day the colour toggle shows: the sky's blue at the top of the view and its haze just
60
108
  // above the horizon, each the median of a clear box of the same panorama (scripts/sample-colours.ts,
@@ -2,14 +2,18 @@ import { mountViewer } from "./skyline-shell.js";
2
2
  // index.html: the site's own viewer, mounted the way a host mounts the package, through the
3
3
  // same shell and viewer module, from the assets beside this script, with the site's toolbar
4
4
  // along its top. Its address takes the package's options: `?embed=1` shows the viewer as a
5
- // host does, without the toolbar; `?controls=open` starts the scene's bar open; and
6
- // `?attribution=hidden` leaves out the OpenStreetMap credit.
5
+ // host does, without the toolbar; `?controls=open` or `?controls=closed` starts the scene's
6
+ // bar open or folded; and `?attribution=hidden` leaves out the OpenStreetMap credit. The site
7
+ // starts the bar open, to show what the scene can do; embedded, it starts folded behind its
8
+ // star, as `mountSkyline` does.
7
9
  const settings = new URLSearchParams(location.search);
10
+ const embedded = settings.get("embed") === "1";
11
+ const controls = settings.get("controls");
8
12
  mountViewer(document.querySelector("#viewer"), {
9
13
  assetsUrl: new URL("./", import.meta.url),
10
14
  title: "Chicago skyline",
11
- controls: settings.get("controls") === "open" ? "open" : "closed",
15
+ controls: controls === "open" || controls === "closed" ? controls : embedded ? "closed" : "open",
12
16
  attribution: settings.get("attribution") !== "hidden",
13
- navigation: settings.get("embed") !== "1",
17
+ navigation: !embedded,
14
18
  page: true,
15
19
  });