Types

Link copied to clipboard
data class DrawingLoaded(val state: State) : Event
Link copied to clipboard
data class ElementAdded(val element: Element) : Event
Link copied to clipboard
data class ElementDeleted(val elementId: String) : Event
Link copied to clipboard
data class ElementUpdated(val element: Element) : Event
Link copied to clipboard
data class Error(val message: String, val throwable: Throwable? = null) : Event
Link copied to clipboard
data class HistoryChanged(val canUndo: Boolean, val canRedo: Boolean) : Event
Link copied to clipboard
data class JsonExported(val json: String) : Event
Link copied to clipboard
data class PngExported(val bytes: ByteArray) : Event
Link copied to clipboard
data class SvgExported(val svg: String) : Event
Link copied to clipboard
data class TextEditRequested(val id: String) : Event

The user requested in-place editing of a text element — a double-tap on an Element.Text in Mode.SELECT, or a second tap on an already-selected one. The element is selected as a side effect; the host opens its inline editor for id. See docs/rfcs/0001-text-elements.md.