UNPKG

@zeplin/sdk

Version:
106 lines (105 loc) 2.45 kB
/** * Zeplin API * Access your resources in Zeplin * * Contact: support@zeplin.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { ColorData } from './color-data'; import { ResourceSource } from './resource-source'; export declare const transformTextStyleToJSON: (value: TextStyle) => any; export declare const transformJSONToTextStyle: (value: any) => TextStyle; /** * * @export * @interface TextStyle */ export interface TextStyle { /** * Identifier of the text style * @type {string} * @memberof TextStyle */ id: string; /** * Name of the text style * @type {string} * @memberof TextStyle */ name: string; /** * The unix timestamp when the text style was created * @type {number} * @memberof TextStyle */ created: number; /** * PostScript name of the text style, e.g. Roboto-Regular * @type {string} * @memberof TextStyle */ postscriptName: string; /** * Font family of the text style, e.g. Roboto, Arial * @type {string} * @memberof TextStyle */ fontFamily: string; /** * Font size of the text style * @type {number} * @memberof TextStyle */ fontSize: number; /** * Font weight of the text style, e.g. 500, 700 * @type {number} * @memberof TextStyle */ fontWeight: number; /** * Font style of the text style, e.g. italic, oblique * @type {string} * @memberof TextStyle */ fontStyle: string; /** * Font stretch form of the text style, e.g. 0.75, 1.00 * @type {number} * @memberof TextStyle */ fontStretch: number; /** * Minimum height of a line for the text style * @type {number} * @memberof TextStyle */ lineHeight?: number; /** * Spacing between letters * @type {number} * @memberof TextStyle */ letterSpacing?: number; /** * Horizontal alignment of the text style, left, right, center, or justify * @type {string} * @memberof TextStyle */ textAlign?: string; /** * * @type {ColorData} * @memberof TextStyle */ color?: ColorData; /** * * @type {ResourceSource} * @memberof TextStyle */ source?: ResourceSource; }