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 concerns (viewport tracking, title, window background).

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 and the renderer-owned font registry for write-back to the Renderer process.