EditorConfiguration

data class EditorConfiguration(val onCreate: suspend EditorScope.() -> Unit?, val onLoaded: suspend EditorScope.() -> Unit?, val onExport: suspend EditorScope.() -> Unit?, val onClose: suspend EditorScope.() -> Unit?, val onEvent: EditorScope.(EditorEvent) -> Unit?, val onUpload: suspend EditorScope.(AssetDefinition, UploadAssetSourceType) -> AssetDefinition?, val onError: suspend EditorScope.(Throwable) -> Unit?, val colorPalette: List<Color>?, val assetLibrary: AssetLibrary?, val dock: EditorComponent<*>?, val navigationBar: EditorComponent<*>?, val inspectorBar: EditorComponent<*>?, val canvasMenu: EditorComponent<*>?, val bottomPanel: EditorComponent<*>?, val overlay: EditorComponent<*>?)

Configuration class of the editor.

Constructors

Link copied to clipboard
constructor(onCreate: suspend EditorScope.() -> Unit?, onLoaded: suspend EditorScope.() -> Unit?, onExport: suspend EditorScope.() -> Unit?, onClose: suspend EditorScope.() -> Unit?, onEvent: EditorScope.(EditorEvent) -> Unit?, onUpload: suspend EditorScope.(AssetDefinition, UploadAssetSourceType) -> AssetDefinition?, onError: suspend EditorScope.(Throwable) -> Unit?, colorPalette: List<Color>?, assetLibrary: AssetLibrary?, dock: EditorComponent<*>?, navigationBar: EditorComponent<*>?, inspectorBar: EditorComponent<*>?, canvasMenu: EditorComponent<*>?, bottomPanel: EditorComponent<*>?, overlay: EditorComponent<*>?)

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val onClose: suspend EditorScope.() -> Unit?
Link copied to clipboard
val onCreate: suspend EditorScope.() -> Unit?
Link copied to clipboard
val onError: suspend EditorScope.(Throwable) -> Unit?
Link copied to clipboard
Link copied to clipboard
val onExport: suspend EditorScope.() -> Unit?
Link copied to clipboard
val onLoaded: suspend EditorScope.() -> Unit?
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

A composable overload for EditorConfiguration.then that uses EditorConfigurationBuilder to create and remember an EditorConfiguration instance. Check the documentation of overloaded EditorConfiguration.then function below for more details. Note that builder lambda runs only once, therefore you should not have builder property reassignments based on conditions:

A composable function that creates and remembers an EditorConfiguration instance on top of an existing EditorConfiguration. Existing configuration effectively becomes the parent configuration for the newly created EditorConfiguration. It is useful to use this function when you want to extend the editor configuration by preexisting EditorConfigurationBuilders, such as plugins provided by IMG.LY.