style

style.setCaptions

setCaptions(options: CaptionOptions): Promise<void>

Configure the caption displayed beneath or above nodes.

The config is stored in StyleApi._captionConfig (in-memory only — not recorded in history). Emits "style:changed". The TextCloud rendering integration reads this via getCaptionConfig() on each render frame.

Not undoable (direct field write).

optionsCaptionOptionsCaption property, hover-only flag, and optional category scope.

Returns: Promise<void>

Example

await api.style.setCaptions({ property: "name" });