SyncTextMeasuredHeight

data class SyncTextMeasuredHeight(val id: String, val height: Float) : Intent

Renderer-driven height reconciliation for a single text element.

The canvas measures the text's actual rendered height each frame; when that differs from Element.Text.measuredHeight, it fires this intent so the model converges to what the user actually sees. Behavior notes:

  • Does not snapshot history — this is fixed-point convergence driven by the renderer, not a user gesture, so it must not consume undo slots or split a typing session across multiple reverts.

  • Does not bump modifiedAt — measuredHeight is renderer-cached state, not a user edit; bumping LWW would corrupt collab merge.

  • Is idempotent — re-dispatching with the same value is a no-op (the reducer short-circuits when the existing value is within 0.5px).

Embedders building custom renderers should mirror this contract. The intent is intentionally typed so it cannot be confused with user-edit intents that DO snapshot.

Constructors

Link copied to clipboard
constructor(id: String, height: Float)

Properties

Link copied to clipboard
Link copied to clipboard
val id: String