Package-level declarations

Types

Link copied to clipboard
data class DrawConfig(val titleStyle: @Composable (FontFamily?) -> TextStyle = { font -> MaterialTheme.typography.displaySmall.copy( fontWeight = FontWeight.Bold, color = MaterialTheme.colorScheme.onBackground, fontFamily = font ) }, val titlePlaceHolderStyle: @Composable () -> TextStyle = { MaterialTheme.typography.displaySmall.copy( fontWeight = FontWeight.Bold, color = Color.LightGray ) }, val textDrawerStartPadding: Int = 8, val textDrawerInnerStartPadding: Int = 4, val textVerticalPadding: Int = 0, val codeBlockStartPadding: Int = 8, val codeBlockHorizontalInnerPadding: Int = 12, val codeBlockVerticalInnerPadding: Int = 8, val checkBoxStartPadding: Int = 16, val checkBoxEndPadding: Int = 8, val checkBoxItemVerticalPadding: Int = 8, val listItemStartPadding: Int = 16, val listItemEndPadding: Int = 8, val listItemItemVerticalPadding: Int = 8, val selectedColor: @Composable () -> Color = { MaterialTheme.colorScheme.primary }, val selectedBorderColor: @Composable () -> Color = { MaterialTheme.colorScheme.primary })
Link copied to clipboard
data class DrawInfo(val editable: Boolean = true, val focus: Int? = null, val position: Int = 0, val selectMode: Boolean = false, val selection: Selection? = null, val extraData: Map<String, Any> = emptyMap())

The class holds the information of the content to be draw by the SDK.

Link copied to clipboard
data class DrawState(val stories: List<DrawStory> = emptyList(), val focus: Int? = null)

The state of document of the TextEditor of Writeopia. This class has all the stories in their updated state and which one has the current focus.

Link copied to clipboard
data class DrawStory(val storyStep: StoryStep, val position: Int, val isSelected: Boolean = false, val cursor: Selection? = null, val extraInfo: Map<String, Any> = emptyMap())

Class meant to be draw in the screen. It contains both the information of a story step and meta information and the state of the TextEditor like if the message is selected

Link copied to clipboard
Link copied to clipboard
data class TextInput(val text: String, val start: Int, val end: Int)