1/* 2 * Copyright (c) 2021-2023 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 */ 20/** 21 * common enum of color 22 * @form 23 * @since 9 24 */ 25declare enum Color { 26 /** 27 * White. 28 * @since 7 29 */ 30 /** 31 * White. 32 * @form 33 * @since 9 34 */ 35 White, 36 37 /** 38 * Black. 39 * @since 7 40 */ 41 /** 42 * Black. 43 * @form 44 * @since 9 45 */ 46 Black, 47 48 /** 49 * Blue. 50 * @since 7 51 */ 52 /** 53 * Blue. 54 * @form 55 * @since 9 56 */ 57 Blue, 58 59 /** 60 * Brown. 61 * @since 7 62 */ 63 /** 64 * Brown. 65 * @form 66 * @since 9 67 */ 68 Brown, 69 70 /** 71 * Gray. 72 * @since 7 73 */ 74 /** 75 * Gray. 76 * @form 77 * @since 9 78 */ 79 Gray, 80 81 /** 82 * Green. 83 * @since 7 84 */ 85 /** 86 * Green. 87 * @form 88 * @since 9 89 */ 90 Green, 91 92 /** 93 * Grey. 94 * @since 7 95 */ 96 /** 97 * Grey. 98 * @form 99 * @since 9 100 */ 101 Grey, 102 103 /** 104 * Orange. 105 * @since 7 106 */ 107 /** 108 * Orange. 109 * @form 110 * @since 9 111 */ 112 Orange, 113 114 /** 115 * color. 116 * @since 7 117 */ 118 /** 119 * color. 120 * @form 121 * @since 9 122 */ 123 Pink, 124 125 /** 126 * Red. 127 * @since 7 128 */ 129 /** 130 * Red. 131 * @form 132 * @since 9 133 */ 134 Red, 135 136 /** 137 * Yellow. 138 * @since 7 139 */ 140 /** 141 * Yellow. 142 * @form 143 * @since 9 144 */ 145 Yellow, 146 147 /** 148 * Transparent. 149 * @form 150 * @since 9 151 */ 152 Transparent, 153} 154 155/** 156 * Image display mode 157 * @since 7 158 */ 159/** 160 * Image display mode. 161 * @form 162 * @since 9 163 */ 164declare enum ImageFit { 165 /** 166 * Keep the aspect ratio to zoom out or zoom in so that the image is completely displayed within the display boundary. 167 * @since 7 168 */ 169 /** 170 * Keep the aspect ratio to zoom out or zoom in so that the image is completely displayed within the display boundary. 171 * @form 172 * @since 9 173 */ 174 Contain, 175 176 /** 177 * 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. 178 * @since 7 179 */ 180 /** 181 * 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. 182 * @form 183 * @since 9 184 */ 185 Cover, 186 187 /** 188 * Adaptive display 189 * @since 7 190 */ 191 /** 192 * Adaptive display 193 * @form 194 * @since 9 195 */ 196 Auto, 197 198 /** 199 * Zoom in or out without maintaining the aspect ratio so that the image fills the display boundary. 200 * @since 7 201 */ 202 /** 203 * Zoom in or out without maintaining the aspect ratio so that the image fills the display boundary. 204 * @form 205 * @since 9 206 */ 207 Fill, 208 209 /** 210 * Keep the aspect ratio displayed, and the image zooms out or remains unchanged. 211 * @since 7 212 */ 213 /** 214 * Keep the aspect ratio displayed, and the image zooms out or remains unchanged. 215 * @form 216 * @since 9 217 */ 218 ScaleDown, 219 220 /** 221 * Keep the original size and display it in the center. 222 * @since 7 223 */ 224 /** 225 * Keep the original size and display it in the center. 226 * @form 227 * @since 9 228 */ 229 None, 230} 231 232/** 233 * Border Style 234 * @since 7 235 */ 236/** 237 * Border Style 238 * @form 239 * @since 9 240 */ 241declare enum BorderStyle { 242 /** 243 * Displays as a series of dots with a radius of half the borderWidth. 244 * @since 7 245 */ 246 /** 247 * Displays as a series of dots with a radius of half the borderWidth. 248 * @form 249 * @since 9 250 */ 251 Dotted, 252 253 /** 254 * Shows as a series of short square dashed lines. 255 * @since 7 256 */ 257 /** 258 * Shows as a series of short square dashed lines. 259 * @form 260 * @since 9 261 */ 262 Dashed, 263 264 /** 265 * Shows as a solid line. 266 * @since 7 267 */ 268 /** 269 * Shows as a solid line. 270 * @form 271 * @since 9 272 */ 273 Solid, 274} 275 276/** 277 * Line Join Style 278 * @since 7 279 */ 280/** 281 * Line Join Style 282 * @form 283 * @since 9 284 */ 285declare enum LineJoinStyle { 286 /** 287 * Connect path segments using bevels. 288 * @since 7 289 */ 290 /** 291 * Connect path segments using bevels. 292 * @form 293 * @since 9 294 */ 295 Miter, 296 297 /** 298 * Connect path segments using sharp corners. 299 * @since 7 300 */ 301 /** 302 * Connect path segments using sharp corners. 303 * @form 304 * @since 9 305 */ 306 Round, 307 308 /** 309 * Connect path segments using fillets. 310 * @since 7 311 */ 312 /** 313 * Connect path segments using fillets. 314 * @form 315 * @since 9 316 */ 317 Bevel, 318} 319 320/** 321 * Function Called by Touch 322 * @since 7 323 */ 324/** 325 * Function Called by Touch 326 * @form 327 * @since 9 328 */ 329declare enum TouchType { 330 /** 331 * Triggered when the finger is pressed. 332 * @since 7 333 */ 334 /** 335 * Triggered when the finger is pressed. 336 * @form 337 * @since 9 338 */ 339 Down, 340 341 /** 342 * Triggered when the finger is raised. 343 * @since 7 344 */ 345 /** 346 * Triggered when the finger is raised. 347 * @form 348 * @since 9 349 */ 350 Up, 351 352 /** 353 * Triggered when the finger presses on the screen. 354 * @since 7 355 */ 356 /** 357 * Triggered when the finger presses on the screen. 358 * @form 359 * @since 9 360 */ 361 Move, 362 363 /** 364 * Triggers when the touch event cancels. 365 * @since 7 366 */ 367 /** 368 * Triggers when the touch event cancels. 369 * @form 370 * @since 9 371 */ 372 Cancel, 373} 374 375/** 376 * Function Called by Mouse 377 * @since 8 378 */ 379/** 380 * Function Called by Mouse 381 * @form 382 * @since 9 383 */ 384declare enum MouseButton { 385 /** 386 * Mouse Left Button. 387 * @since 8 388 */ 389 /** 390 * Mouse Left Button. 391 * @form 392 * @since 9 393 */ 394 Left, 395 396 /** 397 * Mouse Right Button. 398 * @since 8 399 */ 400 /** 401 * Mouse Right Button. 402 * @form 403 * @since 9 404 */ 405 Right, 406 407 /** 408 * Mouse Middle Button. 409 * @since 8 410 */ 411 /** 412 * Mouse Middle Button. 413 * @form 414 * @since 9 415 */ 416 Middle, 417 418 /** 419 * Mouse Back Button. 420 * @since 8 421 */ 422 /** 423 * Mouse Back Button. 424 * @form 425 * @since 9 426 */ 427 Back, 428 429 /** 430 * Mouse Forward Button. 431 * @since 8 432 */ 433 /** 434 * Mouse Forward Button. 435 * @form 436 * @since 9 437 */ 438 Forward, 439 440 /** 441 * Mouse None Button. 442 * @since 8 443 */ 444 /** 445 * Mouse None Button. 446 * @form 447 * @since 9 448 */ 449 None, 450} 451 452/** 453 * Function Called by Mouse 454 * @since 8 455 */ 456/** 457 * Function Called by Mouse 458 * @form 459 * @since 9 460 */ 461declare enum MouseAction { 462 /** 463 * Triggered when the mouse is pressed. 464 * @since 8 465 */ 466 /** 467 * Triggered when the mouse is pressed. 468 * @form 469 * @since 9 470 */ 471 Press, 472 473 /** 474 * Triggered when the mouse is released. 475 * @since 8 476 */ 477 /** 478 * Triggered when the mouse is released. 479 * @form 480 * @since 9 481 */ 482 Release, 483 484 /** 485 * Triggered when the mouse is Moved. 486 * @since 8 487 */ 488 /** 489 * Triggered when the mouse is Moved. 490 * @form 491 * @since 9 492 */ 493 Move, 494 495 /** 496 * Triggered when the mouse is Hovered. 497 * @since 8 498 */ 499 /** 500 * Triggered when the mouse is Hovered. 501 * @form 502 * @since 9 503 */ 504 Hover 505} 506 507/** 508 * Animation status. 509 * @since 7 510 */ 511/** 512 * Animation status. 513 * @form 514 * @since 9 515 */ 516declare enum AnimationStatus { 517 /** 518 * Initial state of the animation. 519 * @since 7 520 */ 521 /** 522 * Initial state of the animation. 523 * @form 524 * @since 9 525 */ 526 Initial, 527 528 /** 529 * The animation is playing. 530 * @since 7 531 */ 532 /** 533 * The animation is playing. 534 * @form 535 * @since 9 536 */ 537 Running, 538 539 /** 540 * The animation is paused. 541 * @since 7 542 */ 543 /** 544 * The animation is paused. 545 * @form 546 * @since 9 547 */ 548 Paused, 549 550 /** 551 * The animation is stopped. 552 * @since 7 553 */ 554 /** 555 * The animation is stopped. 556 * @form 557 * @since 9 558 */ 559 Stopped, 560} 561 562/** 563 * Sets the animation playback mode. By default, the animation starts to play again after the playback is complete. 564 * @since 7 565 */ 566/** 567 * Sets the animation playback mode. By default, the animation starts to play again after the playback is complete. 568 * @form 569 * @since 9 570 */ 571declare enum Curve { 572 /** 573 * Indicates that the speed of the animation is the same from start to finish. 574 * @since 7 575 */ 576 /** 577 * Indicates that the speed of the animation is the same from start to finish. 578 * @form 579 * @since 9 580 */ 581 Linear, 582 583 /** 584 * 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). 585 * @since 7 586 */ 587 /** 588 * 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). 589 * @form 590 * @since 9 591 */ 592 Ease, 593 594 /** 595 * Indicates that the animation starts at a low speed, CubicBezier(0.42, 0.0, 1.0, 1.0). 596 * @since 7 597 */ 598 /** 599 * Indicates that the animation starts at a low speed, CubicBezier(0.42, 0.0, 1.0, 1.0). 600 * @form 601 * @since 9 602 */ 603 EaseIn, 604 605 /** 606 * Indicates that the animation ends at a low speed, CubicBezier(0.0, 0.0, 0.78, 1.0). 607 * @since 7 608 */ 609 /** 610 * Indicates that the animation ends at a low speed, CubicBezier(0.0, 0.0, 0.78, 1.0). 611 * @form 612 * @since 9 613 */ 614 EaseOut, 615 616 /** 617 * Indicates that the animation starts and ends at a slow speed, CubicBezier(0.42, 0.0, 0.78, 1.0). 618 * @since 7 619 */ 620 /** 621 * Indicates that the animation starts and ends at a slow speed, CubicBezier(0.42, 0.0, 0.78, 1.0). 622 * @form 623 * @since 9 624 */ 625 EaseInOut, 626 627 /** 628 * Slow-in, fast-out 629 * @since 7 630 */ 631 /** 632 * Slow-in, fast-out 633 * @form 634 * @since 9 635 */ 636 FastOutSlowIn, 637 638 /** 639 * Linear Out Slow In 640 * @since 7 641 */ 642 /** 643 * Linear Out Slow In 644 * @form 645 * @since 9 646 */ 647 LinearOutSlowIn, 648 649 /** 650 * Fast Out Linear In. 651 * @since 7 652 */ 653 /** 654 * Fast Out Linear In. 655 * @form 656 * @since 9 657 */ 658 FastOutLinearIn, 659 660 /** 661 * Extreme Deceleration. 662 * @since 7 663 */ 664 /** 665 * Extreme Deceleration. 666 * @form 667 * @since 9 668 */ 669 ExtremeDeceleration, 670 671 /** 672 * Sharp. 673 * @since 7 674 */ 675 /** 676 * Sharp. 677 * @form 678 * @since 9 679 */ 680 Sharp, 681 682 /** 683 * Rhythm. 684 * @since 7 685 */ 686 /** 687 * Rhythm. 688 * @form 689 * @since 9 690 */ 691 Rhythm, 692 693 /** 694 * Smooth. 695 * @since 7 696 */ 697 /** 698 * Smooth. 699 * @form 700 * @since 9 701 */ 702 Smooth, 703 704 /** 705 * Damping curve, CubicBezier(0.2, 0.0, 0.2, 1.0). 706 * @since 7 707 */ 708 /** 709 * Damping curve, CubicBezier(0.2, 0.0, 0.2, 1.0). 710 * @form 711 * @since 9 712 */ 713 Friction, 714} 715 716/** 717 * Sets the state before and after the animation starts. 718 * @since 7 719 */ 720/** 721 * Sets the state before and after the animation starts. 722 * @form 723 * @since 9 724 */ 725declare enum FillMode { 726 /** 727 * Restores to the initial state after the playback is complete. 728 * @since 7 729 */ 730 /** 731 * Restores to the initial state after the playback is complete. 732 * @form 733 * @since 9 734 */ 735 None, 736 737 /** 738 * Retains the state at the end of the animation when the playback is complete. 739 * @since 7 740 */ 741 /** 742 * Retains the state at the end of the animation when the playback is complete. 743 * @form 744 * @since 9 745 */ 746 Forwards, 747 748 /** 749 * Applies the start attribute value for the period specified by animation-delay before the animation is displayed. 750 * @since 7 751 */ 752 /** 753 * Applies the start attribute value for the period specified by animation-delay before the animation is displayed. 754 * @form 755 * @since 9 756 */ 757 Backwards, 758 759 /** 760 * Both forward and backward fill modes are applied. 761 * @since 7 762 */ 763 /** 764 * Both forward and backward fill modes are applied. 765 * @form 766 * @since 9 767 */ 768 Both, 769} 770 771/** 772 * Play Mode 773 * @since 7 774 */ 775/** 776 * Play Mode 777 * @form 778 * @since 9 779 */ 780declare enum PlayMode { 781 /** 782 * The animation plays normally. 783 * @since 7 784 */ 785 /** 786 * The animation plays normally. 787 * @form 788 * @since 9 789 */ 790 Normal, 791 792 /** 793 * The animation plays backwards. 794 * @since 7 795 */ 796 /** 797 * The animation plays backwards. 798 * @form 799 * @since 9 800 */ 801 Reverse, 802 803 /** 804 * The animation plays forward on odd numbers (1, 3, 7...) and backward on even numbers (2, 4, 6...). 805 * @since 7 806 */ 807 /** 808 * The animation plays forward on odd numbers (1, 3, 7...) and backward on even numbers (2, 4, 6...). 809 * @form 810 * @since 9 811 */ 812 Alternate, 813 814 /** 815 * The animation plays backwards on odd numbers (1, 3, 7...) and forwards on even numbers (2, 4, 6...).. 816 * @since 7 817 */ 818 /** 819 * The animation plays backwards on odd numbers (1, 3, 7...) and forwards on even numbers (2, 4, 6...).. 820 * @form 821 * @since 9 822 */ 823 AlternateReverse, 824} 825 826/** 827 * Type of a key. 828 * @since 7 829 */ 830/** 831 * Type of a key. 832 * @form 833 * @since 9 834 */ 835declare enum KeyType { 836 /** 837 * Press the key. 838 * @since 7 839 */ 840 /** 841 * Press the key. 842 * @form 843 * @since 9 844 */ 845 Down, 846 847 /** 848 * The key is released. 849 * @since 7 850 */ 851 /** 852 * The key is released. 853 * @form 854 * @since 9 855 */ 856 Up, 857} 858 859/** 860 * Type of the input device that triggers the current key. 861 * @since 7 862 */ 863/** 864 * Type of the input device that triggers the current key. 865 * @form 866 * @since 9 867 */ 868declare enum KeySource { 869 /** 870 * The input device type is unknown. 871 * @since 7 872 */ 873 /** 874 * The input device type is unknown. 875 * @form 876 * @since 9 877 */ 878 Unknown, 879 880 /** 881 * Set Device Type to Keyboard. 882 * @since 7 883 */ 884 /** 885 * Set Device Type to Keyboard. 886 * @form 887 * @since 9 888 */ 889 Keyboard, 890} 891 892/** 893 * Edge. 894 * @since 7 895 */ 896/** 897 * Edge. 898 * @form 899 * @since 9 900 */ 901declare enum Edge { 902 /** 903 * The top is centered horizontally. 904 * @since 7 905 */ 906 /** 907 * The top is centered horizontally. 908 * @form 909 * @since 9 910 */ 911 Top, 912 913 /** 914 * Center horizontal and vertical. 915 * @since 7 916 * @deprecated since 9 917 */ 918 Center, 919 920 /** 921 * The bottom is centered horizontally. 922 * @since 7 923 */ 924 /** 925 * The bottom is centered horizontally. 926 * @form 927 * @since 9 928 */ 929 Bottom, 930 931 /** 932 * Cross axis direction text baseline alignment. 933 * @since 7 934 * @deprecated since 9 935 */ 936 Baseline, 937 938 /** 939 * Align the head of the cross axis direction. 940 * @since 7 941 */ 942 /** 943 * Align the head of the cross axis direction. 944 * @form 945 * @since 9 946 */ 947 Start, 948 949 /** 950 * Middle 951 * @since 7 952 * @deprecated since 9 953 */ 954 Middle, 955 956 /** 957 * Align the head of the cross axis direction. 958 * @since 7 959 */ 960 /** 961 * Align the head of the cross axis direction. 962 * @form 963 * @since 9 964 */ 965 End, 966} 967 968/** 969 * Set Weekend 970 * @since 7 971 */ 972/** 973 * Set Weekend 974 * @form 975 * @since 9 976 */ 977declare enum Week { 978 /** 979 * Monday. 980 * @since 7 981 */ 982 /** 983 * Monday. 984 * @form 985 * @since 9 986 */ 987 Mon, 988 989 /** 990 * Tuesday. 991 * @since 7 992 */ 993 /** 994 * Tuesday. 995 * @form 996 * @since 9 997 */ 998 Tue, 999 1000 /** 1001 * Wednesday. 1002 * @since 7 1003 */ 1004 /** 1005 * Wednesday. 1006 * @form 1007 * @since 9 1008 */ 1009 Wed, 1010 1011 /** 1012 * Thursday. 1013 * @since 7 1014 */ 1015 /** 1016 * Thursday. 1017 * @form 1018 * @since 9 1019 */ 1020 Thur, 1021 1022 /** 1023 * Friday. 1024 * @since 7 1025 */ 1026 /** 1027 * Friday. 1028 * @form 1029 * @since 9 1030 */ 1031 Fri, 1032 1033 /** 1034 * Saturday. 1035 * @since 7 1036 */ 1037 /** 1038 * Saturday. 1039 * @form 1040 * @since 9 1041 */ 1042 Sat, 1043 1044 /** 1045 * Sunday. 1046 * @since 7 1047 */ 1048 /** 1049 * Sunday. 1050 * @form 1051 * @since 9 1052 */ 1053 Sun, 1054} 1055 1056/** 1057 * Sets the horizontal layout of elements. 1058 * @since 7 1059 */ 1060/** 1061 * Sets the horizontal layout of elements. 1062 * @form 1063 * @since 9 1064 */ 1065declare enum Direction { 1066 /** 1067 * Elements are laid out from left to right. 1068 * @since 7 1069 */ 1070 /** 1071 * Elements are laid out from left to right. 1072 * @form 1073 * @since 9 1074 */ 1075 Ltr, 1076 1077 /** 1078 * Elements are laid out from right to left. 1079 * @since 7 1080 */ 1081 /** 1082 * Elements are laid out from right to left. 1083 * @form 1084 * @since 9 1085 */ 1086 Rtl, 1087 1088 /** 1089 * Use the default layout direction. 1090 * @since 7 1091 */ 1092 /** 1093 * Use the default layout direction. 1094 * @form 1095 * @since 9 1096 */ 1097 Auto, 1098} 1099 1100/** 1101 * Used to set the status of the scroll bar. 1102 * @since 7 1103 */ 1104/** 1105 * Used to set the status of the scroll bar. 1106 * @form 1107 * @since 9 1108 */ 1109declare enum BarState { 1110 /** 1111 * Not displayed. 1112 * @since 7 1113 */ 1114 /** 1115 * Not displayed. 1116 * @form 1117 * @since 9 1118 */ 1119 Off, 1120 1121 /** 1122 * On-demand display (displayed when you touch it and disappears after 2 seconds). 1123 * @since 7 1124 */ 1125 /** 1126 * On-demand display (displayed when you touch it and disappears after 2 seconds). 1127 * @form 1128 * @since 9 1129 */ 1130 Auto, 1131 1132 /** 1133 * Resident display. 1134 * @since 7 1135 */ 1136 /** 1137 * Resident display. 1138 * @form 1139 * @since 9 1140 */ 1141 On, 1142} 1143 1144/** 1145 * Sliding effect 1146 * @since 7 1147 */ 1148/** 1149 * Sliding effect 1150 * @form 1151 * @since 9 1152 */ 1153declare enum EdgeEffect { 1154 /** 1155 * 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. 1156 * @since 7 1157 */ 1158 /** 1159 * 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. 1160 * @form 1161 * @since 9 1162 */ 1163 Spring, 1164 1165 /** 1166 * Fade. 1167 * @since 7 1168 */ 1169 /** 1170 * Fade. 1171 * @form 1172 * @since 9 1173 */ 1174 Fade, 1175 1176 /** 1177 * Sliding to the edge has no effect. 1178 * @since 7 1179 */ 1180 /** 1181 * Sliding to the edge has no effect. 1182 * @form 1183 * @since 9 1184 */ 1185 None, 1186} 1187 1188/** 1189 * Alignment enumeration description. 1190 * @since 7 1191 */ 1192/** 1193 * Alignment enumeration description. 1194 * @form 1195 * @since 9 1196 */ 1197declare enum Alignment { 1198 /** 1199 * Top Start. 1200 * @since 7 1201 */ 1202 /** 1203 * Top Start. 1204 * @form 1205 * @since 9 1206 */ 1207 TopStart, 1208 1209 /** 1210 * The top is centered horizontally. 1211 * @since 7 1212 */ 1213 /** 1214 * The top is centered horizontally. 1215 * @form 1216 * @since 9 1217 */ 1218 Top, 1219 1220 /** 1221 * Top tail end. 1222 * @since 7 1223 */ 1224 /** 1225 * Top tail end. 1226 * @form 1227 * @since 9 1228 */ 1229 TopEnd, 1230 1231 /** 1232 * The starting end is centered longitudinally. 1233 * @since 7 1234 */ 1235 /** 1236 * The starting end is centered longitudinally. 1237 * @form 1238 * @since 9 1239 */ 1240 Start, 1241 1242 /** 1243 * Center horizontal and vertical. 1244 * @since 7 1245 */ 1246 /** 1247 * Center horizontal and vertical. 1248 * @form 1249 * @since 9 1250 */ 1251 Center, 1252 1253 /** 1254 * The tail end is centered longitudinally. 1255 * @since 7 1256 */ 1257 /** 1258 * The tail end is centered longitudinally. 1259 * @form 1260 * @since 9 1261 */ 1262 End, 1263 1264 /** 1265 * Bottom starting end. 1266 * @since 7 1267 */ 1268 /** 1269 * Bottom starting end. 1270 * @form 1271 * @since 9 1272 */ 1273 BottomStart, 1274 1275 /** 1276 * The bottom is centered horizontally. 1277 * @since 7 1278 */ 1279 /** 1280 * The bottom is centered horizontally. 1281 * @form 1282 * @since 9 1283 */ 1284 Bottom, 1285 1286 /** 1287 * Bottom end. 1288 * @since 7 1289 */ 1290 /** 1291 * Bottom end. 1292 * @form 1293 * @since 9 1294 */ 1295 BottomEnd, 1296} 1297 1298/** 1299 * TransitionType enumeration description. 1300 * @since 7 1301 */ 1302/** 1303 * TransitionType enumeration description. 1304 * @form 1305 * @since 9 1306 */ 1307declare enum TransitionType { 1308 /** 1309 * Specifies that the current transition action takes effect in all change scenarios of the component. 1310 * @since 7 1311 */ 1312 /** 1313 * Specifies that the current transition action takes effect in all change scenarios of the component. 1314 * @form 1315 * @since 9 1316 */ 1317 All, 1318 1319 /** 1320 * Specifies the insertion scenario in which the current transition action takes effect. 1321 * @since 7 1322 */ 1323 /** 1324 * Specifies the insertion scenario in which the current transition action takes effect. 1325 * @form 1326 * @since 9 1327 */ 1328 Insert, 1329 1330 /** 1331 * Specifies the deletion scenario in which the current transition action takes effect. 1332 * @since 7 1333 */ 1334 /** 1335 * Specifies the deletion scenario in which the current transition action takes effect. 1336 * @form 1337 * @since 9 1338 */ 1339 Delete, 1340} 1341 1342/** 1343 * RelateType enumeration description 1344 * @since 7 1345 */ 1346/** 1347 * RelateType enumeration description 1348 * @form 1349 * @since 9 1350 */ 1351declare enum RelateType { 1352 /** 1353 * Scales the current component to fill the parent component. 1354 * @since 7 1355 */ 1356 /** 1357 * Scales the current component to fill the parent component. 1358 * @form 1359 * @since 9 1360 */ 1361 FILL, 1362 1363 /** 1364 * Scales the current component to fit the parent component. 1365 * @since 7 1366 */ 1367 /** 1368 * Scales the current component to fit the parent component. 1369 * @form 1370 * @since 9 1371 */ 1372 FIT, 1373} 1374 1375/** 1376 * Controls the display or hide of the current component 1377 * @since 7 1378 */ 1379/** 1380 * Controls the display or hide of the current component 1381 * @form 1382 * @since 9 1383 */ 1384declare enum Visibility { 1385 /** 1386 * Show 1387 * @since 7 1388 */ 1389 /** 1390 * Show 1391 * @form 1392 * @since 9 1393 */ 1394 Visible, 1395 1396 /** 1397 * Hide, but participate in layout for placeholder. 1398 * @since 7 1399 */ 1400 /** 1401 * Hide, but participate in layout for placeholder. 1402 * @form 1403 * @since 9 1404 */ 1405 Hidden, 1406 1407 /** 1408 * Hides but does not participate in layout and does not take place. 1409 * @since 7 1410 */ 1411 /** 1412 * Hides but does not participate in layout and does not take place. 1413 * @form 1414 * @since 9 1415 */ 1416 None, 1417} 1418 1419/** 1420 * LineCapStyle enumeration description 1421 * @since 7 1422 */ 1423/** 1424 * LineCapStyle enumeration description 1425 * @form 1426 * @since 9 1427 */ 1428declare enum LineCapStyle { 1429 /** 1430 * The two ends of the dividing line are parallel lines. 1431 * @since 7 1432 */ 1433 /** 1434 * The two ends of the dividing line are parallel lines. 1435 * @form 1436 * @since 9 1437 */ 1438 Butt, 1439 1440 /** 1441 * The two ends of the dividing line are semicircles. 1442 * @since 7 1443 */ 1444 /** 1445 * The two ends of the dividing line are semicircles. 1446 * @form 1447 * @since 9 1448 */ 1449 Round, 1450 1451 /** 1452 * 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. 1453 * @since 7 1454 */ 1455 /** 1456 * 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. 1457 * @form 1458 * @since 9 1459 */ 1460 Square, 1461} 1462 1463/** 1464 * Axis enumeration description. 1465 * @since 7 1466 */ 1467/** 1468 * Axis enumeration description. 1469 * @form 1470 * @since 9 1471 */ 1472declare enum Axis { 1473 /** 1474 * Longitudinal arrangement 1475 * @since 7 1476 */ 1477 /** 1478 * Longitudinal arrangement 1479 * @form 1480 * @since 9 1481 */ 1482 Vertical, 1483 1484 /** 1485 * Horizontal arrangement. 1486 * @since 7 1487 */ 1488 /** 1489 * Horizontal arrangement. 1490 * @form 1491 * @since 9 1492 */ 1493 Horizontal, 1494} 1495 1496/** 1497 * HorizontalAlign enumeration description. 1498 * @since 7 1499 */ 1500/** 1501 * HorizontalAlign enumeration description. 1502 * @form 1503 * @since 9 1504 */ 1505declare enum HorizontalAlign { 1506 /** 1507 * Aligns the start end in the language direction. 1508 * @since 7 1509 */ 1510 /** 1511 * Aligns the start end in the language direction. 1512 * @form 1513 * @since 9 1514 */ 1515 Start, 1516 1517 /** 1518 * Center alignment. The default alignment mode is used. 1519 * @since 7 1520 */ 1521 /** 1522 * Center alignment. The default alignment mode is used. 1523 * @form 1524 * @since 9 1525 */ 1526 Center, 1527 1528 /** 1529 * Aligns the ends in the language direction. 1530 * @since 7 1531 */ 1532 /** 1533 * Aligns the ends in the language direction. 1534 * @form 1535 * @since 9 1536 */ 1537 End, 1538} 1539 1540/** 1541 * FlexAlign enumeration description. 1542 * @since 7 1543 */ 1544/** 1545 * FlexAlign enumeration description. 1546 * @form 1547 * @since 9 1548 */ 1549declare enum FlexAlign { 1550 /** 1551 * The element is aligned at the head of the principal axis, 1552 * the first element is aligned with the head of the row, and subsequent elements are aligned with the previous one. 1553 * @since 7 1554 */ 1555 /** 1556 * The element is aligned at the head of the principal axis, 1557 * the first element is aligned with the head of the row, and subsequent elements are aligned with the previous one. 1558 * @form 1559 * @since 9 1560 */ 1561 Start, 1562 1563 /** 1564 * The elements are centered in the direction of the principal axis, 1565 * 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. 1566 * @since 7 1567 */ 1568 /** 1569 * The elements are centered in the direction of the principal axis, 1570 * 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. 1571 * @form 1572 * @since 9 1573 */ 1574 Center, 1575 1576 /** 1577 * The element is aligned at the tail of the principal axis, 1578 * the last element is aligned at the end of the row, and the other elements are aligned with the next. 1579 * @since 7 1580 */ 1581 /** 1582 * The element is aligned at the tail of the principal axis, 1583 * the last element is aligned at the end of the row, and the other elements are aligned with the next. 1584 * @form 1585 * @since 9 1586 */ 1587 End, 1588 1589 /** 1590 * Elastic elements are evenly distributed in the direction of the Flex principal axis, 1591 * with the same distance between adjacent elements. 1592 * The first element aligns with the beginning of the line, and the last element aligns with the end of the line. 1593 * @since 7 1594 */ 1595 /** 1596 * Elastic elements are evenly distributed in the direction of the Flex principal axis, 1597 * with the same distance between adjacent elements. 1598 * The first element aligns with the beginning of the line, and the last element aligns with the end of the line. 1599 * @form 1600 * @since 9 1601 */ 1602 SpaceBetween, 1603 1604 /** 1605 * Elastic elements are evenly distributed in the direction of the Flex principal axis, 1606 * with the same distance between adjacent elements. Half the distance between adjacent elements as the distance between 1607 * the first element and the distance between the last element and the end of the row. 1608 * @since 7 1609 */ 1610 /** 1611 * Elastic elements are evenly distributed in the direction of the Flex principal axis, 1612 * with the same distance between adjacent elements. Half the distance between adjacent elements as the distance between 1613 * the first element and the distance between the last element and the end of the row. 1614 * @form 1615 * @since 9 1616 */ 1617 SpaceAround, 1618 1619 /** 1620 * Elements in the Flex axis direction are evenly spaced. 1621 * The spacing between adjacent elements, the spacing between the first element and the beginning of the row, 1622 * and the spacing between the last element and the end of the row are the same. 1623 * @since 7 1624 */ 1625 /** 1626 * Elements in the Flex axis direction are evenly spaced. 1627 * The spacing between adjacent elements, the spacing between the first element and the beginning of the row, 1628 * and the spacing between the last element and the end of the row are the same. 1629 * @form 1630 * @since 9 1631 */ 1632 SpaceEvenly, 1633} 1634 1635/** 1636 * ItemAlign enumeration description 1637 * @since 7 1638 */ 1639/** 1640 * ItemAlign enumeration description 1641 * @form 1642 * @since 9 1643 */ 1644declare enum ItemAlign { 1645 /** 1646 * Use the default configuration in the Flex container. 1647 * @since 7 1648 */ 1649 /** 1650 * Use the default configuration in the Flex container. 1651 * @form 1652 * @since 9 1653 */ 1654 Auto, 1655 1656 /** 1657 * The element is in the Flex container with the cross-axis direction head aligned. 1658 * @since 7 1659 */ 1660 /** 1661 * The element is in the Flex container with the cross-axis direction head aligned. 1662 * @form 1663 * @since 9 1664 */ 1665 Start, 1666 1667 /** 1668 * The element is centered in the Flex container with the cross axis direction aligned. 1669 * @since 7 1670 */ 1671 /** 1672 * The element is centered in the Flex container with the cross axis direction aligned. 1673 * @form 1674 * @since 9 1675 */ 1676 Center, 1677 1678 /** 1679 * The element is bottom aligned in the Flex container with the cross axis direction. 1680 * @since 7 1681 */ 1682 /** 1683 * The element is bottom aligned in the Flex container with the cross axis direction. 1684 * @form 1685 * @since 9 1686 */ 1687 End, 1688 1689 /** 1690 * Element In the Flex container, the cross-axis direction text baseline is aligned. 1691 * @since 7 1692 */ 1693 /** 1694 * Element In the Flex container, the cross-axis direction text baseline is aligned. 1695 * @form 1696 * @since 9 1697 */ 1698 Baseline, 1699 1700 /** 1701 * Element In a Flex container, the fill is stretched across the axis and, when no dimension is set, to the container size. 1702 * @since 7 1703 */ 1704 /** 1705 * Element In a Flex container, the fill is stretched across the axis and, when no dimension is set, to the container size. 1706 * @form 1707 * @since 9 1708 */ 1709 Stretch, 1710} 1711 1712/** 1713 * FlexDirection enumeration description 1714 * @since 7 1715 */ 1716/** 1717 * FlexDirection enumeration description 1718 * @form 1719 * @since 9 1720 */ 1721declare enum FlexDirection { 1722 /** 1723 * The main axis is consistent with the row direction as the layout mode. 1724 * @since 7 1725 */ 1726 /** 1727 * The main axis is consistent with the row direction as the layout mode. 1728 * @form 1729 * @since 9 1730 */ 1731 Row, 1732 1733 /** 1734 * The main axis is consistent with the column direction as the layout mode. 1735 * @since 7 1736 */ 1737 /** 1738 * The main axis is consistent with the column direction as the layout mode. 1739 * @form 1740 * @since 9 1741 */ 1742 Column, 1743 1744 /** 1745 * The layout is in the opposite direction to the Row direction. 1746 * @since 7 1747 */ 1748 /** 1749 * The layout is in the opposite direction to the Row direction. 1750 * @form 1751 * @since 9 1752 */ 1753 RowReverse, 1754 1755 /** 1756 * Layout in the opposite direction to the column. 1757 * @since 7 1758 */ 1759 /** 1760 * Layout in the opposite direction to the column. 1761 * @form 1762 * @since 9 1763 */ 1764 ColumnReverse, 1765} 1766 1767/** 1768 * FlexWrap enumeration description 1769 * @since 7 1770 */ 1771/** 1772 * FlexWrap enumeration description 1773 * @form 1774 * @since 9 1775 */ 1776declare enum FlexWrap { 1777 /** 1778 * The Flex container has a single row/column layout of elements, and children are allowed to go beyond the container. 1779 * @since 7 1780 */ 1781 /** 1782 * The Flex container has a single row/column layout of elements, and children are allowed to go beyond the container. 1783 * @form 1784 * @since 9 1785 */ 1786 NoWrap, 1787 1788 /** 1789 * The elements of the Flex container are arranged in multiple rows or columns, and the sub-items are allowed to exceed the container. 1790 * @since 7 1791 */ 1792 /** 1793 * The elements of the Flex container are arranged in multiple rows or columns, and the sub-items are allowed to exceed the container. 1794 * @form 1795 * @since 9 1796 */ 1797 Wrap, 1798 1799 /** 1800 * The elements of the Flex container are arranged in reverse multiple rows/columns, and children are allowed to exceed the container. 1801 * @since 7 1802 */ 1803 /** 1804 * The elements of the Flex container are arranged in reverse multiple rows/columns, and children are allowed to exceed the container. 1805 * @form 1806 * @since 9 1807 */ 1808 WrapReverse, 1809} 1810 1811/** 1812 * VerticalAlign enumeration description 1813 * @since 7 1814 */ 1815/** 1816 * VerticalAlign enumeration description 1817 * @form 1818 * @since 9 1819 */ 1820declare enum VerticalAlign { 1821 /** 1822 * Top alignment. 1823 * @since 7 1824 */ 1825 /** 1826 * Top alignment. 1827 * @form 1828 * @since 9 1829 */ 1830 Top, 1831 1832 /** 1833 * Center alignment. The default alignment mode is used. 1834 * @since 7 1835 */ 1836 /** 1837 * Center alignment. The default alignment mode is used. 1838 * @form 1839 * @since 9 1840 */ 1841 Center, 1842 1843 /** 1844 * Bottom alignment. 1845 * @since 7 1846 */ 1847 /** 1848 * Bottom alignment. 1849 * @form 1850 * @since 9 1851 */ 1852 Bottom, 1853} 1854 1855/** 1856 * ImageRepeat enumeration description 1857 * @since 7 1858 */ 1859/** 1860 * ImageRepeat enumeration description 1861 * @form 1862 * @since 9 1863 */ 1864declare enum ImageRepeat { 1865 /** 1866 * Do not draw the picture again. 1867 * @since 7 1868 */ 1869 /** 1870 * Do not draw the picture again. 1871 * @form 1872 * @since 9 1873 */ 1874 NoRepeat, 1875 1876 /** 1877 * Repeat the drawing only on the horizontal axis. 1878 * @since 7 1879 */ 1880 /** 1881 * Repeat the drawing only on the horizontal axis. 1882 * @form 1883 * @since 9 1884 */ 1885 X, 1886 1887 /** 1888 * Repeat the drawing only on the vertical axis. 1889 * @since 7 1890 */ 1891 /** 1892 * Repeat the drawing only on the vertical axis. 1893 * @form 1894 * @since 9 1895 */ 1896 Y, 1897 1898 /** 1899 * Draw the picture repeatedly on both axes. 1900 * @since 7 1901 */ 1902 /** 1903 * Draw the picture repeatedly on both axes. 1904 * @form 1905 * @since 9 1906 */ 1907 XY, 1908} 1909 1910/** 1911 * ImageSize enumeration description 1912 * @since 7 1913 */ 1914/** 1915 * ImageSize enumeration description 1916 * @form 1917 * @since 9 1918 */ 1919declare enum ImageSize { 1920 /** 1921 * Keep the scale of the original image unchanged. 1922 * @since 7 1923 */ 1924 /** 1925 * Keep the scale of the original image unchanged. 1926 * @form 1927 * @since 9 1928 */ 1929 Auto, 1930 1931 /** 1932 * 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. 1933 * @since 7 1934 */ 1935 /** 1936 * 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. 1937 * @form 1938 * @since 9 1939 */ 1940 Cover, 1941 1942 /** 1943 * Keep the aspect ratio to zoom out or zoom in so that the image is completely displayed within the display boundary. 1944 * @since 7 1945 */ 1946 /** 1947 * Keep the aspect ratio to zoom out or zoom in so that the image is completely displayed within the display boundary. 1948 * @form 1949 * @since 9 1950 */ 1951 Contain, 1952} 1953 1954/** 1955 * GradientDirection enumeration description 1956 * @since 7 1957 */ 1958/** 1959 * GradientDirection enumeration description 1960 * @form 1961 * @since 9 1962 */ 1963declare enum GradientDirection { 1964 /** 1965 * Right to left. 1966 * @since 7 1967 */ 1968 /** 1969 * Right to left. 1970 * @form 1971 * @since 9 1972 */ 1973 Left, 1974 1975 /** 1976 * From the bottom up. 1977 * @since 7 1978 */ 1979 /** 1980 * From the bottom up. 1981 * @form 1982 * @since 9 1983 */ 1984 Top, 1985 1986 /** 1987 * From left to right. 1988 * @since 7 1989 */ 1990 /** 1991 * From left to right. 1992 * @form 1993 * @since 9 1994 */ 1995 Right, 1996 1997 /** 1998 * From the top down. 1999 * @since 7 2000 */ 2001 /** 2002 * From the top down. 2003 * @form 2004 * @since 9 2005 */ 2006 Bottom, 2007 2008 /** 2009 * Top Left 2010 * @since 7 2011 */ 2012 /** 2013 * Top Left 2014 * @form 2015 * @since 9 2016 */ 2017 LeftTop, 2018 2019 /** 2020 * Left Bottom 2021 * @since 7 2022 */ 2023 /** 2024 * Left Bottom 2025 * @form 2026 * @since 9 2027 */ 2028 LeftBottom, 2029 2030 /** 2031 * Right Top 2032 * @since 7 2033 */ 2034 /** 2035 * Right Top 2036 * @form 2037 * @since 9 2038 */ 2039 RightTop, 2040 2041 /** 2042 * Right Bottom 2043 * @since 7 2044 */ 2045 /** 2046 * Right Bottom 2047 * @form 2048 * @since 9 2049 */ 2050 RightBottom, 2051 2052 /** 2053 * None 2054 * @since 7 2055 */ 2056 /** 2057 * None 2058 * @form 2059 * @since 9 2060 */ 2061 None, 2062} 2063 2064/** 2065 * SharedTransitionEffectType enumeration description 2066 * @since 7 2067 */ 2068/** 2069 * SharedTransitionEffectType enumeration description 2070 * @form 2071 * @since 9 2072 */ 2073declare enum SharedTransitionEffectType { 2074 /** 2075 * The location of the destination page element remains unchanged, and you can configure the transparency animation. Currently, 2076 * only the static effect configured for redirecting to the target page takes effect. 2077 * @since 7 2078 */ 2079 /** 2080 * The location of the destination page element remains unchanged, and you can configure the transparency animation. Currently, 2081 * only the static effect configured for redirecting to the target page takes effect. 2082 * @form 2083 * @since 9 2084 */ 2085 Static, 2086 2087 /** 2088 * Move the source page element to the destination page element location and scale it appropriately. 2089 * @since 7 2090 */ 2091 /** 2092 * Move the source page element to the destination page element location and scale it appropriately. 2093 * @form 2094 * @since 9 2095 */ 2096 Exchange, 2097} 2098 2099/** 2100 * Text style 2101 * @since 7 2102 */ 2103/** 2104 * Text style 2105 * @form 2106 * @since 9 2107 */ 2108declare enum FontStyle { 2109 /** 2110 * Default style. 2111 * @since 7 2112 */ 2113 /** 2114 * Default style. 2115 * @form 2116 * @since 9 2117 */ 2118 Normal, 2119 2120 /** 2121 * Italic style. 2122 * @since 7 2123 */ 2124 /** 2125 * Italic style. 2126 * @form 2127 * @since 9 2128 */ 2129 Italic, 2130} 2131 2132/** 2133 * The font weight of the text 2134 * @since 7 2135 */ 2136/** 2137 * The font weight of the text 2138 * @form 2139 * @since 9 2140 */ 2141declare enum FontWeight { 2142 /** 2143 * Defines a lighter value than [Inherited Value].. 2144 * @since 7 2145 */ 2146 /** 2147 * Defines a lighter value than [Inherited Value].. 2148 * @form 2149 * @since 9 2150 */ 2151 Lighter, 2152 2153 /** 2154 * Normal font. Equivalent to a digital value of 400. 2155 * @since 7 2156 */ 2157 /** 2158 * Normal font. Equivalent to a digital value of 400. 2159 * @form 2160 * @since 9 2161 */ 2162 Normal, 2163 2164 /** 2165 * Defines a more general value than [Inherited Value]. 2166 * @since 7 2167 */ 2168 /** 2169 * Defines a more general value than [Inherited Value]. 2170 * @form 2171 * @since 9 2172 */ 2173 Regular, 2174 2175 /** 2176 * Defines a value that is more centered than [Inherited Value]. 2177 * @since 7 2178 */ 2179 /** 2180 * Defines a value that is more centered than [Inherited Value]. 2181 * @form 2182 * @since 9 2183 */ 2184 Medium, 2185 2186 /** 2187 * Bold. Equivalent to a numeric value of 700. 2188 * @since 7 2189 */ 2190 /** 2191 * Bold. Equivalent to a numeric value of 700. 2192 * @form 2193 * @since 9 2194 */ 2195 Bold, 2196 2197 /** 2198 * Defines a value that is heavier than [Inherited Value]. 2199 * @since 7 2200 */ 2201 /** 2202 * Defines a value that is heavier than [Inherited Value]. 2203 * @form 2204 * @since 9 2205 */ 2206 Bolder, 2207} 2208 2209/** 2210 * Alignment of text. 2211 * @since 7 2212 */ 2213/** 2214 * Alignment of text. 2215 * @form 2216 * @since 9 2217 */ 2218declare enum TextAlign { 2219 /** 2220 * Center the text. 2221 * @since 7 2222 */ 2223 /** 2224 * Center the text. 2225 * @form 2226 * @since 9 2227 */ 2228 Center, 2229 2230 /** 2231 * The text is aligned in the same direction as the writing 2232 * @since 7 2233 */ 2234 /** 2235 * The text is aligned in the same direction as the writing 2236 * @form 2237 * @since 9 2238 */ 2239 Start, 2240 2241 /** 2242 * The text is aligned in the opposite direction of writing 2243 * @since 7 2244 */ 2245 /** 2246 * The text is aligned in the opposite direction of writing 2247 * @form 2248 * @since 9 2249 */ 2250 End, 2251} 2252 2253/** 2254 * Declare how text overflows. 2255 * @since 7 2256 */ 2257/** 2258 * Declare how text overflows. 2259 * @form 2260 * @since 9 2261 */ 2262declare enum TextOverflow { 2263 /** 2264 * When the text is too long, it will be cropped and displayed. 2265 * @since 7 2266 */ 2267 /** 2268 * When the text is too long, it will be cropped and displayed. 2269 * @form 2270 * @since 9 2271 */ 2272 Clip, 2273 2274 /** 2275 * If the text is too long, the text that cannot be displayed shall be replaced by ellipsis. 2276 * @since 7 2277 */ 2278 /** 2279 * If the text is too long, the text that cannot be displayed shall be replaced by ellipsis. 2280 * @form 2281 * @since 9 2282 */ 2283 Ellipsis, 2284 2285 /** 2286 * Text is not cropped when it is too long. 2287 * @since 7 2288 */ 2289 /** 2290 * Text is not cropped when it is too long. 2291 * @form 2292 * @since 9 2293 */ 2294 None, 2295} 2296 2297/** 2298 * Type of text modifier. 2299 * @since 7 2300 */ 2301/** 2302 * Type of text modifier. 2303 * @form 2304 * @since 9 2305 */ 2306declare enum TextDecorationType { 2307 /** 2308 * Do not use text decorative lines. 2309 * @since 7 2310 */ 2311 /** 2312 * Do not use text decorative lines. 2313 * @form 2314 * @since 9 2315 */ 2316 None, 2317 2318 /** 2319 * Underline the words. 2320 * @since 7 2321 */ 2322 /** 2323 * Underline the words. 2324 * @form 2325 * @since 9 2326 */ 2327 Underline, 2328 2329 /** 2330 * Text is in all uppercase. 2331 * @since 7 2332 */ 2333 /** 2334 * Text is in all uppercase. 2335 * @form 2336 * @since 9 2337 */ 2338 Overline, 2339 2340 /** 2341 * A modifier line that passes through the text. 2342 * @since 7 2343 */ 2344 /** 2345 * A modifier line that passes through the text. 2346 * @form 2347 * @since 9 2348 */ 2349 LineThrough, 2350} 2351 2352/** 2353 * Letter type in text 2354 * @since 7 2355 */ 2356/** 2357 * Letter type in text 2358 * @form 2359 * @since 9 2360 */ 2361declare enum TextCase { 2362 /** 2363 * The default is normal. 2364 * @since 7 2365 */ 2366 /** 2367 * The default is normal. 2368 * @form 2369 * @since 9 2370 */ 2371 Normal, 2372 2373 /** 2374 * The text is all lowercase. 2375 * @since 7 2376 */ 2377 /** 2378 * The text is all lowercase. 2379 * @form 2380 * @since 9 2381 */ 2382 LowerCase, 2383 2384 /** 2385 * The text is all uppercase. 2386 * @since 7 2387 */ 2388 /** 2389 * The text is all uppercase. 2390 * @form 2391 * @since 9 2392 */ 2393 UpperCase, 2394} 2395 2396/** 2397 * ResponseType for contextMenu 2398 * @since 8 2399 */ 2400/** 2401 * ResponseType for contextMenu 2402 * @form 2403 * @since 9 2404 */ 2405declare enum ResponseType { 2406 /** 2407 * Right click. 2408 * @since 8 2409 */ 2410 /** 2411 * Right click. 2412 * @form 2413 * @since 9 2414 */ 2415 RightClick, 2416 2417 /** 2418 * Long press. 2419 * @since 8 2420 */ 2421 /** 2422 * Long press. 2423 * @form 2424 * @since 9 2425 */ 2426 LongPress, 2427} 2428 2429/** 2430 * HoverEffect enumeration description 2431 * @since 8 2432 */ 2433/** 2434 * HoverEffect enumeration description 2435 * @form 2436 * @since 9 2437 */ 2438declare enum HoverEffect { 2439 /** 2440 * Default effect 2441 * @since 8 2442 */ 2443 /** 2444 * Default effect 2445 * @form 2446 * @since 9 2447 */ 2448 Auto, 2449 2450 /** 2451 * Zoom in and out effect 2452 * @since 8 2453 */ 2454 /** 2455 * Zoom in and out effect 2456 * @form 2457 * @since 9 2458 */ 2459 Scale, 2460 2461 /** 2462 * Highlight effect 2463 * @since 8 2464 */ 2465 /** 2466 * Highlight effect 2467 * @form 2468 * @since 9 2469 */ 2470 Highlight, 2471 2472 /** 2473 * None effect 2474 * @since 8 2475 */ 2476 /** 2477 * None effect 2478 * @form 2479 * @since 9 2480 */ 2481 None, 2482} 2483 2484/** 2485 * Placement enumeration description 2486 * @since 8 2487 */ 2488/** 2489 * Placement enumeration description 2490 * @form 2491 * @since 9 2492 */ 2493declare enum Placement { 2494 /** 2495 * Left placement 2496 * @since 8 2497 */ 2498 /** 2499 * Left placement 2500 * @form 2501 * @since 9 2502 */ 2503 Left, 2504 2505 /** 2506 * Right placement 2507 * @since 8 2508 */ 2509 /** 2510 * Right placement 2511 * @form 2512 * @since 9 2513 */ 2514 Right, 2515 2516 /** 2517 * Top placement 2518 * @since 8 2519 */ 2520 /** 2521 * Top placement 2522 * @form 2523 * @since 9 2524 */ 2525 Top, 2526 2527 /** 2528 * Bottom placement 2529 * @since 8 2530 */ 2531 /** 2532 * Bottom placement 2533 * @form 2534 * @since 9 2535 */ 2536 Bottom, 2537 2538 /** 2539 * TopLeft placement 2540 * @since 8 2541 */ 2542 /** 2543 * TopLeft placement 2544 * @form 2545 * @since 9 2546 */ 2547 TopLeft, 2548 2549 /** 2550 * TopRight placement 2551 * @since 8 2552 */ 2553 /** 2554 * TopRight placement 2555 * @form 2556 * @since 9 2557 */ 2558 TopRight, 2559 2560 /** 2561 * BottomLeft placement 2562 * @since 8 2563 */ 2564 /** 2565 * BottomLeft placement 2566 * @form 2567 * @since 9 2568 */ 2569 BottomLeft, 2570 2571 /** 2572 * BottomRight placement 2573 * @since 8 2574 */ 2575 /** 2576 * BottomRight placement 2577 * @form 2578 * @since 9 2579 */ 2580 BottomRight, 2581 2582 /** 2583 * LeftTop placement 2584 * @form 2585 * @since 9 2586 */ 2587 LeftTop, 2588 2589 /** 2590 * LeftBottom placement 2591 * @form 2592 * @since 9 2593 */ 2594 LeftBottom, 2595 2596 /** 2597 * RightTop placement 2598 * @form 2599 * @since 9 2600 */ 2601 RightTop, 2602 2603 /** 2604 * RightBottom placement 2605 * @form 2606 * @since 9 2607 */ 2608 RightBottom, 2609} 2610 2611/** 2612 * Indicates the share option. 2613 * 2614 * @form 2615 * @since 9 2616 */ 2617declare enum CopyOptions { 2618 /** 2619 * Not allow share. 2620 * @form 2621 * @since 9 2622 */ 2623 None = 0, 2624 2625 /** 2626 * Share in app. 2627 * @form 2628 * @since 9 2629 */ 2630 InApp = 1, 2631 2632 /** 2633 * Share in local device. 2634 * @form 2635 * @since 9 2636 */ 2637 LocalDevice = 2, 2638} 2639 2640/** 2641 * Defines the hit test mode. 2642 * @form 2643 * @since 9 2644 */ 2645declare enum HitTestMode { 2646 /** 2647 * Both self and children nodes respond to the hit test for touch events, 2648 * but block hit test of the other nodes which is masked by this node. 2649 * @form 2650 * @since 9 2651 */ 2652 Default, 2653 2654 /** 2655 * Self respond to the hit test for touch events, 2656 * but block hit test of children and other nodes which is masked by this node. 2657 * @form 2658 * @since 9 2659 */ 2660 Block, 2661 2662 /** 2663 * Self and children respond to the hit test for touch events, 2664 * and allow hit test of other nodes which is masked by this node. 2665 * @form 2666 * @since 9 2667 */ 2668 Transparent, 2669 2670 /** 2671 * Self not respond to the hit test for touch events, 2672 * but children respond to the hit test for touch events. 2673 * @form 2674 * @since 9 2675 */ 2676 None, 2677} 2678 2679/** 2680 * Title height. 2681 * @form 2682 * @since 9 2683 */ 2684declare enum TitleHeight { 2685 /** 2686 * Title height when only main title is available. 2687 * @form 2688 * @since 9 2689 */ 2690 MainOnly, 2691 2692 /** 2693 * Title height when main title and subtitle are both available. 2694 * @form 2695 * @since 9 2696 */ 2697 MainWithSub, 2698}