• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2021 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * common enum of color
18 * @since 7
19 */
20declare enum Color {
21  /**
22   * White.
23   * @since 7
24   */
25  White,
26
27  /**
28   * Black.
29   * @since 7
30   */
31  Black,
32
33  /**
34   * Blue.
35   * @since 7
36   */
37  Blue,
38
39  /**
40   * Brown.
41   * @since 7
42   */
43  Brown,
44
45  /**
46   * Gray.
47   * @since 7
48   */
49  Gray,
50
51  /**
52   * Green.
53   * @since 7
54   */
55  Green,
56
57  /**
58   * Grey.
59   * @since 7
60   */
61  Grey,
62
63  /**
64   * Orange.
65   * @since 7
66   */
67  Orange,
68
69  /**
70   * color.
71   * @since 7
72   */
73  Pink,
74
75  /**
76   * Red.
77   * @since 7
78   */
79  Red,
80
81  /**
82   * Yellow.
83   * @since 7
84   */
85  Yellow,
86}
87
88/**
89 * Image display mode
90 * @since 7
91 */
92declare enum ImageFit {
93  /**
94   * Keep the aspect ratio to zoom out or zoom in so that the image is completely displayed within the display boundary.
95   * @since 7
96   */
97  Contain,
98
99  /**
100   * Keep the aspect ratio to zoom out or zoom in so that both sides of the image are greater than or equal to the display boundary.
101   * @since 7
102   */
103  Cover,
104
105  /**
106   * Adaptive display
107   * @since 7
108   */
109  Auto,
110
111  /**
112   * Zoom in or out without maintaining the aspect ratio so that the image fills the display boundary.
113   * @since 7
114   */
115  Fill,
116
117  /**
118   * Keep the aspect ratio displayed, and the image zooms out or remains unchanged.
119   * @since 7
120   */
121  ScaleDown,
122
123  /**
124   * Keep the original size and display it in the center.
125   * @since 7
126   */
127  None,
128}
129
130/**
131 * Border Style
132 * @since 7
133 */
134declare enum BorderStyle {
135  /**
136   * Displays as a series of dots with a radius of half the borderWidth.
137   * @since 7
138   */
139  Dotted,
140
141  /**
142   * Shows as a series of short square dashed lines.
143   * @since 7
144   */
145  Dashed,
146
147  /**
148   * Shows as a solid line.
149   * @since 7
150   */
151  Solid,
152}
153
154/**
155 * Line Join Style
156 * @since 7
157 */
158declare enum LineJoinStyle {
159  /**
160   * Connect path segments using bevels.
161   * @since 7
162   */
163  Miter,
164
165  /**
166   * Connect path segments using sharp corners.
167   * @since 7
168   */
169  Round,
170
171  /**
172   * Connect path segments using fillets.
173   * @since 7
174   */
175  Bevel,
176}
177
178/**
179 * Function Called by Touch
180 * @since 7
181 */
182declare enum TouchType {
183  /**
184   * Triggered when the finger is pressed.
185   * @since 7
186   */
187  Down,
188
189  /**
190   * Triggered when the finger is raised.
191   * @since 7
192   */
193  Up,
194
195  /**
196   * Triggered when the finger presses on the screen.
197   * @since 7
198   */
199  Move,
200
201  /**
202   * Triggers when the touch event cancels.
203   * @since 7
204   */
205  Cancel,
206}
207
208/**
209 * Function Called by Mouse
210 * @since 8
211 */
212declare enum MouseButton {
213  /**
214   * Mouse Left Button.
215   * @since 8
216   */
217  Left,
218
219  /**
220   * Mouse Right Button.
221   * @since 8
222   */
223  Right,
224
225  /**
226   * Mouse Middle Button.
227   * @since 8
228   */
229  Middle,
230
231  /**
232   * Mouse Back Button.
233   * @since 8
234   */
235  Back,
236
237  /**
238   * Mouse Forward Button.
239   * @since 8
240   */
241  Forward,
242
243  /**
244   * Mouse None Button.
245   * @since 8
246   */
247  None,
248}
249
250/**
251 * Function Called by Mouse
252 * @since 8
253 */
254declare enum MouseAction {
255  /**
256   * Triggered when the mouse is pressed.
257   * @since 8
258   */
259  Press,
260
261  /**
262   * Triggered when the mouse is released.
263   * @since 8
264   */
265  Release,
266
267  /**
268   * Triggered when the mouse is Moved.
269   * @since 8
270   */
271  Move,
272
273  /**
274   * Triggered when the mouse is Hovered.
275   * @since 8
276   */
277  Hover
278}
279
280/**
281 * Animation status.
282 * @since 7
283 */
284declare enum AnimationStatus {
285  /**
286   * Initial state of the animation.
287   * @since 7
288   */
289  Initial,
290
291  /**
292   * The animation is playing.
293   * @since 7
294   */
295  Running,
296
297  /**
298   * The animation is paused.
299   * @since 7
300   */
301  Paused,
302
303  /**
304   * The animation is stopped.
305   * @since 7
306   */
307  Stopped,
308}
309
310/**
311 * Sets the animation playback mode. By default, the animation starts to play again after the playback is complete.
312 * @since 7
313 */
314declare enum Curve {
315  /**
316   * Indicates that the speed of the animation is the same from start to finish.
317   * @since 7
318   */
319  Linear,
320
321  /**
322   * Indicates that the animation starts at a low speed, then accelerates, and then slows down before it ends, CubicBezier(0.25, 0.1, 0.25, 1.0).
323   * @since 7
324   */
325  Ease,
326
327  /**
328   * Indicates that the animation starts at a low speed, CubicBezier(0.42, 0.0, 1.0, 1.0).
329   * @since 7
330   */
331  EaseIn,
332
333  /**
334   * Indicates that the animation ends at a low speed, CubicBezier(0.0, 0.0, 0.78, 1.0).
335   * @since 7
336   */
337  EaseOut,
338
339  /**
340   * Indicates that the animation starts and ends at a slow speed, CubicBezier(0.42, 0.0, 0.78, 1.0).
341   * @since 7
342   */
343  EaseInOut,
344
345  /**
346   * Slow-in, fast-out
347   * @since 7
348   */
349  FastOutSlowIn,
350
351  /**
352   * Linear Out Slow In
353   * @since 7
354   */
355  LinearOutSlowIn,
356
357  /**
358   * Fast OutL inear In.
359   * @since 7
360   */
361  FastOutLinearIn,
362
363  /**
364   * Extreme Deceleration.
365   * @since 7
366   */
367  ExtremeDeceleration,
368
369  /**
370   * Sharp.
371   * @since 7
372   */
373  Sharp,
374
375  /**
376   * Rhythm.
377   * @since 7
378   */
379  Rhythm,
380
381  /**
382   * Smooth.
383   * @since 7
384   */
385  Smooth,
386
387  /**
388   * Damping curve, CubicBezier(0.2, 0.0, 0.2, 1.0).
389   * @since 7
390   */
391  Friction,
392}
393
394/**
395 * Sets the state before and after the animation starts.
396 * @since 7
397 */
398declare enum FillMode {
399  /**
400   * Restores to the initial state after the playback is complete.
401   * @since 7
402   */
403  None,
404
405  /**
406   * Retains the state at the end of the animation when the playback is complete.
407   * @since 7
408   */
409  Forwards,
410
411  /**
412   * Applies the start attribute value for the period specified by animation-delay before the animation is displayed.
413   * @since 7
414   */
415  Backwards,
416
417  /**
418   * Both forward and backward fill modes are applied.
419   * @since 7
420   */
421  Both,
422}
423
424/**
425 * Play Mode
426 * @since 7
427 */
428declare enum PlayMode {
429  /**
430   * The animation plays normally.
431   * @since 7
432   */
433  Normal,
434
435  /**
436   * The animation plays backwards.
437   * @since 7
438   */
439  Reverse,
440
441  /**
442   * The animation plays forward on odd numbers (1, 3, 7...) and backward on even numbers (2, 4, 6...).
443   * @since 7
444   */
445  Alternate,
446
447  /**
448   * The animation plays backwards on odd numbers (1, 3, 7...) and forwards on even numbers (2, 4, 6...)..
449   * @since 7
450   */
451  AlternateReverse,
452}
453
454/**
455 * Type of a key.
456 * @since 7
457 */
458declare enum KeyType {
459  /**
460   * Press the key.
461   * @since 7
462   */
463  Down,
464
465  /**
466   * The key is released.
467   * @since 7
468   */
469  Up,
470}
471
472/**
473 * Type of the input device that triggers the current key.
474 * @since 7
475 */
476declare enum KeySource {
477  /**
478   * The input device type is unknown.
479   * @since 7
480   */
481  Unknown,
482
483  /**
484   * Set Device Type to Keyboard.
485   * @since 7
486   */
487  Keyboard,
488}
489
490/**
491 * Edge.
492 * @since 7
493 */
494declare enum Edge {
495  /**
496   * The top is centered horizontally.
497   * @since 7
498   */
499  Top,
500
501  /**
502   * Center horizontal and vertical.
503   * @since 7
504   */
505  Center,
506
507  /**
508   * The bottom is centered horizontally.
509   * @since 7
510   */
511  Bottom,
512
513  /**
514   * Cross axis direction text baseline alignment.
515   * @since 7
516   */
517  Baseline,
518
519  /**
520   * Align the head of the cross axis direction.
521   * @since 7
522   */
523  Start,
524
525  /**
526   * Middle
527   * @since 7
528   */
529  Middle,
530
531  /**
532   * Align the head of the cross axis direction.
533   * @since 7
534   */
535  End,
536}
537
538/**
539 * Set Weekend
540 * @since 7
541 */
542declare enum Week {
543  /**
544   * Monday.
545   * @since 7
546   */
547  Mon,
548
549  /**
550   * Tuesday.
551   * @since 7
552   */
553  Tue,
554
555  /**
556   * Wednesday.
557   * @since 7
558   */
559  Wed,
560
561  /**
562   * Thursday.
563   * @since 7
564   */
565  Thur,
566
567  /**
568   * Friday.
569   * @since 7
570   */
571  Fri,
572
573  /**
574   * Saturday.
575   * @since 7
576   */
577  Sat,
578
579  /**
580   * Sunday.
581   * @since 7
582   */
583  Sun,
584}
585
586/**
587 * Sets the horizontal layout of elements.
588 * @since 7
589 */
590declare enum Direction {
591  /**
592   * Elements are laid out from left to right.
593   * @since 7
594   */
595  Ltr,
596
597  /**
598   * Elements are laid out from right to left.
599   * @since 7
600   */
601  Rtl,
602
603  /**
604   * Use the default layout direction.
605   * @since 7
606   */
607  Auto,
608}
609
610/**
611 * Used to set the status of the scroll bar.
612 * @since 7
613 */
614declare enum BarState {
615  /**
616   * Not displayed.
617   * @since 7
618   */
619  Off,
620
621  /**
622   * On-demand display (displayed when you touch it and disappears after 2 seconds).
623   * @since 7
624   */
625  Auto,
626
627  /**
628   * Resident display.
629   * @since 7
630   */
631  On,
632}
633
634/**
635 * Sliding effect
636 * @since 7
637 */
638declare enum EdgeEffect {
639  /**
640   * Elastic physical action, sliding to the edge can continue to slide for a distance based on the initial speed or touch event, and spring back when released.
641   * @since 7
642   */
643  Spring,
644
645  /**
646   * Fade.
647   * @since 7
648   */
649  Fade,
650
651  /**
652   * Sliding to the edge has no effect.
653   * @since 7
654   */
655  None,
656}
657
658/**
659 * Alignment enumeration description.
660 * @since 7
661 */
662declare enum Alignment {
663  /**
664   * Top Start.
665   * @since 7
666   */
667  TopStart,
668
669  /**
670   * The top is centered horizontally.
671   * @since 7
672   */
673  Top,
674
675  /**
676   * Top tail end.
677   * @since 7
678   */
679  TopEnd,
680
681  /**
682   * The starting end is centered longitudinally.
683   * @since 7
684   */
685  Start,
686
687  /**
688   * Center horizontal and vertical.
689   * @since 7
690   */
691  Center,
692
693  /**
694   * The tail end is centered longitudinally.
695   * @since 7
696   */
697  End,
698
699  /**
700   * Bottom starting end.
701   * @since 7
702   */
703  BottomStart,
704
705  /**
706   * The bottom is centered horizontally.
707   * @since 7
708   */
709  Bottom,
710
711  /**
712   * Bottom end.
713   * @since 7
714   */
715  BottomEnd,
716}
717
718/**
719 * TransitionType enumeration description.
720 * @since 7
721 */
722declare enum TransitionType {
723  /**
724   * Specifies that the current transition action takes effect in all change scenarios of the component.
725   * @since 7
726   */
727  All,
728
729  /**
730   * Specifies the insertion scenario in which the current transition action takes effect.
731   * @since 7
732   */
733  Insert,
734
735  /**
736   * Specifies the deletion scenario in which the current transition action takes effect.
737   * @since 7
738   */
739  Delete,
740}
741
742/**
743 * RelateType enumeration description
744 * @since 7
745 */
746declare enum RelateType {
747  /**
748   * Scales the current component to fill the parent component.
749   * @since 7
750   */
751  FILL,
752
753  /**
754   * Scales the current component to fit the parent component.
755   * @since 7
756   */
757  FIT,
758}
759
760/**
761 * Controls the display or hide of the current component
762 * @since 7
763 */
764declare enum Visibility {
765  /**
766   * Show
767   * @since 7
768   */
769  Visible,
770
771  /**
772   * Hide, but participate in layout for placeholder.
773   * @since 7
774   */
775  Hidden,
776
777  /**
778   * Hides but does not participate in layout and does not take place.
779   * @since 7
780   */
781  None,
782}
783
784/**
785 * LineCapStyle enumeration description
786 * @since 7
787 */
788declare enum LineCapStyle {
789  /**
790   * The two ends of the dividing line are parallel lines.
791   * @since 7
792   */
793  Butt,
794
795  /**
796   * The two ends of the dividing line are semicircles.
797   * @since 7
798   */
799  Round,
800
801  /**
802   * Extends half a circle at the end of the path with a width equal to half the line width and a height equal to the line width.
803   * @since 7
804   */
805  Square,
806}
807
808/**
809 * Axis enumeration description.
810 * @since 7
811 */
812declare enum Axis {
813  /**
814   * Longitudinal arrangement
815   * @since 7
816   */
817  Vertical,
818
819  /**
820   * Horizontal arrangement.
821   * @since 7
822   */
823  Horizontal,
824}
825
826/**
827 * HorizontalAlign enumeration description.
828 * @since 7
829 */
830declare enum HorizontalAlign {
831  /**
832   * Aligns the start end in the language direction.
833   * @since 7
834   */
835  Start,
836
837  /**
838   * Center alignment. The default alignment mode is used.
839   * @since 7
840   */
841  Center,
842
843  /**
844   * Aligns the ends in the language direction.
845   * @since 7
846   */
847  End,
848}
849
850/**
851 * FlexAlign enumeration description.
852 * @since 7
853 */
854declare enum FlexAlign {
855  /**
856   * The element is aligned at the head of the principal axis,
857   * the first element is aligned with the head of the row, and subsequent elements are aligned with the previous one.
858   * @since 7
859   */
860  Start,
861
862  /**
863   * The elements are centered in the direction of the principal axis,
864   * and the first element is the same distance from the beginning of the row as the last element is from the end of the row.
865   * @since 7
866   */
867  Center,
868
869  /**
870   * The element is aligned at the tail of the principal axis,
871   * the last element is aligned at the end of the row, and the other elements are aligned with the next.
872   * @since 7
873   */
874  End,
875
876  /**
877   * Elastic elements are evenly distributed in the direction of the Flex principal axis,
878   * with the same distance between adjacent elements.
879   * The first element aligns with the beginning of the line, and the last element aligns with the end of the line.
880   * @since 7
881   */
882  SpaceBetween,
883
884  /**
885   * Elastic elements are evenly distributed in the direction of the Flex principal axis,
886   *  with the same distance between adjacent elements. Half the distance between adjacent elements as the distance between
887   * the first element and the distance between the last element and the end of the row.
888   * @since 7
889   */
890  SpaceAround,
891
892  /**
893   * Elements in the Flex axis direction are evenly spaced.
894   * The spacing between adjacent elements, the spacing between the first element and the beginning of the row,
895   * and the spacing between the last element and the end of the row are the same.
896   * @since 7
897   */
898  SpaceEvenly,
899}
900
901/**
902 * ItemAlign enumeration description
903 * @since 7
904 */
905declare enum ItemAlign {
906  /**
907   * Use the default configuration in the Flex container.
908   * @since 7
909   */
910  Auto,
911
912  /**
913   * The element is in the Flex container with the cross-axis direction head aligned.
914   * @since 7
915   */
916  Start,
917
918  /**
919   * The element is centered in the Flex container with the cross axis direction aligned.
920   * @since 7
921   */
922  Center,
923
924  /**
925   * The element is bottom aligned in the Flex container with the cross axis direction.
926   * @since 7
927   */
928  End,
929
930  /**
931   * Element In the Flex container, the cross-axis direction text baseline is aligned.
932   * @since 7
933   */
934  Baseline,
935
936  /**
937   * Element In a Flex container, the fill is stretched across the axis and, when no dimension is set, to the container size.
938   * @since 7
939   */
940  Stretch,
941}
942
943/**
944 * FlexDirection enumeration description
945 * @since 7
946 */
947declare enum FlexDirection {
948  /**
949   * The main axis is consistent with the row direction as the layout mode.
950   * @since 7
951   */
952  Row,
953
954  /**
955   * The main axis is consistent with the column direction as the layout mode.
956   * @since 7
957   */
958  Column,
959
960  /**
961   * The layout is in the opposite direction to the Row direction.
962   * @since 7
963   */
964  RowReverse,
965
966  /**
967   * Layout in the opposite direction to the column.
968   * @since 7
969   */
970  ColumnReverse,
971}
972
973/**
974 * FlexWrap enumeration description
975 * @since 7
976 */
977declare enum FlexWrap {
978  /**
979   * The Flex container has a single row/column layout of elements, and children are allowed to go beyond the container.
980   * @since 7
981   */
982  NoWrap,
983
984  /**
985   * The elements of the Flex container are arranged in multiple rows or columns, and the sub-items are allowed to exceed the container.
986   * @since 7
987   */
988  Wrap,
989
990  /**
991   * The elements of the Flex container are arranged in reverse multiple rows/columns, and children are allowed to exceed the container.
992   * @since 7
993   */
994  WrapReverse,
995}
996
997/**
998 * VerticalAlign enumeration description
999 * @since 7
1000 */
1001declare enum VerticalAlign {
1002  /**
1003   * Top alignment.
1004   * @since 7
1005   */
1006  Top,
1007
1008  /**
1009   * Center alignment. The default alignment mode is used.
1010   * @since 7
1011   */
1012  Center,
1013
1014  /**
1015   * Bottom alignment.
1016   * @since 7
1017   */
1018  Bottom,
1019}
1020
1021/**
1022 * ImageRepeat enumeration description
1023 * @since 7
1024 */
1025declare enum ImageRepeat {
1026  /**
1027   * Do not draw the picture again.
1028   * @since 7
1029   */
1030  NoRepeat,
1031
1032  /**
1033   * Repeat the drawing only on the horizontal axis.
1034   * @since 7
1035   */
1036  X,
1037
1038  /**
1039   * Repeat the drawing only on the vertical axis.
1040   * @since 7
1041   */
1042  Y,
1043
1044  /**
1045   * Draw the picture repeatedly on both axes.
1046   * @since 7
1047   */
1048  XY,
1049}
1050
1051/**
1052 * ImageSize enumeration description
1053 * @since 7
1054 */
1055declare enum ImageSize {
1056  /**
1057   * Keep the scale of the original image unchanged.
1058   * @since 7
1059   */
1060  Auto,
1061
1062  /**
1063   * Default value. Keep the aspect ratio to zoom in or out the image so that both sides of the image are greater than or equal to the display boundary.
1064   * @since 7
1065   */
1066  Cover,
1067
1068  /**
1069   * Keep the aspect ratio to zoom out or zoom in so that the image is completely displayed within the display boundary.
1070   * @since 7
1071   */
1072  Contain,
1073}
1074
1075/**
1076 * GradientDirection enumeration description
1077 * @since 7
1078 */
1079declare enum GradientDirection {
1080  /**
1081   * Right to left.
1082   * @since 7
1083   */
1084  Left,
1085
1086  /**
1087   * From the bottom up.
1088   * @since 7
1089   */
1090  Top,
1091
1092  /**
1093   * From left to right.
1094   * @since 7
1095   */
1096  Right,
1097
1098  /**
1099   * From the top down.
1100   * @since 7
1101   */
1102  Bottom,
1103
1104  /**
1105   * Top Left
1106   * @since 7
1107   */
1108  LeftTop,
1109
1110  /**
1111   * Left Bottom
1112   * @since 7
1113   */
1114  LeftBottom,
1115
1116  /**
1117   * Right Top
1118   * @since 7
1119   */
1120  RightTop,
1121
1122  /**
1123   * Right Bottom
1124   * @since 7
1125   */
1126  RightBottom,
1127
1128  /**
1129   * None
1130   * @since 7
1131   */
1132  None,
1133}
1134
1135/**
1136 * SharedTransitionEffectType enumeration description
1137 * @since 7
1138 */
1139declare enum SharedTransitionEffectType {
1140  /**
1141   * The location of the destination page element remains unchanged, and you can configure the transparency animation. Currently,
1142   * only the static effect configured for redirecting to the target page takes effect.
1143   * @since 7
1144   */
1145  Static,
1146
1147  /**
1148   * Move the source page element to the destination page element location and scale it appropriately.
1149   * @since 7
1150   */
1151  Exchange,
1152}
1153
1154/**
1155 * Text style
1156 * @since 7
1157 */
1158declare enum FontStyle {
1159  /**
1160   * Default style.
1161   * @since 7
1162   */
1163  Normal,
1164
1165  /**
1166   * Italic style.
1167   * @since 7
1168   */
1169  Italic,
1170}
1171
1172/**
1173 * The font weight of the text
1174 * @since 7
1175 */
1176declare enum FontWeight {
1177  /**
1178   * Defines a lighter value than [Inherited Value]..
1179   * @since 7
1180   */
1181  Lighter,
1182
1183  /**
1184   * Normal font. Equivalent to a digital value of 400.
1185   * @since 7
1186   */
1187  Normal,
1188
1189  /**
1190   * Defines a more general value than [Inherited Value].
1191   * @since 7
1192   */
1193  Regular,
1194
1195  /**
1196   * Defines a value that is more centered than [Inherited Value].
1197   * @since 7
1198   */
1199  Medium,
1200
1201  /**
1202   * Bold. Equivalent to a numeric value of 700.
1203   * @since 7
1204   */
1205  Bold,
1206
1207  /**
1208   * Defines a value that is heavier than [Inherited Value].
1209   * @since 7
1210   */
1211  Bolder,
1212}
1213
1214/**
1215 * Alignment of text.
1216 * @since 7
1217 */
1218declare enum TextAlign {
1219  /**
1220   * Center the text.
1221   * @since 7
1222   */
1223  Center,
1224
1225  /**
1226   * The text is aligned in the same direction as the writing
1227   * @since 7
1228   */
1229  Start,
1230
1231  /**
1232   * The text is aligned in the opposite direction of writing
1233   * @since 7
1234   */
1235  End,
1236}
1237
1238/**
1239 * Declare how text overflows.
1240 * @since 7
1241 */
1242declare enum TextOverflow {
1243  /**
1244   * When the text is too long, it will be cropped and displayed.
1245   * @since 7
1246   */
1247
1248  Clip,
1249  /**
1250   * If the text is too long, the text that cannot be displayed shall be replaced by ellipsis.
1251   * @since 7
1252   */
1253
1254  Ellipsis,
1255
1256  /**
1257   * Text is not cropped when it is too long.
1258   * @since 7
1259   */
1260  None,
1261}
1262
1263/**
1264 * Type of text modifier.
1265 * @since 7
1266 */
1267declare enum TextDecorationType {
1268  /**
1269   * Do not use text decorative lines.
1270   * @since 7
1271   */
1272  None,
1273
1274  /**
1275   * Underline the words.
1276   * @since 7
1277   */
1278  Underline,
1279
1280  /**
1281   * Text is in all uppercase.
1282   * @since 7
1283   */
1284  Overline,
1285
1286  /**
1287   * A modifier line that passes through the text.
1288   * @since 7
1289   */
1290  LineThrough,
1291}
1292
1293/**
1294 * Letter type in text
1295 * @since 7
1296 */
1297declare enum TextCase {
1298  /**
1299   * The default is normal.
1300   * @since 7
1301   */
1302  Normal,
1303
1304  /**
1305   * The text is all lowercase.
1306   * @since 7
1307   */
1308  LowerCase,
1309
1310  /**
1311   * The text is all uppercase.
1312   * @since 7
1313   */
1314  UpperCase,
1315}
1316
1317/**
1318 * ResponseType for contextMenu
1319 * @since 8
1320 */
1321declare enum ResponseType {
1322  /**
1323   * Right click.
1324   * @since 8
1325   */
1326  RightClick,
1327
1328  /**
1329   * Long press.
1330   * @since 8
1331   */
1332  LongPress,
1333}
1334
1335/**
1336 * HoverEffect enumeration description
1337 * @since 8
1338 */
1339declare enum HoverEffect {
1340  /**
1341   * Default effect
1342   * @since 8
1343   */
1344  Auto,
1345
1346  /**
1347   * Zoom in and out effect
1348   * @since 8
1349   */
1350  Scale,
1351
1352  /**
1353   * Highlight effect
1354   * @since 8
1355   */
1356  Highlight,
1357
1358  /**
1359   * None effect
1360   * @since 8
1361   */
1362  None,
1363}
1364
1365/**
1366 * Placement enumeration description
1367 * @since 8
1368 */
1369declare enum Placement {
1370  /**
1371   * Left placement
1372   * @since 8
1373   */
1374  Left,
1375
1376  /**
1377   * Right placement
1378   * @since 8
1379   */
1380  Right,
1381
1382  /**
1383   * Top placement
1384   * @since 8
1385   */
1386  Top,
1387
1388  /**
1389   * Bottom placement
1390   * @since 8
1391   */
1392  Bottom,
1393
1394  /**
1395   * TopLeft placement
1396   * @since 8
1397   */
1398  TopLeft,
1399
1400  /**
1401   * TopRight placement
1402   * @since 8
1403   */
1404  TopRight,
1405
1406  /**
1407   * BottomLeft placement
1408   * @since 8
1409   */
1410  BottomLeft,
1411
1412  /**
1413   * BottomRight placement
1414   * @since 8
1415   */
1416  BottomRight,
1417}
1418