@aurigma/design-atoms-interfaces
Version:
26 lines (25 loc) • 992 B
TypeScript
/**
* A structure defining the image permissions.
* @example The following example shows how you can disallow for editing and selecting other images after adding an image to the canvas.
* ```json
* {
* "defaultItemsConfig": {
* "image": {
* "imagePermissions": {
* "allowChangeImage": false,
* "allowEditImage": false
* }
* }
* }
* }
* ```
* @public
*/
export interface IImagePermissionsData {
/** Allows your users to change images. This property enables the **Select image** command in menus. Also, if it is `false`, your users cannot change images by double-clicking. The default value is `true`. */
allowChangeImage?: boolean;
/** Allows your users to open the Image Editor. This property enables the **Edit** command. The default value is `true`. */
allowEditImage?: boolean;
/** Allows your users to keep theoverlay color. The default value is `true`. */
allowKeepOverlayColor?: boolean;
}