feat(globe): port to CeliumJS

This commit is contained in:
gili8420 2026-08-03 22:12:32 +09:00
parent ec03425067
commit eb7698e034
51 changed files with 3521 additions and 1992 deletions

View file

@ -73,6 +73,15 @@
if (!cached || cached.result !== w.result || cached.color !== w.color || cached.opacity !== w.opacity) {
const scene = map.scene(name);
plotPrediction(scene, w.result, { color: w.color, opacity: w.opacity });
// Frame a freshly-arrived result. A flight spans only tens of km,
// which is a few dozen pixels at the default camera height — the
// track ends up completely hidden under its own launch/burst/
// landing markers and reads as a single dot. Deliberately not done
// for colour/opacity edits, so tweaking one workspace while
// comparing several does not yank the camera around.
if (!cached || cached.result !== w.result) {
map.fitBounds(w.result.flight_path, 50);
}
ownedPlotScenes.add(name);
plotCache.set(name, { result: w.result, color: w.color, opacity: w.opacity });
}