UNPKG

@aurigma/design-atoms-interfaces

Version:

29 lines (28 loc) 976 B
import { IItemToolbarPermissionsData } from "./IItemToolbarPermissionsData"; /** * A structure defining common permissions for design elements. * @example * ```json * { * "defaultItemsConfig": { * "image": { * "itemPermissions": { * "allowZOrderChange": false, * "allowOpacityChange": false * } * } * } * } * ``` * @public */ export interface IItemPermissionsData { /** Enables buttons for changing the z-order of design elements. */ allowZOrderChange?: boolean; /** Enables buttons for changing the opacity of design elements. */ allowOpacityChange?: boolean; /** Allows for removing and keeping design elements when changing layouts. */ allowRemoveOnLayoutChange?: boolean; /** Configures the **Floating item toolbar** for design elements. You can enable the **Select Image**, **Edit**, and **Delete** buttons. */ itemToolbarPermissions?: IItemToolbarPermissionsData; }