Stories: remove unreachable prototype paths

GEV stories never explore, carry no world time and are never live:
drop the resume play state, Jump to live, the exploring branches and
world-time arguments, the overridden play button rules, and the hidden
rail and fill. The legend reads a plain field instead of a mock one.
This commit is contained in:
Sameh Khamis committed 2026-11-16 13:35:05 -08:00
1 parent f4b535d89e
commit 7a0b649bf5
22 files changed
+26 -232

No files matched your search

+1 -6
View File
@@ -710,10 +710,8 @@ export function createStoriesController({
function onTick(state) {
store.playback = {
wallMs: state.wallMs,
worldMs: state.worldMs,
durationMs: state.durationMs,
playing: state.playing,
exploring: state.exploring,
chapterIndex: state.chapterIndex,
};
if (state.playing) store.bigPlay = false;
@@ -919,7 +917,7 @@ export function createStoriesController({
id: story.id,
title: story.title,
atMs,
when: anchorStamp(story, atMs, null),
when: anchorStamp(story, atMs),
};
}
@@ -1051,10 +1049,8 @@ export function createStoriesController({
: 0;
store.playback = {
wallMs: atMs,
worldMs: null,
durationMs: story.durationMs,
playing: false,
exploring: false,
chapterIndex: 0,
};
const start = () => {
@@ -1143,7 +1139,6 @@ export function createStoriesController({
play: () => player?.play(),
pause: () => player?.pause(),
seek: (ms) => player?.seek(ms),
resume: () => player?.resume(),
focusEvent: (event) => player?.focus(event),
get kind() {
return player ? 'gev' : null;