IImageUserConfig
interface IImageUserConfig<Tag extends TagGroupDefinition | null = TagGroupDefinition | null>
extends CommonDisplayableConfig {
/**
* The name of the image, only for debugging purposes
*/
name: string;
/**
* If set to false, the image won't be initialized unless you call `init` method
* @default true
*/
autoInit: boolean;
/**
* Image Src, see [Image](https://react.narraleaf.com/documentation/core/elements/image) for more information
*/
src: ImageSrcType<Tag>;
/**
* Auto resize image's width to fit the screen
* @default false
*/
autoFit: boolean;
/**
* layer of the image
*/
layer?: Layer;
}
For CommonDisplayableConfig, see CommonDisplayableConfig