UNPKG

@aurigma/design-atoms-interfaces

Version:

38 lines (37 loc) 1.25 kB
import { IItemData } from "./IItemData"; import { IShapePermissionsData } from "./IShapePermissionsData"; /** * A structure defining common shape parameters and parameters of SVG images imported in the Shape mode. * @example * ```json * { * "defaultItemsConfig": { * "shape": { * "borderWidth": 2, * "fillColor": "cmyk(0%, 0%, 0%, 25%, 100%)", * "shapePermissions": { * "allowChangeBorderWidth": false * }, * "location": { * "x": "100%", "y": "100%", * "originX": "right", * "originY": "bottom" * } * } * } * } * ``` * @public */ export interface IShapeItemData extends IItemData { /** The border width, in points. The default value is `1`. */ borderWidth?: number; /** The border color. The default value is `"rgba(0,0,0,1)"`. */ borderColor?: string; /** The fill color for shapes and placeholders. The default value is `"rgba(112,112,112,1)"` for shapes and is `"rgba(0,0,0,0)"` for image placeholders. */ fillColor?: string; overprintStroke?: boolean; overprintFill?: boolean; /** Defines permissions for shapes. */ shapePermissions?: IShapePermissionsData; }