nope/resources/ui/graph/interfaces/IFont.ts

32 lines
776 B
TypeScript
Raw Normal View History

2020-10-25 20:14:51 +00:00
/**
* @author Martin Karkowski
* @email m.karkowski@zema.de
* @create date 2019-02-21 09:10:02
* @modify date 2019-02-21 09:10:02
* @desc [description]
*/
export interface IFontStyle {
color?: string;
size?: number;
face?: string;
vadjust?: number;
mod?: 'bold' | 'italic' | '' | 'bold italic';
}
export type IFont = string | {
color?: string,
size?: number
face?: string,
background?: string,
strokeWidth?: number
strokeColor?: string,
align?: 'center' | 'left' | 'right',
multi?: boolean | 'html' | 'md' | 'markdown',
vadjust?: number,
bold?: IFontStyle | boolean | string,
ital?: IFontStyle | boolean | string,
boldital?: IFontStyle | boolean | string,
mono?: IFontStyle | boolean | string
};