Skip to main content

Module script_host

Module script_host 

Source
Expand description

The per-host half of the script wiring, installed once for each active ScriptHost.

A host’s own plugin (lumen_script::ScriptPlugin) installs the systems that drive it every tick. What it leaves to the scene is what needs the scene’s tree: on_ready once the document is queryable, the component use sites the build left for the script, delivering DOM events into the host, and, in an app with more than one language, the late mirror sync that keeps one host’s signals current with another’s writes.

Every system here joins a ScriptSet, so the host-neutral edges the assembly installs cover it without naming its concrete type. The same call serves a desktop window, a page, and a server render.

Structs§

PublishNodeDetails
The systems that publish per-node detail (text, attributes, inline style, the cascade inputs) for a script’s reads. A host’s lifecycle dispatches run after them, so on_ready reads the tree it mounted into. An assembly with no such publisher leaves the set empty and the edge inert.

Functions§

install
Install the per-host half of the script wiring for host H.