MingaEditor.Frontend.Emit (Minga v0.1.0)

Copy Markdown View Source

Stage 7: Emit.

Encodes the composed frame as semantic render-model protocol commands, then handles shared title and window-background side channels.

Summary

Types

Emit context containing only the data emit needs.

Functions

Converts the frame to semantic protocol command binaries and sends them to the frontend port.

Types

ctx()

Emit context containing only the data emit needs.

Functions

emit(frame, ctx, chrome \\ nil, caches \\ %Caches{})

Converts the frame to semantic protocol command binaries and sends them to the frontend port.

Also sends title and window background color when they change (side-channel writes). Returns updated caches, the renderer-owned font registry, and the message store for write-back to the Editor process.