mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Starry sky and the application viewer move into the Cesium adapter
src/sky/starrySky.js and src/app/viewer.js are Cesium through and through, so they move into the adapter as src/render/cesium/starrySky.js and applicationViewer.js; the ./application/viewer export points there. The celestial ring's precise ICRF rotation reaches the shell through a Cesium-free registry (src/sky/icrf.js) that the sky provides as it loads; the application's renderer loads it, and so does ./render/cesium/unbound. Both files leave the Cesium allow-list.
This commit is contained in:
1 parent
a8a9cc73a4
commit
e6d9ec0636
17 files changed
+110
-38
No files matched your search
@@ -84,7 +84,8 @@
|
||||
"src/app/application.test.mjs",
|
||||
"src/app/mapLifecycle.test.mjs",
|
||||
"src/app/startupCamera.test.mjs",
|
||||
"src/app/viewer.js",
|
||||
"src/render/cesium/applicationViewer.js",
|
||||
"src/sky/icrf.js",
|
||||
"src/app/atmosphereCompat.test.mjs",
|
||||
"src/standalone/application.js",
|
||||
"src/standalone/controls.js",
|
||||
@@ -1145,7 +1146,7 @@
|
||||
"scripts/build-bright-stars.mjs",
|
||||
"scripts/build-milky-way.mjs",
|
||||
"src/sky/stars.test.mjs",
|
||||
"src/sky/starrySky.test.mjs",
|
||||
"src/render/cesium/starrySky.test.mjs",
|
||||
"src/tooling/skyAssets.test.mjs",
|
||||
"src/tooling/skyAssets.paintOut.test.mjs",
|
||||
"scripts/qa-anime-sky.mjs",
|
||||
|
||||
@@ -204,12 +204,13 @@
|
||||
"viewer": {
|
||||
"exports": ["./application/viewer"],
|
||||
"modules": [
|
||||
"src/app/viewer.js",
|
||||
"src/render/cesium/applicationViewer.js",
|
||||
"src/app/atmosphereCompat.js",
|
||||
"src/sky/starrySky.js",
|
||||
"src/render/cesium/starrySky.js",
|
||||
"src/sky/stars.js",
|
||||
"src/data/bundledJson.js",
|
||||
"src/renderGovernor.js"
|
||||
"src/renderGovernor.js",
|
||||
"src/sky/icrf.js"
|
||||
],
|
||||
"external": ["cesium"]
|
||||
},
|
||||
@@ -1045,7 +1046,6 @@
|
||||
"src/styles/surveillance.js",
|
||||
"src/styles/thermal.js",
|
||||
"src/ui/applicationShell.js",
|
||||
"src/sky/starrySky.js",
|
||||
"src/render/cesium/effects.js",
|
||||
"src/render/cesium/screenModulation.js",
|
||||
"src/render/cesium/globe.js",
|
||||
@@ -1286,7 +1286,8 @@
|
||||
"src/render/cesium/input.js",
|
||||
"src/render/input/wheel.js",
|
||||
"src/render/cesium/ctrlWheelZoom.js",
|
||||
"src/render/input/router.js"
|
||||
"src/render/input/router.js",
|
||||
"src/sky/icrf.js"
|
||||
],
|
||||
"external": ["cesium", "vue", "pinia", "vue-i18n"]
|
||||
},
|
||||
@@ -1900,7 +1901,12 @@
|
||||
"src/render/cesium/mapImagery.js",
|
||||
"src/maps/terrainRetry.js",
|
||||
"src/render/cesium/mapTerrain.js",
|
||||
"src/render/cesium/mapEngine.js"
|
||||
"src/render/cesium/mapEngine.js",
|
||||
"src/data/bundledJson.js",
|
||||
"src/renderGovernor.js",
|
||||
"src/sky/icrf.js",
|
||||
"src/sky/stars.js",
|
||||
"src/render/cesium/starrySky.js"
|
||||
],
|
||||
"external": ["cesium"]
|
||||
},
|
||||
@@ -3342,9 +3348,9 @@
|
||||
"src/app/surfaceServices.js",
|
||||
"src/app/tools.js",
|
||||
"src/data/followed.js",
|
||||
"src/app/viewer.js",
|
||||
"src/render/cesium/applicationViewer.js",
|
||||
"src/render/cesium/ctrlWheelZoom.js",
|
||||
"src/sky/starrySky.js",
|
||||
"src/render/cesium/starrySky.js",
|
||||
"src/sky/stars.js",
|
||||
"src/app/atmosphereCompat.js",
|
||||
"src/bloom.js",
|
||||
@@ -4288,7 +4294,8 @@
|
||||
"src/maps/startupRoute.js",
|
||||
"src/maps/engine.js",
|
||||
"src/maps/attribution.js",
|
||||
"src/render/cesium/mapEngine.js"
|
||||
"src/render/cesium/mapEngine.js",
|
||||
"src/sky/icrf.js"
|
||||
],
|
||||
"external": [
|
||||
"hls.js",
|
||||
|
||||
@@ -32,13 +32,15 @@ try {
|
||||
const results = await page.evaluate(async () => {
|
||||
window.CESIUM_BASE_URL = '/cesium/';
|
||||
// Use StarrySky's exact Vite dependency URL, including its version query.
|
||||
const source = await fetch('/src/sky/starrySky.js').then((r) => r.text());
|
||||
const source = await fetch('/src/render/cesium/starrySky.js').then((r) =>
|
||||
r.text(),
|
||||
);
|
||||
const cesiumUrl = source.match(
|
||||
/from ["']([^"']*\/cesium\.js[^"']*)["']/,
|
||||
)?.[1];
|
||||
if (!cesiumUrl) throw new Error('run against the Vite dev server');
|
||||
const C = await import(cesiumUrl);
|
||||
const { StarrySky } = await import('/src/sky/starrySky.js');
|
||||
const { StarrySky } = await import('/src/render/cesium/starrySky.js');
|
||||
const time = C.JulianDate.fromIso8601('2026-10-19T00:00:00Z');
|
||||
const results = {};
|
||||
for (const kind of ['black', 'starry', 'white']) {
|
||||
|
||||
Reference in new issue
Block a user