@a2f0/skyline 0.2.45 → 0.2.47
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 +3 -0
- package/package.json +6 -1
- package/site/skyline-viewer.js +5 -5
package/docs/package.md
CHANGED
|
@@ -114,6 +114,9 @@ The copy holds no favicons. Its pages link `/favicon.ico`, `/favicon.svg` and
|
|
|
114
114
|
`/apple-touch-icon.png` at the origin's root, so a page opened from the copy shows the
|
|
115
115
|
host's own icons, as long as the host serves those three files; the mounted viewer never
|
|
116
116
|
requests them. The standalone site renders its own icons at deploy time.
|
|
117
|
+
Every page in the copy carries `<meta name="robots" content="noindex">`, as on the standalone
|
|
118
|
+
site, so search engines leave the copied pages out wherever they are served. The copy holds no
|
|
119
|
+
`_headers` file either; the response headers it is served with are the host's.
|
|
117
120
|
The helper copies files into the supplied directory; it does not clear unrelated
|
|
118
121
|
files already there. Use a dedicated directory for these assets, and clear it before
|
|
119
122
|
copying an upgrade, so files a new version dropped do not linger. All the viewer's
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@a2f0/skyline",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.47",
|
|
4
4
|
"description": "Interactive Chicago skyline viewer and reusable Three.js building models",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -87,6 +87,11 @@
|
|
|
87
87
|
"release:plan": "agent-tool release plan package.json --github-output",
|
|
88
88
|
"timings": "bun scripts/testing/show-timings.ts"
|
|
89
89
|
},
|
|
90
|
+
"overrides": {
|
|
91
|
+
"miniflare@5.20261019.1-beta": {
|
|
92
|
+
"undici": "7.30.1"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
90
95
|
"devDependencies": {
|
|
91
96
|
"@a2f0/agent-tool": "0.1.19",
|
|
92
97
|
"@tsconfig/strictest": "^2.0.8",
|
package/site/skyline-viewer.js
CHANGED
|
@@ -48,11 +48,11 @@ export function mount(root, { assets, signal, controls, colour, theme, attributi
|
|
|
48
48
|
viewer.append(stars, scene, drawing, originalReturn, embeddedOriginal, status);
|
|
49
49
|
root.append(viewer);
|
|
50
50
|
let mode = "3d";
|
|
51
|
-
// Keep the drawing reachable
|
|
52
|
-
//
|
|
51
|
+
// Keep the drawing reachable if the scene's markup or code fails to load,
|
|
52
|
+
// or its graphics context is lost.
|
|
53
53
|
let sceneUnavailable = true;
|
|
54
|
-
//
|
|
55
|
-
// failure to load, or a lost graphics context.
|
|
54
|
+
// Both show original buttons wait while the scene boots, until its first frame,
|
|
55
|
+
// a failure to load, or a lost graphics context.
|
|
56
56
|
let booting = true;
|
|
57
57
|
const frames = {};
|
|
58
58
|
const toolbar = navigation ? createToolbar() : null;
|
|
@@ -67,7 +67,7 @@ export function mount(root, { assets, signal, controls, colour, theme, attributi
|
|
|
67
67
|
for (const [name, frame] of Object.entries(frames))
|
|
68
68
|
frame.hidden = name !== mode;
|
|
69
69
|
originalReturn.hidden = mode !== "original";
|
|
70
|
-
embeddedOriginal.hidden = navigation || mode !== "3d" || !sceneUnavailable;
|
|
70
|
+
embeddedOriginal.hidden = navigation || mode !== "3d" || booting || !sceneUnavailable;
|
|
71
71
|
if (toolbar) {
|
|
72
72
|
for (const [name, toggle] of Object.entries(toggles)) {
|
|
73
73
|
const button = toolbar.querySelector(`#${toggle.id}`), showing = name === mode;
|