UNPKG

@aurigma/design-atoms-interfaces

Version:

33 lines (32 loc) 1.09 kB
import { IBaseTextItemData } from "./IBaseTextItemData"; /** * A structure defining the default parameters of arched text. * @remarks You can apply these parameters to the `archedText` object through either **clientConfig.json** or {@link https://customerscanvas.com/dev/editors/iframe-api/reference/design-editor-iframe/iconfiguration.html|IConfiguration}. * @example * ```json * { * "defaultItemsConfig": { * "archedText": { * "font": { * "postScriptName": "Roboto-Regular", * "size": 24 * }, * "text": "Arched text", * "color": "cmyk(0%, 0%, 0%, 100%, 100%)", * "bend": 0.7, * "location": { * "x": "50%", * "y": "50%", * "originX": "center", * "originY": "center" * } * } * } * } * ``` * @public */ export interface IArchedTextItemData<TTextAlignment, TStrokeSettings, TShadowSettings> extends IBaseTextItemData<TTextAlignment, TStrokeSettings, TShadowSettings> { bend?: number; warp?: boolean; }