@aurigma/design-atoms-interfaces
Version:
41 lines (40 loc) • 1.84 kB
TypeScript
/**
* A structure defining permissions for text elements.
* @example
* ```json
* {
* "defaultItemsConfig": {
* "text": {
* "textPermissions": {
* "allowChangeText": false,
* "allowChangeFontColor": false,
* "allowChangeShadow": false,
* "allowChangeStroke": false
* }
* }
* }
* }
* ```
* @public
*/
export interface ITextPermissionsData {
/** Allows for changing the content and enables the **Edit** button in the context menu. The default value is `true`. */
allowChangeText?: boolean;
/** Enables the **Font name** and **Font style** lists in the Top Toolbar. The default value is `true`. */
allowChangeFont?: boolean;
/** Enables the **Font size** box in the Top Toolbar for plain text. The default value is `true`. */
allowChangeFontSize?: boolean;
/** Enables the **Color picker** in the Top Toolbar for plain text. By default, the **Color picker** is enabled. */
allowChangeFontColor?: boolean;
/** Enables the horizontal alignment buttons in the Top Toolbar for plain text. These buttons are enabled by default. */
allowChangeTextAlignment?: boolean;
/** Enables the **Faux bold**, **Faux italic**, and **Underlined** buttons in the Top Toolbar for plain text. These buttons are enabled by default. */
allowChangeTextBIU?: boolean;
/** Enables the **Shadow** button in the Top Toolbar. By default, this button is enabled. */
allowChangeShadow?: boolean;
/** Enables the **Stroke** button in the Top Toolbar. By default, this button is enabled. */
allowChangeStroke?: boolean;
allowTextFormatting?: boolean;
/** Enables the **Stroke color** button in the Top Toolbar for plain text. By default, this button is enabled. */
allowChangeStrokeColor?: boolean;
}