astraeus 0.6.0 → 0.8.0
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/CHANGELOG.md +192 -0
- package/README.md +205 -34
- package/package.json +5 -4
- package/src/api/AstraeusScene.d.ts +24 -6
- package/src/api/AstraeusScene.js +46 -19
- package/src/api/AstraeusScene.node.js +46 -19
- package/src/api/assembleScene.d.ts +36 -0
- package/src/api/assembleScene.js +175 -0
- package/src/api/bodySetChecks.d.ts +10 -0
- package/src/api/bodySetChecks.js +117 -0
- package/src/api/bodySetInput.d.ts +81 -0
- package/src/api/bodySetInput.js +1 -0
- package/src/api/containingBlock.d.ts +6 -0
- package/src/api/containingBlock.js +16 -0
- package/src/api/data.d.ts +17 -5
- package/src/api/data.js +28 -10
- package/src/api/definitionOf.d.ts +16 -0
- package/src/api/definitionOf.js +20 -0
- package/src/api/errors.d.ts +61 -1
- package/src/api/frozenCopy.d.ts +6 -0
- package/src/api/frozenCopy.js +26 -0
- package/src/api/group.d.ts +8 -2
- package/src/api/group.js +24 -5
- package/src/api/index.d.ts +19 -7
- package/src/api/index.js +2 -2
- package/src/api/index.node.js +2 -2
- package/src/api/listeners.d.ts +5 -0
- package/src/api/listeners.js +25 -0
- package/src/api/look.d.ts +47 -0
- package/src/api/look.js +1 -0
- package/src/api/lookInput.d.ts +3 -0
- package/src/api/lookInput.js +41 -0
- package/src/api/moonPanelInput.d.ts +60 -0
- package/src/api/moonPanelInput.js +1 -0
- package/src/api/mount.d.ts +10 -16
- package/src/api/mount.js +27 -11
- package/src/api/mount.node.js +27 -11
- package/src/api/pathProvenance.d.ts +15 -6
- package/src/api/pathProvenance.js +23 -11
- package/src/api/pickerInput.d.ts +25 -0
- package/src/api/pickerInput.js +1 -0
- package/src/api/planBodies.d.ts +72 -0
- package/src/api/planBodies.js +300 -0
- package/src/api/planBodySets.d.ts +68 -0
- package/src/api/planBodySets.js +234 -0
- package/src/api/planCamera.d.ts +83 -0
- package/src/api/planCamera.js +184 -0
- package/src/api/planGroups.d.ts +36 -0
- package/src/api/planGroups.js +103 -0
- package/src/api/planMoonPanel.d.ts +19 -0
- package/src/api/planMoonPanel.js +104 -0
- package/src/api/planPaths.d.ts +40 -0
- package/src/api/planPaths.js +212 -0
- package/src/api/planPicker.d.ts +12 -0
- package/src/api/planPicker.js +40 -0
- package/src/api/planPlaces.d.ts +16 -0
- package/src/api/planPlaces.js +99 -0
- package/src/api/planStory.d.ts +26 -0
- package/src/api/planStory.js +66 -0
- package/src/api/planTimeline.d.ts +27 -0
- package/src/api/planTimeline.js +68 -0
- package/src/api/planViews.d.ts +25 -0
- package/src/api/planViews.js +35 -0
- package/src/api/prepared.js +4 -1
- package/src/api/renamedInputs.d.ts +15 -0
- package/src/api/renamedInputs.js +39 -0
- package/src/api/scene.d.ts +176 -65
- package/src/api/scene.js +257 -725
- package/src/api/sceneFreeze.d.ts +4 -0
- package/src/api/sceneFreeze.js +10 -0
- package/src/api/sceneReads.d.ts +171 -0
- package/src/api/sceneReads.js +6 -0
- package/src/api/sphereOfInfluence.d.ts +20 -0
- package/src/api/sphereOfInfluence.js +48 -0
- package/src/api/story.d.ts +49 -19
- package/src/api/story.js +54 -22
- package/src/api/sunOrbit.js +9 -11
- package/src/api/time.d.ts +2 -1
- package/src/api/time.js +2 -1
- package/src/api/viewerCamera.d.ts +22 -0
- package/src/api/viewerCamera.js +84 -0
- package/src/api/viewerClock.d.ts +30 -0
- package/src/api/viewerClock.js +85 -0
- package/src/api/viewerFirstDraw.d.ts +14 -0
- package/src/api/viewerFirstDraw.js +26 -0
- package/src/api/viewerHandle.d.ts +79 -0
- package/src/api/viewerHandle.js +31 -0
- package/src/api/viewerLink.d.ts +91 -13
- package/src/api/viewerLink.js +111 -64
- package/src/api/viewerLooks.d.ts +19 -0
- package/src/api/viewerLooks.js +37 -0
- package/src/api/viewerPicker.d.ts +22 -0
- package/src/api/viewerPicker.js +49 -0
- package/src/api/viewerSelection.d.ts +25 -0
- package/src/api/viewerSelection.js +31 -0
- package/src/api/viewerViews.d.ts +10 -0
- package/src/api/viewerViews.js +18 -0
- package/src/api/viewerZones.d.ts +20 -0
- package/src/api/viewerZones.js +47 -0
- package/src/api/views.d.ts +41 -0
- package/src/api/views.js +82 -0
- package/src/app/App.d.ts +5 -3
- package/src/app/App.js +211 -75
- package/src/app/App.node.js +211 -75
- package/src/app/AstraeusScene.d.ts +19 -2
- package/src/app/AstraeusScene.js +4 -4
- package/src/app/BodyView.d.ts +4 -1
- package/src/app/BodyView.js +2 -2
- package/src/app/CameraController.d.ts +12 -0
- package/src/app/CameraController.js +3 -1
- package/src/app/DeveloperSettings.d.ts +1 -4
- package/src/app/DeveloperSettings.js +6 -10
- package/src/app/FeatureMarkers.d.ts +4 -3
- package/src/app/FeatureMarkers.js +8 -13
- package/src/app/FrameRateSection.js +2 -1
- package/src/app/OrbitSetView.js +1 -1
- package/src/app/SettingControls.d.ts +11 -3
- package/src/app/SettingControls.js +10 -2
- package/src/app/SkyView.d.ts +3 -10
- package/src/app/SkyView.js +6 -28
- package/src/app/StoryMarkers.d.ts +4 -1
- package/src/app/StoryMarkers.js +3 -2
- package/src/app/TrackedBodyView.d.ts +1 -1
- package/src/app/TrackedBodyView.js +20 -11
- package/src/app/address.d.ts +16 -0
- package/src/app/address.js +31 -0
- package/src/app/bodyDraw.d.ts +10 -7
- package/src/app/bodyDraw.js +12 -32
- package/src/app/bodyMetrics.js +2 -2
- package/src/app/bodySet.d.ts +4 -20
- package/src/app/bodySet.js +5 -16
- package/src/app/debugReadout.js +1 -1
- package/src/app/displaySwitches.d.ts +4 -0
- package/src/app/displaySwitches.js +6 -0
- package/src/app/experienceDefinition.d.ts +14 -23
- package/src/app/listSwitch.d.ts +8 -14
- package/src/app/listSwitch.js +3 -10
- package/src/app/liveLook.d.ts +39 -0
- package/src/app/liveLook.js +66 -0
- package/src/app/look.d.ts +36 -0
- package/src/app/look.js +61 -0
- package/src/app/mission.d.ts +16 -3
- package/src/app/mission.js +16 -1
- package/src/app/openClock.d.ts +3 -2
- package/src/app/openClock.js +3 -3
- package/src/app/sceneCamera.d.ts +2 -0
- package/src/app/sceneCamera.js +23 -0
- package/src/app/sceneFrame.d.ts +6 -4
- package/src/app/sceneFrame.js +55 -14
- package/src/app/sceneHooks.js +3 -2
- package/src/app/style.css +114 -139
- package/src/app/trackedMetrics.d.ts +10 -3
- package/src/app/trackedMetrics.js +22 -11
- package/src/app/viewHiding.d.ts +13 -0
- package/src/app/viewHiding.js +37 -0
- package/src/app/viewLink.d.ts +10 -32
- package/src/app/viewLink.js +10 -49
- package/src/app/viewerPort.d.ts +56 -0
- package/src/app/views.d.ts +32 -0
- package/src/app/views.js +2 -0
- package/src/assets/bodies/galileanMoons.js +1 -2
- package/src/assets/bodies/io.js +2 -2
- package/src/assets/bodies/listedMoons.d.ts +1 -1
- package/src/assets/bodies/listedMoons.js +2 -3
- package/src/assets/bodies/planetSystemMaps.js +2 -3
- package/src/assets/bodies/venus.js +2 -6
- package/src/assets/catalogue.js +1 -2
- package/src/assets/licence.d.ts +3 -3
- package/src/assets/licence.js +3 -3
- package/src/assets/pictures.d.ts +15 -12
- package/src/assets/pictures.js +24 -20
- package/src/assets/sky.d.ts +6 -5
- package/src/assets/sky.js +6 -9
- package/src/assets/visual.d.ts +4 -0
- package/src/core/bodies/index.d.ts +0 -4
- package/src/core/bodies/index.js +1 -6
- package/src/core/bodies/jupiterData.d.ts +0 -1
- package/src/core/bodies/jupiterData.js +2 -5
- package/src/core/bodies/moonSystem.d.ts +1 -1
- package/src/core/bodies/moonSystem.js +102 -55
- package/src/core/bodies/outerPlanetRingData.js +2 -2
- package/src/core/bodies/planetTrajectory.js +1 -1
- package/src/core/bodySetFamilies.d.ts +20 -0
- package/src/core/bodySetFamilies.js +14 -0
- package/src/core/chebyshevEphemeris.js +1 -1
- package/src/core/elementsBody.d.ts +8 -4
- package/src/core/elementsBody.js +32 -11
- package/src/core/elementsGroup.d.ts +27 -0
- package/src/core/elementsGroup.js +85 -0
- package/src/core/events.d.ts +2 -0
- package/src/core/events.js +2 -0
- package/src/core/illumination.js +1 -1
- package/src/core/listedOrbitGroup.d.ts +2 -0
- package/src/core/listedOrbitGroup.js +11 -7
- package/src/core/moonListText.d.ts +6 -0
- package/src/core/moonListText.js +19 -0
- package/src/core/moonTrajectory.js +1 -1
- package/src/core/pacing.d.ts +38 -3
- package/src/core/pacing.js +55 -4
- package/src/core/planetModels.js +2 -2
- package/src/core/planetSeries.d.ts +8 -0
- package/src/core/planetSeries.js +16 -2
- package/src/core/pointGroup.js +1 -1
- package/src/core/provenance.d.ts +2 -1
- package/src/core/provenance.js +2 -2
- package/src/core/referenceCenters.js +5 -5
- package/src/core/sampledTrajectory.js +1 -1
- package/src/core/scalePolicy.d.ts +1 -0
- package/src/core/startView.d.ts +19 -0
- package/src/core/startView.js +28 -0
- package/src/core/state.d.ts +6 -2
- package/src/core/state.js +3 -3
- package/src/core/storyPanels.d.ts +63 -0
- package/src/core/storyPanels.js +111 -0
- package/src/core/sunCentredSources.d.ts +4 -0
- package/src/core/sunCentredSources.js +9 -2
- package/src/core/timeInput.d.ts +4 -0
- package/src/core/timeInput.js +4 -0
- package/src/shell/AstraeusShell.d.ts +17 -3
- package/src/shell/AstraeusShell.js +60 -13
- package/src/shell/AstraeusShell.node.js +60 -13
- package/src/shell/Collapsible.d.ts +4 -3
- package/src/shell/Collapsible.js +5 -5
- package/src/shell/ControlsDrawer.d.ts +1 -1
- package/src/shell/ControlsDrawer.js +3 -1
- package/src/shell/DisplaySwitches.d.ts +18 -1
- package/src/shell/DisplaySwitches.js +20 -6
- package/src/shell/InfoPanel.d.ts +3 -1
- package/src/shell/InfoPanel.js +5 -4
- package/src/shell/MoonFamilyPanel.js +1 -1
- package/src/shell/ObjectControls.d.ts +3 -1
- package/src/shell/ObjectControls.js +2 -2
- package/src/shell/Sources.d.ts +5 -3
- package/src/shell/Sources.js +5 -5
- package/src/shell/StoryPanelView.d.ts +4 -3
- package/src/shell/StoryPanelView.js +8 -6
- package/src/shell/SwitchControl.d.ts +5 -11
- package/src/shell/SwitchControl.js +2 -20
- package/src/shell/TimelineBar.css +84 -66
- package/src/shell/TimelineBar.d.ts +5 -2
- package/src/shell/TimelineBar.js +37 -11
- package/src/shell/TimelineBar.node.js +37 -11
- package/src/shell/TopBar.css +22 -22
- package/src/shell/TopBar.d.ts +9 -3
- package/src/shell/TopBar.js +5 -5
- package/src/shell/TopBar.node.js +5 -5
- package/src/shell/bootLoader.d.ts +4 -10
- package/src/shell/bootLoader.js +6 -52
- package/src/shell/embedded.css +18 -18
- package/src/shell/experience.d.ts +1 -1
- package/src/shell/moonFamilies.d.ts +2 -6
- package/src/shell/moonFamilies.js +2 -18
- package/src/shell/phone.css +58 -58
- package/src/shell/storyPanels.d.ts +2 -53
- package/src/shell/storyPanels.js +1 -106
- package/src/shell/style.css +153 -134
- package/src/shell/timelineModel.d.ts +13 -0
- package/src/shell/timelineModel.js +25 -0
- package/src/shell/useDrawers.d.ts +3 -2
- package/src/shell/useDrawers.js +4 -3
- package/src/shell/viewCamera.d.ts +4 -0
- package/src/shell/viewCamera.js +13 -0
- package/src/shell/viewerKeys.d.ts +8 -0
- package/src/shell/viewerKeys.js +16 -0
- package/src/synthetic/syntheticDefinition.js +20 -24
- package/src/synthetic/syntheticJourneyScene.js +14 -4
- package/src/synthetic/syntheticProbeDefinition.js +2 -1
- package/src/synthetic/syntheticViewsDefinition.d.ts +3 -0
- package/src/synthetic/syntheticViewsDefinition.js +38 -0
- package/data/moons/jupiter.json +0 -3333
- package/data/moons/neptune.json +0 -555
- package/data/moons/pluto.json +0 -205
- package/data/moons/saturn.json +0 -8267
- package/data/moons/uranus.json +0 -887
- package/src/app/addressNavigation.d.ts +0 -17
- package/src/app/addressNavigation.js +0 -16
- package/src/assets/bodies/jupiterMoonCatalogue.d.ts +0 -3
- package/src/assets/bodies/jupiterMoonCatalogue.js +0 -4
- package/src/assets/bodies/outerPlanetCatalogues.d.ts +0 -7
- package/src/assets/bodies/outerPlanetCatalogues.js +0 -8
- package/src/assets/bodies/swiftTuttle.d.ts +0 -12
- package/src/assets/bodies/swiftTuttle.js +0 -13
- package/src/assets/moonCatalogue.d.ts +0 -49
- package/src/assets/moonCatalogue.js +0 -80
- package/src/core/bodies/outerPlanetData.d.ts +0 -4
- package/src/core/bodies/outerPlanetData.js +0 -13
- package/src/core/bodies/swiftTuttle.d.ts +0 -46
- package/src/core/bodies/swiftTuttle.js +0 -106
package/src/shell/style.css
CHANGED
|
@@ -1,17 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Every rule in this sheet and in app/style.css sits under the viewer's root class, so a host page's own html, body and elements are never styled by
|
|
3
|
+
* the viewer (O-055 T-256). The root holds the viewer's custom properties, base colour and font; it fills the mount element, which `mount` and
|
|
4
|
+
* `AstraeusScene` make a containing block. A rule written as `.astraeus-shell :where(.x) ...` keeps the weight it had before the prefix existed, so it
|
|
5
|
+
* still ties or loses to controls.css, the bar sheets and the phone and embedded sheets exactly as it did; `:where()` adds no weight of its own.
|
|
6
|
+
*/
|
|
1
7
|
.astraeus-shell {
|
|
2
8
|
position: absolute;
|
|
3
9
|
inset: 0;
|
|
10
|
+
background: #000;
|
|
4
11
|
color: var(--ui-color, #f0e6da);
|
|
5
12
|
color-scheme: dark;
|
|
6
13
|
font-family: var(--ui-font, system-ui, sans-serif);
|
|
7
14
|
font-size: 14px;
|
|
8
15
|
line-height: 1.4;
|
|
16
|
+
--ui-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
17
|
+
--ui-color: #f0e6da;
|
|
18
|
+
--ui-muted: #c7bdb3;
|
|
19
|
+
--ui-subtle: #a99e94;
|
|
20
|
+
--ui-border: rgba(240, 230, 218, .18);
|
|
21
|
+
--ui-panel: rgba(13, 13, 13, .94);
|
|
22
|
+
--ui-accent: #fc6323;
|
|
23
|
+
--ui-data: #b1a1df;
|
|
24
|
+
--perf-good: #6fcf8f;
|
|
25
|
+
--perf-warn: #f0b84a;
|
|
26
|
+
--perf-bad: #ff6b5e;
|
|
9
27
|
}
|
|
10
28
|
|
|
11
|
-
.shell-canvas { position: absolute; inset: 0; }
|
|
29
|
+
.astraeus-shell .shell-canvas { position: absolute; inset: 0; }
|
|
12
30
|
|
|
13
31
|
/* Top-left column: toolbar, then the info panel, bounded above the timeline. */
|
|
14
|
-
.shell-top {
|
|
32
|
+
.astraeus-shell .shell-top {
|
|
15
33
|
position: absolute;
|
|
16
34
|
z-index: 5;
|
|
17
35
|
top: 12px;
|
|
@@ -24,10 +42,10 @@
|
|
|
24
42
|
max-height: calc(100% - 12px - var(--shell-timeline-space, 150px));
|
|
25
43
|
pointer-events: none;
|
|
26
44
|
}
|
|
27
|
-
.shell-top > * { pointer-events: auto; }
|
|
28
|
-
.provenance-detail[hidden] { display: none !important; }
|
|
45
|
+
.astraeus-shell .shell-top > * { pointer-events: auto; }
|
|
46
|
+
.astraeus-shell .provenance-detail[hidden] { display: none !important; }
|
|
29
47
|
|
|
30
|
-
.info-panel {
|
|
48
|
+
.astraeus-shell .info-panel {
|
|
31
49
|
display: flex;
|
|
32
50
|
flex-direction: column;
|
|
33
51
|
gap: 8px;
|
|
@@ -42,30 +60,30 @@
|
|
|
42
60
|
box-sizing: border-box;
|
|
43
61
|
backdrop-filter: blur(12px);
|
|
44
62
|
}
|
|
45
|
-
.info-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
|
|
46
|
-
.info-panel-header h2 { margin: 6px 0 0; font-size: 16px; line-height: 1.3; }
|
|
63
|
+
.astraeus-shell .info-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
|
|
64
|
+
.astraeus-shell .info-panel-header h2 { margin: 6px 0 0; font-size: 16px; line-height: 1.3; }
|
|
47
65
|
/* Fact cards ported from Planetary Explorer's FeatureDetails (badge, then one small box per detail), in the shell's one UI font (O-039 T-134, I-058). */
|
|
48
|
-
.info-panel-subtitle { margin: 0; }
|
|
49
|
-
.info-panel-badge { display: inline-block; max-width: 100%; box-sizing: border-box; padding: 3px 10px; border: 1px solid color-mix(in srgb, var(--ui-data, #b1a1df) 45%, transparent); border-radius: 999px; color: var(--ui-data, #b1a1df); font-size: 12px; line-height: 1.3; text-transform: capitalize; overflow-wrap: anywhere; }
|
|
50
|
-
.info-panel-description { margin: 0; color: var(--ui-muted, #c7bdb3); }
|
|
51
|
-
.info-panel-facts { display: grid; gap: 8px; margin: 0; min-width: 0; }
|
|
52
|
-
.info-panel-fact { min-width: 0; padding: 8px 12px; border: 1px solid var(--ui-border, rgba(240, 230, 218, .18)); border-radius: 12px; background: rgba(0, 0, 0, .2); text-align: left; }
|
|
53
|
-
.info-panel-fact dt { margin: 0; color: var(--ui-muted, #c7bdb3); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
|
|
54
|
-
.info-panel-fact dd { margin: 4px 0 0; color: var(--ui-color, #f0e6da); font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
|
|
55
|
-
.info-panel-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
|
|
66
|
+
.astraeus-shell .info-panel-subtitle { margin: 0; }
|
|
67
|
+
.astraeus-shell .info-panel-badge { display: inline-block; max-width: 100%; box-sizing: border-box; padding: 3px 10px; border: 1px solid color-mix(in srgb, var(--ui-data, #b1a1df) 45%, transparent); border-radius: 999px; color: var(--ui-data, #b1a1df); font-size: 12px; line-height: 1.3; text-transform: capitalize; overflow-wrap: anywhere; }
|
|
68
|
+
.astraeus-shell .info-panel-description { margin: 0; color: var(--ui-muted, #c7bdb3); }
|
|
69
|
+
.astraeus-shell .info-panel-facts { display: grid; gap: 8px; margin: 0; min-width: 0; }
|
|
70
|
+
.astraeus-shell .info-panel-fact { min-width: 0; padding: 8px 12px; border: 1px solid var(--ui-border, rgba(240, 230, 218, .18)); border-radius: 12px; background: rgba(0, 0, 0, .2); text-align: left; }
|
|
71
|
+
.astraeus-shell .info-panel-fact dt { margin: 0; color: var(--ui-muted, #c7bdb3); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
|
|
72
|
+
.astraeus-shell .info-panel-fact dd { margin: 4px 0 0; color: var(--ui-color, #f0e6da); font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
|
|
73
|
+
.astraeus-shell .info-panel-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
|
|
56
74
|
|
|
57
|
-
.provenance { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
|
|
75
|
+
.astraeus-shell .provenance { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
|
|
58
76
|
.astraeus-shell .provenance-badge { display: inline-block; }
|
|
59
|
-
.provenance-detail { margin: 0; font-size: 13px; }
|
|
60
|
-
.provenance-detail dt { margin-top: 6px; color: var(--ui-color, #f0e6da); font-weight: 600; }
|
|
61
|
-
.provenance-detail dd { margin: 2px 0 0; color: var(--ui-muted, #c7bdb3); overflow-wrap: anywhere; }
|
|
62
|
-
.provenance-detail ul { margin: 0; padding-left: 18px; }
|
|
63
|
-
.provenance-detail li + li { margin-top: 4px; }
|
|
77
|
+
.astraeus-shell .provenance-detail { margin: 0; font-size: 13px; }
|
|
78
|
+
.astraeus-shell .provenance-detail dt { margin-top: 6px; color: var(--ui-color, #f0e6da); font-weight: 600; }
|
|
79
|
+
.astraeus-shell .provenance-detail dd { margin: 2px 0 0; color: var(--ui-muted, #c7bdb3); overflow-wrap: anywhere; }
|
|
80
|
+
.astraeus-shell .provenance-detail ul { margin: 0; padding-left: 18px; }
|
|
81
|
+
.astraeus-shell .provenance-detail li + li { margin-top: 4px; }
|
|
64
82
|
|
|
65
|
-
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
83
|
+
.astraeus-shell .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
66
84
|
|
|
67
|
-
.scene-labels { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
|
|
68
|
-
.astraeus-label {
|
|
85
|
+
.astraeus-shell .scene-labels { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
|
|
86
|
+
.astraeus-shell .astraeus-label {
|
|
69
87
|
position: absolute;
|
|
70
88
|
z-index: 1;
|
|
71
89
|
display: block;
|
|
@@ -83,14 +101,14 @@
|
|
|
83
101
|
pointer-events: none;
|
|
84
102
|
}
|
|
85
103
|
|
|
86
|
-
.astraeus-label[hidden] { display: none !important; }
|
|
87
|
-
.scene-object-label { z-index: 1; }
|
|
104
|
+
.astraeus-shell .astraeus-label[hidden] { display: none !important; }
|
|
105
|
+
.astraeus-shell .scene-object-label { z-index: 1; }
|
|
88
106
|
|
|
89
107
|
.astraeus-shell input { color: inherit; font: inherit; }
|
|
90
|
-
.developer-tools summary:focus-visible { outline: 2px solid var(--ui-accent, #fc6323); outline-offset: 2px; }
|
|
108
|
+
.astraeus-shell :where(.developer-tools) summary:focus-visible { outline: 2px solid var(--ui-accent, #fc6323); outline-offset: 2px; }
|
|
91
109
|
.astraeus-shell input:focus-visible { outline: 2px solid var(--ui-accent, #fc6323); outline-offset: 2px; }
|
|
92
110
|
|
|
93
|
-
.developer-tools {
|
|
111
|
+
.astraeus-shell .developer-tools {
|
|
94
112
|
position: absolute;
|
|
95
113
|
/* Diagnostics must receive input above the toolbar and its information sheet. */
|
|
96
114
|
z-index: 6;
|
|
@@ -117,11 +135,11 @@
|
|
|
117
135
|
backdrop-filter: blur(12px);
|
|
118
136
|
}
|
|
119
137
|
|
|
120
|
-
.developer-tools[hidden] { display: none !important; }
|
|
138
|
+
.astraeus-shell .developer-tools[hidden] { display: none !important; }
|
|
121
139
|
|
|
122
140
|
|
|
123
141
|
/* Metric Visuals: the number leads; the shape is small, quiet and only drawn against a real reference. */
|
|
124
|
-
.metric {
|
|
142
|
+
.astraeus-shell .metric {
|
|
125
143
|
display: flex;
|
|
126
144
|
flex-direction: column;
|
|
127
145
|
align-items: stretch;
|
|
@@ -132,52 +150,52 @@
|
|
|
132
150
|
border-radius: 7px;
|
|
133
151
|
background: rgba(0, 0, 0, .22);
|
|
134
152
|
}
|
|
135
|
-
.metric-label { color: var(--ui-muted, #c7bdb3); font-size: 11px; line-height: 1.3; }
|
|
136
|
-
.metric-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; min-width: 0; }
|
|
137
|
-
.metric-reading { display: inline-flex; align-items: baseline; gap: 5px; min-width: 0; }
|
|
138
|
-
.metric-value { color: var(--ui-color, #f0e6da); font: 600 19px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
139
|
-
.metric-unit { color: var(--ui-muted, #c7bdb3); font-size: 12px; }
|
|
140
|
-
.metric-context { color: var(--ui-subtle, #a99e94); font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
|
|
141
|
-
.metric-scale { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; color: var(--ui-subtle, #a99e94); font-size: 11px; line-height: 1.3; font-variant-numeric: tabular-nums; }
|
|
142
|
-
.metric-readings { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
|
|
143
|
-
.metric-coordinates .metric-value { font-size: 14px; }
|
|
153
|
+
.astraeus-shell .metric-label { color: var(--ui-muted, #c7bdb3); font-size: 11px; line-height: 1.3; }
|
|
154
|
+
.astraeus-shell .metric-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; min-width: 0; }
|
|
155
|
+
.astraeus-shell .metric-reading { display: inline-flex; align-items: baseline; gap: 5px; min-width: 0; }
|
|
156
|
+
.astraeus-shell .metric-value { color: var(--ui-color, #f0e6da); font: 600 19px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
157
|
+
.astraeus-shell .metric-unit { color: var(--ui-muted, #c7bdb3); font-size: 12px; }
|
|
158
|
+
.astraeus-shell .metric-context { color: var(--ui-subtle, #a99e94); font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
|
|
159
|
+
.astraeus-shell .metric-scale { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; color: var(--ui-subtle, #a99e94); font-size: 11px; line-height: 1.3; font-variant-numeric: tabular-nums; }
|
|
160
|
+
.astraeus-shell .metric-readings { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
|
|
161
|
+
.astraeus-shell .metric-coordinates .metric-value { font-size: 14px; }
|
|
144
162
|
|
|
145
|
-
.metric-visual { flex: 0 0 auto; overflow: visible; }
|
|
146
|
-
.metric-arc { width: 46px; height: 39px; }
|
|
147
|
-
.metric-glyph { width: 30px; height: 30px; }
|
|
148
|
-
.metric-bar { flex: 1 0 100%; width: 100%; height: 14px; }
|
|
149
|
-
.metric-relation { width: 74px; height: 20px; }
|
|
150
|
-
.metric-horizon-glyph { width: 34px; height: 34px; }
|
|
151
|
-
.metric-track,
|
|
152
|
-
.metric-fill { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
|
|
153
|
-
.metric-track { stroke: #34302c; stroke-width: 5px; }
|
|
154
|
-
.metric-fill { stroke: var(--ui-accent, #fc6323); stroke-width: 5px; }
|
|
155
|
-
.metric-fill-light { stroke: #e9d6a8; }
|
|
156
|
-
.metric-marker { stroke: var(--ui-data, #b1a1df); stroke-width: 2px; vector-effect: non-scaling-stroke; }
|
|
157
|
-
.metric-disc { fill: #2a2724; stroke: rgba(240, 230, 218, .35); stroke-width: 1px; vector-effect: non-scaling-stroke; }
|
|
158
|
-
.metric-lit { fill: #e9d6a8; }
|
|
159
|
-
.metric-track-thin { stroke-width: 2px; }
|
|
160
|
-
.metric-link { stroke: var(--ui-subtle, #a99e94); stroke-width: 1.5px; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
|
|
161
|
-
.metric-break { fill: none; stroke: var(--ui-color, #f0e6da); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
|
|
162
|
-
.metric-dot { fill: var(--ui-accent, #fc6323); }
|
|
163
|
-
.metric-horizon { fill: none; stroke: #e9d6a8; stroke-width: 2px; vector-effect: non-scaling-stroke; }
|
|
164
|
-
.metric-band { fill: rgba(177, 161, 223, .35); stroke: var(--ui-data, #b1a1df); stroke-width: 1px; vector-effect: non-scaling-stroke; }
|
|
165
|
-
.metric-centre { stroke: var(--ui-color, #f0e6da); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
|
|
166
|
-
.metric-axis,
|
|
167
|
-
.metric-outline { fill: none; stroke: var(--ui-data, #b1a1df); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
|
|
168
|
-
.metric-outline { stroke: rgba(240, 230, 218, .45); }
|
|
169
|
-
.metric-radar { width: 56px; height: 42px; }
|
|
170
|
-
.metric-view-frame { fill: rgba(255, 255, 255, .03); stroke: rgba(240, 230, 218, .22); stroke-width: 1px; vector-effect: non-scaling-stroke; }
|
|
171
|
-
.metric-view-axis { stroke: rgba(240, 230, 218, .16); stroke-width: 1px; vector-effect: non-scaling-stroke; }
|
|
172
|
-
.metric-view-origin { fill: none; stroke: var(--ui-color, #f0e6da); stroke-width: 1px; vector-effect: non-scaling-stroke; }
|
|
173
|
-
.metric-view-reference { fill: var(--ui-data, #b1a1df); }
|
|
174
|
-
.metric-view-link { stroke: var(--ui-accent, #fc6323); stroke-opacity: .55; stroke-width: 1px; vector-effect: non-scaling-stroke; }
|
|
175
|
-
.metric-view-origin-tick,
|
|
176
|
-
.metric-view-reference-tick,
|
|
177
|
-
.metric-view-object-tick { stroke-width: 2px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
|
|
178
|
-
.metric-view-origin-tick { stroke: rgba(240, 230, 218, .6); stroke-width: 1px; }
|
|
179
|
-
.metric-view-reference-tick { stroke: var(--ui-data, #b1a1df); }
|
|
180
|
-
.metric-view-object-tick { stroke: var(--ui-accent, #fc6323); }
|
|
163
|
+
.astraeus-shell .metric-visual { flex: 0 0 auto; overflow: visible; }
|
|
164
|
+
.astraeus-shell .metric-arc { width: 46px; height: 39px; }
|
|
165
|
+
.astraeus-shell .metric-glyph { width: 30px; height: 30px; }
|
|
166
|
+
.astraeus-shell .metric-bar { flex: 1 0 100%; width: 100%; height: 14px; }
|
|
167
|
+
.astraeus-shell .metric-relation { width: 74px; height: 20px; }
|
|
168
|
+
.astraeus-shell .metric-horizon-glyph { width: 34px; height: 34px; }
|
|
169
|
+
.astraeus-shell .metric-track,
|
|
170
|
+
.astraeus-shell .metric-fill { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
|
|
171
|
+
.astraeus-shell .metric-track { stroke: #34302c; stroke-width: 5px; }
|
|
172
|
+
.astraeus-shell .metric-fill { stroke: var(--ui-accent, #fc6323); stroke-width: 5px; }
|
|
173
|
+
.astraeus-shell .metric-fill-light { stroke: #e9d6a8; }
|
|
174
|
+
.astraeus-shell .metric-marker { stroke: var(--ui-data, #b1a1df); stroke-width: 2px; vector-effect: non-scaling-stroke; }
|
|
175
|
+
.astraeus-shell .metric-disc { fill: #2a2724; stroke: rgba(240, 230, 218, .35); stroke-width: 1px; vector-effect: non-scaling-stroke; }
|
|
176
|
+
.astraeus-shell .metric-lit { fill: #e9d6a8; }
|
|
177
|
+
.astraeus-shell .metric-track-thin { stroke-width: 2px; }
|
|
178
|
+
.astraeus-shell .metric-link { stroke: var(--ui-subtle, #a99e94); stroke-width: 1.5px; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
|
|
179
|
+
.astraeus-shell .metric-break { fill: none; stroke: var(--ui-color, #f0e6da); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
|
|
180
|
+
.astraeus-shell .metric-dot { fill: var(--ui-accent, #fc6323); }
|
|
181
|
+
.astraeus-shell .metric-horizon { fill: none; stroke: #e9d6a8; stroke-width: 2px; vector-effect: non-scaling-stroke; }
|
|
182
|
+
.astraeus-shell .metric-band { fill: rgba(177, 161, 223, .35); stroke: var(--ui-data, #b1a1df); stroke-width: 1px; vector-effect: non-scaling-stroke; }
|
|
183
|
+
.astraeus-shell .metric-centre { stroke: var(--ui-color, #f0e6da); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
|
|
184
|
+
.astraeus-shell .metric-axis,
|
|
185
|
+
.astraeus-shell .metric-outline { fill: none; stroke: var(--ui-data, #b1a1df); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
|
|
186
|
+
.astraeus-shell .metric-outline { stroke: rgba(240, 230, 218, .45); }
|
|
187
|
+
.astraeus-shell .metric-radar { width: 56px; height: 42px; }
|
|
188
|
+
.astraeus-shell .metric-view-frame { fill: rgba(255, 255, 255, .03); stroke: rgba(240, 230, 218, .22); stroke-width: 1px; vector-effect: non-scaling-stroke; }
|
|
189
|
+
.astraeus-shell .metric-view-axis { stroke: rgba(240, 230, 218, .16); stroke-width: 1px; vector-effect: non-scaling-stroke; }
|
|
190
|
+
.astraeus-shell .metric-view-origin { fill: none; stroke: var(--ui-color, #f0e6da); stroke-width: 1px; vector-effect: non-scaling-stroke; }
|
|
191
|
+
.astraeus-shell .metric-view-reference { fill: var(--ui-data, #b1a1df); }
|
|
192
|
+
.astraeus-shell .metric-view-link { stroke: var(--ui-accent, #fc6323); stroke-opacity: .55; stroke-width: 1px; vector-effect: non-scaling-stroke; }
|
|
193
|
+
.astraeus-shell .metric-view-origin-tick,
|
|
194
|
+
.astraeus-shell .metric-view-reference-tick,
|
|
195
|
+
.astraeus-shell .metric-view-object-tick { stroke-width: 2px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
|
|
196
|
+
.astraeus-shell .metric-view-origin-tick { stroke: rgba(240, 230, 218, .6); stroke-width: 1px; }
|
|
197
|
+
.astraeus-shell .metric-view-reference-tick { stroke: var(--ui-data, #b1a1df); }
|
|
198
|
+
.astraeus-shell .metric-view-object-tick { stroke: var(--ui-accent, #fc6323); }
|
|
181
199
|
|
|
182
200
|
/* Keep scroll areas visually tied to the rest of the dark control surface. */
|
|
183
201
|
.astraeus-shell * { scrollbar-color: #66584a #181716; scrollbar-width: thin; }
|
|
@@ -187,15 +205,15 @@
|
|
|
187
205
|
.astraeus-shell *::-webkit-scrollbar-thumb:hover { background: #90745d; }
|
|
188
206
|
|
|
189
207
|
@media (min-width: 701px) and (max-width: 900px) {
|
|
190
|
-
.shell-top { max-width: calc(100vw - 16px); --shell-timeline-space: 184px; }
|
|
208
|
+
.astraeus-shell .shell-top { max-width: calc(100vw - 16px); --shell-timeline-space: 184px; }
|
|
191
209
|
}
|
|
192
210
|
|
|
193
211
|
@media (prefers-reduced-motion: reduce) {
|
|
194
|
-
.developer-tools { scroll-behavior: auto; transition: none !important; }
|
|
212
|
+
.astraeus-shell .developer-tools { scroll-behavior: auto; transition: none !important; }
|
|
195
213
|
}
|
|
196
214
|
|
|
197
215
|
/* Story panels: a side panel beside the scene on a wide screen, a bottom sheet on a phone. Look after Planetary Explorer's SidePanel and BottomSheet. */
|
|
198
|
-
.story-panel {
|
|
216
|
+
.astraeus-shell .story-panel {
|
|
199
217
|
position: absolute;
|
|
200
218
|
z-index: 4;
|
|
201
219
|
top: 56px;
|
|
@@ -215,25 +233,26 @@
|
|
|
215
233
|
backdrop-filter: blur(12px);
|
|
216
234
|
animation: story-panel-in 300ms ease-out;
|
|
217
235
|
}
|
|
218
|
-
.sheet-handle { display: none; }
|
|
219
|
-
.story-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
220
|
-
.story-panel h2 { margin: 0; font-size: 17px; line-height: 1.3; }
|
|
221
|
-
.story-panel-body p { margin: 0 0 8px; color: var(--ui-color, #f0e6da); }
|
|
222
|
-
.story-panel-body p:last-child { margin-bottom: 0; }
|
|
236
|
+
.astraeus-shell .sheet-handle { display: none; }
|
|
237
|
+
.astraeus-shell .story-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
238
|
+
.astraeus-shell .story-panel h2 { margin: 0; font-size: 17px; line-height: 1.3; }
|
|
239
|
+
.astraeus-shell .story-panel-body p { margin: 0 0 8px; color: var(--ui-color, #f0e6da); }
|
|
240
|
+
.astraeus-shell .story-panel-body p:last-child { margin-bottom: 0; }
|
|
223
241
|
/* Sources: a collapsible section, closed until tapped, in the information and story panels. */
|
|
224
|
-
.sources-section { align-self: stretch; border-top: 1px solid var(--ui-border, rgba(240, 230, 218, .18)); }
|
|
225
|
-
.sources-section summary { margin-top: 2px; }
|
|
226
|
-
.sources-count { color: var(--ui-subtle, #a99e94); font-weight: 400; }
|
|
227
|
-
.sources-section[open] summary svg { transform: rotate(180deg); }
|
|
228
|
-
.sources-section ul { margin: 0 0 8px; padding-left: 18px; color: var(--ui-muted, #c7bdb3); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
|
|
229
|
-
.sources-details { margin: 0 0 8px; color: var(--ui-muted, #c7bdb3); font-size: 13px; line-height: 1.5; }
|
|
230
|
-
.sources-details p { margin: 6px 0; }
|
|
231
|
-
.sources-
|
|
232
|
-
.
|
|
233
|
-
.story-panel-
|
|
242
|
+
.astraeus-shell .sources-section { align-self: stretch; border-top: 1px solid var(--ui-border, rgba(240, 230, 218, .18)); }
|
|
243
|
+
.astraeus-shell .sources-section summary { margin-top: 2px; }
|
|
244
|
+
.astraeus-shell .sources-count { color: var(--ui-subtle, #a99e94); font-weight: 400; }
|
|
245
|
+
.astraeus-shell .sources-section[open] summary svg { transform: rotate(180deg); }
|
|
246
|
+
.astraeus-shell .sources-section ul { margin: 0 0 8px; padding-left: 18px; color: var(--ui-muted, #c7bdb3); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
|
|
247
|
+
.astraeus-shell .sources-details { margin: 0 0 8px; color: var(--ui-muted, #c7bdb3); font-size: 13px; line-height: 1.5; }
|
|
248
|
+
.astraeus-shell .sources-details p { margin: 6px 0; }
|
|
249
|
+
.astraeus-shell .sources-trust { margin-bottom: 8px; }
|
|
250
|
+
.astraeus-shell .sources-section li + li { margin-top: 3px; }
|
|
251
|
+
.astraeus-shell :where(.story-panel-close) { font-size: 20px; line-height: 1; }
|
|
252
|
+
.astraeus-shell :where(.story-panel-continue) { align-self: flex-start; }
|
|
234
253
|
|
|
235
254
|
/* The badge: monospace caps pill, tinted by how far to trust the facts. */
|
|
236
|
-
.story-badge {
|
|
255
|
+
.astraeus-shell .story-badge {
|
|
237
256
|
display: inline-block;
|
|
238
257
|
padding: 2px 8px;
|
|
239
258
|
border: 1px solid var(--ui-border, rgba(240, 230, 218, .18));
|
|
@@ -244,13 +263,13 @@
|
|
|
244
263
|
letter-spacing: .08em;
|
|
245
264
|
text-transform: uppercase;
|
|
246
265
|
}
|
|
247
|
-
.story-badge[data-badge="observed"] { border-color: color-mix(in srgb, #a4c639 55%, transparent); color: #a4c639; }
|
|
248
|
-
.story-badge[data-badge="modelled"] { border-color: color-mix(in srgb, var(--ui-data, #b1a1df) 60%, transparent); color: var(--ui-data, #b1a1df); }
|
|
249
|
-
.story-badge[data-badge="illustrative"] { border-color: color-mix(in srgb, var(--ui-accent, #fc6323) 55%, transparent); color: var(--ui-accent, #fc6323); }
|
|
266
|
+
.astraeus-shell .story-badge[data-badge="observed"], .astraeus-shell .story-badge[data-badge="ephemeris"] { border-color: color-mix(in srgb, #a4c639 55%, transparent); color: #a4c639; }
|
|
267
|
+
.astraeus-shell .story-badge[data-badge="modelled"], .astraeus-shell .story-badge[data-badge="reconstructed"] { border-color: color-mix(in srgb, var(--ui-data, #b1a1df) 60%, transparent); color: var(--ui-data, #b1a1df); }
|
|
268
|
+
.astraeus-shell .story-badge[data-badge="illustrative"] { border-color: color-mix(in srgb, var(--ui-accent, #fc6323) 55%, transparent); color: var(--ui-accent, #fc6323); }
|
|
250
269
|
|
|
251
270
|
/* Scene markers and the timeline marker for a panel: after Planetary Explorer's HotspotMarker (a ringed dot that fills when open). */
|
|
252
|
-
.story-markers { position: absolute; z-index: 3; inset: 0; overflow: hidden; pointer-events: none; }
|
|
253
|
-
.story-marker {
|
|
271
|
+
.astraeus-shell .story-markers { position: absolute; z-index: 3; inset: 0; overflow: hidden; pointer-events: none; }
|
|
272
|
+
.astraeus-shell .story-marker {
|
|
254
273
|
position: absolute;
|
|
255
274
|
top: 0;
|
|
256
275
|
left: 0;
|
|
@@ -266,14 +285,14 @@
|
|
|
266
285
|
pointer-events: auto;
|
|
267
286
|
touch-action: none;
|
|
268
287
|
}
|
|
269
|
-
.story-marker::before { position: absolute; inset: -10px; content: ""; }
|
|
270
|
-
.story-marker[aria-pressed="true"] { background: var(--ui-accent, #fc6323) !important; box-shadow: 0 0 8px var(--ui-accent, #fc6323), 0 0 16px color-mix(in srgb, var(--ui-accent, #fc6323) 40%, transparent); }
|
|
271
|
-
.story-marker[hidden] { display: none !important; }
|
|
288
|
+
.astraeus-shell .story-marker::before { position: absolute; inset: -10px; content: ""; }
|
|
289
|
+
.astraeus-shell .story-marker[aria-pressed="true"] { background: var(--ui-accent, #fc6323) !important; box-shadow: 0 0 8px var(--ui-accent, #fc6323), 0 0 16px color-mix(in srgb, var(--ui-accent, #fc6323) 40%, transparent); }
|
|
290
|
+
.astraeus-shell .story-marker[hidden] { display: none !important; }
|
|
272
291
|
|
|
273
292
|
|
|
274
293
|
/* Tagged places on a body: the donor's HotspotMarker look (10 px ringed dot in the category colour; 14 px and filled when its information is open). */
|
|
275
|
-
.feature-markers { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
|
|
276
|
-
.feature-marker {
|
|
294
|
+
.astraeus-shell .feature-markers { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
|
|
295
|
+
.astraeus-shell .feature-marker {
|
|
277
296
|
position: absolute;
|
|
278
297
|
top: 0;
|
|
279
298
|
left: 0;
|
|
@@ -294,9 +313,9 @@
|
|
|
294
313
|
transition: width 150ms ease, height 150ms ease, opacity 150ms ease, background 150ms ease, box-shadow 150ms ease;
|
|
295
314
|
}
|
|
296
315
|
/* 44 px square around the 10 px dot. */
|
|
297
|
-
.feature-marker::before { position: absolute; inset: -19px; content: ""; }
|
|
298
|
-
.feature-marker:focus-visible { outline: 2px solid var(--ui-accent, #fc6323); outline-offset: 2px; }
|
|
299
|
-
.feature-marker[aria-pressed="true"] {
|
|
316
|
+
.astraeus-shell .feature-marker::before { position: absolute; inset: -19px; content: ""; }
|
|
317
|
+
.astraeus-shell .feature-marker:focus-visible { outline: 2px solid var(--ui-accent, #fc6323); outline-offset: 2px; }
|
|
318
|
+
.astraeus-shell .feature-marker[aria-pressed="true"] {
|
|
300
319
|
width: 14px;
|
|
301
320
|
height: 14px;
|
|
302
321
|
opacity: 1;
|
|
@@ -304,7 +323,7 @@
|
|
|
304
323
|
box-shadow: 0 0 8px var(--feature-color, #fff), 0 0 16px color-mix(in srgb, var(--feature-color, #fff) 40%, transparent);
|
|
305
324
|
}
|
|
306
325
|
/* The place's name on hover or keyboard focus (a tap opens its information, which is headed by the name). */
|
|
307
|
-
.feature-marker::after {
|
|
326
|
+
.astraeus-shell .feature-marker::after {
|
|
308
327
|
position: absolute;
|
|
309
328
|
bottom: 120%;
|
|
310
329
|
left: 50%;
|
|
@@ -321,12 +340,12 @@
|
|
|
321
340
|
pointer-events: none;
|
|
322
341
|
}
|
|
323
342
|
/* Near the left, right or top edge the name flips inward so it never spills off the screen. */
|
|
324
|
-
.feature-marker[data-edge-x="left"]::after { left: 0; transform: none; }
|
|
325
|
-
.feature-marker[data-edge-x="right"]::after { right: 0; left: auto; transform: none; }
|
|
326
|
-
.feature-marker[data-edge-y="top"]::after { top: 120%; bottom: auto; }
|
|
327
|
-
.feature-marker::after { max-width: min(220px, 60vw); overflow: hidden; text-overflow: ellipsis; }
|
|
328
|
-
.feature-marker:hover::after, .feature-marker:focus-visible::after { opacity: 1; }
|
|
329
|
-
.feature-marker[hidden] { display: none !important; }
|
|
343
|
+
.astraeus-shell .feature-marker[data-edge-x="left"]::after { left: 0; transform: none; }
|
|
344
|
+
.astraeus-shell .feature-marker[data-edge-x="right"]::after { right: 0; left: auto; transform: none; }
|
|
345
|
+
.astraeus-shell .feature-marker[data-edge-y="top"]::after { top: 120%; bottom: auto; }
|
|
346
|
+
.astraeus-shell .feature-marker::after { max-width: min(220px, 60vw); overflow: hidden; text-overflow: ellipsis; }
|
|
347
|
+
.astraeus-shell .feature-marker:hover::after, .astraeus-shell .feature-marker:focus-visible::after { opacity: 1; }
|
|
348
|
+
.astraeus-shell .feature-marker[hidden] { display: none !important; }
|
|
330
349
|
|
|
331
350
|
/* On a wide screen the diagnostics step left of an open story panel instead of covering it. */
|
|
332
351
|
@media (min-width: 701px) {
|
|
@@ -337,13 +356,13 @@
|
|
|
337
356
|
@keyframes story-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
|
|
338
357
|
|
|
339
358
|
@media (prefers-reduced-motion: reduce) {
|
|
340
|
-
.story-panel { animation: none; }
|
|
359
|
+
.astraeus-shell .story-panel { animation: none; }
|
|
341
360
|
}
|
|
342
361
|
|
|
343
362
|
/* ---- The moon panel (O-025 T-099): a planet's moons by family. Wide screens: a button and a sheet in the shell-top column (under the toolbar, in the information panel's
|
|
344
363
|
area, so the two never overlap and opening one closes the other); phones: a section of the top drawer. ---- */
|
|
345
|
-
.moons-toggle { flex: 0 0 auto; min-height: 44px; }
|
|
346
|
-
.moons-sheet {
|
|
364
|
+
.astraeus-shell :where(.moons-toggle) { flex: 0 0 auto; min-height: 44px; }
|
|
365
|
+
.astraeus-shell .moons-sheet {
|
|
347
366
|
display: none;
|
|
348
367
|
flex: 0 1 auto;
|
|
349
368
|
flex-direction: column;
|
|
@@ -358,21 +377,21 @@
|
|
|
358
377
|
box-sizing: border-box;
|
|
359
378
|
backdrop-filter: blur(12px);
|
|
360
379
|
}
|
|
361
|
-
.moons-sheet[data-open="true"] { display: flex; animation: moons-sheet-in var(--drawer-ms, 240ms) ease; }
|
|
380
|
+
.astraeus-shell .moons-sheet[data-open="true"] { display: flex; animation: moons-sheet-in var(--drawer-ms, 240ms) ease; }
|
|
362
381
|
@keyframes moons-sheet-in { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
|
|
363
|
-
.moon-panel { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
|
|
364
|
-
.moon-panel ul { margin: 0; padding: 0; list-style: none; }
|
|
365
|
-
.moon-panel h3, .moon-panel h4 { margin: 0; font-size: 14px; }
|
|
366
|
-
.moon-search { display: grid; gap: 4px; }
|
|
367
|
-
.moon-search-label { color: var(--ui-muted, #c7bdb3); font-size: 12px; }
|
|
368
|
-
.moon-note { margin: 0 0 4px; color: var(--ui-muted, #c7bdb3); font-size: 13px; }
|
|
369
|
-
.moon-families { display: flex; flex-direction: column; gap: 4px; }
|
|
370
|
-
.moon-families[hidden] { display: none; }
|
|
371
|
-
.moon-count, .moon-row-detail { color: var(--ui-muted, #c7bdb3); font-size: 12px; font-weight: 400; }
|
|
372
|
-
.moon-pictures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
|
|
373
|
-
.moon-picture { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 4px; width: 100%; padding: 6px 2px; font-size: 12px; }
|
|
374
|
-
.moon-disc { width: 44px; height: 44px; border-radius: 50%; background-color: #222; background-repeat: no-repeat; background-size: 300% 100%; background-position: 50% 50%; }
|
|
375
|
-
.moon-family[data-lit="true"], .moon-featured[data-lit="true"] { border-radius: 10px; box-shadow: inset 3px 0 0 var(--ui-accent, #fc6323); }
|
|
376
|
-
.moon-panel .collapsible-body { padding-left: 4px; }
|
|
377
|
-
[data-phone="true"] .moon-panel { max-height: max(120px, calc(var(--controls-drawer-max, 60dvh) - 270px)); overflow-y: auto; overscroll-behavior: contain; margin-top: 8px; }
|
|
378
|
-
@media (prefers-reduced-motion: reduce) { .moons-sheet { animation: none !important; } }
|
|
382
|
+
.astraeus-shell .moon-panel { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
|
|
383
|
+
.astraeus-shell .moon-panel ul { margin: 0; padding: 0; list-style: none; }
|
|
384
|
+
.astraeus-shell .moon-panel h3, .astraeus-shell .moon-panel h4 { margin: 0; font-size: 14px; }
|
|
385
|
+
.astraeus-shell .moon-search { display: grid; gap: 4px; }
|
|
386
|
+
.astraeus-shell .moon-search-label { color: var(--ui-muted, #c7bdb3); font-size: 12px; }
|
|
387
|
+
.astraeus-shell .moon-note { margin: 0 0 4px; color: var(--ui-muted, #c7bdb3); font-size: 13px; }
|
|
388
|
+
.astraeus-shell .moon-families { display: flex; flex-direction: column; gap: 4px; }
|
|
389
|
+
.astraeus-shell .moon-families[hidden] { display: none; }
|
|
390
|
+
.astraeus-shell .moon-count, .astraeus-shell .moon-row-detail { color: var(--ui-muted, #c7bdb3); font-size: 12px; font-weight: 400; }
|
|
391
|
+
.astraeus-shell .moon-pictures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
|
|
392
|
+
.astraeus-shell :where(.moon-picture) { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 4px; width: 100%; padding: 6px 2px; font-size: 12px; }
|
|
393
|
+
.astraeus-shell .moon-disc { width: 44px; height: 44px; border-radius: 50%; background-color: #222; background-repeat: no-repeat; background-size: 300% 100%; background-position: 50% 50%; }
|
|
394
|
+
.astraeus-shell .moon-family[data-lit="true"], .astraeus-shell .moon-featured[data-lit="true"] { border-radius: 10px; box-shadow: inset 3px 0 0 var(--ui-accent, #fc6323); }
|
|
395
|
+
.astraeus-shell .moon-panel .collapsible-body { padding-left: 4px; }
|
|
396
|
+
.astraeus-shell[data-phone="true"] .moon-panel { max-height: max(120px, calc(var(--controls-drawer-max, 60dvh) - 270px)); overflow-y: auto; overscroll-behavior: contain; margin-top: 8px; }
|
|
397
|
+
@media (prefers-reduced-motion: reduce) { .astraeus-shell .moons-sheet { animation: none !important; } }
|
|
@@ -62,3 +62,16 @@ export declare function navigationStops(events: readonly TimelineEvent[], window
|
|
|
62
62
|
readonly previous: NavigationStop | null;
|
|
63
63
|
readonly next: NavigationStop | null;
|
|
64
64
|
};
|
|
65
|
+
/** The least gap (px) between two markers on the track; markers closer than this are gathered into one group. An 18 px marker button plus a small margin. */
|
|
66
|
+
export declare const MARKER_MIN_SPACING_PX = 22;
|
|
67
|
+
/** One or more markers that sit together on the track: a single member is an ordinary marker, several are gathered under one group mark. */
|
|
68
|
+
export interface MarkerGroup<T> {
|
|
69
|
+
/** Members in time order. */
|
|
70
|
+
readonly members: readonly T[];
|
|
71
|
+
/** Where the mark sits on the track, as a percent of its width (the mean of the members' own positions). */
|
|
72
|
+
readonly positionPercent: number;
|
|
73
|
+
}
|
|
74
|
+
/** Gathers markers whose pixel gaps on a track of this width are under the minimum spacing (chained: each member is close to the one before). Markers keep their true times; a group lists them all. */
|
|
75
|
+
export declare function groupMarkers<T extends {
|
|
76
|
+
readonly timeUtcMs: number;
|
|
77
|
+
}>(items: readonly T[], bounds: TimeBounds, trackWidthPx: number, minSpacingPx?: number): readonly MarkerGroup<T>[];
|
|
@@ -143,3 +143,28 @@ export function navigationStops(events, windows, timeUtcMs) {
|
|
|
143
143
|
}
|
|
144
144
|
return { previous, next };
|
|
145
145
|
}
|
|
146
|
+
/** The least gap (px) between two markers on the track; markers closer than this are gathered into one group. An 18 px marker button plus a small margin. */
|
|
147
|
+
export const MARKER_MIN_SPACING_PX = 22;
|
|
148
|
+
/** Gathers markers whose pixel gaps on a track of this width are under the minimum spacing (chained: each member is close to the one before). Markers keep their true times; a group lists them all. */
|
|
149
|
+
export function groupMarkers(items, bounds, trackWidthPx, minSpacingPx = MARKER_MIN_SPACING_PX) {
|
|
150
|
+
// An unmeasured track (no layout yet, or a page without one) gathers nothing: every marker stays its own.
|
|
151
|
+
if (!(trackWidthPx > 0))
|
|
152
|
+
return [...items].sort((a, b) => a.timeUtcMs - b.timeUtcMs).map((item) => ({ members: [item], positionPercent: timePositionPercent(item.timeUtcMs, bounds) }));
|
|
153
|
+
const sorted = [...items].sort((a, b) => a.timeUtcMs - b.timeUtcMs);
|
|
154
|
+
const px = (item) => (timePositionPercent(item.timeUtcMs, bounds) / 100) * trackWidthPx;
|
|
155
|
+
const groups = [];
|
|
156
|
+
let previous = Number.NEGATIVE_INFINITY;
|
|
157
|
+
for (const item of sorted) {
|
|
158
|
+
const at = px(item);
|
|
159
|
+
const last = groups[groups.length - 1];
|
|
160
|
+
if (last !== undefined && at - previous < minSpacingPx)
|
|
161
|
+
last.push(item);
|
|
162
|
+
else
|
|
163
|
+
groups.push([item]);
|
|
164
|
+
previous = at;
|
|
165
|
+
}
|
|
166
|
+
return groups.map((members) => ({
|
|
167
|
+
members,
|
|
168
|
+
positionPercent: members.reduce((sum, item) => sum + timePositionPercent(item.timeUtcMs, bounds), 0) / members.length,
|
|
169
|
+
}));
|
|
170
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
1
2
|
export interface Drawers {
|
|
2
3
|
readonly controlsOpen: boolean;
|
|
3
4
|
readonly timelineOpen: boolean;
|
|
@@ -5,7 +6,7 @@ export interface Drawers {
|
|
|
5
6
|
readonly openTimeline: (open: boolean) => void;
|
|
6
7
|
}
|
|
7
8
|
/**
|
|
8
|
-
* The phone's two drawers (controls and timeline). They share the screen, so opening one closes the other, and Escape closes both on a phone.
|
|
9
|
+
* The phone's two drawers (controls and timeline). They share the screen, so opening one closes the other, and Escape closes both on a phone (when pressed inside this viewer, `viewer` being its root, or on the bare page).
|
|
9
10
|
* `onControlsOpened` runs when the controls drawer opens, for whatever else wants the same screen.
|
|
10
11
|
*/
|
|
11
|
-
export declare function useDrawers(phone: boolean, onControlsOpened: () => void): Drawers;
|
|
12
|
+
export declare function useDrawers(phone: boolean, viewer: RefObject<Element | null>, onControlsOpened: () => void): Drawers;
|
package/src/shell/useDrawers.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
|
+
import { keyIsForViewer } from "./viewerKeys.js";
|
|
2
3
|
/**
|
|
3
|
-
* The phone's two drawers (controls and timeline). They share the screen, so opening one closes the other, and Escape closes both on a phone.
|
|
4
|
+
* The phone's two drawers (controls and timeline). They share the screen, so opening one closes the other, and Escape closes both on a phone (when pressed inside this viewer, `viewer` being its root, or on the bare page).
|
|
4
5
|
* `onControlsOpened` runs when the controls drawer opens, for whatever else wants the same screen.
|
|
5
6
|
*/
|
|
6
|
-
export function useDrawers(phone, onControlsOpened) {
|
|
7
|
+
export function useDrawers(phone, viewer, onControlsOpened) {
|
|
7
8
|
const [controlsOpen, setControlsOpen] = useState(false);
|
|
8
9
|
const [timelineOpen, setTimelineOpen] = useState(false);
|
|
9
10
|
const openControls = (open) => {
|
|
@@ -18,7 +19,7 @@ export function useDrawers(phone, onControlsOpened) {
|
|
|
18
19
|
useEffect(() => {
|
|
19
20
|
if (!phone || (!controlsOpen && !timelineOpen))
|
|
20
21
|
return undefined;
|
|
21
|
-
const onKey = (event) => { if (!event.defaultPrevented && event.key === "Escape") {
|
|
22
|
+
const onKey = (event) => { if (!event.defaultPrevented && event.key === "Escape" && keyIsForViewer(event, viewer.current)) {
|
|
22
23
|
setControlsOpen(false);
|
|
23
24
|
setTimelineOpen(false);
|
|
24
25
|
} };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewCameraRule } from "../app/views.js";
|
|
2
|
+
import type { ExperienceCameraPreset, ExperienceConfig } from "./experience.js";
|
|
3
|
+
/** The preset a view's rule asks for, or undefined for `stay` (no request: the pose is kept and following stops). The scene's start framing is its start preset, else the overview. */
|
|
4
|
+
export declare function presetForViewRule(rule: ViewCameraRule, experience: ExperienceConfig): ExperienceCameraPreset | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { findCameraPreset } from "./objectModel.js";
|
|
2
|
+
/** The preset a view's rule asks for, or undefined for `stay` (no request: the pose is kept and following stops). The scene's start framing is its start preset, else the overview. */
|
|
3
|
+
export function presetForViewRule(rule, experience) {
|
|
4
|
+
if (rule.rule === "stay")
|
|
5
|
+
return undefined;
|
|
6
|
+
const framing = rule.framing;
|
|
7
|
+
if (framing !== undefined) {
|
|
8
|
+
const kind = "follow" in framing ? "follow" : "focus";
|
|
9
|
+
const target = "follow" in framing ? framing.follow : framing.focus;
|
|
10
|
+
return findCameraPreset(experience, kind, target) ?? { id: `${kind}-${target}`, label: `${kind === "follow" ? "Follow" : "Focus"} ${target}`, request: { kind, target } };
|
|
11
|
+
}
|
|
12
|
+
return experience.cameraPresets.find((preset) => preset.id === experience.startCameraPresetId) ?? findCameraPreset(experience, "overview");
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** The one class every viewer's root carries (`AstraeusShell`'s `<main>`); a viewer's own parts are the ones inside it. */
|
|
2
|
+
export declare const VIEWER_ROOT_CLASS = "astraeus-shell";
|
|
3
|
+
/**
|
|
4
|
+
* Whether a document-level key press is this viewer's to act on (O-055, API-03): it was pressed inside the viewer, or on the bare page (body or document element,
|
|
5
|
+
* where a single viewer has always heard Escape). A key pressed in another viewer or in a host's own control reaches none of this viewer's panels.
|
|
6
|
+
* `part` is any element inside the viewer; the viewer is its nearest root.
|
|
7
|
+
*/
|
|
8
|
+
export declare function keyIsForViewer(event: KeyboardEvent, part: Element | null): boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** The one class every viewer's root carries (`AstraeusShell`'s `<main>`); a viewer's own parts are the ones inside it. */
|
|
2
|
+
export const VIEWER_ROOT_CLASS = "astraeus-shell";
|
|
3
|
+
/**
|
|
4
|
+
* Whether a document-level key press is this viewer's to act on (O-055, API-03): it was pressed inside the viewer, or on the bare page (body or document element,
|
|
5
|
+
* where a single viewer has always heard Escape). A key pressed in another viewer or in a host's own control reaches none of this viewer's panels.
|
|
6
|
+
* `part` is any element inside the viewer; the viewer is its nearest root.
|
|
7
|
+
*/
|
|
8
|
+
export function keyIsForViewer(event, part) {
|
|
9
|
+
const target = event.target;
|
|
10
|
+
if (target === null || target === document || target === document.body || target === document.documentElement)
|
|
11
|
+
return true;
|
|
12
|
+
if (!(target instanceof Node))
|
|
13
|
+
return false;
|
|
14
|
+
const viewer = part?.closest(`.${VIEWER_ROOT_CLASS}`) ?? null;
|
|
15
|
+
return viewer !== null && viewer.contains(target);
|
|
16
|
+
}
|
|
@@ -5,7 +5,7 @@ import { createEvents } from "../core/events.js";
|
|
|
5
5
|
import { createProvenance } from "../core/provenance.js";
|
|
6
6
|
import { SampledTrajectory } from "../core/sampledTrajectory.js";
|
|
7
7
|
import { createWindows, rateAt } from "../core/timeWindow.js";
|
|
8
|
-
import {
|
|
8
|
+
import { checkStoryPanel, resolveStoryPanels } from "../shell/storyPanels.js";
|
|
9
9
|
const START_UTC_MS = Date.UTC(2030, 0, 1, 0, 0, 0);
|
|
10
10
|
const MINUTE_MS = 60_000;
|
|
11
11
|
const SAMPLE_COUNT = 97;
|
|
@@ -48,29 +48,25 @@ const events = createEvents([
|
|
|
48
48
|
{ id: "marker-quarter", label: "Marker passes a quarter turn", timeUtcMs: START_UTC_MS + 120 * MINUTE_MS },
|
|
49
49
|
]);
|
|
50
50
|
/** Two made-up story panels (one about the marker, one about nothing in particular) so the story-panel checks run without a real story. */
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
{
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
sources: ["Made up for the story-panel test; not a real source"],
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
}, { events, anchors: new Map(), objectIds: ["earth", "moon", marker.id], window: bounds });
|
|
51
|
+
const madeUpPanel = (sourceType) => ({ sourceType, sources: ["Made up for the story-panel test; not a real source"], accuracy: "None claimed.", notes: "Made up for this fixture." });
|
|
52
|
+
const storyPanels = resolveStoryPanels([
|
|
53
|
+
{
|
|
54
|
+
id: "marker-loop",
|
|
55
|
+
at: { time: START_UTC_MS + 60 * MINUTE_MS },
|
|
56
|
+
title: "The marker's loop",
|
|
57
|
+
body: ["The survey marker goes round a made-up circle.", "Nothing here is a real object."],
|
|
58
|
+
details: ["The loop radius and speed were chosen for this fixture."],
|
|
59
|
+
provenance: madeUpPanel("illustrative"),
|
|
60
|
+
object: "survey-marker",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: "marker-late",
|
|
64
|
+
at: { time: START_UTC_MS + 300 * MINUTE_MS },
|
|
65
|
+
title: "A later note",
|
|
66
|
+
body: ["A second made-up panel, further along the timeline."],
|
|
67
|
+
provenance: madeUpPanel("modelled"),
|
|
68
|
+
},
|
|
69
|
+
].map(checkStoryPanel), { pauseSeconds: 2, autoOpen: true }, { events, anchors: new Map(), objectIds: ["earth", "moon", marker.id], window: bounds });
|
|
74
70
|
const at = (minutes) => START_UTC_MS + minutes * MINUTE_MS;
|
|
75
71
|
const windowProvenance = (accuracy, notes) => createProvenance({
|
|
76
72
|
sourceType: "illustrative",
|