Package-level declarations

Types

Link copied to clipboard

In-memory registry mapping a String key (as stored on io.ak1.drawbox.domain.model.Element.Text.fontFamilyKey) to a Compose FontFamily. The registry is process-wide and intentionally non-persistent — hosts re-register their custom families on app launch, which keeps the SDK free of font-asset bundling and version skew.

Functions

Link copied to clipboard
fun InlineTextEditor(element: Element.Text, viewport: Viewport, draft: String, onDraftChange: (String) -> Unit)

Built-in inline text editor for Element.Text. Renders as the element it edits — same font family, font size, alignment, color, wrap width, and position — so the caret is the only visible "you are editing" affordance. The element underneath is expected to be hidden by the host via io.ak1.drawbox.DrawBox's hiddenElementIds parameter to avoid ghosting.