Begehbarer Raum
Opt-in Canvas-Raumszene mit laufenden Agenten, pausierbarer Bewegung, Fehleranzeige und zugaenglicher Agentenliste. Die Umgebung liefert die Datenquelle und behandelt die Agentenauswahl. 1.1.0: presentation=overlay zeigt eine transparente Agentenschicht und kompakte Glassteuerung innerhalb des vorha
Nutzt: ui.button
Beispiele
Keine Raum-Datenquelle hinterlegt.
Agenten im Raum
Eigenschaften
| Prop | Typ | Default | Builder-Label |
|---|---|---|---|
| presentation | string: scene | overlay | "scene" | Darstellung |
| source | string | "" | Raum-Datenquelle |
| label | string | "Begehbarer Raum" | Beschriftung |
| poster | string | "" | Vorschaubild |
| autoplay | boolean | true | Bewegung automatisch starten |
| speed | number | 1 | Bewegungsgeschwindigkeit |
* Pflicht-Prop
Events & Slots
Events:
⚡ select — im Surface per on: {<event>: {action, params}} verdrahtbar.
Stellschrauben (Komponenten-Tokens)
Ebene 3 — aus dem CSS generiert (Registry). Umverdrahtbar per Hüllen-Komposition, ohne Markup-Eingriff; künftige Regler-Quelle des Component Builders.
| Token | Default |
|---|---|
--room-scene-focus-color | var(--color-accent) |
--room-scene-bubble-background | var(--color-surface-overlay) |
--room-scene-bubble-color | var(--color-text-default) |
--room-scene-bubble-border | var(--color-border-default) |
Genutzte Design-Tokens
LLM-Notizen
component.room-scene
Opt-in room canvas with moving agents. The component owns its canvas, loading/error state, retry, pause control and accessible agent list. Consumers supply a source and handle selection; they must not recreate the internal markup or CSS.
Props
source: root-relative JSON URL on the same origin. Empty means no request.label: accessible room name.poster: optional root-relative image URL on the same origin; visible while loading, empty or failed, hidden only once ready.autoplay: start movement automatically, default true. Reduced-motion preference takes precedence.speed: movement factor 0.25 to 2, default 1.presentation:scene(default) or transparentoverlay. Overlay uses its geometry for navigation and a display-sized canvas capped at DPR 2, 4096 pixels per edge and 8 MiPixels. Source sprites are resampled once; this does not create additional source detail.
Integration
Use the optional stage slot of component.room-view. Keep its image fallback until the scene reports ready. The host must call Invisible.destroy(oldRoot) before removing it and Invisible.mount(newRoot) after insertion. Hidden or removed scenes must not retain a running animation loop.
The controller uses the existing room renderer and agent manager. It does not start tasks or infer actual agent work from animation. Agent selection emits room-scene:select with {agentId, name} and the semantic select event. The host chooses the detail/chat/navigation path. Hover exposes the agent name and a pointer cursor. Dispatch room-scene:focus on the component root with {agentId} to face and highlight a present agent for three seconds; unknown IDs do nothing. The host must use an authorized server adapter for detail data.
The server adapter owns room mapping, rights and the scene/agent data. No hard-coded agent-room ID belongs in the definition. Gallery examples omit the source deliberately.
DOM contract
Root: data-room-scene, data-invisible-component="component.room-scene", data-room-scene-source, data-room-scene-label, data-room-scene-autoplay, data-room-scene-speed, data-room-scene-state (empty, loading, ready, error). data-room-scene-texts contains JSON with translated loading/error/control texts; the count message retains {placed} and {total} placeholders.
Children: data-room-scene-canvas, data-room-scene-status, data-room-scene-retry, data-room-scene-toggle, data-room-scene-people, data-room-scene-agents, data-room-scene-agent-template. The agent template contains a list item and a real ui.button marked data-room-scene-agent; clone it and fill text and identifier. Never insert backend text through innerHTML.