- slices/tokens.ts: token upsert, token_gone, hello reset; status names only. - slices/characters.ts + slices/encountered.ts: own characters, encountered list with grey entries; the GM's per-player copies are ignored. - render/tokenBoard.ts (pure): event -> entered/updated/left patches, so one changed token costs one container; seeds from the reducer on mount. - render/modules/tokens.ts: pooled world-coordinate nodes on the tokens layer, one shared unit-circle context per kind, BitmapText from one pre-installed BitmapFont assigned only on a name change, stuck/squeezed badges, canvas dataset instrumentation for the "only changed entities" criterion. - panels/lists.ts + render/modules/lists.ts: #lists under #panels, textContent only, greyed encountered rows; mounted by a render module so no shared bootstrap file changed.
17 lines
657 B
TypeScript
17 lines
657 B
TypeScript
// Mounts the lists panel under the shell's `#panels` host when the stage comes up (T8, #71). A
|
|
// render module rather than a `main.ts` edit: the stage's lifetime is the live session's, so a
|
|
// panel cannot outlive a sign-in screen, and parallel tickets add their own panels without touching
|
|
// a shared registry.
|
|
|
|
import type { RenderModule } from '../stage.ts'
|
|
import { mountListsPanel } from '../../panels/lists.ts'
|
|
|
|
export const renderModule: RenderModule = {
|
|
name: 'lists',
|
|
mount({ store }): (() => void) | void {
|
|
const host = document.querySelector<HTMLElement>('#panels')
|
|
if (!host) return
|
|
return mountListsPanel(host, store)
|
|
},
|
|
}
|