@a2f0/skyline 0.2.46 → 0.2.48
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/package.json +7 -2
- package/site/skyline-viewer.js +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@a2f0/skyline",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.48",
|
|
4
4
|
"description": "Interactive Chicago skyline viewer and reusable Three.js building models",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -87,8 +87,13 @@
|
|
|
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
|
-
"@a2f0/agent-tool": "0.1.
|
|
96
|
+
"@a2f0/agent-tool": "0.1.21",
|
|
92
97
|
"@tsconfig/strictest": "^2.0.8",
|
|
93
98
|
"@types/bun": "^1.4.3",
|
|
94
99
|
"esbuild": "0.28.2",
|
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;
|