@a2f0/skyline 0.2.32 → 0.2.34
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 -6
- package/package.json +20 -13
- package/site/viewer.css +16 -1
package/docs/package.md
CHANGED
|
@@ -148,9 +148,9 @@ styles and the host's apart. `mountSkyline` returns at once with an instance:
|
|
|
148
148
|
frame, the viewer doesn't stop when its element merely leaves the page: always call
|
|
149
149
|
`destroy`.
|
|
150
150
|
|
|
151
|
-
The viewer shows what the embedded viewer always has: the
|
|
152
|
-
|
|
153
|
-
credit, a small **show original** button until the first 3D frame (and again if the
|
|
151
|
+
The viewer shows what the embedded viewer always has: the traced loading silhouette,
|
|
152
|
+
the 3D skyline with its control bar, the twinkling stars, which come out after the
|
|
153
|
+
skyline's first frame, the OpenStreetMap credit, a small **show original** button until the first 3D frame (and again if the
|
|
154
154
|
graphics context is lost), so the original drawing stays reachable even if WebGL or
|
|
155
155
|
the scene's code cannot load, building details in a panel over the skyline, and
|
|
156
156
|
reduced motion. `F`, pressed inside the viewer, shows its element fullscreen.
|
|
@@ -382,9 +382,6 @@ Then, in the package's settings on npmjs.com, add a GitHub Actions trusted publi
|
|
|
382
382
|
repository `a2f0/skyline`, workflow `npm-publish.yml`, and environment `npm`, and re-run
|
|
383
383
|
the workflow; it reports the version as already published.
|
|
384
384
|
|
|
385
|
-
The Sharp override in the tarball is repository development tooling policy; npm
|
|
386
|
-
and Bun consumers use their own root overrides, so it does not pin their dependencies.
|
|
387
|
-
|
|
388
385
|
The package is ESM only, with no CommonJS entrypoint. Building requires this repository's
|
|
389
386
|
Bun/TypeScript tools; consuming the published package requires neither Bun nor build
|
|
390
387
|
scripts. Metadata uses `UNLICENSED` and preserves the third-party notices in
|
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@a2f0/skyline",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.34",
|
|
4
4
|
"description": "Interactive Chicago skyline viewer and reusable Three.js building models",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/a2f0/skyline.git"
|
|
9
9
|
},
|
|
10
|
-
"publishConfig": {
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
11
13
|
"type": "module",
|
|
12
14
|
"sideEffects": ["./site/**/*.js"],
|
|
13
15
|
"files": ["lib/", "site/", "NOTICE.md", "docs/package.md", "docs/skyline-geography.md"],
|
|
@@ -37,15 +39,20 @@
|
|
|
37
39
|
"./assets/*": "./site/*",
|
|
38
40
|
"./package.json": "./package.json"
|
|
39
41
|
},
|
|
40
|
-
"engines": {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": ">=22"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"three": "~0.186.0"
|
|
47
|
+
},
|
|
48
|
+
"peerDependenciesMeta": {
|
|
49
|
+
"three": {
|
|
50
|
+
"optional": true
|
|
47
51
|
}
|
|
48
52
|
},
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"@types/three": "0.186.0"
|
|
55
|
+
},
|
|
49
56
|
"scripts": {
|
|
50
57
|
"agent-tool": "agent-tool",
|
|
51
58
|
"agent:run": "agent-tool run",
|
|
@@ -66,13 +73,13 @@
|
|
|
66
73
|
"verify:deploy": "bun scripts/verify-deploy.ts"
|
|
67
74
|
},
|
|
68
75
|
"devDependencies": {
|
|
69
|
-
"@a2f0/agent-tool": "0.1.
|
|
76
|
+
"@a2f0/agent-tool": "0.1.15",
|
|
70
77
|
"@tsconfig/strictest": "^2.0.8",
|
|
71
|
-
"@types/bun": "^1.4.
|
|
78
|
+
"@types/bun": "^1.4.3",
|
|
72
79
|
"esbuild": "0.28.2",
|
|
73
80
|
"three": "0.186.1",
|
|
74
|
-
"playwright": "1.
|
|
81
|
+
"playwright": "1.64.1",
|
|
75
82
|
"typescript": "^7.0.2",
|
|
76
|
-
"wrangler": "4.
|
|
83
|
+
"wrangler": "4.151.1"
|
|
77
84
|
}
|
|
78
85
|
}
|
package/site/viewer.css
CHANGED
|
@@ -30,16 +30,31 @@
|
|
|
30
30
|
background: transparent;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
/* The stars come out after the skyline, in either theme: hidden while the scene boots, or
|
|
34
|
+
once its graphics context is lost, they fade in after its first frame, or, with reduced
|
|
35
|
+
motion, simply appear. The original drawing shows them as soon as it is opened. */
|
|
33
36
|
.stars {
|
|
34
37
|
z-index: 0;
|
|
35
38
|
pointer-events: none;
|
|
39
|
+
transition: opacity 1.6s ease-in-out 0.4s;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.skyline-viewer[data-booting] > .stars {
|
|
43
|
+
visibility: hidden;
|
|
44
|
+
opacity: 0;
|
|
45
|
+
transition: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.skyline-viewer:has(> .drawing:not([hidden])) > .stars { transition: none; }
|
|
49
|
+
|
|
50
|
+
@media (prefers-reduced-motion: reduce) {
|
|
51
|
+
.stars { transition: none; }
|
|
36
52
|
}
|
|
37
53
|
|
|
38
54
|
/* Keep this boot palette in sync with skyline-shell.ts and index.html. It gives
|
|
39
55
|
way to the scene's own sky at the first frame. The original drawing always
|
|
40
56
|
keeps its dark sky, including when opened during loading or after a failure. */
|
|
41
57
|
.skyline-viewer[data-theme="light"][data-booting] { color-scheme: light; background: #f5f5f5; color: #444; }
|
|
42
|
-
.skyline-viewer[data-theme="light"][data-booting] > .stars { visibility: hidden; }
|
|
43
58
|
.skyline-viewer[data-theme="light"][data-booting] .loading { color: #444; }
|
|
44
59
|
.skyline-viewer[data-theme="light"][data-booting] .skyline-trace { stroke: #555; }
|
|
45
60
|
.skyline-viewer[data-theme="light"][data-booting] .skyline-trace-tip { stroke: #222; filter: drop-shadow(0 0 9px #22222266); }
|