21 lines
495 B
TypeScript
21 lines
495 B
TypeScript
/* eslint-disable @typescript-eslint/naming-convention */
|
|
/**
|
|
* Model of an image with multiple source
|
|
* It must at least have one source.
|
|
*
|
|
* If Url/Base64Image and Svg are set,
|
|
* Url/Base64Image will be shown in the menu while SVG will be drawn
|
|
*/
|
|
export interface IImage {
|
|
/** Name of the image */
|
|
Name: string
|
|
|
|
/** (optional) Url of the image */
|
|
Url?: string
|
|
|
|
/** (optional) base64 data of the image */
|
|
Base64Image?: string
|
|
|
|
/** (optional) SVG string */
|
|
Svg?: string
|
|
}
|