Skip to main content

Module wire

Module wire 

Source
Expand description

Leptos-free wire types spoken between a page and its render worker, compiled under either the leptos or the offscreen feature. Pixel quantities are physical surface pixels (CSS pixels times the device pixel ratio), origin at the canvas top-left. Application-defined messages ride the Custom variants as JSON values.

Structs§

SelectedEntity
The selected entity as reported to the page: display data only. The worker keeps the live selection and hands it to the custom message handler; nothing here resolves back into an entity.

Enums§

FromWorker
ToWorker
TouchPhase

Constants§

CANVAS_KEY
Envelope field carrying the transferred OffscreenCanvas (on Init only).
MESSAGE_KEY
Envelope field carrying the serialized message in every postMessage.