This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-js/lib/src/widget/text.d.ts

33 lines
926 B
TypeScript
Raw Normal View History

2020-01-03 14:44:51 +08:00
import { IView, View } from "../ui/view";
import { Color } from "../util/color";
import { Gravity } from "../util/gravity";
export interface IText extends IView {
text?: string;
textColor?: Color;
textSize?: number;
maxLines?: number;
textAlignment?: Gravity;
2020-01-14 19:50:32 +08:00
fontStyle?: "normal" | "bold" | "italic" | "bold_italic";
2020-03-13 14:22:46 +08:00
font?: string;
maxWidth?: number;
maxHeight?: number;
2020-03-24 11:06:30 +08:00
lineSpacing?: number;
2020-04-13 17:41:17 +08:00
strikethrough?: boolean;
underline?: boolean;
2020-01-03 14:44:51 +08:00
}
export declare class Text extends View implements IText {
text?: string;
textColor?: Color;
textSize?: number;
maxLines?: number;
textAlignment?: Gravity;
2020-01-14 19:50:32 +08:00
fontStyle?: "normal" | "bold" | "italic" | "bold_italic";
2020-03-13 14:22:46 +08:00
font?: string;
maxWidth?: number;
maxHeight?: number;
2020-03-24 11:06:30 +08:00
lineSpacing?: number;
2020-04-13 17:41:17 +08:00
strikethrough?: boolean;
underline?: boolean;
2020-01-03 14:44:51 +08:00
}
export declare function text(config: IText): Text;