UNPKG

1.86 kBTypeScriptView Raw
1/**
2 * LINE Messaging API
3 * This document describes LINE Messaging API.
4 *
5 * The version of the OpenAPI document: 0.0.1
6 *
7 *
8 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 * https://openapi-generator.tech
10 * Do not edit the class manually.
11 */
12import { Action } from "./action.js";
13import { FlexSpan } from "./flexSpan.js";
14import { FlexComponentBase } from "./models.js";
15export 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};
84export 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//# sourceMappingURL=flexText.d.ts.map
\No newline at end of file