Expand description
IM.7 — WASM inline media: producer → per-buffer blocks → virtual rows.
The media twin of wasm_decorations, and the
same shape for the same reason: a media plugin’s producer runs OFF the
render path (paramount goal #1), and the renderer reads only a native cache.
What is different is what the cache feeds. Decorations end up as gutter marks; media blocks end up as virtual rows, which means they change the document’s display-row count and therefore its scroll arithmetic. The reservation is built here, host-side, from a size the host resolves — the guest never says how tall anything is.
Structs§
- Media
Virtual RowProvider - IM.7 — the virtual-row provider that turns cached media blocks into rows.
- Wasm
Media Cache - Per-buffer cache of a media plugin’s blocks, resolved and sized.
- Wasm
Media State - The
Editor’s cohesive WASM-media wiring. Defaults to inert, soEditor::default()test fixtures get no media seam at all.
Constants§
- PROVISIONAL_
ROWS - How tall a block is, in display rows, before its file has been measured.
- UNREADABLE_
ROWS - Rows reserved for a block whose file could not be measured.
Functions§
- media_
virtual_ row_ provider_ id - The
lattice_cells::ProviderIdofbuffer_id’s media provider.
Type Aliases§
- Media
Geometry (line_height_px, pane_width_px)— what sizing a block needs, and the only pixel geometry the host holds.Nonemeans no peer that draws images has published its cell metrics.