@await-widget/runtime 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -2
- package/types/await.d.ts +221 -200
- package/types/bridge.d.ts +121 -121
- package/types/index.d.ts +2 -2
- package/types/jsx.d.ts +2 -2
- package/types/meta.d.ts +330 -306
- package/types/model.d.ts +274 -0
- package/types/prop.d.ts +184 -166
- package/types/global.d.ts +0 -282
package/types/model.d.ts
ADDED
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
type AudioOption = 'mix' | 'duckOthers' | 'solo';
|
|
2
|
+
|
|
3
|
+
type ColorScheme = 'light' | 'dark';
|
|
4
|
+
|
|
5
|
+
type RenderingMode = 'fullColor' | 'accented' | 'vibrant';
|
|
6
|
+
|
|
7
|
+
type Update = Date | 'end' | 'rapid' | 'never';
|
|
8
|
+
|
|
9
|
+
type WidgetFamily =
|
|
10
|
+
| 'small'
|
|
11
|
+
| 'medium'
|
|
12
|
+
| 'large'
|
|
13
|
+
| 'extraLarge'
|
|
14
|
+
| 'extraLargePortrait'
|
|
15
|
+
| 'accessoryInline'
|
|
16
|
+
| 'accessoryCircular'
|
|
17
|
+
| 'accessoryRectangular'
|
|
18
|
+
| 'unknown';
|
|
19
|
+
|
|
20
|
+
type SingleNativeView =
|
|
21
|
+
| string
|
|
22
|
+
| number
|
|
23
|
+
| undefined
|
|
24
|
+
| {
|
|
25
|
+
kind: string;
|
|
26
|
+
flat?: unknown[];
|
|
27
|
+
children?: NativeView;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
type NativeView = SingleNativeView | NativeView[];
|
|
31
|
+
|
|
32
|
+
type AudioConfig = {
|
|
33
|
+
soundFont?: string;
|
|
34
|
+
volume?: number;
|
|
35
|
+
duration?: number;
|
|
36
|
+
delay?: number;
|
|
37
|
+
velocity?: number;
|
|
38
|
+
preset?: number;
|
|
39
|
+
bank?: number;
|
|
40
|
+
loop?: boolean;
|
|
41
|
+
audioOption?: AudioOption;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
type SoundFontManualMapping = {
|
|
45
|
+
path: string;
|
|
46
|
+
key: number;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
type SoundFontBuildConfig = {
|
|
50
|
+
savePath: string;
|
|
51
|
+
dataSizeLimitMB?: number;
|
|
52
|
+
mediaFiles?: string[];
|
|
53
|
+
mappings?: SoundFontManualMapping[];
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
type SoundFontCompressConfig = {
|
|
57
|
+
fromPath: string;
|
|
58
|
+
savePath: string;
|
|
59
|
+
dataSizeLimitMB?: number;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
type SoundFontBuildResult = {
|
|
63
|
+
ok: true;
|
|
64
|
+
output: string;
|
|
65
|
+
resolvedOutput: string;
|
|
66
|
+
sizeBytes: number;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
type AwaitWeatherConfig = {
|
|
70
|
+
latitude?: number;
|
|
71
|
+
longitude?: number;
|
|
72
|
+
hourlyLimit?: number;
|
|
73
|
+
dailyLimit?: number;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
type AwaitWeatherCurrent = {
|
|
77
|
+
date: string;
|
|
78
|
+
condition: string;
|
|
79
|
+
symbolName: string;
|
|
80
|
+
temperatureCelsius: number;
|
|
81
|
+
apparentTemperatureCelsius: number;
|
|
82
|
+
humidity: number;
|
|
83
|
+
uvIndex: number;
|
|
84
|
+
windSpeedMetersPerSecond: number;
|
|
85
|
+
windDirectionDegrees: number;
|
|
86
|
+
pressureHectopascals: number;
|
|
87
|
+
visibilityKilometers: number;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
type AwaitWeatherHourly = {
|
|
91
|
+
date: string;
|
|
92
|
+
condition: string;
|
|
93
|
+
symbolName: string;
|
|
94
|
+
temperatureCelsius: number;
|
|
95
|
+
humidity: number;
|
|
96
|
+
uvIndex: number;
|
|
97
|
+
windSpeedMetersPerSecond: number;
|
|
98
|
+
precipitationChance: number;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
type AwaitWeatherDaily = {
|
|
102
|
+
date: string;
|
|
103
|
+
condition: string;
|
|
104
|
+
symbolName: string;
|
|
105
|
+
highTemperatureCelsius: number;
|
|
106
|
+
lowTemperatureCelsius: number;
|
|
107
|
+
precipitationChance: number;
|
|
108
|
+
uvIndex: number;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
type AwaitWeatherResult = {
|
|
112
|
+
location: {
|
|
113
|
+
latitude: number;
|
|
114
|
+
longitude: number;
|
|
115
|
+
};
|
|
116
|
+
current: AwaitWeatherCurrent;
|
|
117
|
+
hourly: AwaitWeatherHourly[];
|
|
118
|
+
daily: AwaitWeatherDaily[];
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
type AwaitHealthInfo = {
|
|
122
|
+
stepCount?: number;
|
|
123
|
+
distanceWalkingRunning?: number;
|
|
124
|
+
flightsClimbed?: number;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
type AwaitLocationConfig = {
|
|
128
|
+
desiredAccuracyMeters?: number;
|
|
129
|
+
timeoutSeconds?: number;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
type AwaitLocationInfo = {
|
|
133
|
+
latitude: number;
|
|
134
|
+
longitude: number;
|
|
135
|
+
date: Date;
|
|
136
|
+
altitudeMeters?: number;
|
|
137
|
+
speedMetersPerSecond?: number;
|
|
138
|
+
courseDegrees?: number;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
type AwaitNowPlayingConfig = {
|
|
142
|
+
artworkSize?: number;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
type AwaitNowPlayingInfo = {
|
|
146
|
+
state?:
|
|
147
|
+
| 'playing'
|
|
148
|
+
| 'paused'
|
|
149
|
+
| 'stopped'
|
|
150
|
+
| 'interrupted'
|
|
151
|
+
| 'seekingForward'
|
|
152
|
+
| 'seekingBackward';
|
|
153
|
+
sourceConfig?: AwaitMediaPlayConfig;
|
|
154
|
+
id?: string;
|
|
155
|
+
title?: string;
|
|
156
|
+
artistName?: string;
|
|
157
|
+
albumTitle?: string;
|
|
158
|
+
artworkURL?: string;
|
|
159
|
+
maximumWidth?: number;
|
|
160
|
+
maximumHeight?: number;
|
|
161
|
+
backgroundColor?: Color;
|
|
162
|
+
primaryTextColor?: Color;
|
|
163
|
+
secondaryTextColor?: Color;
|
|
164
|
+
tertiaryTextColor?: Color;
|
|
165
|
+
quaternaryTextColor?: Color;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
type AwaitMusicPlayerCommand = 'start' | 'toggle' | 'next' | 'previous';
|
|
169
|
+
|
|
170
|
+
type AwaitMediaPlayConfig =
|
|
171
|
+
| {
|
|
172
|
+
source: 'song';
|
|
173
|
+
id?: string;
|
|
174
|
+
query?: string;
|
|
175
|
+
limit?: number;
|
|
176
|
+
shuffle?: boolean;
|
|
177
|
+
loop?: boolean;
|
|
178
|
+
offset?: number;
|
|
179
|
+
}
|
|
180
|
+
| {
|
|
181
|
+
source: 'album';
|
|
182
|
+
id?: string;
|
|
183
|
+
query?: string;
|
|
184
|
+
shuffle?: boolean;
|
|
185
|
+
loop?: boolean;
|
|
186
|
+
}
|
|
187
|
+
| {
|
|
188
|
+
source: 'station';
|
|
189
|
+
query?: string;
|
|
190
|
+
type?: 'discovery' | 'user';
|
|
191
|
+
id?: string;
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
type AwaitCalendarConfig = {
|
|
195
|
+
start?: Date;
|
|
196
|
+
end?: Date;
|
|
197
|
+
limit?: number;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
type AwaitCalendarItem = {
|
|
201
|
+
calendarTitle: string;
|
|
202
|
+
title: string;
|
|
203
|
+
startDate: Date;
|
|
204
|
+
endDate: Date;
|
|
205
|
+
isAllDay: boolean;
|
|
206
|
+
location?: string;
|
|
207
|
+
notes?: string;
|
|
208
|
+
url?: string;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
type AwaitReminderConfig = {
|
|
212
|
+
type?: 'all' | 'incomplete' | 'completed';
|
|
213
|
+
limit?: number;
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
type AwaitReminderItem = {
|
|
217
|
+
calendarTitle: string;
|
|
218
|
+
title: string;
|
|
219
|
+
notes?: string;
|
|
220
|
+
isCompleted: boolean;
|
|
221
|
+
priority: number;
|
|
222
|
+
startDate?: Date;
|
|
223
|
+
dueDate?: Date;
|
|
224
|
+
completionDate?: Date;
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
type AwaitSystemInfo = {
|
|
228
|
+
battery: {
|
|
229
|
+
state: 'charging' | 'full' | 'unplugged' | 'unknown';
|
|
230
|
+
percent: number;
|
|
231
|
+
lowPowerMode: boolean;
|
|
232
|
+
};
|
|
233
|
+
memory?: {
|
|
234
|
+
used: number;
|
|
235
|
+
free: number;
|
|
236
|
+
total: number;
|
|
237
|
+
percent: number;
|
|
238
|
+
};
|
|
239
|
+
cpu: {
|
|
240
|
+
percent?: number;
|
|
241
|
+
};
|
|
242
|
+
storage?: {
|
|
243
|
+
total: number;
|
|
244
|
+
free: number;
|
|
245
|
+
used: number;
|
|
246
|
+
percent: number;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
type AwaitAlarmScheduleConfig = {
|
|
251
|
+
title?: string;
|
|
252
|
+
duration?: number;
|
|
253
|
+
date?: Date;
|
|
254
|
+
tint?: Color;
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
type WidgetEntry<T extends Record<string, unknown> = Record<string, unknown>> =
|
|
258
|
+
TimelineContext &
|
|
259
|
+
T & {
|
|
260
|
+
date: Date;
|
|
261
|
+
colorScheme: ColorScheme;
|
|
262
|
+
renderingMode: RenderingMode;
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
type TimelineContext = {
|
|
266
|
+
size: Size;
|
|
267
|
+
family: WidgetFamily;
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
type Timeline<T extends Record<string, unknown> = Record<string, unknown>> = {
|
|
271
|
+
entries: Array<{date: Date} & T>;
|
|
272
|
+
update?: Update;
|
|
273
|
+
skipOnPlayingNote?: boolean;
|
|
274
|
+
};
|
package/types/prop.d.ts
CHANGED
|
@@ -1,231 +1,249 @@
|
|
|
1
1
|
type Props = Record<string, unknown>;
|
|
2
2
|
|
|
3
3
|
type VStackValue = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
/** Default 0. */
|
|
5
|
+
spacing?: number;
|
|
6
|
+
/** Horizontal alignment for child views. */
|
|
7
|
+
alignment?: HorizontalAlignment;
|
|
7
8
|
};
|
|
8
9
|
|
|
9
10
|
type HStackValue = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
/** Default 0. */
|
|
12
|
+
spacing?: number;
|
|
13
|
+
/** Vertical alignment for child views. */
|
|
14
|
+
alignment?: VerticalAlignment;
|
|
13
15
|
};
|
|
14
16
|
|
|
15
17
|
type ZStackValue = {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
/** Horizontal and vertical alignment for child views. */
|
|
19
|
+
alignment?: Alignment;
|
|
18
20
|
};
|
|
19
21
|
|
|
20
22
|
type ButtonValue = {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
/** Intent returned by `Await.define(...)`, used to run a registered widget intent when the button is tapped. */
|
|
24
|
+
intent?: IntentInfo;
|
|
25
|
+
/** Only applies in the app; triggers the button as soon as the touch begins. */
|
|
26
|
+
fast?: boolean;
|
|
27
|
+
/** Requests permission to play audio. */
|
|
28
|
+
audio?: boolean;
|
|
29
|
+
/** Opens a universal link directly, such as `https://github.com/await-widget/skills`. */
|
|
30
|
+
url?: string;
|
|
29
31
|
};
|
|
30
32
|
|
|
31
33
|
type ShapeValue = {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
34
|
+
/** Default black on light theme, white on dark theme. */
|
|
35
|
+
fill?: ShapeStyle;
|
|
36
|
+
/** Only centered strokes are supported. */
|
|
37
|
+
stroke?: {
|
|
38
|
+
color?: Color;
|
|
39
|
+
lineWidth?: number;
|
|
40
|
+
lineCap?: string;
|
|
41
|
+
lineJoin?: string;
|
|
42
|
+
miterLimit?: number;
|
|
43
|
+
dash?: number[];
|
|
44
|
+
dashPhase?: number;
|
|
45
|
+
};
|
|
46
|
+
shape?: {
|
|
47
|
+
trim?: [number, number];
|
|
48
|
+
rotation?: RotationEffect;
|
|
49
|
+
offset?: Point;
|
|
50
|
+
scale?: ScaleEffect;
|
|
51
|
+
in?: {
|
|
52
|
+
x: number;
|
|
53
|
+
y: number;
|
|
54
|
+
width: number;
|
|
55
|
+
height: number;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
55
58
|
};
|
|
56
59
|
|
|
57
60
|
type RoundedRectangleValue = {
|
|
58
|
-
|
|
59
|
-
|
|
61
|
+
rectRadius?: Dimension;
|
|
62
|
+
/** Default `continuous`. */
|
|
63
|
+
style?: CornerRadiusStyle;
|
|
60
64
|
};
|
|
61
65
|
|
|
62
66
|
type UnevenRoundedRectangleValue = {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
67
|
+
rectRadius?: {
|
|
68
|
+
topLeft?: Dimension;
|
|
69
|
+
topRight?: Dimension;
|
|
70
|
+
bottomRight?: Dimension;
|
|
71
|
+
bottomLeft?: Dimension;
|
|
72
|
+
bottom?: Dimension;
|
|
73
|
+
top?: Dimension;
|
|
74
|
+
left?: Dimension;
|
|
75
|
+
right?: Dimension;
|
|
76
|
+
};
|
|
77
|
+
style?: CornerRadiusStyle;
|
|
74
78
|
};
|
|
75
79
|
|
|
76
80
|
type CapsuleValue = {
|
|
77
|
-
|
|
81
|
+
style?: CornerRadiusStyle;
|
|
78
82
|
};
|
|
79
83
|
|
|
80
84
|
type SectorValue = {
|
|
81
|
-
|
|
85
|
+
value: [start: number, end: number];
|
|
82
86
|
};
|
|
83
87
|
|
|
84
88
|
type PolygonValue = {
|
|
85
|
-
|
|
89
|
+
value: Array<[x: number, y: number]>;
|
|
86
90
|
};
|
|
87
91
|
|
|
88
92
|
type LinkValue = {
|
|
89
|
-
|
|
93
|
+
url?: string;
|
|
90
94
|
};
|
|
91
95
|
|
|
92
96
|
type ColorValue = {
|
|
93
|
-
|
|
97
|
+
value?: Color;
|
|
94
98
|
};
|
|
95
99
|
|
|
96
100
|
type TextValue = {
|
|
97
|
-
|
|
98
|
-
|
|
101
|
+
/** Text or encodable value rendered by the component. */
|
|
102
|
+
value?: Encodable;
|
|
99
103
|
};
|
|
100
104
|
|
|
101
105
|
type ImageValue = {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
/** Local or remote path such as `img.png` `path/img.png` `https://example.com/img.png` */
|
|
107
|
+
url?: string;
|
|
108
|
+
/** The modes used to resize an image to fit within its containing view. */
|
|
109
|
+
resizable?: Resizable;
|
|
110
|
+
/** The level of quality for rendering an image that requires interpolation, such as a scaled image. */
|
|
111
|
+
interpolation?: Interpolation;
|
|
112
|
+
/** A type that indicates how images are rendered */
|
|
113
|
+
style?: TemplateRenderingMode;
|
|
110
114
|
};
|
|
111
115
|
|
|
112
116
|
type IconValue = {
|
|
113
|
-
|
|
114
|
-
|
|
117
|
+
/** The name of the system symbol image. Use the SF Symbols app to look up the names of system symbol images. */
|
|
118
|
+
value?: string;
|
|
115
119
|
};
|
|
116
120
|
|
|
117
121
|
type TimeValue = {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
122
|
+
date?: Date;
|
|
123
|
+
/** Use `timer` to update once per second. */
|
|
124
|
+
style?: TimeStyle;
|
|
121
125
|
};
|
|
122
126
|
|
|
123
127
|
type SvgValue = {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
+
/** For example, `img.png`, `path/img.png`, or `https://example.com/img.png`. */
|
|
129
|
+
url?: string;
|
|
130
|
+
/** For example, `<svg><path d="M0 0h10v10h-10z"/></svg>`. */
|
|
131
|
+
value?: string;
|
|
128
132
|
};
|
|
129
133
|
|
|
130
134
|
type SpacerValue = {
|
|
131
|
-
|
|
135
|
+
minLength?: number;
|
|
132
136
|
};
|
|
133
137
|
|
|
134
138
|
type GifValue = {
|
|
135
|
-
|
|
136
|
-
|
|
139
|
+
size: Size;
|
|
140
|
+
duration: GifDuration;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
type TickerValue = {
|
|
144
|
+
size: Size;
|
|
145
|
+
style: TickerStyle;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
type FlipValue = {
|
|
149
|
+
index: number;
|
|
150
|
+
delta: number;
|
|
151
|
+
curr: NativeView;
|
|
152
|
+
prev: NativeView;
|
|
153
|
+
perspective?: number;
|
|
154
|
+
shadowOpacity?: number;
|
|
155
|
+
leadingHidden?: boolean;
|
|
156
|
+
trailingHidden?: boolean;
|
|
137
157
|
};
|
|
138
158
|
|
|
139
159
|
type Mods = {
|
|
140
|
-
|
|
160
|
+
[K in keyof BaseMods]?: BaseMods[K];
|
|
141
161
|
} & {
|
|
142
|
-
|
|
162
|
+
[K in keyof BaseMods as `${K & string}_${string}`]?: BaseMods[K];
|
|
143
163
|
};
|
|
144
164
|
|
|
145
165
|
type BaseMods = {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
width?: number;
|
|
230
|
-
zIndex?: number;
|
|
166
|
+
animation?: NativeAnimation | number | '';
|
|
167
|
+
aspectRatio?: AspectRatio;
|
|
168
|
+
background?:
|
|
169
|
+
| ShapeStyle
|
|
170
|
+
| NativeView
|
|
171
|
+
| {alignment: Alignment; content: NativeView};
|
|
172
|
+
baselineOffset?: number;
|
|
173
|
+
blendMode?: BlendMode;
|
|
174
|
+
blur?: Blur;
|
|
175
|
+
brightness?: number;
|
|
176
|
+
buttonStyle?: ButtonStyle;
|
|
177
|
+
clipped?: boolean;
|
|
178
|
+
clipShape?: NativeView | '';
|
|
179
|
+
colorInvert?: boolean;
|
|
180
|
+
colorMultiply?: Color;
|
|
181
|
+
compositingGroup?: boolean;
|
|
182
|
+
contentShape?: NativeView | '';
|
|
183
|
+
contentTransition?: ContentTransition;
|
|
184
|
+
contrast?: number;
|
|
185
|
+
cornerRadius?: number;
|
|
186
|
+
debug?: boolean;
|
|
187
|
+
disable?: boolean;
|
|
188
|
+
drawingGroup?: boolean;
|
|
189
|
+
fixedSize?: FixedSize;
|
|
190
|
+
font?: Font | '';
|
|
191
|
+
fontDesign?: FontDesign | '';
|
|
192
|
+
fontSize?: number;
|
|
193
|
+
fontWeight?: FontWeight | '';
|
|
194
|
+
fontWidth?: FontWidth | '';
|
|
195
|
+
foreground?: ShapeStyle;
|
|
196
|
+
frame?: Frame;
|
|
197
|
+
geometryGroup?: boolean;
|
|
198
|
+
grayscale?: number;
|
|
199
|
+
height?: number;
|
|
200
|
+
hidden?: boolean;
|
|
201
|
+
hueRotation?: number;
|
|
202
|
+
ignoresSafeArea?: boolean;
|
|
203
|
+
italic?: boolean;
|
|
204
|
+
kerning?: number;
|
|
205
|
+
layoutPriority?: number;
|
|
206
|
+
lineHeight?: LineHeight | '';
|
|
207
|
+
lineLimit?: number | '';
|
|
208
|
+
lineSpacing?: number;
|
|
209
|
+
luminanceToAlpha?: boolean;
|
|
210
|
+
mask?: NativeView;
|
|
211
|
+
maxHeight?: Dimension | boolean;
|
|
212
|
+
maxSides?: Dimension | boolean;
|
|
213
|
+
maxWidth?: Dimension | boolean;
|
|
214
|
+
minimumScaleFactor?: number;
|
|
215
|
+
monospaced?: boolean;
|
|
216
|
+
monospacedDigit?: boolean;
|
|
217
|
+
offset?: Point;
|
|
218
|
+
offsetX?: number;
|
|
219
|
+
offsetY?: number;
|
|
220
|
+
opacity?: number;
|
|
221
|
+
overlay?:
|
|
222
|
+
| ShapeStyle
|
|
223
|
+
| NativeView
|
|
224
|
+
| {alignment: Alignment; content: NativeView};
|
|
225
|
+
padding?: Padding | boolean;
|
|
226
|
+
pixelPerfectCenter?: boolean | Point;
|
|
227
|
+
position?: Point;
|
|
228
|
+
reverseMask?: NativeView;
|
|
229
|
+
rotation3DEffect?: Rotation3DEffect;
|
|
230
|
+
rotationEffect?: RotationEffect;
|
|
231
|
+
saturation?: number;
|
|
232
|
+
scaleEffect?: ScaleEffect;
|
|
233
|
+
shadow?: Shadow;
|
|
234
|
+
sides?: number;
|
|
235
|
+
strikethrough?:
|
|
236
|
+
| boolean
|
|
237
|
+
| {isActive?: boolean; pattern?: Pattern; color?: Color};
|
|
238
|
+
test?: unknown;
|
|
239
|
+
textAlignment?: TextAlignment;
|
|
240
|
+
tint?: ShapeStyle;
|
|
241
|
+
tracking?: number;
|
|
242
|
+
transform?: [number, number, number, number, number, number];
|
|
243
|
+
transition?: Transition;
|
|
244
|
+
truncationMode?: 'head' | 'middle' | 'tail';
|
|
245
|
+
typesettingLanguage?: string;
|
|
246
|
+
underline?: boolean | {isActive?: boolean; pattern?: Pattern; color?: Color};
|
|
247
|
+
width?: number;
|
|
248
|
+
zIndex?: number;
|
|
231
249
|
};
|