mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 17:52:21 +00:00
Stories: GEV scenes as stories on the live globe
A Stories button (top right) opens Explore: a feed of GEV scenes over GEV's own Cesium globe, with a pin per story. Explore opens at country level over the first story and, while idle, flies on from story to story for a minute. A picked story is framed in the middle of the view; a pin plays its story on a second click. The Story page plays the scene through SceneDirector with a timeline, chapters, key moments, sources and background, then Close (or Back) puts the person's camera, clock, layers, style and AUTHORING selection back. Open in GEV hands the scene to the Scenes panel at its current shot. Stories lists the scenes GEV ships with a camera path (while they are in the project), the scenes saved with SAVE TO STORIES in AUTHORING, and the person's other scenes as drafts. The person's own stories live in the project on this device, so they have no Share; a link to a story that is not here opens Explore and says so. Each shipped story's context comes from what GEV knows: what it shows, the place each shot goes, and each layer's data sources as DATA_SOURCES.md lists them; the Nepal story carries the event pack's facts and CC BY-NC sources. Card images are a captured THUMBNAIL or drawn from the keyless Esri World Imagery. AUTHORING has no scene picker: it starts with no scene, NEW SCENE (or CAPTURE SHOT) makes one, and Stories' Open in GEV selects one. Before SAVE TO STORIES it offers topic tags and THUMBNAIL. A scene's stories flag, storyThumb and storyTags are saved with the project and kept through export and import. Only the closed state loads with the page; the screens, styles, story data and controller load on first open. Stories keeps its place in the query (one history entry per screen) and holds the share link's hash writes while open. Keyboard input and voice tools stay with Stories while it is open. Explore's pins move on every drawn frame without asking for frames; the idle tour and tile settling are bounded. All strings are translated in the 13 locales.
This commit is contained in:
1 parent
da81cf743b
commit
5418438339
77 files changed
+14975
-260
No files matched your search
@@ -50,38 +50,52 @@ export function describeShot(shot) {
|
||||
|
||||
/**
|
||||
* While a scene plays, the authoring and file actions here are off and STOP
|
||||
* is on. Otherwise a button is off when it would do nothing: DELETE and
|
||||
* CAPTURE SHOT without a scene, UPDATE SHOT without a selected shot, PLAY and
|
||||
* NEXT when no scene in the project has a shot (both continue into the
|
||||
* following scenes).
|
||||
* is on. Otherwise a button is off when it would do nothing: DELETE, SAVE TO
|
||||
* STORIES, THUMBNAIL and the tag chips without a scene, UPDATE SHOT
|
||||
* without a selected shot, SAVE TO STORIES when the scene has no shot, PLAY
|
||||
* and NEXT without a scene or when no scene in the project has a shot (both
|
||||
* continue into the following scenes). CAPTURE SHOT without a scene starts
|
||||
* one. EDIT DETAILS (which needs a shot) and SHARE SCENE keep their own
|
||||
* checks during playback.
|
||||
*/
|
||||
export function sceneButtonsDisabled(
|
||||
running,
|
||||
hasRun,
|
||||
{ hasScene = true, playableShots = 1, hasSelectedShot = true } = {},
|
||||
{
|
||||
hasScene = true,
|
||||
sceneShots = 1,
|
||||
playableShots = 1,
|
||||
hasSelectedShot = true,
|
||||
} = {},
|
||||
) {
|
||||
const idleOff = {
|
||||
delete: !hasScene,
|
||||
capture: !hasScene,
|
||||
stories: !hasScene || sceneShots === 0,
|
||||
thumb: !hasScene,
|
||||
tags: !hasScene,
|
||||
update: !hasSelectedShot,
|
||||
start: playableShots === 0,
|
||||
next: playableShots === 0,
|
||||
start: !hasScene || playableShots === 0,
|
||||
next: !hasScene || playableShots === 0,
|
||||
};
|
||||
const disabled = {};
|
||||
for (const name of [
|
||||
'start',
|
||||
'next',
|
||||
'select',
|
||||
'new',
|
||||
'delete',
|
||||
'capture',
|
||||
'update',
|
||||
'thumb',
|
||||
'tags',
|
||||
'stories',
|
||||
'export',
|
||||
'import',
|
||||
])
|
||||
disabled[name] = running || !!idleOff[name];
|
||||
disabled.stop = !running;
|
||||
disabled.download = !hasRun;
|
||||
disabled.details = !hasScene || !hasSelectedShot;
|
||||
disabled.share = !hasScene;
|
||||
return disabled;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user