User Tools

Site Tools


en:outskirts:mages-peaks:detach-windows

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:outskirts:mages-peaks:detach-windows [2024/04/09 22:47] – [Ensuring consistency between definitions] Philippe Men:outskirts:mages-peaks:detach-windows [2024/10/28 08:00] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Detachable Windows and Intercom ======
 +
 +
 ===== Goals ===== ===== Goals =====
 As demonstrated in the laelith-adventure project, for the Editor, the goal is to enable a (Svelte) component sitting in a page to be //detached// into a popup window, that can be moved around independently, and notably make better use of multi-screen setups.\\  As demonstrated in the laelith-adventure project, for the Editor, the goal is to enable a (Svelte) component sitting in a page to be //detached// into a popup window, that can be moved around independently, and notably make better use of multi-screen setups.\\ 
Line 95: Line 98:
 When the view is mounted, it listens to //Intercom// messages (with ''intercom.on(Intercom.RX_MESSAGE'') and must handle the **wake-up** signal -- this signal notifies the embedded "ghosted" view that the detached window has closed. When the view is mounted, it listens to //Intercom// messages (with ''intercom.on(Intercom.RX_MESSAGE'') and must handle the **wake-up** signal -- this signal notifies the embedded "ghosted" view that the detached window has closed.
  
 +The "container" that mounts the embedded (attached) Svelte component should not destroy it when detached -- only with this implementation, as the code listens for the wake-up signal. Other setups are absolutely possible to manage the re-attachment of a detached component.
 ===== Using the Intercoms to communicate ===== ===== Using the Intercoms to communicate =====
 === Readiness signals === === Readiness signals ===
en/outskirts/mages-peaks/detach-windows.1712702874.txt.gz · Last modified: 2024/10/28 08:00 (external edit)