1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | import { Action } from "./action.js";
|
13 | import { FlexSpan } from "./flexSpan.js";
|
14 | import { FlexComponentBase } from "./models.js";
|
15 | export type FlexText = FlexComponentBase & {
|
16 | type: "text";
|
17 | |
18 |
|
19 | flex?: number;
|
20 | |
21 |
|
22 | text?: string;
|
23 | |
24 |
|
25 | size?: string;
|
26 | |
27 |
|
28 | align?: FlexText.AlignEnum;
|
29 | |
30 |
|
31 | gravity?: FlexText.GravityEnum;
|
32 | |
33 |
|
34 | color?: string;
|
35 | |
36 |
|
37 | weight?: FlexText.WeightEnum;
|
38 | |
39 |
|
40 | style?: FlexText.StyleEnum;
|
41 | |
42 |
|
43 | decoration?: FlexText.DecorationEnum;
|
44 | |
45 |
|
46 | wrap?: boolean;
|
47 | |
48 |
|
49 | lineSpacing?: string;
|
50 | |
51 |
|
52 | margin?: string;
|
53 | |
54 |
|
55 | position?: FlexText.PositionEnum;
|
56 | |
57 |
|
58 | offsetTop?: string;
|
59 | |
60 |
|
61 | offsetBottom?: string;
|
62 | |
63 |
|
64 | offsetStart?: string;
|
65 | |
66 |
|
67 | offsetEnd?: string;
|
68 | |
69 |
|
70 | action?: Action;
|
71 | |
72 |
|
73 | maxLines?: number;
|
74 | |
75 |
|
76 | contents?: Array<FlexSpan>;
|
77 | |
78 |
|
79 | adjustMode?: FlexText.AdjustModeEnum;
|
80 | |
81 |
|
82 | scaling?: boolean;
|
83 | };
|
84 | export declare namespace FlexText {
|
85 | type AlignEnum = "start" | "end" | "center";
|
86 | type GravityEnum = "top" | "bottom" | "center";
|
87 | type WeightEnum = "regular" | "bold";
|
88 | type StyleEnum = "normal" | "italic";
|
89 | type DecorationEnum = "none" | "underline" | "line-through";
|
90 | type PositionEnum = "relative" | "absolute";
|
91 | type AdjustModeEnum = "shrink-to-fit";
|
92 | }
|
93 |
|
\ | No newline at end of file |