@a2f0/skyline 0.2.6 → 0.2.8

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
@@ -279,7 +279,10 @@ export const toneOf = (grey) => new THREE.Color(grey, grey, grey).getHex();
279
279
  // Michigan front, not the sunlit Jackson front its colour is measured on; that front renders 0.82
280
280
  // of the photograph's shaded Michigan front. The seven measured next (FID-COL-004) spread wider,
281
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.
282
+ // lights their faces differently from the photograph's. On the Michigan Avenue wall (FID-COL-005),
283
+ // whose shaded fronts are estimated as if sunlit, the fronts render 0.81 to 1.21 of the
284
+ // photograph's shaded fronts and the south faces 0.77 to 0.86 of its sunlit ones. docs/viewer.md
285
+ // and the audits give each.
283
286
  export const exposure = 1.4;
284
287
  // A grey in its measured colour: the swatch's colour scaled by the grey's brightness against the
285
288
  // swatch's grey, both in linear light, so a darker surface of one material stays darker. A colour
@@ -103,6 +103,69 @@ export const measuredColours = {
103
103
  aluminium: null,
104
104
  neutral: null,
105
105
  },
106
+ // FID-COL-005, the Michigan Avenue wall. Its fronts face east, into the photograph's shade; where a
107
+ // building shows only that front, its stone or terracotta is the shaded median's sunlit estimate,
108
+ // through the shade-to-sun ratio of the Railway Exchange's terracotta (scripts/sample-colours.ts,
109
+ // the day study's shade): provisional, since cross-checks disagree with that ratio.
110
+ // docs/borg-warner-reference.md, 2026-10-10 — Daytime colours from Chicago.jpg.
111
+ "building-200-south-michigan": {
112
+ "blue enamel": 0x828a93,
113
+ ...glass(0x374147),
114
+ aluminium: null,
115
+ neutral: null,
116
+ },
117
+ // docs/peoples-gas-reference.md, 2026-10-10 — Daytime colours from Chicago.jpg.
118
+ "building-peoples-gas": {
119
+ "white terracotta": 0xafa7a0,
120
+ "glazed brick": "white terracotta",
121
+ ...glass(0x393939),
122
+ "common brick": null,
123
+ "dark granite": null,
124
+ neutral: null,
125
+ },
126
+ // docs/lake-view-reference.md, 2026-10-10 — Daytime colours from Chicago.jpg; limestone estimated.
127
+ "building-lakeview": {
128
+ limestone: 0xc8c4bb,
129
+ ...glass(0x0c161e),
130
+ neutral: null,
131
+ },
132
+ // docs/maclean-center-reference.md, 2026-10-10 — Daytime colours from Chicago.jpg; limestone estimated.
133
+ "building-maclean-center": {
134
+ limestone: 0xd7c5b6,
135
+ ...glass(0x2b3740),
136
+ neutral: null,
137
+ },
138
+ // docs/monroe-reference.md, 2026-10-10 — Daytime colours from Chicago.jpg; terracotta estimated.
139
+ "building-monroe": {
140
+ "pink terracotta": 0xbdb5af,
141
+ ...glass(0x353c43),
142
+ "green tile": null,
143
+ granite: null,
144
+ neutral: null,
145
+ },
146
+ // docs/university-club-reference.md, 2026-10-10 — Daytime colours from Chicago.jpg.
147
+ "building-university-club": {
148
+ limestone: 0xafa59e,
149
+ slate: 0x5f6065,
150
+ glass: null,
151
+ "lit window": null,
152
+ "dim window": null,
153
+ neutral: null,
154
+ },
155
+ // docs/six-north-michigan-reference.md, 2026-10-10 — Daytime colours from Chicago.jpg.
156
+ "building-six-north-michigan": {
157
+ "buff brick": 0xbbaa9f,
158
+ "white terracotta": "buff brick",
159
+ ...glass(0x32363c),
160
+ neutral: null,
161
+ },
162
+ // docs/michigan-boulevard-reference.md, 2026-10-10 — Daytime colours from Chicago.jpg; terracotta estimated.
163
+ "building-six-north-far-east": {
164
+ "white terracotta": 0xdacdbe,
165
+ "common brick": 0xa19085,
166
+ ...glass(0x3b3f42),
167
+ neutral: null,
168
+ },
106
169
  };
107
170
  // The sunny day the colour toggle shows: the sky's blue at the top of the view and its haze just
108
171
  // 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.6",
3
+ "version": "0.2.8",
4
4
  "description": "Interactive Chicago skyline viewer and reusable Three.js building models",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -279,7 +279,10 @@ export const toneOf = (grey) => new THREE.Color(grey, grey, grey).getHex();
279
279
  // Michigan front, not the sunlit Jackson front its colour is measured on; that front renders 0.82
280
280
  // of the photograph's shaded Michigan front. The seven measured next (FID-COL-004) spread wider,
281
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.
282
+ // lights their faces differently from the photograph's. On the Michigan Avenue wall (FID-COL-005),
283
+ // whose shaded fronts are estimated as if sunlit, the fronts render 0.81 to 1.21 of the
284
+ // photograph's shaded fronts and the south faces 0.77 to 0.86 of its sunlit ones. docs/viewer.md
285
+ // and the audits give each.
283
286
  export const exposure = 1.4;
284
287
  // A grey in its measured colour: the swatch's colour scaled by the grey's brightness against the
285
288
  // swatch's grey, both in linear light, so a darker surface of one material stays darker. A colour
@@ -103,6 +103,69 @@ export const measuredColours = {
103
103
  aluminium: null,
104
104
  neutral: null,
105
105
  },
106
+ // FID-COL-005, the Michigan Avenue wall. Its fronts face east, into the photograph's shade; where a
107
+ // building shows only that front, its stone or terracotta is the shaded median's sunlit estimate,
108
+ // through the shade-to-sun ratio of the Railway Exchange's terracotta (scripts/sample-colours.ts,
109
+ // the day study's shade): provisional, since cross-checks disagree with that ratio.
110
+ // docs/borg-warner-reference.md, 2026-10-10 — Daytime colours from Chicago.jpg.
111
+ "building-200-south-michigan": {
112
+ "blue enamel": 0x828a93,
113
+ ...glass(0x374147),
114
+ aluminium: null,
115
+ neutral: null,
116
+ },
117
+ // docs/peoples-gas-reference.md, 2026-10-10 — Daytime colours from Chicago.jpg.
118
+ "building-peoples-gas": {
119
+ "white terracotta": 0xafa7a0,
120
+ "glazed brick": "white terracotta",
121
+ ...glass(0x393939),
122
+ "common brick": null,
123
+ "dark granite": null,
124
+ neutral: null,
125
+ },
126
+ // docs/lake-view-reference.md, 2026-10-10 — Daytime colours from Chicago.jpg; limestone estimated.
127
+ "building-lakeview": {
128
+ limestone: 0xc8c4bb,
129
+ ...glass(0x0c161e),
130
+ neutral: null,
131
+ },
132
+ // docs/maclean-center-reference.md, 2026-10-10 — Daytime colours from Chicago.jpg; limestone estimated.
133
+ "building-maclean-center": {
134
+ limestone: 0xd7c5b6,
135
+ ...glass(0x2b3740),
136
+ neutral: null,
137
+ },
138
+ // docs/monroe-reference.md, 2026-10-10 — Daytime colours from Chicago.jpg; terracotta estimated.
139
+ "building-monroe": {
140
+ "pink terracotta": 0xbdb5af,
141
+ ...glass(0x353c43),
142
+ "green tile": null,
143
+ granite: null,
144
+ neutral: null,
145
+ },
146
+ // docs/university-club-reference.md, 2026-10-10 — Daytime colours from Chicago.jpg.
147
+ "building-university-club": {
148
+ limestone: 0xafa59e,
149
+ slate: 0x5f6065,
150
+ glass: null,
151
+ "lit window": null,
152
+ "dim window": null,
153
+ neutral: null,
154
+ },
155
+ // docs/six-north-michigan-reference.md, 2026-10-10 — Daytime colours from Chicago.jpg.
156
+ "building-six-north-michigan": {
157
+ "buff brick": 0xbbaa9f,
158
+ "white terracotta": "buff brick",
159
+ ...glass(0x32363c),
160
+ neutral: null,
161
+ },
162
+ // docs/michigan-boulevard-reference.md, 2026-10-10 — Daytime colours from Chicago.jpg; terracotta estimated.
163
+ "building-six-north-far-east": {
164
+ "white terracotta": 0xdacdbe,
165
+ "common brick": 0xa19085,
166
+ ...glass(0x3b3f42),
167
+ neutral: null,
168
+ },
106
169
  };
107
170
  // The sunny day the colour toggle shows: the sky's blue at the top of the view and its haze just
108
171
  // 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
  });