1 | import { CubicBezierAnimationCurve } from '../ui/animation';
|
2 | import { FontStyleType, FontWeightType } from '../ui/styling/font-common';
|
3 |
|
4 | export namespace CoreTypes {
|
5 | /**
|
6 | * Denotes a length number that is in device independent pixel units.
|
7 | */
|
8 | export type dip = number;
|
9 |
|
10 | /**
|
11 | * Denotes a length number that is in physical device pixels.
|
12 | */
|
13 | export type px = number;
|
14 |
|
15 | /**
|
16 | * Denotes a normalized percent number.
|
17 | * 0% is represented as 0
|
18 | * 50% is represented as 0.5
|
19 | * 100% is represented as 1
|
20 | */
|
21 | export type percent = number;
|
22 |
|
23 | export type LengthDipUnit = { readonly unit: 'dip'; readonly value: dip };
|
24 | export type LengthPxUnit = { readonly unit: 'px'; readonly value: px };
|
25 | export type LengthPercentUnit = { readonly unit: '%'; readonly value: percent };
|
26 |
|
27 | export type LengthType = 'auto' | dip | LengthDipUnit | LengthPxUnit;
|
28 | export type PercentLengthType = 'auto' | dip | LengthDipUnit | LengthPxUnit | LengthPercentUnit;
|
29 |
|
30 | export type KeyboardInputType = 'datetime' | 'phone' | 'number' | 'url' | 'email' | 'integer';
|
31 | /**
|
32 | * Represents a soft keyboard flavor.
|
33 | */
|
34 | export module KeyboardType {
|
35 | /**
|
36 | * Android: [TYPE_CLASS_DATETIME](http://developer.android.com/reference/android/text/InputType.html#TYPE_CLASS_DATETIME) | [TYPE_DATETIME_VARIATION_NORMAL](http://developer.android.com/reference/android/text/InputType.html#TYPE_DATETIME_VARIATION_NORMAL)
|
37 | * iOS: [UIKeyboardTypeNumbersAndPunctuation](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextInputTraits_Protocol/index.html#//apple_ref/c/tdef/UIKeyboardType)
|
38 | */
|
39 | export const datetime: KeyboardInputType;
|
40 | /**
|
41 | * Android: [TYPE_CLASS_PHONE](http://developer.android.com/reference/android/text/InputType.html#TYPE_CLASS_PHONE)
|
42 | * iOS: [UIKeyboardTypePhonePad](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextInputTraits_Protocol/index.html#//apple_ref/c/tdef/UIKeyboardType)
|
43 | */
|
44 | export const phone: KeyboardInputType;
|
45 |
|
46 | /**
|
47 | * Android: [TYPE_CLASS_NUMBER](http://developer.android.com/reference/android/text/InputType.html#TYPE_CLASS_NUMBER) | [TYPE_NUMBER_VARIATION_NORMAL](http://developer.android.com/intl/es/reference/android/text/InputType.html#TYPE_NUMBER_VARIATION_NORMAL) | [TYPE_NUMBER_FLAG_SIGNED](http://developer.android.com/reference/android/text/InputType.html#TYPE_NUMBER_FLAG_SIGNED) | [TYPE_NUMBER_FLAG_DECIMAL](http://developer.android.com/reference/android/text/InputType.html#TYPE_NUMBER_FLAG_DECIMAL)
|
48 | * iOS: [UIKeyboardTypeNumbersAndPunctuation](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextInputTraits_Protocol/index.html#//apple_ref/c/tdef/UIKeyboardType)
|
49 | */
|
50 | export const number: KeyboardInputType;
|
51 |
|
52 | /**
|
53 | * Android: [TYPE_CLASS_TEXT](http://developer.android.com/reference/android/text/InputType.html#TYPE_CLASS_TEXT) | [TYPE_TEXT_VARIATION_URI](http://developer.android.com/reference/android/text/InputType.html#TYPE_TEXT_VARIATION_URI)
|
54 | * iOS: [UIKeyboardTypeURL](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextInputTraits_Protocol/index.html#//apple_ref/c/tdef/UIKeyboardType)
|
55 | */
|
56 | export const url: KeyboardInputType;
|
57 |
|
58 | /**
|
59 | * Android: [TYPE_CLASS_TEXT](http://developer.android.com/reference/android/text/InputType.html#TYPE_CLASS_TEXT) | [TYPE_TEXT_VARIATION_EMAIL_ADDRESS](http://developer.android.com/reference/android/text/InputType.html#TYPE_TEXT_VARIATION_EMAIL_ADDRESS)
|
60 | * iOS: [UIKeyboardTypeEmailAddress](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextInputTraits_Protocol/index.html#//apple_ref/c/tdef/UIKeyboardType)
|
61 | */
|
62 | export const email: KeyboardInputType;
|
63 |
|
64 | /**
|
65 | * Android: [TYPE_CLASS_NUMBER](http://developer.android.com/reference/android/text/InputType.html#TYPE_CLASS_NUMBER | [TYPE_NUMBER_VARIATION_PASSWORD](android type_text_variation_password))
|
66 | * iOS: [UIKeyboardTypeNumberPad](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextInputTraits_Protocol/index.html#//apple_ref/c/tdef/UIKeyboardType)
|
67 | */
|
68 | export const integer: KeyboardInputType;
|
69 | }
|
70 |
|
71 | export type ReturnKeyButtonType = 'done' | 'next' | 'go' | 'search' | 'send';
|
72 | /**
|
73 | * Represents the flavor of the return key on the soft keyboard.
|
74 | */
|
75 | export module ReturnKeyType {
|
76 | /**
|
77 | * Android: [IME_ACTION_DONE](http://developer.android.com/reference/android/view/inputmethod/EditorInfo.html#IME_ACTION_DONE)
|
78 | * iOS: [UIReturnKeyDone](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextInputTraits_Protocol/index.html#//apple_ref/c/tdef/UIReturnKeyType)
|
79 | */
|
80 | export const done: ReturnKeyButtonType;
|
81 |
|
82 | /**
|
83 | * Android: [IME_ACTION_NEXT](http://developer.android.com/reference/android/view/inputmethod/EditorInfo.html#IME_ACTION_NEXT)
|
84 | * iOS: [UIReturnKeyNext](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextInputTraits_Protocol/index.html#//apple_ref/c/tdef/UIReturnKeyType)
|
85 | */
|
86 | export const next: ReturnKeyButtonType;
|
87 |
|
88 | /**
|
89 | * Android: [IME_ACTION_GO](http://developer.android.com/reference/android/view/inputmethod/EditorInfo.html#IME_ACTION_GO)
|
90 | * iOS: [UIReturnKeyGo](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextInputTraits_Protocol/index.html#//apple_ref/c/tdef/UIReturnKeyType)
|
91 | */
|
92 | export const go: ReturnKeyButtonType;
|
93 |
|
94 | /**
|
95 | * Android: [IME_ACTION_SEARCH](http://developer.android.com/reference/android/view/inputmethod/EditorInfo.html#IME_ACTION_SEARCH)
|
96 | * iOS: [UIReturnKeySearch](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextInputTraits_Protocol/index.html#//apple_ref/c/tdef/UIReturnKeyType)
|
97 | */
|
98 | export const search: ReturnKeyButtonType;
|
99 |
|
100 | /**
|
101 | * Android: [IME_ACTION_SEND](http://developer.android.com/reference/android/view/inputmethod/EditorInfo.html#IME_ACTION_SEND)
|
102 | * iOS: [UIReturnKeySend](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextInputTraits_Protocol/index.html#//apple_ref/c/tdef/UIReturnKeyType)
|
103 | */
|
104 | export const send: string;
|
105 | }
|
106 |
|
107 | export type TextAlignmentType = 'initial' | 'left' | 'center' | 'right' | 'justify';
|
108 | /**
|
109 | * Represents a text-align enumeration.
|
110 | */
|
111 | export module TextAlignment {
|
112 | /**
|
113 | * Represents left text-align.
|
114 | */
|
115 | export const left: TextAlignmentType;
|
116 |
|
117 | /**
|
118 | * Represents center text-align.
|
119 | */
|
120 | export const center: TextAlignmentType;
|
121 |
|
122 | /**
|
123 | * Represents right text-align.
|
124 | */
|
125 | export const right: TextAlignmentType;
|
126 |
|
127 | /**
|
128 | * Represents justify text-align.
|
129 | */
|
130 | export const justify: TextAlignmentType;
|
131 | }
|
132 |
|
133 | export type OrientationType = 'horizontal' | 'vertical';
|
134 | /**
|
135 | * Orientation indicates a direction of a layout that can exist in a horizontal or vertical state.
|
136 | */
|
137 | export module Orientation {
|
138 | /**
|
139 | * Layout should be horizontally oriented.
|
140 | */
|
141 | export const horizontal: OrientationType;
|
142 | /**
|
143 | * Layout should be vertically oriented.
|
144 | */
|
145 | export const vertical: OrientationType;
|
146 | }
|
147 |
|
148 | export type DeviceOrientationType = 'portrait' | 'landscape' | 'unknown';
|
149 | /**
|
150 | * Orientation of a device.
|
151 | */
|
152 | export module DeviceOrientation {
|
153 | /**
|
154 | * Portrait orientation.
|
155 | */
|
156 | export const portrait: string;
|
157 | /**
|
158 | * Landscape orientation.
|
159 | */
|
160 | export const landscape: string;
|
161 | /**
|
162 | * Orientation cannot be determined.
|
163 | */
|
164 | export const unknown: string;
|
165 | }
|
166 |
|
167 | export type HorizontalAlignmentType = 'left' | 'center' | 'right' | 'stretch';
|
168 | /**
|
169 | * HorizontalAlignment indicates where an element should be displayed on the horizontal axis relative to the allocated layout slot of the parent element.
|
170 | */
|
171 | export module HorizontalAlignment {
|
172 | /**
|
173 | * An element should be left aligned.
|
174 | */
|
175 | export const left: HorizontalAlignmentType;
|
176 |
|
177 | /**
|
178 | * An element should be center aligned.
|
179 | */
|
180 | export const center: HorizontalAlignmentType;
|
181 |
|
182 | /**
|
183 | * An element should be right aligned.
|
184 | */
|
185 | export const right: HorizontalAlignmentType;
|
186 |
|
187 | /**
|
188 | * An element should be stretched to fill all the available size.
|
189 | */
|
190 | export const stretch: HorizontalAlignmentType;
|
191 | }
|
192 |
|
193 | export type VerticalAlignmentType = 'top' | 'middle' | 'bottom' | 'stretch';
|
194 | export type VerticalAlignmentTextType = (VerticalAlignmentType & 'text-top') | 'text-bottom' | 'super' | 'sub' | 'baseline';
|
195 | /**
|
196 | * VerticalAlignment indicates where an element should be displayed on the horizontal axis relative to the allocated layout slot of the parent element.
|
197 | */
|
198 | export module VerticalAlignment {
|
199 | /**
|
200 | * An element should be top aligned.
|
201 | */
|
202 | export const top: VerticalAlignmentType;
|
203 |
|
204 | /**
|
205 | * An element should be center aligned.
|
206 | */
|
207 | export const center: VerticalAlignmentType;
|
208 |
|
209 | /**
|
210 | * Same as center. An element should be aligned in the middle.
|
211 | */
|
212 | export const middle: VerticalAlignmentType;
|
213 |
|
214 | /**
|
215 | * An element should be bottom aligned.
|
216 | */
|
217 | export const bottom: VerticalAlignmentType;
|
218 |
|
219 | /**
|
220 | * An element should be stretched to fill all the available size.
|
221 | */
|
222 | export const stretch: VerticalAlignmentType;
|
223 | }
|
224 |
|
225 | export type ImageStretchType = 'none' | 'aspectFill' | 'aspectFit' | 'fill';
|
226 | /**
|
227 | * Describes how content is resized to fill its allocated space.
|
228 | */
|
229 | export module ImageStretch {
|
230 | /**
|
231 | * The image preserves its original size.
|
232 | */
|
233 | export const none: ImageStretchType;
|
234 |
|
235 | /**
|
236 | * The image is resized to fill in the destination dimensions while it preserves its native aspect ratio.
|
237 | * If the aspect ratio of the destination rectangle differs from the image, the image is clipped to fill
|
238 | * in the destination.
|
239 | */
|
240 | export const aspectFill: ImageStretchType;
|
241 |
|
242 | /**
|
243 | * The image is resized to fit the destination dimensions while it preserves
|
244 | * its native aspect ratio.
|
245 | */
|
246 | export const aspectFit: ImageStretchType;
|
247 |
|
248 | /**
|
249 | * The image is resized to fill the destination dimensions. The aspect ratio is not preserved.
|
250 | */
|
251 | export const fill: ImageStretchType;
|
252 | }
|
253 |
|
254 | export type VisibilityType = 'visible' | 'hidden' | 'collapse' | 'collapsed';
|
255 | /**
|
256 | * Represents the visibility mode of a view.
|
257 | */
|
258 | export module Visibility {
|
259 | /**
|
260 | * The view is visible.
|
261 | */
|
262 | export const visible: VisibilityType;
|
263 |
|
264 | /**
|
265 | * The view is not visible and won't take place in the layout.
|
266 | */
|
267 | export const collapse: VisibilityType;
|
268 |
|
269 | /**
|
270 | * @deprecated Use collapse instead
|
271 | */
|
272 | export const collapsed: VisibilityType;
|
273 |
|
274 | /**
|
275 | * The view is not visible but will take place in the layout.
|
276 | */
|
277 | export const hidden: VisibilityType;
|
278 | }
|
279 |
|
280 | /**
|
281 | * A flag enum that represents common font attributes.
|
282 | */
|
283 | export module FontAttributes {
|
284 | /**
|
285 | * Denotes that text should be drawn in a normal style.
|
286 | */
|
287 | export const Normal: number;
|
288 |
|
289 | /**
|
290 | * Denotes that text should be drawn in a bold weight.
|
291 | */
|
292 | export const Bold: number;
|
293 |
|
294 | /**
|
295 | * Denotes that text should be drawn in a italic style.
|
296 | */
|
297 | export const Italic: number;
|
298 | }
|
299 |
|
300 | /**
|
301 | * Describes the type of a device
|
302 | */
|
303 | export module DeviceType {
|
304 | /**
|
305 | * Indicates a smart-phone device.
|
306 | */
|
307 | export const Phone: string;
|
308 |
|
309 | /**
|
310 | * Indicates a tablet device.
|
311 | */
|
312 | export const Tablet: string;
|
313 | }
|
314 |
|
315 | export type UpdateTextTriggerType = 'focusLost' | 'textChanged';
|
316 | /**
|
317 | * Represents an enumeration specifying when the text property of an EditableTextBase will be updated.
|
318 | */
|
319 | export module UpdateTextTrigger {
|
320 | /**
|
321 | * The text property will be udpaded when the widget loses focus.
|
322 | */
|
323 | export const focusLost: UpdateTextTriggerType;
|
324 |
|
325 | /**
|
326 | * The text property will be udpaded on every single character typed by the user.
|
327 | */
|
328 | export const textChanged: UpdateTextTriggerType;
|
329 | }
|
330 |
|
331 | /**
|
332 | * Specifies common accuracy values.
|
333 | */
|
334 | export namespace Accuracy {
|
335 | /**
|
336 | * The default accuracy. About 300 meters.
|
337 | */
|
338 | export const any: number;
|
339 |
|
340 | /**
|
341 | * High accuracy. About 3 meters.
|
342 | */
|
343 | export const high: number;
|
344 | }
|
345 |
|
346 | export type DockType = 'left' | 'top' | 'right' | 'bottom';
|
347 | /**
|
348 | * Specifies the Dock position of a child element that is inside a DockLayout.
|
349 | */
|
350 | export module Dock {
|
351 | /**
|
352 | * A child element that is positioned on the left side of the DockLayout.
|
353 | */
|
354 | export const left: DockType;
|
355 |
|
356 | /**
|
357 | * A child element that is positioned on the top side of the DockLayout.
|
358 | */
|
359 | export const top: DockType;
|
360 |
|
361 | /**
|
362 | * A child element that is positioned on the right side of the DockLayout.
|
363 | */
|
364 | export const right: DockType;
|
365 |
|
366 | /**
|
367 | * A child element that is positioned on the bottom side of the DockLayout.
|
368 | */
|
369 | export const bottom: DockType;
|
370 | }
|
371 |
|
372 | export type AutocapitalizationInputType = 'none' | 'words' | 'sentences' | 'allcharacters';
|
373 | /**
|
374 | * Represents the auto-capitalization style for a text input.
|
375 | */
|
376 | export module AutocapitalizationType {
|
377 | /**
|
378 | * Do not capitalize any text automatically.
|
379 | */
|
380 | export const none: AutocapitalizationInputType;
|
381 |
|
382 | /**
|
383 | * Capitalize the first letter of each word automatically.
|
384 | */
|
385 | export const words: AutocapitalizationInputType;
|
386 |
|
387 | /**
|
388 | * Capitalize the first letter of each sentence automatically.
|
389 | */
|
390 | export const sentences: AutocapitalizationInputType;
|
391 |
|
392 | /**
|
393 | * Capitalize all characters automatically.
|
394 | */
|
395 | export const allCharacters: AutocapitalizationInputType;
|
396 | }
|
397 |
|
398 | /**
|
399 | * Defines the recognized image formats.
|
400 | */
|
401 | export module ImageFormat {
|
402 | /**
|
403 | * The W3C Portable Network Graphics (PNG) image format.
|
404 | */
|
405 | export const png: string;
|
406 |
|
407 | /**
|
408 | * The Joint Photographic Experts Group (JPEG) image format.
|
409 | */
|
410 | export const jpeg: string;
|
411 |
|
412 | /**
|
413 | * The Joint Photographic Experts Group (JPEG) image format.
|
414 | */
|
415 | export const jpg: string;
|
416 | }
|
417 |
|
418 | /**
|
419 | * Specifies NavigationBar visibility mode.
|
420 | */
|
421 | export module NavigationBarVisibility {
|
422 | /**
|
423 | * NavigationBar will be visible if there if frame backstack canGoBack is true or if the page Action Bar is not empty.
|
424 | */
|
425 | export const auto: string;
|
426 |
|
427 | /**
|
428 | * NavigationBar will be hidden.
|
429 | */
|
430 | export const never: string;
|
431 |
|
432 | /**
|
433 | * NavigationBar will be visible.
|
434 | */
|
435 | export const always: string;
|
436 | }
|
437 |
|
438 | /**
|
439 | * Specifies the visibility of the application bar icon
|
440 | */
|
441 | export module AndroidActionBarIconVisibility {
|
442 | export const auto: string;
|
443 | export const never: string;
|
444 | export const always: string;
|
445 | }
|
446 |
|
447 | /**
|
448 | * Specifies android MenuItem position.
|
449 | */
|
450 | export module AndroidActionItemPosition {
|
451 | /**
|
452 | * Always show this item as a button in an Action Bar.
|
453 | */
|
454 | export const actionBar: string;
|
455 |
|
456 | /**
|
457 | * Show this item as a button in an Action Bar if the system decides there is room for it.
|
458 | */
|
459 | export const actionBarIfRoom: string;
|
460 |
|
461 | /**
|
462 | * Never show this item as a button in an Action Bar.
|
463 | */
|
464 | export const popup: string;
|
465 | }
|
466 |
|
467 | /**
|
468 | * Specifies different font styles.
|
469 | */
|
470 | export module FontStyle {
|
471 | /**
|
472 | * Normal font style.
|
473 | */
|
474 | export const normal: FontStyleType;
|
475 |
|
476 | /**
|
477 | * Italic font style.
|
478 | */
|
479 | export const italic: FontStyleType;
|
480 | }
|
481 |
|
482 | export type TextDecorationType = 'none' | 'underline' | 'line-through' | 'underline line-through';
|
483 | /**
|
484 | * Specifies different text decorations.
|
485 | */
|
486 | export module TextDecoration {
|
487 | /**
|
488 | * No decoration.
|
489 | */
|
490 | export const none: TextDecorationType;
|
491 |
|
492 | /**
|
493 | * Text decoration underline.
|
494 | */
|
495 | export const underline: TextDecorationType;
|
496 |
|
497 | /**
|
498 | * Text decoration line-through.
|
499 | */
|
500 | export const lineThrough: TextDecorationType;
|
501 | }
|
502 |
|
503 | export type TextTransformType = 'initial' | 'none' | 'capitalize' | 'uppercase' | 'lowercase';
|
504 | /**
|
505 | * Specifies different text transforms.
|
506 | */
|
507 | export module TextTransform {
|
508 | /**
|
509 | * No transform.
|
510 | */
|
511 | export const none: TextTransformType;
|
512 |
|
513 | /**
|
514 | * Text transform capitalize.
|
515 | */
|
516 | export const capitalize: TextTransformType;
|
517 |
|
518 | /**
|
519 | * Text transform uppercase.
|
520 | */
|
521 | export const uppercase: TextTransformType;
|
522 |
|
523 | /**
|
524 | * Text transform lowercase.
|
525 | */
|
526 | export const lowercase: TextTransformType;
|
527 | }
|
528 |
|
529 | export type WhiteSpaceType = 'initial' | 'normal' | 'nowrap';
|
530 | /**
|
531 | * Specifies different white spaces.
|
532 | */
|
533 | export module WhiteSpace {
|
534 | /**
|
535 | * Normal wrap.
|
536 | */
|
537 | export const normal: WhiteSpaceType;
|
538 |
|
539 | /**
|
540 | * No wrap.
|
541 | */
|
542 | export const nowrap: WhiteSpaceType;
|
543 | }
|
544 |
|
545 | /**
|
546 | * Specifies different font weights.
|
547 | */
|
548 | export module FontWeight {
|
549 | /**
|
550 | * Thin font weight. CSS font-weight 100.
|
551 | */
|
552 | export const thin: FontWeightType;
|
553 |
|
554 | /**
|
555 | * Extra-light / Ultra-light font weight. CSS font-weight 200.
|
556 | */
|
557 | export const extraLight: FontWeightType;
|
558 |
|
559 | /**
|
560 | * Light font weight. CSS font-weight 300.
|
561 | */
|
562 | export const light: FontWeightType;
|
563 |
|
564 | /**
|
565 | * Normal font weight. CSS font-weight 400.
|
566 | */
|
567 | export const normal: FontWeightType;
|
568 |
|
569 | /**
|
570 | * Medium font weight. CSS font-weight 500.
|
571 | */
|
572 | export const medium: FontWeightType;
|
573 |
|
574 | /**
|
575 | * Semi-bold / Demi-bold font weight. CSS font-weight 600.
|
576 | */
|
577 | export const semiBold: FontWeightType;
|
578 |
|
579 | /**
|
580 | * Bold font weight. CSS font-weight 700.
|
581 | */
|
582 | export const bold: FontWeightType;
|
583 |
|
584 | /**
|
585 | * Extra-bold / Ultra-bold font weight. CSS font-weight 800.
|
586 | */
|
587 | export const extraBold: FontWeightType;
|
588 |
|
589 | /**
|
590 | * Black font weight. CSS font-weight 900.
|
591 | */
|
592 | export const black: FontWeightType;
|
593 | }
|
594 |
|
595 | export type BackgroundRepeatType = 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat';
|
596 | /**
|
597 | * Specifies background repeat.
|
598 | */
|
599 | export module BackgroundRepeat {
|
600 | export const repeat: BackgroundRepeatType;
|
601 | export const repeatX: BackgroundRepeatType;
|
602 | export const repeatY: BackgroundRepeatType;
|
603 | export const noRepeat: BackgroundRepeatType;
|
604 | export const isValid: (value: any) => BackgroundRepeatType;
|
605 | export const parse: (value: any) => BackgroundRepeatType;
|
606 | }
|
607 |
|
608 | /**
|
609 | * Specifies android MenuItem position.
|
610 | */
|
611 | export module IOSActionItemPosition {
|
612 | /**
|
613 | * Show this item at the left of the navigation bar.
|
614 | */
|
615 | export const left: string;
|
616 |
|
617 | /**
|
618 | * Show this item at the right of the action bar.
|
619 | */
|
620 | export const right: string;
|
621 | }
|
622 |
|
623 | /**
|
624 | * Represents an animation curve type.
|
625 | */
|
626 | export module AnimationCurve {
|
627 | /**
|
628 | * Default value. Specifies a transition effect with a slow start, then fast, then end slowly (equivalent to cubic-bezier(0.25,0.1,0.25,1))
|
629 | */
|
630 | export const ease: string;
|
631 |
|
632 | /**
|
633 | * An ease-in curve causes the animation to begin slowly, and then speed up as it progresses.
|
634 | */
|
635 | export const easeIn: string;
|
636 |
|
637 | /**
|
638 | * An ease-out curve causes the animation to begin quickly, and then slow down as it completes.
|
639 | */
|
640 | export const easeOut: string;
|
641 |
|
642 | /**
|
643 | * An ease-in ease-out curve causes the animation to begin slowly, accelerate through the middle of its duration, and then slow again before completing.
|
644 | */
|
645 | export const easeInOut: string;
|
646 |
|
647 | /**
|
648 | * A linear animation curve causes an animation to occur evenly over its duration.
|
649 | */
|
650 | export const linear: string;
|
651 |
|
652 | /**
|
653 | * A spring animation curve causes an animation to produce a spring (bounce) effect.
|
654 | */
|
655 | export const spring: string;
|
656 |
|
657 | /**
|
658 | * A custom cubic bezier function defined by its two control points. Possible values are numeric values from 0 to 1
|
659 | */
|
660 | export function cubicBezier(x1: number, y1: number, x2: number, y2: number): CubicBezierAnimationCurve;
|
661 | }
|
662 |
|
663 | /**
|
664 | * @deprecated use `SystemAppearance` instead.
|
665 | *
|
666 | * Specifies the types of the status bar style.
|
667 | */
|
668 | export module StatusBarStyle {
|
669 | /**
|
670 | * The light style of the status bar - light background with dark letters.
|
671 | */
|
672 | export const light: string;
|
673 |
|
674 | /**
|
675 | * The dark style of the status bar - dark background with light letters.
|
676 | */
|
677 | export const dark: string;
|
678 | }
|
679 |
|
680 | /**
|
681 | * Specifies the types of the system appearance.
|
682 | */
|
683 | export module SystemAppearance {
|
684 | /**
|
685 | * The light system appearance.
|
686 | */
|
687 | export const light: string;
|
688 |
|
689 | /**
|
690 | * The dark system appearance.
|
691 | */
|
692 | export const dark: string;
|
693 | }
|
694 |
|
695 | /**
|
696 | * @deprecated use `SystemAppearance` instead.
|
697 | *
|
698 | * Specifies the types of the user interface style.
|
699 | */
|
700 | export module UserInterfaceStyle {
|
701 | /**
|
702 | * The light style of the user interface.
|
703 | */
|
704 | export const light: string;
|
705 |
|
706 | /**
|
707 | * The dark style of the user interface.
|
708 | */
|
709 | export const dark: string;
|
710 | }
|
711 | }
|
712 |
|
713 | /**
|
714 | * @deprecated Use `CoreTypes.dip` instead.
|
715 | */
|
716 | export type dip = CoreTypes.dip;
|
717 |
|
718 | /**
|
719 | * @deprecated Use `CoreTypes.px` instead.
|
720 | */
|
721 | export type px = CoreTypes.px;
|
722 |
|
723 | /**
|
724 | * @deprecated Use `CoreTypes.percent` instead.
|
725 | */
|
726 | export type percent = CoreTypes.percent;
|
727 |
|
728 | /**
|
729 | * @deprecated Use `CoreTypes.LengthDipUnit` instead.
|
730 | */
|
731 | export type LengthDipUnit = CoreTypes.LengthDipUnit;
|
732 | /**
|
733 | * @deprecated Use `CoreTypes.LengthPxUnit` instead.
|
734 | */
|
735 | export type LengthPxUnit = CoreTypes.LengthPxUnit;
|
736 | /**
|
737 | * @deprecated Use `CoreTypes.LengthPercentUnit` instead.
|
738 | */
|
739 | export type LengthPercentUnit = CoreTypes.LengthPercentUnit;
|
740 |
|
741 | /**
|
742 | * @deprecated Use `CoreTypes.LengthType` instead.
|
743 | */
|
744 | export type LengthType = CoreTypes.LengthType;
|
745 | /**
|
746 | * @deprecated Use `CoreTypes.PercentLengthType` instead.
|
747 | */
|
748 | export type PercentLengthType = CoreTypes.PercentLengthType;
|
749 |
|
750 | /**
|
751 | * @deprecated Use `CoreTypes.AnimationCurve` instead.
|
752 | */
|
753 | export const AnimationCurve: typeof CoreTypes.AnimationCurve;
|
754 |
|
755 | /**
|
756 | * @deprecated Use `CoreTypes.HorizontalAlignmentType` instead.
|
757 | */
|
758 | export type HorizontalAlignment = CoreTypes.HorizontalAlignmentType;
|
759 |
|
760 | /**
|
761 | * @deprecated Use `CoreTypes.VerticalAlignmentType` instead.
|
762 | */
|
763 | export type VerticalAlignment = CoreTypes.VerticalAlignmentType;
|
764 |
|
765 | /**
|
766 | * @deprecated Use `CoreTypes` instead. Enums will be removed in 9.0
|
767 | */
|
768 | export declare const Enums: {
|
769 | Accuracy: typeof CoreTypes.Accuracy;
|
770 | AndroidActionBarIconVisibility: typeof CoreTypes.AndroidActionBarIconVisibility;
|
771 | AndroidActionItemPosition: typeof CoreTypes.AndroidActionItemPosition;
|
772 | AnimationCurve: typeof CoreTypes.AnimationCurve;
|
773 | AutocapitalizationType: typeof CoreTypes.AutocapitalizationType;
|
774 | BackgroundRepeat: typeof CoreTypes.BackgroundRepeat;
|
775 | DeviceOrientation: typeof CoreTypes.DeviceOrientation;
|
776 | DeviceType: typeof CoreTypes.DeviceType;
|
777 | Dock: typeof CoreTypes.Dock;
|
778 | FontAttributes: typeof CoreTypes.FontAttributes;
|
779 | FontStyle: typeof CoreTypes.FontStyle;
|
780 | FontWeight: typeof CoreTypes.FontWeight;
|
781 | HorizontalAlignment: typeof CoreTypes.HorizontalAlignment;
|
782 | IOSActionItemPosition: typeof CoreTypes.IOSActionItemPosition;
|
783 | ImageFormat: typeof CoreTypes.ImageFormat;
|
784 | KeyboardType: typeof CoreTypes.KeyboardType;
|
785 | NavigationBarVisibility: typeof CoreTypes.NavigationBarVisibility;
|
786 | Orientation: typeof CoreTypes.Orientation;
|
787 | ReturnKeyType: typeof CoreTypes.ReturnKeyType;
|
788 | StatusBarStyle: typeof CoreTypes.StatusBarStyle;
|
789 | Stretch: typeof CoreTypes.ImageStretch;
|
790 | SystemAppearance: typeof CoreTypes.SystemAppearance;
|
791 | TextAlignment: CoreTypes.TextAlignmentType;
|
792 | TextDecoration: CoreTypes.TextDecorationType;
|
793 | TextTransform: CoreTypes.TextTransformType;
|
794 | UpdateTextTrigger: CoreTypes.UpdateTextTriggerType;
|
795 | VerticalAlignment: CoreTypes.VerticalAlignmentType;
|
796 | Visibility: CoreTypes.VisibilityType;
|
797 | WhiteSpace: CoreTypes.WhiteSpaceType;
|
798 | };
|