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 * 19 * @enum { number } 20 * @syscap SystemCapability.ArkUI.ArkUI.Full 21 * @since 7 22 */ 23/** 24 * common enum of color 25 * 26 * @enum { number } 27 * @syscap SystemCapability.ArkUI.ArkUI.Full 28 * @since 9 29 * @form 30 */ 31/** 32 * common enum of color 33 * 34 * @enum { number } 35 * @syscap SystemCapability.ArkUI.ArkUI.Full 36 * @crossplatform 37 * @since 10 38 * @form 39 */ 40declare enum Color { 41 /** 42 * White. 43 * 44 * @syscap SystemCapability.ArkUI.ArkUI.Full 45 * @since 7 46 */ 47 /** 48 * White. 49 * 50 * @syscap SystemCapability.ArkUI.ArkUI.Full 51 * @since 9 52 * @form 53 */ 54 /** 55 * White. 56 * 57 * @syscap SystemCapability.ArkUI.ArkUI.Full 58 * @crossplatform 59 * @since 10 60 * @form 61 */ 62 White, 63 64 /** 65 * Black. 66 * 67 * @syscap SystemCapability.ArkUI.ArkUI.Full 68 * @since 7 69 */ 70 /** 71 * Black. 72 * 73 * @syscap SystemCapability.ArkUI.ArkUI.Full 74 * @since 9 75 * @form 76 */ 77 /** 78 * Black. 79 * 80 * @syscap SystemCapability.ArkUI.ArkUI.Full 81 * @crossplatform 82 * @since 10 83 * @form 84 */ 85 Black, 86 87 /** 88 * Blue. 89 * 90 * @syscap SystemCapability.ArkUI.ArkUI.Full 91 * @since 7 92 */ 93 /** 94 * Blue. 95 * 96 * @syscap SystemCapability.ArkUI.ArkUI.Full 97 * @since 9 98 * @form 99 */ 100 /** 101 * Blue. 102 * 103 * @syscap SystemCapability.ArkUI.ArkUI.Full 104 * @crossplatform 105 * @since 10 106 * @form 107 */ 108 Blue, 109 110 /** 111 * Brown. 112 * 113 * @syscap SystemCapability.ArkUI.ArkUI.Full 114 * @since 7 115 */ 116 /** 117 * Brown. 118 * 119 * @syscap SystemCapability.ArkUI.ArkUI.Full 120 * @since 9 121 * @form 122 */ 123 /** 124 * Brown. 125 * 126 * @syscap SystemCapability.ArkUI.ArkUI.Full 127 * @crossplatform 128 * @since 10 129 * @form 130 */ 131 Brown, 132 133 /** 134 * Gray. 135 * 136 * @syscap SystemCapability.ArkUI.ArkUI.Full 137 * @since 7 138 */ 139 /** 140 * Gray. 141 * 142 * @syscap SystemCapability.ArkUI.ArkUI.Full 143 * @since 9 144 * @form 145 */ 146 /** 147 * Gray. 148 * 149 * @syscap SystemCapability.ArkUI.ArkUI.Full 150 * @crossplatform 151 * @since 10 152 * @form 153 */ 154 Gray, 155 156 /** 157 * Green. 158 * 159 * @syscap SystemCapability.ArkUI.ArkUI.Full 160 * @since 7 161 */ 162 /** 163 * Green. 164 * 165 * @syscap SystemCapability.ArkUI.ArkUI.Full 166 * @since 9 167 * @form 168 */ 169 /** 170 * Green. 171 * 172 * @syscap SystemCapability.ArkUI.ArkUI.Full 173 * @crossplatform 174 * @since 10 175 * @form 176 */ 177 Green, 178 179 /** 180 * Grey. 181 * 182 * @syscap SystemCapability.ArkUI.ArkUI.Full 183 * @since 7 184 */ 185 /** 186 * Grey. 187 * 188 * @syscap SystemCapability.ArkUI.ArkUI.Full 189 * @since 9 190 * @form 191 */ 192 /** 193 * Grey. 194 * 195 * @syscap SystemCapability.ArkUI.ArkUI.Full 196 * @crossplatform 197 * @since 10 198 * @form 199 */ 200 Grey, 201 202 /** 203 * Orange. 204 * 205 * @syscap SystemCapability.ArkUI.ArkUI.Full 206 * @since 7 207 */ 208 /** 209 * Orange. 210 * 211 * @syscap SystemCapability.ArkUI.ArkUI.Full 212 * @since 9 213 * @form 214 */ 215 /** 216 * Orange. 217 * 218 * @syscap SystemCapability.ArkUI.ArkUI.Full 219 * @crossplatform 220 * @since 10 221 * @form 222 */ 223 Orange, 224 225 /** 226 * color. 227 * 228 * @syscap SystemCapability.ArkUI.ArkUI.Full 229 * @since 7 230 */ 231 /** 232 * color. 233 * 234 * @syscap SystemCapability.ArkUI.ArkUI.Full 235 * @since 9 236 * @form 237 */ 238 /** 239 * color. 240 * 241 * @syscap SystemCapability.ArkUI.ArkUI.Full 242 * @crossplatform 243 * @since 10 244 * @form 245 */ 246 Pink, 247 248 /** 249 * Red. 250 * 251 * @syscap SystemCapability.ArkUI.ArkUI.Full 252 * @since 7 253 */ 254 /** 255 * Red. 256 * 257 * @syscap SystemCapability.ArkUI.ArkUI.Full 258 * @since 9 259 * @form 260 */ 261 /** 262 * Red. 263 * 264 * @syscap SystemCapability.ArkUI.ArkUI.Full 265 * @crossplatform 266 * @since 10 267 * @form 268 */ 269 Red, 270 271 /** 272 * Yellow. 273 * 274 * @syscap SystemCapability.ArkUI.ArkUI.Full 275 * @since 7 276 */ 277 /** 278 * Yellow. 279 * 280 * @syscap SystemCapability.ArkUI.ArkUI.Full 281 * @since 9 282 * @form 283 */ 284 /** 285 * Yellow. 286 * 287 * @syscap SystemCapability.ArkUI.ArkUI.Full 288 * @crossplatform 289 * @since 10 290 * @form 291 */ 292 Yellow, 293 294 /** 295 * Transparent. 296 * 297 * @syscap SystemCapability.ArkUI.ArkUI.Full 298 * @since 9 299 * @form 300 */ 301 /** 302 * Transparent. 303 * 304 * @syscap SystemCapability.ArkUI.ArkUI.Full 305 * @crossplatform 306 * @since 10 307 * @form 308 */ 309 Transparent, 310} 311 312/** 313 * Common enum of color strategy 314 * 315 * @enum { string } 316 * @syscap SystemCapability.ArkUI.ArkUI.Full 317 * @crossplatform 318 * @since 10 319 */ 320declare enum ColoringStrategy { 321 /** 322 * Use the inverse color strategy 323 * 324 * @syscap SystemCapability.ArkUI.ArkUI.Full 325 * @crossplatform 326 * @since 10 327 */ 328 INVERT = "invert", 329} 330 331/** 332 * Image display mode 333 * 334 * @enum { number } 335 * @syscap SystemCapability.ArkUI.ArkUI.Full 336 * @since 7 337 */ 338/** 339 * Image display mode. 340 * 341 * @enum { number } 342 * @syscap SystemCapability.ArkUI.ArkUI.Full 343 * @since 9 344 * @form 345 */ 346/** 347 * Image display mode. 348 * 349 * @enum { number } 350 * @syscap SystemCapability.ArkUI.ArkUI.Full 351 * @crossplatform 352 * @since 10 353 * @form 354 */ 355declare enum ImageFit { 356 /** 357 * Keep the aspect ratio to zoom out or zoom in so that the image is completely displayed within the display boundary. 358 * 359 * @syscap SystemCapability.ArkUI.ArkUI.Full 360 * @since 7 361 */ 362 /** 363 * Keep the aspect ratio to zoom out or zoom in so that the image is completely displayed within the display boundary. 364 * 365 * @syscap SystemCapability.ArkUI.ArkUI.Full 366 * @since 9 367 * @form 368 */ 369 /** 370 * Keep the aspect ratio to zoom out or zoom in so that the image is completely displayed within the display boundary. 371 * 372 * @syscap SystemCapability.ArkUI.ArkUI.Full 373 * @crossplatform 374 * @since 10 375 * @form 376 */ 377 Contain, 378 379 /** 380 * 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. 381 * 382 * @syscap SystemCapability.ArkUI.ArkUI.Full 383 * @since 7 384 */ 385 /** 386 * 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. 387 * 388 * @syscap SystemCapability.ArkUI.ArkUI.Full 389 * @since 9 390 * @form 391 */ 392 /** 393 * 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. 394 * 395 * @syscap SystemCapability.ArkUI.ArkUI.Full 396 * @crossplatform 397 * @since 10 398 * @form 399 */ 400 Cover, 401 402 /** 403 * Adaptive display 404 * 405 * @syscap SystemCapability.ArkUI.ArkUI.Full 406 * @since 7 407 */ 408 /** 409 * Adaptive display 410 * 411 * @syscap SystemCapability.ArkUI.ArkUI.Full 412 * @since 9 413 * @form 414 */ 415 /** 416 * Adaptive display 417 * 418 * @syscap SystemCapability.ArkUI.ArkUI.Full 419 * @crossplatform 420 * @since 10 421 * @form 422 */ 423 Auto, 424 425 /** 426 * Zoom in or out without maintaining the aspect ratio so that the image fills the display boundary. 427 * 428 * @syscap SystemCapability.ArkUI.ArkUI.Full 429 * @since 7 430 */ 431 /** 432 * Zoom in or out without maintaining the aspect ratio so that the image fills the display boundary. 433 * 434 * @syscap SystemCapability.ArkUI.ArkUI.Full 435 * @since 9 436 * @form 437 */ 438 /** 439 * Zoom in or out without maintaining the aspect ratio so that the image fills the display boundary. 440 * 441 * @syscap SystemCapability.ArkUI.ArkUI.Full 442 * @crossplatform 443 * @since 10 444 * @form 445 */ 446 Fill, 447 448 /** 449 * Keep the aspect ratio displayed, and the image zooms out or remains unchanged. 450 * 451 * @syscap SystemCapability.ArkUI.ArkUI.Full 452 * @since 7 453 */ 454 /** 455 * Keep the aspect ratio displayed, and the image zooms out or remains unchanged. 456 * 457 * @syscap SystemCapability.ArkUI.ArkUI.Full 458 * @since 9 459 * @form 460 */ 461 /** 462 * Keep the aspect ratio displayed, and the image zooms out or remains unchanged. 463 * 464 * @syscap SystemCapability.ArkUI.ArkUI.Full 465 * @crossplatform 466 * @since 10 467 * @form 468 */ 469 ScaleDown, 470 471 /** 472 * Keep the original size and display it in the center. 473 * 474 * @syscap SystemCapability.ArkUI.ArkUI.Full 475 * @since 7 476 */ 477 /** 478 * Keep the original size and display it in the center. 479 * 480 * @syscap SystemCapability.ArkUI.ArkUI.Full 481 * @since 9 482 * @form 483 */ 484 /** 485 * Keep the original size and display it in the center. 486 * 487 * @syscap SystemCapability.ArkUI.ArkUI.Full 488 * @crossplatform 489 * @since 10 490 * @form 491 */ 492 None, 493} 494 495/** 496 * Border Style 497 * 498 * @enum { number } 499 * @syscap SystemCapability.ArkUI.ArkUI.Full 500 * @since 7 501 */ 502/** 503 * Border Style 504 * 505 * @enum { number } 506 * @syscap SystemCapability.ArkUI.ArkUI.Full 507 * @since 9 508 * @form 509 */ 510/** 511 * Border Style 512 * 513 * @enum { number } 514 * @syscap SystemCapability.ArkUI.ArkUI.Full 515 * @crossplatform 516 * @since 10 517 * @form 518 */ 519declare enum BorderStyle { 520 /** 521 * Displays as a series of dots with a radius of half the borderWidth. 522 * 523 * @syscap SystemCapability.ArkUI.ArkUI.Full 524 * @since 7 525 */ 526 /** 527 * Displays as a series of dots with a radius of half the borderWidth. 528 * 529 * @syscap SystemCapability.ArkUI.ArkUI.Full 530 * @since 9 531 * @form 532 */ 533 /** 534 * Displays as a series of dots with a radius of half the borderWidth. 535 * 536 * @syscap SystemCapability.ArkUI.ArkUI.Full 537 * @crossplatform 538 * @since 10 539 * @form 540 */ 541 Dotted, 542 543 /** 544 * Shows as a series of short square dashed lines. 545 * 546 * @syscap SystemCapability.ArkUI.ArkUI.Full 547 * @since 7 548 */ 549 /** 550 * Shows as a series of short square dashed lines. 551 * 552 * @syscap SystemCapability.ArkUI.ArkUI.Full 553 * @since 9 554 * @form 555 */ 556 /** 557 * Shows as a series of short square dashed lines. 558 * 559 * @syscap SystemCapability.ArkUI.ArkUI.Full 560 * @crossplatform 561 * @since 10 562 * @form 563 */ 564 Dashed, 565 566 /** 567 * Shows as a solid line. 568 * 569 * @syscap SystemCapability.ArkUI.ArkUI.Full 570 * @since 7 571 */ 572 /** 573 * Shows as a solid line. 574 * 575 * @syscap SystemCapability.ArkUI.ArkUI.Full 576 * @since 9 577 * @form 578 */ 579 /** 580 * Shows as a solid line. 581 * 582 * @syscap SystemCapability.ArkUI.ArkUI.Full 583 * @crossplatform 584 * @since 10 585 * @form 586 */ 587 Solid, 588} 589 590/** 591 * Line Join Style 592 * 593 * @enum { number } 594 * @syscap SystemCapability.ArkUI.ArkUI.Full 595 * @since 7 596 */ 597/** 598 * Line Join Style 599 * 600 * @enum { number } 601 * @syscap SystemCapability.ArkUI.ArkUI.Full 602 * @since 9 603 * @form 604 */ 605/** 606 * Line Join Style 607 * 608 * @enum { number } 609 * @syscap SystemCapability.ArkUI.ArkUI.Full 610 * @crossplatform 611 * @since 10 612 * @form 613 */ 614declare enum LineJoinStyle { 615 /** 616 * Connect path segments using bevels. 617 * 618 * @syscap SystemCapability.ArkUI.ArkUI.Full 619 * @since 7 620 */ 621 /** 622 * Connect path segments using bevels. 623 * 624 * @syscap SystemCapability.ArkUI.ArkUI.Full 625 * @since 9 626 * @form 627 */ 628 /** 629 * Connect path segments using bevels. 630 * 631 * @syscap SystemCapability.ArkUI.ArkUI.Full 632 * @crossplatform 633 * @since 10 634 * @form 635 */ 636 Miter, 637 638 /** 639 * Connect path segments using sharp corners. 640 * 641 * @syscap SystemCapability.ArkUI.ArkUI.Full 642 * @since 7 643 */ 644 /** 645 * Connect path segments using sharp corners. 646 * 647 * @syscap SystemCapability.ArkUI.ArkUI.Full 648 * @since 9 649 * @form 650 */ 651 /** 652 * Connect path segments using sharp corners. 653 * 654 * @syscap SystemCapability.ArkUI.ArkUI.Full 655 * @crossplatform 656 * @since 10 657 * @form 658 */ 659 Round, 660 661 /** 662 * Connect path segments using fillets. 663 * 664 * @syscap SystemCapability.ArkUI.ArkUI.Full 665 * @since 7 666 */ 667 /** 668 * Connect path segments using fillets. 669 * 670 * @syscap SystemCapability.ArkUI.ArkUI.Full 671 * @since 9 672 * @form 673 */ 674 /** 675 * Connect path segments using fillets. 676 * 677 * @syscap SystemCapability.ArkUI.ArkUI.Full 678 * @crossplatform 679 * @since 10 680 * @form 681 */ 682 Bevel, 683} 684 685/** 686 * Function Called by Touch 687 * 688 * @enum { number } 689 * @syscap SystemCapability.ArkUI.ArkUI.Full 690 * @since 7 691 */ 692/** 693 * Function Called by Touch 694 * 695 * @enum { number } 696 * @syscap SystemCapability.ArkUI.ArkUI.Full 697 * @crossplatform 698 * @since 10 699 */ 700declare enum TouchType { 701 /** 702 * Triggered when the finger is pressed. 703 * 704 * @syscap SystemCapability.ArkUI.ArkUI.Full 705 * @since 7 706 */ 707 /** 708 * Triggered when the finger is pressed. 709 * 710 * @syscap SystemCapability.ArkUI.ArkUI.Full 711 * @crossplatform 712 * @since 10 713 */ 714 Down, 715 716 /** 717 * Triggered when the finger is raised. 718 * 719 * @syscap SystemCapability.ArkUI.ArkUI.Full 720 * @since 7 721 */ 722 /** 723 * Triggered when the finger is raised. 724 * 725 * @syscap SystemCapability.ArkUI.ArkUI.Full 726 * @crossplatform 727 * @since 10 728 */ 729 Up, 730 731 /** 732 * Triggered when the finger presses on the screen. 733 * 734 * @syscap SystemCapability.ArkUI.ArkUI.Full 735 * @since 7 736 */ 737 /** 738 * Triggered when the finger presses on the screen. 739 * 740 * @syscap SystemCapability.ArkUI.ArkUI.Full 741 * @crossplatform 742 * @since 10 743 */ 744 Move, 745 746 /** 747 * Triggers when the touch event cancels. 748 * 749 * @syscap SystemCapability.ArkUI.ArkUI.Full 750 * @since 7 751 */ 752 /** 753 * Triggers when the touch event cancels. 754 * 755 * @syscap SystemCapability.ArkUI.ArkUI.Full 756 * @crossplatform 757 * @since 10 758 */ 759 Cancel, 760} 761 762/** 763 * Function Called by Mouse 764 * 765 * @enum { number } 766 * @syscap SystemCapability.ArkUI.ArkUI.Full 767 * @since 8 768 */ 769/** 770 * Function Called by Mouse 771 * 772 * @enum { number } 773 * @syscap SystemCapability.ArkUI.ArkUI.Full 774 * @crossplatform 775 * @since 10 776 */ 777declare enum MouseButton { 778 /** 779 * Mouse Left Button. 780 * 781 * @syscap SystemCapability.ArkUI.ArkUI.Full 782 * @since 8 783 */ 784 /** 785 * Mouse Left Button. 786 * 787 * @syscap SystemCapability.ArkUI.ArkUI.Full 788 * @crossplatform 789 * @since 10 790 */ 791 Left, 792 793 /** 794 * Mouse Right Button. 795 * 796 * @syscap SystemCapability.ArkUI.ArkUI.Full 797 * @since 8 798 */ 799 /** 800 * Mouse Right Button. 801 * 802 * @syscap SystemCapability.ArkUI.ArkUI.Full 803 * @crossplatform 804 * @since 10 805 */ 806 Right, 807 808 /** 809 * Mouse Middle Button. 810 * 811 * @syscap SystemCapability.ArkUI.ArkUI.Full 812 * @since 8 813 */ 814 /** 815 * Mouse Middle Button. 816 * 817 * @syscap SystemCapability.ArkUI.ArkUI.Full 818 * @crossplatform 819 * @since 10 820 */ 821 Middle, 822 823 /** 824 * Mouse Back Button. 825 * 826 * @syscap SystemCapability.ArkUI.ArkUI.Full 827 * @since 8 828 */ 829 /** 830 * Mouse Back Button. 831 * 832 * @syscap SystemCapability.ArkUI.ArkUI.Full 833 * @crossplatform 834 * @since 10 835 */ 836 Back, 837 838 /** 839 * Mouse Forward Button. 840 * 841 * @syscap SystemCapability.ArkUI.ArkUI.Full 842 * @since 8 843 */ 844 /** 845 * Mouse Forward Button. 846 * 847 * @syscap SystemCapability.ArkUI.ArkUI.Full 848 * @crossplatform 849 * @since 10 850 */ 851 Forward, 852 853 /** 854 * Mouse None Button. 855 * 856 * @syscap SystemCapability.ArkUI.ArkUI.Full 857 * @since 8 858 */ 859 /** 860 * Mouse None Button. 861 * 862 * @syscap SystemCapability.ArkUI.ArkUI.Full 863 * @crossplatform 864 * @since 10 865 */ 866 None, 867} 868 869/** 870 * Function Called by Mouse 871 * 872 * @enum { number } 873 * @syscap SystemCapability.ArkUI.ArkUI.Full 874 * @since 8 875 */ 876/** 877 * Function Called by Mouse 878 * 879 * @enum { number } 880 * @syscap SystemCapability.ArkUI.ArkUI.Full 881 * @crossplatform 882 * @since 10 883 */ 884declare enum MouseAction { 885 /** 886 * Triggered when the mouse is pressed. 887 * 888 * @syscap SystemCapability.ArkUI.ArkUI.Full 889 * @since 8 890 */ 891 /** 892 * Triggered when the mouse is pressed. 893 * 894 * @syscap SystemCapability.ArkUI.ArkUI.Full 895 * @crossplatform 896 * @since 10 897 */ 898 Press, 899 900 /** 901 * Triggered when the mouse is released. 902 * 903 * @syscap SystemCapability.ArkUI.ArkUI.Full 904 * @since 8 905 */ 906 /** 907 * Triggered when the mouse is released. 908 * 909 * @syscap SystemCapability.ArkUI.ArkUI.Full 910 * @crossplatform 911 * @since 10 912 */ 913 Release, 914 915 /** 916 * Triggered when the mouse is Moved. 917 * 918 * @syscap SystemCapability.ArkUI.ArkUI.Full 919 * @since 8 920 */ 921 /** 922 * Triggered when the mouse is Moved. 923 * 924 * @syscap SystemCapability.ArkUI.ArkUI.Full 925 * @crossplatform 926 * @since 10 927 */ 928 Move, 929 930 /** 931 * Triggered when the mouse is Hovered. 932 * 933 * @syscap SystemCapability.ArkUI.ArkUI.Full 934 * @since 8 935 */ 936 /** 937 * Triggered when the mouse is Hovered. 938 * 939 * @syscap SystemCapability.ArkUI.ArkUI.Full 940 * @crossplatform 941 * @since 10 942 */ 943 Hover 944} 945 946/** 947 * Animation status. 948 * 949 * @enum { number } 950 * @syscap SystemCapability.ArkUI.ArkUI.Full 951 * @since 7 952 */ 953/** 954 * Animation status. 955 * 956 * @enum { number } 957 * @syscap SystemCapability.ArkUI.ArkUI.Full 958 * @crossplatform 959 * @since 10 960 * @form 961 */ 962declare enum AnimationStatus { 963 /** 964 * Initial state of the animation. 965 * 966 * @syscap SystemCapability.ArkUI.ArkUI.Full 967 * @since 7 968 */ 969 /** 970 * Initial state of the animation. 971 * 972 * @syscap SystemCapability.ArkUI.ArkUI.Full 973 * @crossplatform 974 * @since 10 975 * @form 976 */ 977 Initial, 978 979 /** 980 * The animation is playing. 981 * 982 * @syscap SystemCapability.ArkUI.ArkUI.Full 983 * @since 7 984 */ 985 /** 986 * The animation is playing. 987 * 988 * @syscap SystemCapability.ArkUI.ArkUI.Full 989 * @crossplatform 990 * @since 10 991 * @form 992 */ 993 Running, 994 995 /** 996 * The animation is paused. 997 * 998 * @syscap SystemCapability.ArkUI.ArkUI.Full 999 * @since 7 1000 */ 1001 /** 1002 * The animation is paused. 1003 * 1004 * @syscap SystemCapability.ArkUI.ArkUI.Full 1005 * @crossplatform 1006 * @since 10 1007 * @form 1008 */ 1009 Paused, 1010 1011 /** 1012 * The animation is stopped. 1013 * 1014 * @syscap SystemCapability.ArkUI.ArkUI.Full 1015 * @since 7 1016 */ 1017 /** 1018 * The animation is stopped. 1019 * 1020 * @syscap SystemCapability.ArkUI.ArkUI.Full 1021 * @crossplatform 1022 * @since 10 1023 * @form 1024 */ 1025 Stopped, 1026} 1027 1028/** 1029 * Sets the animation playback mode. By default, the animation starts to play again after the playback is complete. 1030 * 1031 * @enum { number } 1032 * @syscap SystemCapability.ArkUI.ArkUI.Full 1033 * @since 7 1034 */ 1035/** 1036 * Sets the animation playback mode. By default, the animation starts to play again after the playback is complete. 1037 * 1038 * @enum { number } 1039 * @syscap SystemCapability.ArkUI.ArkUI.Full 1040 * @since 9 1041 * @form 1042 */ 1043/** 1044 * Sets the animation playback mode. By default, the animation starts to play again after the playback is complete. 1045 * 1046 * @enum { number } 1047 * @syscap SystemCapability.ArkUI.ArkUI.Full 1048 * @crossplatform 1049 * @since 10 1050 * @form 1051 */ 1052declare enum Curve { 1053 /** 1054 * Indicates that the speed of the animation is the same from start to finish. 1055 * 1056 * @syscap SystemCapability.ArkUI.ArkUI.Full 1057 * @since 7 1058 */ 1059 /** 1060 * Indicates that the speed of the animation is the same from start to finish. 1061 * 1062 * @syscap SystemCapability.ArkUI.ArkUI.Full 1063 * @since 9 1064 * @form 1065 */ 1066 /** 1067 * Indicates that the speed of the animation is the same from start to finish. 1068 * 1069 * @syscap SystemCapability.ArkUI.ArkUI.Full 1070 * @crossplatform 1071 * @since 10 1072 * @form 1073 */ 1074 Linear, 1075 1076 /** 1077 * 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). 1078 * 1079 * @syscap SystemCapability.ArkUI.ArkUI.Full 1080 * @since 7 1081 */ 1082 /** 1083 * 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). 1084 * 1085 * @syscap SystemCapability.ArkUI.ArkUI.Full 1086 * @since 9 1087 * @form 1088 */ 1089 /** 1090 * 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). 1091 * 1092 * @syscap SystemCapability.ArkUI.ArkUI.Full 1093 * @crossplatform 1094 * @since 10 1095 * @form 1096 */ 1097 Ease, 1098 1099 /** 1100 * Indicates that the animation starts at a low speed, CubicBezier(0.42, 0.0, 1.0, 1.0). 1101 * 1102 * @syscap SystemCapability.ArkUI.ArkUI.Full 1103 * @since 7 1104 */ 1105 /** 1106 * Indicates that the animation starts at a low speed, CubicBezier(0.42, 0.0, 1.0, 1.0). 1107 * 1108 * @syscap SystemCapability.ArkUI.ArkUI.Full 1109 * @since 9 1110 * @form 1111 */ 1112 /** 1113 * Indicates that the animation starts at a low speed, CubicBezier(0.42, 0.0, 1.0, 1.0). 1114 * 1115 * @syscap SystemCapability.ArkUI.ArkUI.Full 1116 * @crossplatform 1117 * @since 10 1118 * @form 1119 */ 1120 EaseIn, 1121 1122 /** 1123 * Indicates that the animation ends at a low speed, CubicBezier(0.0, 0.0, 0.78, 1.0). 1124 * 1125 * @syscap SystemCapability.ArkUI.ArkUI.Full 1126 * @since 7 1127 */ 1128 /** 1129 * Indicates that the animation ends at a low speed, CubicBezier(0.0, 0.0, 0.78, 1.0). 1130 * 1131 * @syscap SystemCapability.ArkUI.ArkUI.Full 1132 * @since 9 1133 * @form 1134 */ 1135 /** 1136 * Indicates that the animation ends at a low speed, CubicBezier(0.0, 0.0, 0.78, 1.0). 1137 * 1138 * @syscap SystemCapability.ArkUI.ArkUI.Full 1139 * @crossplatform 1140 * @since 10 1141 * @form 1142 */ 1143 EaseOut, 1144 1145 /** 1146 * Indicates that the animation starts and ends at a slow speed, CubicBezier(0.42, 0.0, 0.78, 1.0). 1147 * 1148 * @syscap SystemCapability.ArkUI.ArkUI.Full 1149 * @since 7 1150 */ 1151 /** 1152 * Indicates that the animation starts and ends at a slow speed, CubicBezier(0.42, 0.0, 0.78, 1.0). 1153 * 1154 * @syscap SystemCapability.ArkUI.ArkUI.Full 1155 * @since 9 1156 * @form 1157 */ 1158 /** 1159 * Indicates that the animation starts and ends at a slow speed, CubicBezier(0.42, 0.0, 0.78, 1.0). 1160 * 1161 * @syscap SystemCapability.ArkUI.ArkUI.Full 1162 * @crossplatform 1163 * @since 10 1164 * @form 1165 */ 1166 EaseInOut, 1167 1168 /** 1169 * Slow-in, fast-out 1170 * 1171 * @syscap SystemCapability.ArkUI.ArkUI.Full 1172 * @since 7 1173 */ 1174 /** 1175 * Slow-in, fast-out 1176 * 1177 * @syscap SystemCapability.ArkUI.ArkUI.Full 1178 * @since 9 1179 * @form 1180 */ 1181 /** 1182 * Slow-in, fast-out 1183 * 1184 * @syscap SystemCapability.ArkUI.ArkUI.Full 1185 * @crossplatform 1186 * @since 10 1187 * @form 1188 */ 1189 FastOutSlowIn, 1190 1191 /** 1192 * Linear Out Slow In 1193 * 1194 * @syscap SystemCapability.ArkUI.ArkUI.Full 1195 * @since 7 1196 */ 1197 /** 1198 * Linear Out Slow In 1199 * 1200 * @syscap SystemCapability.ArkUI.ArkUI.Full 1201 * @since 9 1202 * @form 1203 */ 1204 /** 1205 * Linear Out Slow In 1206 * 1207 * @syscap SystemCapability.ArkUI.ArkUI.Full 1208 * @crossplatform 1209 * @since 10 1210 * @form 1211 */ 1212 LinearOutSlowIn, 1213 1214 /** 1215 * Fast Out Linear In. 1216 * 1217 * @syscap SystemCapability.ArkUI.ArkUI.Full 1218 * @since 7 1219 */ 1220 /** 1221 * Fast Out Linear In. 1222 * 1223 * @syscap SystemCapability.ArkUI.ArkUI.Full 1224 * @since 9 1225 * @form 1226 */ 1227 /** 1228 * Fast Out Linear In. 1229 * 1230 * @syscap SystemCapability.ArkUI.ArkUI.Full 1231 * @crossplatform 1232 * @since 10 1233 * @form 1234 */ 1235 FastOutLinearIn, 1236 1237 /** 1238 * Extreme Deceleration. 1239 * 1240 * @syscap SystemCapability.ArkUI.ArkUI.Full 1241 * @since 7 1242 */ 1243 /** 1244 * Extreme Deceleration. 1245 * 1246 * @syscap SystemCapability.ArkUI.ArkUI.Full 1247 * @since 9 1248 * @form 1249 */ 1250 /** 1251 * Extreme Deceleration. 1252 * 1253 * @syscap SystemCapability.ArkUI.ArkUI.Full 1254 * @crossplatform 1255 * @since 10 1256 * @form 1257 */ 1258 ExtremeDeceleration, 1259 1260 /** 1261 * Sharp. 1262 * 1263 * @syscap SystemCapability.ArkUI.ArkUI.Full 1264 * @since 7 1265 */ 1266 /** 1267 * Sharp. 1268 * 1269 * @syscap SystemCapability.ArkUI.ArkUI.Full 1270 * @since 9 1271 * @form 1272 */ 1273 /** 1274 * Sharp. 1275 * 1276 * @syscap SystemCapability.ArkUI.ArkUI.Full 1277 * @crossplatform 1278 * @since 10 1279 * @form 1280 */ 1281 Sharp, 1282 1283 /** 1284 * Rhythm. 1285 * 1286 * @syscap SystemCapability.ArkUI.ArkUI.Full 1287 * @since 7 1288 */ 1289 /** 1290 * Rhythm. 1291 * 1292 * @syscap SystemCapability.ArkUI.ArkUI.Full 1293 * @since 9 1294 * @form 1295 */ 1296 /** 1297 * Rhythm. 1298 * 1299 * @syscap SystemCapability.ArkUI.ArkUI.Full 1300 * @crossplatform 1301 * @since 10 1302 * @form 1303 */ 1304 Rhythm, 1305 1306 /** 1307 * Smooth. 1308 * 1309 * @syscap SystemCapability.ArkUI.ArkUI.Full 1310 * @since 7 1311 */ 1312 /** 1313 * Smooth. 1314 * 1315 * @syscap SystemCapability.ArkUI.ArkUI.Full 1316 * @since 9 1317 * @form 1318 */ 1319 /** 1320 * Smooth. 1321 * 1322 * @syscap SystemCapability.ArkUI.ArkUI.Full 1323 * @crossplatform 1324 * @since 10 1325 * @form 1326 */ 1327 Smooth, 1328 1329 /** 1330 * Damping curve, CubicBezier(0.2, 0.0, 0.2, 1.0). 1331 * 1332 * @syscap SystemCapability.ArkUI.ArkUI.Full 1333 * @since 7 1334 */ 1335 /** 1336 * Damping curve, CubicBezier(0.2, 0.0, 0.2, 1.0). 1337 * 1338 * @syscap SystemCapability.ArkUI.ArkUI.Full 1339 * @since 9 1340 * @form 1341 */ 1342 /** 1343 * Damping curve, CubicBezier(0.2, 0.0, 0.2, 1.0). 1344 * 1345 * @syscap SystemCapability.ArkUI.ArkUI.Full 1346 * @crossplatform 1347 * @since 10 1348 * @form 1349 */ 1350 Friction, 1351} 1352 1353/** 1354 * Sets the state before and after the animation starts. 1355 * 1356 * @enum { number } 1357 * @syscap SystemCapability.ArkUI.ArkUI.Full 1358 * @since 7 1359 */ 1360/** 1361 * Sets the state before and after the animation starts. 1362 * 1363 * @enum { number } 1364 * @syscap SystemCapability.ArkUI.ArkUI.Full 1365 * @crossplatform 1366 * @since 10 1367 * @form 1368 */ 1369declare enum FillMode { 1370 /** 1371 * Restores to the initial state after the playback is complete. 1372 * 1373 * @syscap SystemCapability.ArkUI.ArkUI.Full 1374 * @since 7 1375 */ 1376 /** 1377 * Restores to the initial state after the playback is complete. 1378 * 1379 * @syscap SystemCapability.ArkUI.ArkUI.Full 1380 * @crossplatform 1381 * @since 10 1382 * @form 1383 */ 1384 None, 1385 1386 /** 1387 * Retains the state at the end of the animation when the playback is complete. 1388 * 1389 * @syscap SystemCapability.ArkUI.ArkUI.Full 1390 * @since 7 1391 */ 1392 /** 1393 * Retains the state at the end of the animation when the playback is complete. 1394 * 1395 * @syscap SystemCapability.ArkUI.ArkUI.Full 1396 * @crossplatform 1397 * @since 10 1398 * @form 1399 */ 1400 Forwards, 1401 1402 /** 1403 * Applies the start attribute value for the period specified by animation-delay before the animation is displayed. 1404 * 1405 * @syscap SystemCapability.ArkUI.ArkUI.Full 1406 * @since 7 1407 */ 1408 /** 1409 * Applies the start attribute value for the period specified by animation-delay before the animation is displayed. 1410 * 1411 * @syscap SystemCapability.ArkUI.ArkUI.Full 1412 * @crossplatform 1413 * @since 10 1414 * @form 1415 */ 1416 Backwards, 1417 1418 /** 1419 * Both forward and backward fill modes are applied. 1420 * 1421 * @syscap SystemCapability.ArkUI.ArkUI.Full 1422 * @since 7 1423 */ 1424 /** 1425 * Both forward and backward fill modes are applied. 1426 * 1427 * @syscap SystemCapability.ArkUI.ArkUI.Full 1428 * @crossplatform 1429 * @since 10 1430 * @form 1431 */ 1432 Both, 1433} 1434 1435/** 1436 * Play Mode 1437 * 1438 * @enum { number } 1439 * @syscap SystemCapability.ArkUI.ArkUI.Full 1440 * @since 7 1441 */ 1442/** 1443 * Play Mode 1444 * 1445 * @enum { number } 1446 * @syscap SystemCapability.ArkUI.ArkUI.Full 1447 * @since 9 1448 * @form 1449 */ 1450/** 1451 * Play Mode 1452 * 1453 * @enum { number } 1454 * @syscap SystemCapability.ArkUI.ArkUI.Full 1455 * @crossplatform 1456 * @since 10 1457 * @form 1458 */ 1459declare enum PlayMode { 1460 /** 1461 * The animation plays normally. 1462 * 1463 * @syscap SystemCapability.ArkUI.ArkUI.Full 1464 * @since 7 1465 */ 1466 /** 1467 * The animation plays normally. 1468 * 1469 * @syscap SystemCapability.ArkUI.ArkUI.Full 1470 * @since 9 1471 * @form 1472 */ 1473 /** 1474 * The animation plays normally. 1475 * 1476 * @syscap SystemCapability.ArkUI.ArkUI.Full 1477 * @crossplatform 1478 * @since 10 1479 * @form 1480 */ 1481 Normal, 1482 1483 /** 1484 * The animation plays backwards. 1485 * 1486 * @syscap SystemCapability.ArkUI.ArkUI.Full 1487 * @since 7 1488 */ 1489 /** 1490 * The animation plays backwards. 1491 * 1492 * @syscap SystemCapability.ArkUI.ArkUI.Full 1493 * @since 9 1494 * @form 1495 */ 1496 /** 1497 * The animation plays backwards. 1498 * 1499 * @syscap SystemCapability.ArkUI.ArkUI.Full 1500 * @crossplatform 1501 * @since 10 1502 * @form 1503 */ 1504 Reverse, 1505 1506 /** 1507 * The animation plays forward on odd numbers (1, 3, 7...) and backward on even numbers (2, 4, 6...). 1508 * 1509 * @syscap SystemCapability.ArkUI.ArkUI.Full 1510 * @since 7 1511 */ 1512 /** 1513 * The animation plays forward on odd numbers (1, 3, 7...) and backward on even numbers (2, 4, 6...). 1514 * 1515 * @syscap SystemCapability.ArkUI.ArkUI.Full 1516 * @since 9 1517 * @form 1518 */ 1519 /** 1520 * The animation plays forward on odd numbers (1, 3, 7...) and backward on even numbers (2, 4, 6...). 1521 * 1522 * @syscap SystemCapability.ArkUI.ArkUI.Full 1523 * @crossplatform 1524 * @since 10 1525 * @form 1526 */ 1527 Alternate, 1528 1529 /** 1530 * The animation plays backwards on odd numbers (1, 3, 7...) and forwards on even numbers (2, 4, 6...).. 1531 * 1532 * @syscap SystemCapability.ArkUI.ArkUI.Full 1533 * @since 7 1534 */ 1535 /** 1536 * The animation plays backwards on odd numbers (1, 3, 7...) and forwards on even numbers (2, 4, 6...).. 1537 * 1538 * @syscap SystemCapability.ArkUI.ArkUI.Full 1539 * @since 9 1540 * @form 1541 */ 1542 /** 1543 * The animation plays backwards on odd numbers (1, 3, 7...) and forwards on even numbers (2, 4, 6...).. 1544 * 1545 * @syscap SystemCapability.ArkUI.ArkUI.Full 1546 * @crossplatform 1547 * @since 10 1548 * @form 1549 */ 1550 AlternateReverse, 1551} 1552 1553/** 1554 * Type of a key. 1555 * 1556 * @enum { number } 1557 * @syscap SystemCapability.ArkUI.ArkUI.Full 1558 * @since 7 1559 */ 1560/** 1561 * Type of a key. 1562 * 1563 * @enum { number } 1564 * @syscap SystemCapability.ArkUI.ArkUI.Full 1565 * @crossplatform 1566 * @since 10 1567 */ 1568declare enum KeyType { 1569 /** 1570 * Press the key. 1571 * 1572 * @syscap SystemCapability.ArkUI.ArkUI.Full 1573 * @since 7 1574 */ 1575 /** 1576 * Press the key. 1577 * 1578 * @syscap SystemCapability.ArkUI.ArkUI.Full 1579 * @crossplatform 1580 * @since 10 1581 */ 1582 Down, 1583 1584 /** 1585 * The key is released. 1586 * 1587 * @syscap SystemCapability.ArkUI.ArkUI.Full 1588 * @since 7 1589 */ 1590 /** 1591 * The key is released. 1592 * 1593 * @syscap SystemCapability.ArkUI.ArkUI.Full 1594 * @crossplatform 1595 * @since 10 1596 */ 1597 Up, 1598} 1599 1600/** 1601 * Type of the input device that triggers the current key. 1602 * 1603 * @enum { number } 1604 * @syscap SystemCapability.ArkUI.ArkUI.Full 1605 * @since 7 1606 */ 1607/** 1608 * Type of the input device that triggers the current key. 1609 * 1610 * @enum { number } 1611 * @syscap SystemCapability.ArkUI.ArkUI.Full 1612 * @crossplatform 1613 * @since 10 1614 */ 1615declare enum KeySource { 1616 /** 1617 * The input device type is unknown. 1618 * 1619 * @syscap SystemCapability.ArkUI.ArkUI.Full 1620 * @since 7 1621 */ 1622 /** 1623 * The input device type is unknown. 1624 * 1625 * @syscap SystemCapability.ArkUI.ArkUI.Full 1626 * @crossplatform 1627 * @since 10 1628 */ 1629 Unknown, 1630 1631 /** 1632 * Set Device Type to Keyboard. 1633 * 1634 * @syscap SystemCapability.ArkUI.ArkUI.Full 1635 * @since 7 1636 */ 1637 /** 1638 * Set Device Type to Keyboard. 1639 * 1640 * @syscap SystemCapability.ArkUI.ArkUI.Full 1641 * @crossplatform 1642 * @since 10 1643 */ 1644 Keyboard, 1645} 1646 1647/** 1648 * Edge. 1649 * 1650 * @enum { number } 1651 * @syscap SystemCapability.ArkUI.ArkUI.Full 1652 * @since 7 1653 */ 1654/** 1655 * Edge. 1656 * 1657 * @enum { number } 1658 * @syscap SystemCapability.ArkUI.ArkUI.Full 1659 * @crossplatform 1660 * @since 10 1661 */ 1662declare enum Edge { 1663 /** 1664 * The top is centered horizontally. 1665 * 1666 * @syscap SystemCapability.ArkUI.ArkUI.Full 1667 * @since 7 1668 */ 1669 /** 1670 * The top is centered horizontally. 1671 * 1672 * @syscap SystemCapability.ArkUI.ArkUI.Full 1673 * @crossplatform 1674 * @since 10 1675 */ 1676 Top, 1677 1678 /** 1679 * Center horizontal and vertical. 1680 * 1681 * @syscap SystemCapability.ArkUI.ArkUI.Full 1682 * @since 7 1683 * @deprecated since 9 1684 */ 1685 Center, 1686 1687 /** 1688 * The bottom is centered horizontally. 1689 * 1690 * @syscap SystemCapability.ArkUI.ArkUI.Full 1691 * @since 7 1692 */ 1693 /** 1694 * The bottom is centered horizontally. 1695 * 1696 * @syscap SystemCapability.ArkUI.ArkUI.Full 1697 * @crossplatform 1698 * @since 10 1699 */ 1700 Bottom, 1701 1702 /** 1703 * Cross axis direction text baseline alignment. 1704 * 1705 * @syscap SystemCapability.ArkUI.ArkUI.Full 1706 * @since 7 1707 * @deprecated since 9 1708 */ 1709 Baseline, 1710 1711 /** 1712 * Align the head of the cross axis direction. 1713 * 1714 * @syscap SystemCapability.ArkUI.ArkUI.Full 1715 * @since 7 1716 */ 1717 /** 1718 * Align the head of the cross axis direction. 1719 * 1720 * @syscap SystemCapability.ArkUI.ArkUI.Full 1721 * @crossplatform 1722 * @since 10 1723 */ 1724 Start, 1725 1726 /** 1727 * Middle 1728 * 1729 * @syscap SystemCapability.ArkUI.ArkUI.Full 1730 * @since 7 1731 * @deprecated since 9 1732 */ 1733 Middle, 1734 1735 /** 1736 * Align the head of the cross axis direction. 1737 * 1738 * @syscap SystemCapability.ArkUI.ArkUI.Full 1739 * @since 7 1740 */ 1741 /** 1742 * Align the head of the cross axis direction. 1743 * 1744 * @syscap SystemCapability.ArkUI.ArkUI.Full 1745 * @crossplatform 1746 * @since 10 1747 */ 1748 End, 1749} 1750 1751/** 1752 * Set Weekend 1753 * 1754 * @enum { number } 1755 * @syscap SystemCapability.ArkUI.ArkUI.Full 1756 * @since 7 1757 */ 1758/** 1759 * Set Weekend 1760 * 1761 * @enum { number } 1762 * @syscap SystemCapability.ArkUI.ArkUI.Full 1763 * @crossplatform 1764 * @since 10 1765 */ 1766declare enum Week { 1767 /** 1768 * Monday. 1769 * 1770 * @syscap SystemCapability.ArkUI.ArkUI.Full 1771 * @since 7 1772 */ 1773 /** 1774 * Monday. 1775 * 1776 * @syscap SystemCapability.ArkUI.ArkUI.Full 1777 * @crossplatform 1778 * @since 10 1779 */ 1780 Mon, 1781 1782 /** 1783 * Tuesday. 1784 * 1785 * @syscap SystemCapability.ArkUI.ArkUI.Full 1786 * @since 7 1787 */ 1788 /** 1789 * Tuesday. 1790 * 1791 * @syscap SystemCapability.ArkUI.ArkUI.Full 1792 * @crossplatform 1793 * @since 10 1794 */ 1795 Tue, 1796 1797 /** 1798 * Wednesday. 1799 * 1800 * @syscap SystemCapability.ArkUI.ArkUI.Full 1801 * @since 7 1802 */ 1803 /** 1804 * Wednesday. 1805 * 1806 * @syscap SystemCapability.ArkUI.ArkUI.Full 1807 * @crossplatform 1808 * @since 10 1809 */ 1810 Wed, 1811 1812 /** 1813 * Thursday. 1814 * 1815 * @syscap SystemCapability.ArkUI.ArkUI.Full 1816 * @since 7 1817 */ 1818 /** 1819 * Thursday. 1820 * 1821 * @syscap SystemCapability.ArkUI.ArkUI.Full 1822 * @crossplatform 1823 * @since 10 1824 */ 1825 Thur, 1826 1827 /** 1828 * Friday. 1829 * 1830 * @syscap SystemCapability.ArkUI.ArkUI.Full 1831 * @since 7 1832 */ 1833 /** 1834 * Friday. 1835 * 1836 * @syscap SystemCapability.ArkUI.ArkUI.Full 1837 * @crossplatform 1838 * @since 10 1839 */ 1840 Fri, 1841 1842 /** 1843 * Saturday. 1844 * 1845 * @syscap SystemCapability.ArkUI.ArkUI.Full 1846 * @since 7 1847 */ 1848 /** 1849 * Saturday. 1850 * 1851 * @syscap SystemCapability.ArkUI.ArkUI.Full 1852 * @crossplatform 1853 * @since 10 1854 */ 1855 Sat, 1856 1857 /** 1858 * Sunday. 1859 * 1860 * @syscap SystemCapability.ArkUI.ArkUI.Full 1861 * @since 7 1862 */ 1863 /** 1864 * Sunday. 1865 * 1866 * @syscap SystemCapability.ArkUI.ArkUI.Full 1867 * @crossplatform 1868 * @since 10 1869 */ 1870 Sun, 1871} 1872 1873/** 1874 * Sets the horizontal layout of elements. 1875 * 1876 * @enum { number } 1877 * @syscap SystemCapability.ArkUI.ArkUI.Full 1878 * @since 7 1879 */ 1880/** 1881 * Sets the horizontal layout of elements. 1882 * 1883 * @enum { number } 1884 * @syscap SystemCapability.ArkUI.ArkUI.Full 1885 * @since 9 1886 * @form 1887 */ 1888/** 1889 * Sets the horizontal layout of elements. 1890 * 1891 * @enum { number } 1892 * @syscap SystemCapability.ArkUI.ArkUI.Full 1893 * @crossplatform 1894 * @since 10 1895 * @form 1896 */ 1897declare enum Direction { 1898 /** 1899 * Elements are laid out from left to right. 1900 * 1901 * @syscap SystemCapability.ArkUI.ArkUI.Full 1902 * @since 7 1903 */ 1904 /** 1905 * Elements are laid out from left to right. 1906 * 1907 * @syscap SystemCapability.ArkUI.ArkUI.Full 1908 * @since 9 1909 * @form 1910 */ 1911 /** 1912 * Elements are laid out from left to right. 1913 * 1914 * @syscap SystemCapability.ArkUI.ArkUI.Full 1915 * @crossplatform 1916 * @since 10 1917 * @form 1918 */ 1919 Ltr, 1920 1921 /** 1922 * Elements are laid out from right to left. 1923 * 1924 * @syscap SystemCapability.ArkUI.ArkUI.Full 1925 * @since 7 1926 */ 1927 /** 1928 * Elements are laid out from right to left. 1929 * 1930 * @syscap SystemCapability.ArkUI.ArkUI.Full 1931 * @since 9 1932 * @form 1933 */ 1934 /** 1935 * Elements are laid out from right to left. 1936 * 1937 * @syscap SystemCapability.ArkUI.ArkUI.Full 1938 * @crossplatform 1939 * @since 10 1940 * @form 1941 */ 1942 Rtl, 1943 1944 /** 1945 * Use the default layout direction. 1946 * 1947 * @syscap SystemCapability.ArkUI.ArkUI.Full 1948 * @since 7 1949 */ 1950 /** 1951 * Use the default layout direction. 1952 * 1953 * @syscap SystemCapability.ArkUI.ArkUI.Full 1954 * @since 9 1955 * @form 1956 */ 1957 /** 1958 * Use the default layout direction. 1959 * 1960 * @syscap SystemCapability.ArkUI.ArkUI.Full 1961 * @crossplatform 1962 * @since 10 1963 * @form 1964 */ 1965 Auto, 1966} 1967 1968/** 1969 * Used to set the status of the scroll bar. 1970 * 1971 * @enum { number } 1972 * @syscap SystemCapability.ArkUI.ArkUI.Full 1973 * @since 7 1974 */ 1975/** 1976 * Used to set the status of the scroll bar. 1977 * 1978 * @enum { number } 1979 * @syscap SystemCapability.ArkUI.ArkUI.Full 1980 * @since 9 1981 * @form 1982 */ 1983/** 1984 * Used to set the status of the scroll bar. 1985 * 1986 * @enum { number } 1987 * @syscap SystemCapability.ArkUI.ArkUI.Full 1988 * @crossplatform 1989 * @since 10 1990 * @form 1991 */ 1992declare enum BarState { 1993 /** 1994 * Not displayed. 1995 * 1996 * @syscap SystemCapability.ArkUI.ArkUI.Full 1997 * @since 7 1998 */ 1999 /** 2000 * Not displayed. 2001 * 2002 * @syscap SystemCapability.ArkUI.ArkUI.Full 2003 * @since 9 2004 * @form 2005 */ 2006 /** 2007 * Not displayed. 2008 * 2009 * @syscap SystemCapability.ArkUI.ArkUI.Full 2010 * @crossplatform 2011 * @since 10 2012 * @form 2013 */ 2014 Off, 2015 2016 /** 2017 * On-demand display (displayed when you touch it and disappears after 2 seconds). 2018 * 2019 * @syscap SystemCapability.ArkUI.ArkUI.Full 2020 * @since 7 2021 */ 2022 /** 2023 * On-demand display (displayed when you touch it and disappears after 2 seconds). 2024 * 2025 * @syscap SystemCapability.ArkUI.ArkUI.Full 2026 * @since 9 2027 * @form 2028 */ 2029 /** 2030 * On-demand display (displayed when you touch it and disappears after 2 seconds). 2031 * 2032 * @syscap SystemCapability.ArkUI.ArkUI.Full 2033 * @crossplatform 2034 * @since 10 2035 * @form 2036 */ 2037 Auto, 2038 2039 /** 2040 * Resident display. 2041 * 2042 * @syscap SystemCapability.ArkUI.ArkUI.Full 2043 * @since 7 2044 */ 2045 /** 2046 * Resident display. 2047 * 2048 * @syscap SystemCapability.ArkUI.ArkUI.Full 2049 * @since 9 2050 * @form 2051 */ 2052 /** 2053 * Resident display. 2054 * 2055 * @syscap SystemCapability.ArkUI.ArkUI.Full 2056 * @crossplatform 2057 * @since 10 2058 * @form 2059 */ 2060 On, 2061} 2062 2063/** 2064 * Sliding effect 2065 * 2066 * @enum { number } 2067 * @syscap SystemCapability.ArkUI.ArkUI.Full 2068 * @since 7 2069 */ 2070/** 2071 * Sliding effect 2072 * 2073 * @enum { number } 2074 * @syscap SystemCapability.ArkUI.ArkUI.Full 2075 * @since 9 2076 * @form 2077 */ 2078/** 2079 * Sliding effect 2080 * 2081 * @enum { number } 2082 * @syscap SystemCapability.ArkUI.ArkUI.Full 2083 * @crossplatform 2084 * @since 10 2085 * @form 2086 */ 2087declare enum EdgeEffect { 2088 /** 2089 * 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. 2090 * 2091 * @syscap SystemCapability.ArkUI.ArkUI.Full 2092 * @since 7 2093 */ 2094 /** 2095 * 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. 2096 * 2097 * @syscap SystemCapability.ArkUI.ArkUI.Full 2098 * @since 9 2099 * @form 2100 */ 2101 /** 2102 * 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. 2103 * 2104 * @syscap SystemCapability.ArkUI.ArkUI.Full 2105 * @crossplatform 2106 * @since 10 2107 * @form 2108 */ 2109 Spring, 2110 2111 /** 2112 * Fade. 2113 * 2114 * @syscap SystemCapability.ArkUI.ArkUI.Full 2115 * @since 7 2116 */ 2117 /** 2118 * Fade. 2119 * 2120 * @syscap SystemCapability.ArkUI.ArkUI.Full 2121 * @since 9 2122 * @form 2123 */ 2124 /** 2125 * Fade. 2126 * 2127 * @syscap SystemCapability.ArkUI.ArkUI.Full 2128 * @crossplatform 2129 * @since 10 2130 * @form 2131 */ 2132 Fade, 2133 2134 /** 2135 * Sliding to the edge has no effect. 2136 * 2137 * @syscap SystemCapability.ArkUI.ArkUI.Full 2138 * @since 7 2139 */ 2140 /** 2141 * Sliding to the edge has no effect. 2142 * 2143 * @syscap SystemCapability.ArkUI.ArkUI.Full 2144 * @since 9 2145 * @form 2146 */ 2147 /** 2148 * Sliding to the edge has no effect. 2149 * 2150 * @syscap SystemCapability.ArkUI.ArkUI.Full 2151 * @crossplatform 2152 * @since 10 2153 * @form 2154 */ 2155 None, 2156} 2157 2158/** 2159 * Alignment enumeration description. 2160 * 2161 * @enum { number } 2162 * @syscap SystemCapability.ArkUI.ArkUI.Full 2163 * @since 7 2164 */ 2165/** 2166 * Alignment enumeration description. 2167 * 2168 * @enum { number } 2169 * @syscap SystemCapability.ArkUI.ArkUI.Full 2170 * @since 9 2171 * @form 2172 */ 2173/** 2174 * Alignment enumeration description. 2175 * 2176 * @enum { number } 2177 * @syscap SystemCapability.ArkUI.ArkUI.Full 2178 * @crossplatform 2179 * @since 10 2180 * @form 2181 */ 2182declare enum Alignment { 2183 /** 2184 * Top Start. 2185 * 2186 * @syscap SystemCapability.ArkUI.ArkUI.Full 2187 * @since 7 2188 */ 2189 /** 2190 * Top Start. 2191 * 2192 * @syscap SystemCapability.ArkUI.ArkUI.Full 2193 * @since 9 2194 * @form 2195 */ 2196 /** 2197 * Top Start. 2198 * 2199 * @syscap SystemCapability.ArkUI.ArkUI.Full 2200 * @crossplatform 2201 * @since 10 2202 * @form 2203 */ 2204 TopStart, 2205 2206 /** 2207 * The top is centered horizontally. 2208 * 2209 * @syscap SystemCapability.ArkUI.ArkUI.Full 2210 * @since 7 2211 */ 2212 /** 2213 * The top is centered horizontally. 2214 * 2215 * @syscap SystemCapability.ArkUI.ArkUI.Full 2216 * @since 9 2217 * @form 2218 */ 2219 /** 2220 * The top is centered horizontally. 2221 * 2222 * @syscap SystemCapability.ArkUI.ArkUI.Full 2223 * @crossplatform 2224 * @since 10 2225 * @form 2226 */ 2227 Top, 2228 2229 /** 2230 * Top tail end. 2231 * 2232 * @syscap SystemCapability.ArkUI.ArkUI.Full 2233 * @since 7 2234 */ 2235 /** 2236 * Top tail end. 2237 * 2238 * @syscap SystemCapability.ArkUI.ArkUI.Full 2239 * @since 9 2240 * @form 2241 */ 2242 /** 2243 * Top tail end. 2244 * 2245 * @syscap SystemCapability.ArkUI.ArkUI.Full 2246 * @crossplatform 2247 * @since 10 2248 * @form 2249 */ 2250 TopEnd, 2251 2252 /** 2253 * The starting end is centered longitudinally. 2254 * 2255 * @syscap SystemCapability.ArkUI.ArkUI.Full 2256 * @since 7 2257 */ 2258 /** 2259 * The starting end is centered longitudinally. 2260 * 2261 * @syscap SystemCapability.ArkUI.ArkUI.Full 2262 * @since 9 2263 * @form 2264 */ 2265 /** 2266 * The starting end is centered longitudinally. 2267 * 2268 * @syscap SystemCapability.ArkUI.ArkUI.Full 2269 * @crossplatform 2270 * @since 10 2271 * @form 2272 */ 2273 Start, 2274 2275 /** 2276 * Center horizontal and vertical. 2277 * 2278 * @syscap SystemCapability.ArkUI.ArkUI.Full 2279 * @since 7 2280 */ 2281 /** 2282 * Center horizontal and vertical. 2283 * 2284 * @syscap SystemCapability.ArkUI.ArkUI.Full 2285 * @since 9 2286 * @form 2287 */ 2288 /** 2289 * Center horizontal and vertical. 2290 * 2291 * @syscap SystemCapability.ArkUI.ArkUI.Full 2292 * @crossplatform 2293 * @since 10 2294 * @form 2295 */ 2296 Center, 2297 2298 /** 2299 * The tail end is centered longitudinally. 2300 * 2301 * @syscap SystemCapability.ArkUI.ArkUI.Full 2302 * @since 7 2303 */ 2304 /** 2305 * The tail end is centered longitudinally. 2306 * 2307 * @syscap SystemCapability.ArkUI.ArkUI.Full 2308 * @since 9 2309 * @form 2310 */ 2311 /** 2312 * The tail end is centered longitudinally. 2313 * 2314 * @syscap SystemCapability.ArkUI.ArkUI.Full 2315 * @crossplatform 2316 * @since 10 2317 * @form 2318 */ 2319 End, 2320 2321 /** 2322 * Bottom starting end. 2323 * 2324 * @syscap SystemCapability.ArkUI.ArkUI.Full 2325 * @since 7 2326 */ 2327 /** 2328 * Bottom starting end. 2329 * 2330 * @syscap SystemCapability.ArkUI.ArkUI.Full 2331 * @since 9 2332 * @form 2333 */ 2334 /** 2335 * Bottom starting end. 2336 * 2337 * @syscap SystemCapability.ArkUI.ArkUI.Full 2338 * @crossplatform 2339 * @since 10 2340 * @form 2341 */ 2342 BottomStart, 2343 2344 /** 2345 * The bottom is centered horizontally. 2346 * 2347 * @syscap SystemCapability.ArkUI.ArkUI.Full 2348 * @since 7 2349 */ 2350 /** 2351 * The bottom is centered horizontally. 2352 * 2353 * @syscap SystemCapability.ArkUI.ArkUI.Full 2354 * @since 9 2355 * @form 2356 */ 2357 /** 2358 * The bottom is centered horizontally. 2359 * 2360 * @syscap SystemCapability.ArkUI.ArkUI.Full 2361 * @crossplatform 2362 * @since 10 2363 * @form 2364 */ 2365 Bottom, 2366 2367 /** 2368 * Bottom end. 2369 * 2370 * @syscap SystemCapability.ArkUI.ArkUI.Full 2371 * @since 7 2372 */ 2373 /** 2374 * Bottom end. 2375 * 2376 * @syscap SystemCapability.ArkUI.ArkUI.Full 2377 * @since 9 2378 * @form 2379 */ 2380 /** 2381 * Bottom end. 2382 * 2383 * @syscap SystemCapability.ArkUI.ArkUI.Full 2384 * @crossplatform 2385 * @since 10 2386 * @form 2387 */ 2388 BottomEnd, 2389} 2390 2391/** 2392 * TransitionType enumeration description. 2393 * 2394 * @enum { number } 2395 * @syscap SystemCapability.ArkUI.ArkUI.Full 2396 * @since 7 2397 */ 2398/** 2399 * TransitionType enumeration description. 2400 * 2401 * @enum { number } 2402 * @syscap SystemCapability.ArkUI.ArkUI.Full 2403 * @since 9 2404 * @form 2405 */ 2406/** 2407 * TransitionType enumeration description. 2408 * 2409 * @enum { number } 2410 * @syscap SystemCapability.ArkUI.ArkUI.Full 2411 * @crossplatform 2412 * @since 10 2413 * @form 2414 */ 2415declare enum TransitionType { 2416 /** 2417 * Specifies that the current transition action takes effect in all change scenarios of the component. 2418 * 2419 * @syscap SystemCapability.ArkUI.ArkUI.Full 2420 * @since 7 2421 */ 2422 /** 2423 * Specifies that the current transition action takes effect in all change scenarios of the component. 2424 * 2425 * @syscap SystemCapability.ArkUI.ArkUI.Full 2426 * @since 9 2427 * @form 2428 */ 2429 /** 2430 * Specifies that the current transition action takes effect in all change scenarios of the component. 2431 * 2432 * @syscap SystemCapability.ArkUI.ArkUI.Full 2433 * @crossplatform 2434 * @since 10 2435 * @form 2436 */ 2437 All, 2438 2439 /** 2440 * Specifies the insertion scenario in which the current transition action takes effect. 2441 * 2442 * @syscap SystemCapability.ArkUI.ArkUI.Full 2443 * @since 7 2444 */ 2445 /** 2446 * Specifies the insertion scenario in which the current transition action takes effect. 2447 * 2448 * @syscap SystemCapability.ArkUI.ArkUI.Full 2449 * @since 9 2450 * @form 2451 */ 2452 /** 2453 * Specifies the insertion scenario in which the current transition action takes effect. 2454 * 2455 * @syscap SystemCapability.ArkUI.ArkUI.Full 2456 * @crossplatform 2457 * @since 10 2458 * @form 2459 */ 2460 Insert, 2461 2462 /** 2463 * Specifies the deletion scenario in which the current transition action takes effect. 2464 * 2465 * @syscap SystemCapability.ArkUI.ArkUI.Full 2466 * @since 7 2467 */ 2468 /** 2469 * Specifies the deletion scenario in which the current transition action takes effect. 2470 * 2471 * @syscap SystemCapability.ArkUI.ArkUI.Full 2472 * @since 9 2473 * @form 2474 */ 2475 /** 2476 * Specifies the deletion scenario in which the current transition action takes effect. 2477 * 2478 * @syscap SystemCapability.ArkUI.ArkUI.Full 2479 * @crossplatform 2480 * @since 10 2481 * @form 2482 */ 2483 Delete, 2484} 2485 2486/** 2487 * RelateType enumeration description 2488 * 2489 * @enum { number } 2490 * @syscap SystemCapability.ArkUI.ArkUI.Full 2491 * @since 7 2492 */ 2493/** 2494 * RelateType enumeration description 2495 * 2496 * @enum { number } 2497 * @syscap SystemCapability.ArkUI.ArkUI.Full 2498 * @crossplatform 2499 * @since 10 2500 */ 2501declare enum RelateType { 2502 /** 2503 * Scales the current component to fill the parent component. 2504 * 2505 * @syscap SystemCapability.ArkUI.ArkUI.Full 2506 * @since 7 2507 */ 2508 /** 2509 * Scales the current component to fill the parent component. 2510 * 2511 * @syscap SystemCapability.ArkUI.ArkUI.Full 2512 * @crossplatform 2513 * @since 10 2514 */ 2515 FILL, 2516 2517 /** 2518 * Scales the current component to fit the parent component. 2519 * 2520 * @syscap SystemCapability.ArkUI.ArkUI.Full 2521 * @since 7 2522 */ 2523 /** 2524 * Scales the current component to fit the parent component. 2525 * 2526 * @syscap SystemCapability.ArkUI.ArkUI.Full 2527 * @crossplatform 2528 * @since 10 2529 */ 2530 FIT, 2531} 2532 2533/** 2534 * Controls the display or hide of the current component 2535 * 2536 * @enum { number } 2537 * @syscap SystemCapability.ArkUI.ArkUI.Full 2538 * @since 7 2539 */ 2540/** 2541 * Controls the display or hide of the current component 2542 * 2543 * @enum { number } 2544 * @syscap SystemCapability.ArkUI.ArkUI.Full 2545 * @since 9 2546 * @form 2547 */ 2548/** 2549 * Controls the display or hide of the current component 2550 * 2551 * @enum { number } 2552 * @syscap SystemCapability.ArkUI.ArkUI.Full 2553 * @crossplatform 2554 * @since 10 2555 * @form 2556 */ 2557declare enum Visibility { 2558 /** 2559 * Show 2560 * 2561 * @syscap SystemCapability.ArkUI.ArkUI.Full 2562 * @since 7 2563 */ 2564 /** 2565 * Show 2566 * 2567 * @syscap SystemCapability.ArkUI.ArkUI.Full 2568 * @since 9 2569 * @form 2570 */ 2571 /** 2572 * Show 2573 * 2574 * @syscap SystemCapability.ArkUI.ArkUI.Full 2575 * @crossplatform 2576 * @since 10 2577 * @form 2578 */ 2579 Visible, 2580 2581 /** 2582 * Hide, but participate in layout for placeholder. 2583 * 2584 * @syscap SystemCapability.ArkUI.ArkUI.Full 2585 * @since 7 2586 */ 2587 /** 2588 * Hide, but participate in layout for placeholder. 2589 * 2590 * @syscap SystemCapability.ArkUI.ArkUI.Full 2591 * @since 9 2592 * @form 2593 */ 2594 /** 2595 * Hide, but participate in layout for placeholder. 2596 * 2597 * @syscap SystemCapability.ArkUI.ArkUI.Full 2598 * @crossplatform 2599 * @since 10 2600 * @form 2601 */ 2602 Hidden, 2603 2604 /** 2605 * Hides but does not participate in layout and does not take place. 2606 * 2607 * @syscap SystemCapability.ArkUI.ArkUI.Full 2608 * @since 7 2609 */ 2610 /** 2611 * Hides but does not participate in layout and does not take place. 2612 * 2613 * @syscap SystemCapability.ArkUI.ArkUI.Full 2614 * @since 9 2615 * @form 2616 */ 2617 /** 2618 * Hides but does not participate in layout and does not take place. 2619 * 2620 * @syscap SystemCapability.ArkUI.ArkUI.Full 2621 * @crossplatform 2622 * @since 10 2623 * @form 2624 */ 2625 None, 2626} 2627 2628/** 2629 * LineCapStyle enumeration description 2630 * 2631 * @enum { number } 2632 * @syscap SystemCapability.ArkUI.ArkUI.Full 2633 * @since 7 2634 */ 2635/** 2636 * LineCapStyle enumeration description 2637 * 2638 * @enum { number } 2639 * @syscap SystemCapability.ArkUI.ArkUI.Full 2640 * @since 9 2641 * @form 2642 */ 2643/** 2644 * LineCapStyle enumeration description 2645 * 2646 * @enum { number } 2647 * @syscap SystemCapability.ArkUI.ArkUI.Full 2648 * @crossplatform 2649 * @since 10 2650 * @form 2651 */ 2652declare enum LineCapStyle { 2653 /** 2654 * The two ends of the dividing line are parallel lines. 2655 * 2656 * @syscap SystemCapability.ArkUI.ArkUI.Full 2657 * @since 7 2658 */ 2659 /** 2660 * The two ends of the dividing line are parallel lines. 2661 * 2662 * @syscap SystemCapability.ArkUI.ArkUI.Full 2663 * @since 9 2664 * @form 2665 */ 2666 /** 2667 * The two ends of the dividing line are parallel lines. 2668 * 2669 * @syscap SystemCapability.ArkUI.ArkUI.Full 2670 * @crossplatform 2671 * @since 10 2672 * @form 2673 */ 2674 Butt, 2675 2676 /** 2677 * The two ends of the dividing line are semicircles. 2678 * 2679 * @syscap SystemCapability.ArkUI.ArkUI.Full 2680 * @since 7 2681 */ 2682 /** 2683 * The two ends of the dividing line are semicircles. 2684 * 2685 * @syscap SystemCapability.ArkUI.ArkUI.Full 2686 * @since 9 2687 * @form 2688 */ 2689 /** 2690 * The two ends of the dividing line are semicircles. 2691 * 2692 * @syscap SystemCapability.ArkUI.ArkUI.Full 2693 * @crossplatform 2694 * @since 10 2695 * @form 2696 */ 2697 Round, 2698 2699 /** 2700 * 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. 2701 * 2702 * @syscap SystemCapability.ArkUI.ArkUI.Full 2703 * @since 7 2704 */ 2705 /** 2706 * 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. 2707 * 2708 * @syscap SystemCapability.ArkUI.ArkUI.Full 2709 * @since 9 2710 * @form 2711 */ 2712 /** 2713 * 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. 2714 * 2715 * @syscap SystemCapability.ArkUI.ArkUI.Full 2716 * @crossplatform 2717 * @since 10 2718 * @form 2719 */ 2720 Square, 2721} 2722 2723/** 2724 * Axis enumeration description. 2725 * 2726 * @enum { number } 2727 * @syscap SystemCapability.ArkUI.ArkUI.Full 2728 * @since 7 2729 */ 2730/** 2731 * Axis enumeration description. 2732 * 2733 * @enum { number } 2734 * @syscap SystemCapability.ArkUI.ArkUI.Full 2735 * @since 9 2736 * @form 2737 */ 2738/** 2739 * Axis enumeration description. 2740 * 2741 * @enum { number } 2742 * @syscap SystemCapability.ArkUI.ArkUI.Full 2743 * @crossplatform 2744 * @since 10 2745 * @form 2746 */ 2747declare enum Axis { 2748 /** 2749 * Longitudinal arrangement 2750 * 2751 * @syscap SystemCapability.ArkUI.ArkUI.Full 2752 * @since 7 2753 */ 2754 /** 2755 * Longitudinal arrangement 2756 * 2757 * @syscap SystemCapability.ArkUI.ArkUI.Full 2758 * @since 9 2759 * @form 2760 */ 2761 /** 2762 * Longitudinal arrangement 2763 * 2764 * @syscap SystemCapability.ArkUI.ArkUI.Full 2765 * @crossplatform 2766 * @since 10 2767 * @form 2768 */ 2769 Vertical, 2770 2771 /** 2772 * Horizontal arrangement. 2773 * 2774 * @syscap SystemCapability.ArkUI.ArkUI.Full 2775 * @since 7 2776 */ 2777 /** 2778 * Horizontal arrangement. 2779 * 2780 * @syscap SystemCapability.ArkUI.ArkUI.Full 2781 * @since 9 2782 * @form 2783 */ 2784 /** 2785 * Horizontal arrangement. 2786 * 2787 * @syscap SystemCapability.ArkUI.ArkUI.Full 2788 * @crossplatform 2789 * @since 10 2790 * @form 2791 */ 2792 Horizontal, 2793} 2794 2795/** 2796 * HorizontalAlign enumeration description. 2797 * 2798 * @enum { number } 2799 * @syscap SystemCapability.ArkUI.ArkUI.Full 2800 * @since 7 2801 */ 2802/** 2803 * HorizontalAlign enumeration description. 2804 * 2805 * @enum { number } 2806 * @syscap SystemCapability.ArkUI.ArkUI.Full 2807 * @since 9 2808 * @form 2809 */ 2810/** 2811 * HorizontalAlign enumeration description. 2812 * 2813 * @enum { number } 2814 * @syscap SystemCapability.ArkUI.ArkUI.Full 2815 * @crossplatform 2816 * @since 10 2817 * @form 2818 */ 2819declare enum HorizontalAlign { 2820 /** 2821 * Aligns the start end in the language direction. 2822 * 2823 * @syscap SystemCapability.ArkUI.ArkUI.Full 2824 * @since 7 2825 */ 2826 /** 2827 * Aligns the start end in the language direction. 2828 * 2829 * @syscap SystemCapability.ArkUI.ArkUI.Full 2830 * @since 9 2831 * @form 2832 */ 2833 /** 2834 * Aligns the start end in the language direction. 2835 * 2836 * @syscap SystemCapability.ArkUI.ArkUI.Full 2837 * @crossplatform 2838 * @since 10 2839 * @form 2840 */ 2841 Start, 2842 2843 /** 2844 * Center alignment. The default alignment mode is used. 2845 * 2846 * @syscap SystemCapability.ArkUI.ArkUI.Full 2847 * @since 7 2848 */ 2849 /** 2850 * Center alignment. The default alignment mode is used. 2851 * 2852 * @syscap SystemCapability.ArkUI.ArkUI.Full 2853 * @since 9 2854 * @form 2855 */ 2856 /** 2857 * Center alignment. The default alignment mode is used. 2858 * 2859 * @syscap SystemCapability.ArkUI.ArkUI.Full 2860 * @crossplatform 2861 * @since 10 2862 * @form 2863 */ 2864 Center, 2865 2866 /** 2867 * Aligns the ends in the language direction. 2868 * 2869 * @syscap SystemCapability.ArkUI.ArkUI.Full 2870 * @since 7 2871 */ 2872 /** 2873 * Aligns the ends in the language direction. 2874 * 2875 * @syscap SystemCapability.ArkUI.ArkUI.Full 2876 * @since 9 2877 * @form 2878 */ 2879 /** 2880 * Aligns the ends in the language direction. 2881 * 2882 * @syscap SystemCapability.ArkUI.ArkUI.Full 2883 * @crossplatform 2884 * @since 10 2885 * @form 2886 */ 2887 End, 2888} 2889 2890/** 2891 * FlexAlign enumeration description. 2892 * 2893 * @enum { number } 2894 * @syscap SystemCapability.ArkUI.ArkUI.Full 2895 * @since 7 2896 */ 2897/** 2898 * FlexAlign enumeration description. 2899 * 2900 * @enum { number } 2901 * @syscap SystemCapability.ArkUI.ArkUI.Full 2902 * @since 9 2903 * @form 2904 */ 2905/** 2906 * FlexAlign enumeration description. 2907 * 2908 * @enum { number } 2909 * @syscap SystemCapability.ArkUI.ArkUI.Full 2910 * @crossplatform 2911 * @since 10 2912 * @form 2913 */ 2914declare enum FlexAlign { 2915 /** 2916 * The element is aligned at the head of the principal axis, 2917 * the first element is aligned with the head of the row, and subsequent elements are aligned with the previous one. 2918 * 2919 * @syscap SystemCapability.ArkUI.ArkUI.Full 2920 * @since 7 2921 */ 2922 /** 2923 * The element is aligned at the head of the principal axis, 2924 * the first element is aligned with the head of the row, and subsequent elements are aligned with the previous one. 2925 * 2926 * @syscap SystemCapability.ArkUI.ArkUI.Full 2927 * @since 9 2928 * @form 2929 */ 2930 /** 2931 * The element is aligned at the head of the principal axis, 2932 * the first element is aligned with the head of the row, and subsequent elements are aligned with the previous one. 2933 * 2934 * @syscap SystemCapability.ArkUI.ArkUI.Full 2935 * @crossplatform 2936 * @since 10 2937 * @form 2938 */ 2939 Start, 2940 2941 /** 2942 * The elements are centered in the direction of the principal axis, 2943 * 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. 2944 * 2945 * @syscap SystemCapability.ArkUI.ArkUI.Full 2946 * @since 7 2947 */ 2948 /** 2949 * The elements are centered in the direction of the principal axis, 2950 * 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. 2951 * 2952 * @syscap SystemCapability.ArkUI.ArkUI.Full 2953 * @since 9 2954 * @form 2955 */ 2956 /** 2957 * The elements are centered in the direction of the principal axis, 2958 * 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. 2959 * 2960 * @syscap SystemCapability.ArkUI.ArkUI.Full 2961 * @crossplatform 2962 * @since 10 2963 * @form 2964 */ 2965 Center, 2966 2967 /** 2968 * The element is aligned at the tail of the principal axis, 2969 * the last element is aligned at the end of the row, and the other elements are aligned with the next. 2970 * 2971 * @syscap SystemCapability.ArkUI.ArkUI.Full 2972 * @since 7 2973 */ 2974 /** 2975 * The element is aligned at the tail of the principal axis, 2976 * the last element is aligned at the end of the row, and the other elements are aligned with the next. 2977 * 2978 * @syscap SystemCapability.ArkUI.ArkUI.Full 2979 * @since 9 2980 * @form 2981 */ 2982 /** 2983 * The element is aligned at the tail of the principal axis, 2984 * the last element is aligned at the end of the row, and the other elements are aligned with the next. 2985 * 2986 * @syscap SystemCapability.ArkUI.ArkUI.Full 2987 * @crossplatform 2988 * @since 10 2989 * @form 2990 */ 2991 End, 2992 2993 /** 2994 * Elastic elements are evenly distributed in the direction of the Flex principal axis, 2995 * with the same distance between adjacent elements. 2996 * The first element aligns with the beginning of the line, and the last element aligns with the end of the line. 2997 * 2998 * @syscap SystemCapability.ArkUI.ArkUI.Full 2999 * @since 7 3000 */ 3001 /** 3002 * Elastic elements are evenly distributed in the direction of the Flex principal axis, 3003 * with the same distance between adjacent elements. 3004 * The first element aligns with the beginning of the line, and the last element aligns with the end of the line. 3005 * 3006 * @syscap SystemCapability.ArkUI.ArkUI.Full 3007 * @since 9 3008 * @form 3009 */ 3010 /** 3011 * Elastic elements are evenly distributed in the direction of the Flex principal axis, 3012 * with the same distance between adjacent elements. 3013 * The first element aligns with the beginning of the line, and the last element aligns with the end of the line. 3014 * 3015 * @syscap SystemCapability.ArkUI.ArkUI.Full 3016 * @crossplatform 3017 * @since 10 3018 * @form 3019 */ 3020 SpaceBetween, 3021 3022 /** 3023 * Elastic elements are evenly distributed in the direction of the Flex principal axis, 3024 * with the same distance between adjacent elements. Half the distance between adjacent elements as the distance between 3025 * the first element and the distance between the last element and the end of the row. 3026 * 3027 * @syscap SystemCapability.ArkUI.ArkUI.Full 3028 * @since 7 3029 */ 3030 /** 3031 * Elastic elements are evenly distributed in the direction of the Flex principal axis, 3032 * with the same distance between adjacent elements. Half the distance between adjacent elements as the distance between 3033 * the first element and the distance between the last element and the end of the row. 3034 * 3035 * @syscap SystemCapability.ArkUI.ArkUI.Full 3036 * @since 9 3037 * @form 3038 */ 3039 /** 3040 * Elastic elements are evenly distributed in the direction of the Flex principal axis, 3041 * with the same distance between adjacent elements. Half the distance between adjacent elements as the distance between 3042 * the first element and the distance between the last element and the end of the row. 3043 * 3044 * @syscap SystemCapability.ArkUI.ArkUI.Full 3045 * @crossplatform 3046 * @since 10 3047 * @form 3048 */ 3049 SpaceAround, 3050 3051 /** 3052 * Elements in the Flex axis direction are evenly spaced. 3053 * The spacing between adjacent elements, the spacing between the first element and the beginning of the row, 3054 * and the spacing between the last element and the end of the row are the same. 3055 * 3056 * @syscap SystemCapability.ArkUI.ArkUI.Full 3057 * @since 7 3058 */ 3059 /** 3060 * Elements in the Flex axis direction are evenly spaced. 3061 * The spacing between adjacent elements, the spacing between the first element and the beginning of the row, 3062 * and the spacing between the last element and the end of the row are the same. 3063 * 3064 * @syscap SystemCapability.ArkUI.ArkUI.Full 3065 * @since 9 3066 * @form 3067 */ 3068 /** 3069 * Elements in the Flex axis direction are evenly spaced. 3070 * The spacing between adjacent elements, the spacing between the first element and the beginning of the row, 3071 * and the spacing between the last element and the end of the row are the same. 3072 * 3073 * @syscap SystemCapability.ArkUI.ArkUI.Full 3074 * @crossplatform 3075 * @since 10 3076 * @form 3077 */ 3078 SpaceEvenly, 3079} 3080 3081/** 3082 * ItemAlign enumeration description 3083 * 3084 * @enum { number } 3085 * @syscap SystemCapability.ArkUI.ArkUI.Full 3086 * @since 7 3087 */ 3088/** 3089 * ItemAlign enumeration description 3090 * 3091 * @enum { number } 3092 * @syscap SystemCapability.ArkUI.ArkUI.Full 3093 * @since 9 3094 * @form 3095 */ 3096/** 3097 * ItemAlign enumeration description 3098 * 3099 * @enum { number } 3100 * @syscap SystemCapability.ArkUI.ArkUI.Full 3101 * @crossplatform 3102 * @since 10 3103 * @form 3104 */ 3105declare enum ItemAlign { 3106 /** 3107 * Use the default configuration in the Flex container. 3108 * 3109 * @syscap SystemCapability.ArkUI.ArkUI.Full 3110 * @since 7 3111 */ 3112 /** 3113 * Use the default configuration in the Flex container. 3114 * 3115 * @syscap SystemCapability.ArkUI.ArkUI.Full 3116 * @since 9 3117 * @form 3118 */ 3119 /** 3120 * Use the default configuration in the Flex container. 3121 * 3122 * @syscap SystemCapability.ArkUI.ArkUI.Full 3123 * @crossplatform 3124 * @since 10 3125 * @form 3126 */ 3127 Auto, 3128 3129 /** 3130 * The element is in the Flex container with the cross-axis direction head aligned. 3131 * 3132 * @syscap SystemCapability.ArkUI.ArkUI.Full 3133 * @since 7 3134 */ 3135 /** 3136 * The element is in the Flex container with the cross-axis direction head aligned. 3137 * 3138 * @syscap SystemCapability.ArkUI.ArkUI.Full 3139 * @since 9 3140 * @form 3141 */ 3142 /** 3143 * The element is in the Flex container with the cross-axis direction head aligned. 3144 * 3145 * @syscap SystemCapability.ArkUI.ArkUI.Full 3146 * @crossplatform 3147 * @since 10 3148 * @form 3149 */ 3150 Start, 3151 3152 /** 3153 * The element is centered in the Flex container with the cross axis direction aligned. 3154 * 3155 * @syscap SystemCapability.ArkUI.ArkUI.Full 3156 * @since 7 3157 */ 3158 /** 3159 * The element is centered in the Flex container with the cross axis direction aligned. 3160 * 3161 * @syscap SystemCapability.ArkUI.ArkUI.Full 3162 * @since 9 3163 * @form 3164 */ 3165 /** 3166 * The element is centered in the Flex container with the cross axis direction aligned. 3167 * 3168 * @syscap SystemCapability.ArkUI.ArkUI.Full 3169 * @crossplatform 3170 * @since 10 3171 * @form 3172 */ 3173 Center, 3174 3175 /** 3176 * The element is bottom aligned in the Flex container with the cross axis direction. 3177 * 3178 * @syscap SystemCapability.ArkUI.ArkUI.Full 3179 * @since 7 3180 */ 3181 /** 3182 * The element is bottom aligned in the Flex container with the cross axis direction. 3183 * 3184 * @syscap SystemCapability.ArkUI.ArkUI.Full 3185 * @since 9 3186 * @form 3187 */ 3188 /** 3189 * The element is bottom aligned in the Flex container with the cross axis direction. 3190 * 3191 * @syscap SystemCapability.ArkUI.ArkUI.Full 3192 * @crossplatform 3193 * @since 10 3194 * @form 3195 */ 3196 End, 3197 3198 /** 3199 * Element In the Flex container, the cross-axis direction text baseline is aligned. 3200 * 3201 * @syscap SystemCapability.ArkUI.ArkUI.Full 3202 * @since 7 3203 */ 3204 /** 3205 * Element In the Flex container, the cross-axis direction text baseline is aligned. 3206 * 3207 * @syscap SystemCapability.ArkUI.ArkUI.Full 3208 * @since 9 3209 * @form 3210 */ 3211 /** 3212 * Element In the Flex container, the cross-axis direction text baseline is aligned. 3213 * 3214 * @syscap SystemCapability.ArkUI.ArkUI.Full 3215 * @crossplatform 3216 * @since 10 3217 * @form 3218 */ 3219 Baseline, 3220 3221 /** 3222 * Element In a Flex container, the fill is stretched across the axis and, when no dimension is set, to the container size. 3223 * 3224 * @syscap SystemCapability.ArkUI.ArkUI.Full 3225 * @since 7 3226 */ 3227 /** 3228 * Element In a Flex container, the fill is stretched across the axis and, when no dimension is set, to the container size. 3229 * 3230 * @syscap SystemCapability.ArkUI.ArkUI.Full 3231 * @since 9 3232 * @form 3233 */ 3234 /** 3235 * Element In a Flex container, the fill is stretched across the axis and, when no dimension is set, to the container size. 3236 * 3237 * @syscap SystemCapability.ArkUI.ArkUI.Full 3238 * @crossplatform 3239 * @since 10 3240 * @form 3241 */ 3242 Stretch, 3243} 3244 3245/** 3246 * FlexDirection enumeration description 3247 * 3248 * @enum { number } 3249 * @syscap SystemCapability.ArkUI.ArkUI.Full 3250 * @since 7 3251 */ 3252/** 3253 * FlexDirection enumeration description 3254 * 3255 * @enum { number } 3256 * @syscap SystemCapability.ArkUI.ArkUI.Full 3257 * @since 9 3258 * @form 3259 */ 3260/** 3261 * FlexDirection enumeration description 3262 * 3263 * @enum { number } 3264 * @syscap SystemCapability.ArkUI.ArkUI.Full 3265 * @crossplatform 3266 * @since 10 3267 * @form 3268 */ 3269declare enum FlexDirection { 3270 /** 3271 * The main axis is consistent with the row direction as the layout mode. 3272 * 3273 * @syscap SystemCapability.ArkUI.ArkUI.Full 3274 * @since 7 3275 */ 3276 /** 3277 * The main axis is consistent with the row direction as the layout mode. 3278 * 3279 * @syscap SystemCapability.ArkUI.ArkUI.Full 3280 * @since 9 3281 * @form 3282 */ 3283 /** 3284 * The main axis is consistent with the row direction as the layout mode. 3285 * 3286 * @syscap SystemCapability.ArkUI.ArkUI.Full 3287 * @crossplatform 3288 * @since 10 3289 * @form 3290 */ 3291 Row, 3292 3293 /** 3294 * The main axis is consistent with the column direction as the layout mode. 3295 * 3296 * @syscap SystemCapability.ArkUI.ArkUI.Full 3297 * @since 7 3298 */ 3299 /** 3300 * The main axis is consistent with the column direction as the layout mode. 3301 * 3302 * @syscap SystemCapability.ArkUI.ArkUI.Full 3303 * @since 9 3304 * @form 3305 */ 3306 /** 3307 * The main axis is consistent with the column direction as the layout mode. 3308 * 3309 * @syscap SystemCapability.ArkUI.ArkUI.Full 3310 * @crossplatform 3311 * @since 10 3312 * @form 3313 */ 3314 Column, 3315 3316 /** 3317 * The layout is in the opposite direction to the Row direction. 3318 * 3319 * @syscap SystemCapability.ArkUI.ArkUI.Full 3320 * @since 7 3321 */ 3322 /** 3323 * The layout is in the opposite direction to the Row direction. 3324 * 3325 * @syscap SystemCapability.ArkUI.ArkUI.Full 3326 * @since 9 3327 * @form 3328 */ 3329 /** 3330 * The layout is in the opposite direction to the Row direction. 3331 * 3332 * @syscap SystemCapability.ArkUI.ArkUI.Full 3333 * @crossplatform 3334 * @since 10 3335 * @form 3336 */ 3337 RowReverse, 3338 3339 /** 3340 * Layout in the opposite direction to the column. 3341 * 3342 * @syscap SystemCapability.ArkUI.ArkUI.Full 3343 * @since 7 3344 */ 3345 /** 3346 * Layout in the opposite direction to the column. 3347 * 3348 * @syscap SystemCapability.ArkUI.ArkUI.Full 3349 * @since 9 3350 * @form 3351 */ 3352 /** 3353 * Layout in the opposite direction to the column. 3354 * 3355 * @syscap SystemCapability.ArkUI.ArkUI.Full 3356 * @crossplatform 3357 * @since 10 3358 * @form 3359 */ 3360 ColumnReverse, 3361} 3362 3363/** 3364 * FlexWrap enumeration description 3365 * 3366 * @enum { number } 3367 * @syscap SystemCapability.ArkUI.ArkUI.Full 3368 * @since 7 3369 */ 3370/** 3371 * FlexWrap enumeration description 3372 * 3373 * @enum { number } 3374 * @syscap SystemCapability.ArkUI.ArkUI.Full 3375 * @since 9 3376 * @form 3377 */ 3378/** 3379 * FlexWrap enumeration description 3380 * 3381 * @enum { number } 3382 * @syscap SystemCapability.ArkUI.ArkUI.Full 3383 * @crossplatform 3384 * @since 10 3385 * @form 3386 */ 3387declare enum FlexWrap { 3388 /** 3389 * The Flex container has a single row/column layout of elements, and children are allowed to go beyond the container. 3390 * 3391 * @syscap SystemCapability.ArkUI.ArkUI.Full 3392 * @since 7 3393 */ 3394 /** 3395 * The Flex container has a single row/column layout of elements, and children are allowed to go beyond the container. 3396 * 3397 * @syscap SystemCapability.ArkUI.ArkUI.Full 3398 * @since 9 3399 * @form 3400 */ 3401 /** 3402 * The Flex container has a single row/column layout of elements, and children are allowed to go beyond the container. 3403 * 3404 * @syscap SystemCapability.ArkUI.ArkUI.Full 3405 * @crossplatform 3406 * @since 10 3407 * @form 3408 */ 3409 NoWrap, 3410 3411 /** 3412 * The elements of the Flex container are arranged in multiple rows or columns, and the sub-items are allowed to exceed the container. 3413 * 3414 * @syscap SystemCapability.ArkUI.ArkUI.Full 3415 * @since 7 3416 */ 3417 /** 3418 * The elements of the Flex container are arranged in multiple rows or columns, and the sub-items are allowed to exceed the container. 3419 * 3420 * @syscap SystemCapability.ArkUI.ArkUI.Full 3421 * @since 9 3422 * @form 3423 */ 3424 /** 3425 * The elements of the Flex container are arranged in multiple rows or columns, and the sub-items are allowed to exceed the container. 3426 * 3427 * @syscap SystemCapability.ArkUI.ArkUI.Full 3428 * @crossplatform 3429 * @since 10 3430 * @form 3431 */ 3432 Wrap, 3433 3434 /** 3435 * The elements of the Flex container are arranged in reverse multiple rows/columns, and children are allowed to exceed the container. 3436 * 3437 * @syscap SystemCapability.ArkUI.ArkUI.Full 3438 * @since 7 3439 */ 3440 /** 3441 * The elements of the Flex container are arranged in reverse multiple rows/columns, and children are allowed to exceed the container. 3442 * 3443 * @syscap SystemCapability.ArkUI.ArkUI.Full 3444 * @since 9 3445 * @form 3446 */ 3447 /** 3448 * The elements of the Flex container are arranged in reverse multiple rows/columns, and children are allowed to exceed the container. 3449 * 3450 * @syscap SystemCapability.ArkUI.ArkUI.Full 3451 * @crossplatform 3452 * @since 10 3453 * @form 3454 */ 3455 WrapReverse, 3456} 3457 3458/** 3459 * VerticalAlign enumeration description 3460 * 3461 * @enum { number } 3462 * @syscap SystemCapability.ArkUI.ArkUI.Full 3463 * @since 7 3464 */ 3465/** 3466 * VerticalAlign enumeration description 3467 * 3468 * @enum { number } 3469 * @syscap SystemCapability.ArkUI.ArkUI.Full 3470 * @since 9 3471 * @form 3472 */ 3473/** 3474 * VerticalAlign enumeration description 3475 * 3476 * @enum { number } 3477 * @syscap SystemCapability.ArkUI.ArkUI.Full 3478 * @crossplatform 3479 * @since 10 3480 * @form 3481 */ 3482declare enum VerticalAlign { 3483 /** 3484 * Top alignment. 3485 * 3486 * @syscap SystemCapability.ArkUI.ArkUI.Full 3487 * @since 7 3488 */ 3489 /** 3490 * Top alignment. 3491 * 3492 * @syscap SystemCapability.ArkUI.ArkUI.Full 3493 * @since 9 3494 * @form 3495 */ 3496 /** 3497 * Top alignment. 3498 * 3499 * @syscap SystemCapability.ArkUI.ArkUI.Full 3500 * @crossplatform 3501 * @since 10 3502 * @form 3503 */ 3504 Top, 3505 3506 /** 3507 * Center alignment. The default alignment mode is used. 3508 * 3509 * @syscap SystemCapability.ArkUI.ArkUI.Full 3510 * @since 7 3511 */ 3512 /** 3513 * Center alignment. The default alignment mode is used. 3514 * 3515 * @syscap SystemCapability.ArkUI.ArkUI.Full 3516 * @since 9 3517 * @form 3518 */ 3519 /** 3520 * Center alignment. The default alignment mode is used. 3521 * 3522 * @syscap SystemCapability.ArkUI.ArkUI.Full 3523 * @crossplatform 3524 * @since 10 3525 * @form 3526 */ 3527 Center, 3528 3529 /** 3530 * Bottom alignment. 3531 * 3532 * @syscap SystemCapability.ArkUI.ArkUI.Full 3533 * @since 7 3534 */ 3535 /** 3536 * Bottom alignment. 3537 * 3538 * @syscap SystemCapability.ArkUI.ArkUI.Full 3539 * @since 9 3540 * @form 3541 */ 3542 /** 3543 * Bottom alignment. 3544 * 3545 * @syscap SystemCapability.ArkUI.ArkUI.Full 3546 * @crossplatform 3547 * @since 10 3548 * @form 3549 */ 3550 Bottom, 3551} 3552 3553/** 3554 * ImageRepeat enumeration description 3555 * 3556 * @enum { number } 3557 * @syscap SystemCapability.ArkUI.ArkUI.Full 3558 * @since 7 3559 */ 3560/** 3561 * ImageRepeat enumeration description 3562 * 3563 * @enum { number } 3564 * @syscap SystemCapability.ArkUI.ArkUI.Full 3565 * @since 9 3566 * @form 3567 */ 3568/** 3569 * ImageRepeat enumeration description 3570 * 3571 * @enum { number } 3572 * @syscap SystemCapability.ArkUI.ArkUI.Full 3573 * @crossplatform 3574 * @since 10 3575 * @form 3576 */ 3577declare enum ImageRepeat { 3578 /** 3579 * Do not draw the picture again. 3580 * 3581 * @syscap SystemCapability.ArkUI.ArkUI.Full 3582 * @since 7 3583 */ 3584 /** 3585 * Do not draw the picture again. 3586 * 3587 * @syscap SystemCapability.ArkUI.ArkUI.Full 3588 * @since 9 3589 * @form 3590 */ 3591 /** 3592 * Do not draw the picture again. 3593 * 3594 * @syscap SystemCapability.ArkUI.ArkUI.Full 3595 * @crossplatform 3596 * @since 10 3597 * @form 3598 */ 3599 NoRepeat, 3600 3601 /** 3602 * Repeat the drawing only on the horizontal axis. 3603 * 3604 * @syscap SystemCapability.ArkUI.ArkUI.Full 3605 * @since 7 3606 */ 3607 /** 3608 * Repeat the drawing only on the horizontal axis. 3609 * 3610 * @syscap SystemCapability.ArkUI.ArkUI.Full 3611 * @since 9 3612 * @form 3613 */ 3614 /** 3615 * Repeat the drawing only on the horizontal axis. 3616 * 3617 * @syscap SystemCapability.ArkUI.ArkUI.Full 3618 * @crossplatform 3619 * @since 10 3620 * @form 3621 */ 3622 X, 3623 3624 /** 3625 * Repeat the drawing only on the vertical axis. 3626 * 3627 * @syscap SystemCapability.ArkUI.ArkUI.Full 3628 * @since 7 3629 */ 3630 /** 3631 * Repeat the drawing only on the vertical axis. 3632 * 3633 * @syscap SystemCapability.ArkUI.ArkUI.Full 3634 * @since 9 3635 * @form 3636 */ 3637 /** 3638 * Repeat the drawing only on the vertical axis. 3639 * 3640 * @syscap SystemCapability.ArkUI.ArkUI.Full 3641 * @crossplatform 3642 * @since 10 3643 * @form 3644 */ 3645 Y, 3646 3647 /** 3648 * Draw the picture repeatedly on both axes. 3649 * 3650 * @syscap SystemCapability.ArkUI.ArkUI.Full 3651 * @since 7 3652 */ 3653 /** 3654 * Draw the picture repeatedly on both axes. 3655 * 3656 * @syscap SystemCapability.ArkUI.ArkUI.Full 3657 * @since 9 3658 * @form 3659 */ 3660 /** 3661 * Draw the picture repeatedly on both axes. 3662 * 3663 * @syscap SystemCapability.ArkUI.ArkUI.Full 3664 * @crossplatform 3665 * @since 10 3666 * @form 3667 */ 3668 XY, 3669} 3670 3671/** 3672 * ImageSize enumeration description 3673 * 3674 * @enum { number } 3675 * @syscap SystemCapability.ArkUI.ArkUI.Full 3676 * @since 7 3677 */ 3678/** 3679 * ImageSize enumeration description 3680 * 3681 * @enum { number } 3682 * @syscap SystemCapability.ArkUI.ArkUI.Full 3683 * @since 9 3684 * @form 3685 */ 3686/** 3687 * ImageSize enumeration description 3688 * 3689 * @enum { number } 3690 * @syscap SystemCapability.ArkUI.ArkUI.Full 3691 * @crossplatform 3692 * @since 10 3693 * @form 3694 */ 3695declare enum ImageSize { 3696 /** 3697 * Keep the scale of the original image unchanged. 3698 * 3699 * @syscap SystemCapability.ArkUI.ArkUI.Full 3700 * @since 7 3701 */ 3702 /** 3703 * Keep the scale of the original image unchanged. 3704 * 3705 * @syscap SystemCapability.ArkUI.ArkUI.Full 3706 * @since 9 3707 * @form 3708 */ 3709 /** 3710 * Keep the scale of the original image unchanged. 3711 * 3712 * @syscap SystemCapability.ArkUI.ArkUI.Full 3713 * @crossplatform 3714 * @since 10 3715 * @form 3716 */ 3717 Auto, 3718 3719 /** 3720 * 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. 3721 * 3722 * @syscap SystemCapability.ArkUI.ArkUI.Full 3723 * @since 7 3724 */ 3725 /** 3726 * 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. 3727 * 3728 * @syscap SystemCapability.ArkUI.ArkUI.Full 3729 * @since 9 3730 * @form 3731 */ 3732 /** 3733 * 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. 3734 * 3735 * @syscap SystemCapability.ArkUI.ArkUI.Full 3736 * @crossplatform 3737 * @since 10 3738 * @form 3739 */ 3740 Cover, 3741 3742 /** 3743 * Keep the aspect ratio to zoom out or zoom in so that the image is completely displayed within the display boundary. 3744 * 3745 * @syscap SystemCapability.ArkUI.ArkUI.Full 3746 * @since 7 3747 */ 3748 /** 3749 * Keep the aspect ratio to zoom out or zoom in so that the image is completely displayed within the display boundary. 3750 * 3751 * @syscap SystemCapability.ArkUI.ArkUI.Full 3752 * @since 9 3753 * @form 3754 */ 3755 /** 3756 * Keep the aspect ratio to zoom out or zoom in so that the image is completely displayed within the display boundary. 3757 * 3758 * @syscap SystemCapability.ArkUI.ArkUI.Full 3759 * @crossplatform 3760 * @since 10 3761 * @form 3762 */ 3763 Contain, 3764} 3765 3766/** 3767 * GradientDirection enumeration description 3768 * 3769 * @enum { number } 3770 * @syscap SystemCapability.ArkUI.ArkUI.Full 3771 * @since 7 3772 */ 3773/** 3774 * GradientDirection enumeration description 3775 * 3776 * @enum { number } 3777 * @syscap SystemCapability.ArkUI.ArkUI.Full 3778 * @since 9 3779 * @form 3780 */ 3781/** 3782 * GradientDirection enumeration description 3783 * 3784 * @enum { number } 3785 * @syscap SystemCapability.ArkUI.ArkUI.Full 3786 * @crossplatform 3787 * @since 10 3788 * @form 3789 */ 3790declare enum GradientDirection { 3791 /** 3792 * Right to left. 3793 * 3794 * @syscap SystemCapability.ArkUI.ArkUI.Full 3795 * @since 7 3796 */ 3797 /** 3798 * Right to left. 3799 * 3800 * @syscap SystemCapability.ArkUI.ArkUI.Full 3801 * @since 9 3802 * @form 3803 */ 3804 /** 3805 * Right to left. 3806 * 3807 * @syscap SystemCapability.ArkUI.ArkUI.Full 3808 * @crossplatform 3809 * @since 10 3810 * @form 3811 */ 3812 Left, 3813 3814 /** 3815 * From the bottom up. 3816 * 3817 * @syscap SystemCapability.ArkUI.ArkUI.Full 3818 * @since 7 3819 */ 3820 /** 3821 * From the bottom up. 3822 * 3823 * @syscap SystemCapability.ArkUI.ArkUI.Full 3824 * @since 9 3825 * @form 3826 */ 3827 /** 3828 * From the bottom up. 3829 * 3830 * @syscap SystemCapability.ArkUI.ArkUI.Full 3831 * @crossplatform 3832 * @since 10 3833 * @form 3834 */ 3835 Top, 3836 3837 /** 3838 * From left to right. 3839 * 3840 * @syscap SystemCapability.ArkUI.ArkUI.Full 3841 * @since 7 3842 */ 3843 /** 3844 * From left to right. 3845 * 3846 * @syscap SystemCapability.ArkUI.ArkUI.Full 3847 * @since 9 3848 * @form 3849 */ 3850 /** 3851 * From left to right. 3852 * 3853 * @syscap SystemCapability.ArkUI.ArkUI.Full 3854 * @crossplatform 3855 * @since 10 3856 * @form 3857 */ 3858 Right, 3859 3860 /** 3861 * From the top down. 3862 * 3863 * @syscap SystemCapability.ArkUI.ArkUI.Full 3864 * @since 7 3865 */ 3866 /** 3867 * From the top down. 3868 * 3869 * @syscap SystemCapability.ArkUI.ArkUI.Full 3870 * @since 9 3871 * @form 3872 */ 3873 /** 3874 * From the top down. 3875 * 3876 * @syscap SystemCapability.ArkUI.ArkUI.Full 3877 * @crossplatform 3878 * @since 10 3879 * @form 3880 */ 3881 Bottom, 3882 3883 /** 3884 * Top Left 3885 * 3886 * @syscap SystemCapability.ArkUI.ArkUI.Full 3887 * @since 7 3888 */ 3889 /** 3890 * Top Left 3891 * 3892 * @syscap SystemCapability.ArkUI.ArkUI.Full 3893 * @since 9 3894 * @form 3895 */ 3896 /** 3897 * Top Left 3898 * 3899 * @syscap SystemCapability.ArkUI.ArkUI.Full 3900 * @crossplatform 3901 * @since 10 3902 * @form 3903 */ 3904 LeftTop, 3905 3906 /** 3907 * Left Bottom 3908 * 3909 * @syscap SystemCapability.ArkUI.ArkUI.Full 3910 * @since 7 3911 */ 3912 /** 3913 * Left Bottom 3914 * 3915 * @syscap SystemCapability.ArkUI.ArkUI.Full 3916 * @since 9 3917 * @form 3918 */ 3919 /** 3920 * Left Bottom 3921 * 3922 * @syscap SystemCapability.ArkUI.ArkUI.Full 3923 * @crossplatform 3924 * @since 10 3925 * @form 3926 */ 3927 LeftBottom, 3928 3929 /** 3930 * Right Top 3931 * 3932 * @syscap SystemCapability.ArkUI.ArkUI.Full 3933 * @since 7 3934 */ 3935 /** 3936 * Right Top 3937 * 3938 * @syscap SystemCapability.ArkUI.ArkUI.Full 3939 * @since 9 3940 * @form 3941 */ 3942 /** 3943 * Right Top 3944 * 3945 * @syscap SystemCapability.ArkUI.ArkUI.Full 3946 * @crossplatform 3947 * @since 10 3948 * @form 3949 */ 3950 RightTop, 3951 3952 /** 3953 * Right Bottom 3954 * 3955 * @syscap SystemCapability.ArkUI.ArkUI.Full 3956 * @since 7 3957 */ 3958 /** 3959 * Right Bottom 3960 * 3961 * @syscap SystemCapability.ArkUI.ArkUI.Full 3962 * @since 9 3963 * @form 3964 */ 3965 /** 3966 * Right Bottom 3967 * 3968 * @syscap SystemCapability.ArkUI.ArkUI.Full 3969 * @crossplatform 3970 * @since 10 3971 * @form 3972 */ 3973 RightBottom, 3974 3975 /** 3976 * None 3977 * 3978 * @syscap SystemCapability.ArkUI.ArkUI.Full 3979 * @since 7 3980 */ 3981 /** 3982 * None 3983 * 3984 * @syscap SystemCapability.ArkUI.ArkUI.Full 3985 * @since 9 3986 * @form 3987 */ 3988 /** 3989 * None 3990 * 3991 * @syscap SystemCapability.ArkUI.ArkUI.Full 3992 * @crossplatform 3993 * @since 10 3994 * @form 3995 */ 3996 None, 3997} 3998 3999/** 4000 * SharedTransitionEffectType enumeration description 4001 * 4002 * @enum { number } 4003 * @syscap SystemCapability.ArkUI.ArkUI.Full 4004 * @since 7 4005 */ 4006/** 4007 * SharedTransitionEffectType enumeration description 4008 * 4009 * @enum { number } 4010 * @syscap SystemCapability.ArkUI.ArkUI.Full 4011 * @crossplatform 4012 * @since 10 4013 */ 4014declare enum SharedTransitionEffectType { 4015 /** 4016 * The location of the destination page element remains unchanged, and you can configure the transparency animation. Currently, 4017 * only the static effect configured for redirecting to the target page takes effect. 4018 * 4019 * @syscap SystemCapability.ArkUI.ArkUI.Full 4020 * @since 7 4021 */ 4022 /** 4023 * The location of the destination page element remains unchanged, and you can configure the transparency animation. Currently, 4024 * only the static effect configured for redirecting to the target page takes effect. 4025 * 4026 * @syscap SystemCapability.ArkUI.ArkUI.Full 4027 * @crossplatform 4028 * @since 10 4029 */ 4030 Static, 4031 4032 /** 4033 * Move the source page element to the destination page element location and scale it appropriately. 4034 * 4035 * @syscap SystemCapability.ArkUI.ArkUI.Full 4036 * @since 7 4037 */ 4038 /** 4039 * Move the source page element to the destination page element location and scale it appropriately. 4040 * 4041 * @syscap SystemCapability.ArkUI.ArkUI.Full 4042 * @crossplatform 4043 * @since 10 4044 */ 4045 Exchange, 4046} 4047 4048/** 4049 * Text style 4050 * 4051 * @enum { number } 4052 * @syscap SystemCapability.ArkUI.ArkUI.Full 4053 * @since 7 4054 */ 4055/** 4056 * Text style 4057 * 4058 * @enum { number } 4059 * @syscap SystemCapability.ArkUI.ArkUI.Full 4060 * @since 9 4061 * @form 4062 */ 4063/** 4064 * Text style 4065 * 4066 * @enum { number } 4067 * @syscap SystemCapability.ArkUI.ArkUI.Full 4068 * @crossplatform 4069 * @since 10 4070 * @form 4071 */ 4072declare enum FontStyle { 4073 /** 4074 * Default style. 4075 * 4076 * @syscap SystemCapability.ArkUI.ArkUI.Full 4077 * @since 7 4078 */ 4079 /** 4080 * Default style. 4081 * 4082 * @syscap SystemCapability.ArkUI.ArkUI.Full 4083 * @since 9 4084 * @form 4085 */ 4086 /** 4087 * Default style. 4088 * 4089 * @syscap SystemCapability.ArkUI.ArkUI.Full 4090 * @crossplatform 4091 * @since 10 4092 * @form 4093 */ 4094 Normal, 4095 4096 /** 4097 * Italic style. 4098 * 4099 * @syscap SystemCapability.ArkUI.ArkUI.Full 4100 * @since 7 4101 */ 4102 /** 4103 * Italic style. 4104 * 4105 * @syscap SystemCapability.ArkUI.ArkUI.Full 4106 * @since 9 4107 * @form 4108 */ 4109 /** 4110 * Italic style. 4111 * 4112 * @syscap SystemCapability.ArkUI.ArkUI.Full 4113 * @crossplatform 4114 * @since 10 4115 * @form 4116 */ 4117 Italic, 4118} 4119 4120/** 4121 * The font weight of the text 4122 * 4123 * @enum { number } 4124 * @syscap SystemCapability.ArkUI.ArkUI.Full 4125 * @since 7 4126 */ 4127/** 4128 * The font weight of the text 4129 * 4130 * @enum { number } 4131 * @syscap SystemCapability.ArkUI.ArkUI.Full 4132 * @since 9 4133 * @form 4134 */ 4135/** 4136 * The font weight of the text 4137 * 4138 * @enum { number } 4139 * @syscap SystemCapability.ArkUI.ArkUI.Full 4140 * @crossplatform 4141 * @since 10 4142 * @form 4143 */ 4144declare enum FontWeight { 4145 /** 4146 * Defines a lighter value than [Inherited Value].. 4147 * 4148 * @syscap SystemCapability.ArkUI.ArkUI.Full 4149 * @since 7 4150 */ 4151 /** 4152 * Defines a lighter value than [Inherited Value].. 4153 * 4154 * @syscap SystemCapability.ArkUI.ArkUI.Full 4155 * @since 9 4156 * @form 4157 */ 4158 /** 4159 * Defines a lighter value than [Inherited Value].. 4160 * 4161 * @syscap SystemCapability.ArkUI.ArkUI.Full 4162 * @crossplatform 4163 * @since 10 4164 * @form 4165 */ 4166 Lighter, 4167 4168 /** 4169 * Normal font. Equivalent to a digital value of 400. 4170 * 4171 * @syscap SystemCapability.ArkUI.ArkUI.Full 4172 * @since 7 4173 */ 4174 /** 4175 * Normal font. Equivalent to a digital value of 400. 4176 * 4177 * @syscap SystemCapability.ArkUI.ArkUI.Full 4178 * @since 9 4179 * @form 4180 */ 4181 /** 4182 * Normal font. Equivalent to a digital value of 400. 4183 * 4184 * @syscap SystemCapability.ArkUI.ArkUI.Full 4185 * @crossplatform 4186 * @since 10 4187 * @form 4188 */ 4189 Normal, 4190 4191 /** 4192 * Defines a more general value than [Inherited Value]. 4193 * 4194 * @syscap SystemCapability.ArkUI.ArkUI.Full 4195 * @since 7 4196 */ 4197 /** 4198 * Defines a more general value than [Inherited Value]. 4199 * 4200 * @syscap SystemCapability.ArkUI.ArkUI.Full 4201 * @since 9 4202 * @form 4203 */ 4204 /** 4205 * Defines a more general value than [Inherited Value]. 4206 * 4207 * @syscap SystemCapability.ArkUI.ArkUI.Full 4208 * @crossplatform 4209 * @since 10 4210 * @form 4211 */ 4212 Regular, 4213 4214 /** 4215 * Defines a value that is more centered than [Inherited Value]. 4216 * 4217 * @syscap SystemCapability.ArkUI.ArkUI.Full 4218 * @since 7 4219 */ 4220 /** 4221 * Defines a value that is more centered than [Inherited Value]. 4222 * 4223 * @syscap SystemCapability.ArkUI.ArkUI.Full 4224 * @since 9 4225 * @form 4226 */ 4227 /** 4228 * Defines a value that is more centered than [Inherited Value]. 4229 * 4230 * @syscap SystemCapability.ArkUI.ArkUI.Full 4231 * @crossplatform 4232 * @since 10 4233 * @form 4234 */ 4235 Medium, 4236 4237 /** 4238 * Bold. Equivalent to a numeric value of 700. 4239 * 4240 * @syscap SystemCapability.ArkUI.ArkUI.Full 4241 * @since 7 4242 */ 4243 /** 4244 * Bold. Equivalent to a numeric value of 700. 4245 * 4246 * @syscap SystemCapability.ArkUI.ArkUI.Full 4247 * @since 9 4248 * @form 4249 */ 4250 /** 4251 * Bold. Equivalent to a numeric value of 700. 4252 * 4253 * @syscap SystemCapability.ArkUI.ArkUI.Full 4254 * @crossplatform 4255 * @since 10 4256 * @form 4257 */ 4258 Bold, 4259 4260 /** 4261 * Defines a value that is heavier than [Inherited Value]. 4262 * 4263 * @syscap SystemCapability.ArkUI.ArkUI.Full 4264 * @since 7 4265 */ 4266 /** 4267 * Defines a value that is heavier than [Inherited Value]. 4268 * 4269 * @syscap SystemCapability.ArkUI.ArkUI.Full 4270 * @since 9 4271 * @form 4272 */ 4273 /** 4274 * Defines a value that is heavier than [Inherited Value]. 4275 * 4276 * @syscap SystemCapability.ArkUI.ArkUI.Full 4277 * @crossplatform 4278 * @since 10 4279 * @form 4280 */ 4281 Bolder, 4282} 4283 4284/** 4285 * Alignment of text. 4286 * 4287 * @enum { number } 4288 * @syscap SystemCapability.ArkUI.ArkUI.Full 4289 * @since 7 4290 */ 4291/** 4292 * Alignment of text. 4293 * 4294 * @enum { number } 4295 * @syscap SystemCapability.ArkUI.ArkUI.Full 4296 * @since 9 4297 * @form 4298 */ 4299/** 4300 * Alignment of text. 4301 * 4302 * @enum { number } 4303 * @syscap SystemCapability.ArkUI.ArkUI.Full 4304 * @crossplatform 4305 * @since 10 4306 * @form 4307 */ 4308declare enum TextAlign { 4309 /** 4310 * Center the text. 4311 * 4312 * @syscap SystemCapability.ArkUI.ArkUI.Full 4313 * @since 7 4314 */ 4315 /** 4316 * Center the text. 4317 * 4318 * @syscap SystemCapability.ArkUI.ArkUI.Full 4319 * @since 9 4320 * @form 4321 */ 4322 /** 4323 * Center the text. 4324 * 4325 * @syscap SystemCapability.ArkUI.ArkUI.Full 4326 * @crossplatform 4327 * @since 10 4328 * @form 4329 */ 4330 Center, 4331 4332 /** 4333 * The text is aligned in the same direction as the writing 4334 * 4335 * @syscap SystemCapability.ArkUI.ArkUI.Full 4336 * @since 7 4337 */ 4338 /** 4339 * The text is aligned in the same direction as the writing 4340 * 4341 * @syscap SystemCapability.ArkUI.ArkUI.Full 4342 * @since 9 4343 * @form 4344 */ 4345 /** 4346 * The text is aligned in the same direction as the writing 4347 * 4348 * @syscap SystemCapability.ArkUI.ArkUI.Full 4349 * @crossplatform 4350 * @since 10 4351 * @form 4352 */ 4353 Start, 4354 4355 /** 4356 * The text is aligned in the opposite direction of writing 4357 * 4358 * @syscap SystemCapability.ArkUI.ArkUI.Full 4359 * @since 7 4360 */ 4361 /** 4362 * The text is aligned in the opposite direction of writing 4363 * 4364 * @syscap SystemCapability.ArkUI.ArkUI.Full 4365 * @since 9 4366 * @form 4367 */ 4368 /** 4369 * The text is aligned in the opposite direction of writing 4370 * 4371 * @syscap SystemCapability.ArkUI.ArkUI.Full 4372 * @crossplatform 4373 * @since 10 4374 * @form 4375 */ 4376 End, 4377 4378 /** 4379 * Justify the text. 4380 * 4381 * @syscap SystemCapability.ArkUI.ArkUI.Full 4382 * @crossplatform 4383 * @since 10 4384 */ 4385 JUSTIFY, 4386} 4387 4388/** 4389 * Declare how text overflows. 4390 * 4391 * @enum { number } 4392 * @syscap SystemCapability.ArkUI.ArkUI.Full 4393 * @since 7 4394 */ 4395/** 4396 * Declare how text overflows. 4397 * 4398 * @enum { number } 4399 * @syscap SystemCapability.ArkUI.ArkUI.Full 4400 * @since 9 4401 * @form 4402 */ 4403/** 4404 * Declare how text overflows. 4405 * 4406 * @enum { number } 4407 * @syscap SystemCapability.ArkUI.ArkUI.Full 4408 * @crossplatform 4409 * @since 10 4410 * @form 4411 */ 4412declare enum TextOverflow { 4413 /** 4414 * When the text overflows its dimensions, the text will not be cropped. 4415 * 4416 * @syscap SystemCapability.ArkUI.ArkUI.Full 4417 * @since 7 4418 */ 4419 /** 4420 * When the text overflows its dimensions, the text will not be cropped. 4421 * 4422 * @syscap SystemCapability.ArkUI.ArkUI.Full 4423 * @since 9 4424 * @form 4425 */ 4426 /** 4427 * When the text overflows its dimensions, the text will not be cropped. 4428 * 4429 * @syscap SystemCapability.ArkUI.ArkUI.Full 4430 * @crossplatform 4431 * @since 10 4432 * @form 4433 */ 4434 None, 4435 4436 /** 4437 * When the text overflows its dimensions, the text will be cropped and displayed. 4438 * 4439 * @syscap SystemCapability.ArkUI.ArkUI.Full 4440 * @since 7 4441 */ 4442 /** 4443 * When the text overflows its dimensions, the text will be cropped and displayed. 4444 * 4445 * @syscap SystemCapability.ArkUI.ArkUI.Full 4446 * @since 9 4447 * @form 4448 */ 4449 /** 4450 * When the text overflows its dimensions, the text will be cropped and displayed. 4451 * 4452 * @syscap SystemCapability.ArkUI.ArkUI.Full 4453 * @crossplatform 4454 * @since 10 4455 * @form 4456 */ 4457 Clip, 4458 4459 /** 4460 * If the text overflows its dimensions, the text that cannot be displayed shall be replaced by ellipsis. 4461 * 4462 * @syscap SystemCapability.ArkUI.ArkUI.Full 4463 * @since 7 4464 */ 4465 /** 4466 * If the text overflows its dimensions, the text that cannot be displayed shall be replaced by ellipsis. 4467 * 4468 * @syscap SystemCapability.ArkUI.ArkUI.Full 4469 * @since 9 4470 * @form 4471 */ 4472 /** 4473 * If the text overflows its dimensions, the text that cannot be displayed shall be replaced by ellipsis. 4474 * 4475 * @syscap SystemCapability.ArkUI.ArkUI.Full 4476 * @crossplatform 4477 * @since 10 4478 * @form 4479 */ 4480 Ellipsis, 4481 4482 /** 4483 * When the text overflows its dimensions, the text will scroll for displaying. 4484 * 4485 * @syscap SystemCapability.ArkUI.ArkUI.Full 4486 * @crossplatform 4487 * @since 10 4488 */ 4489 MARQUEE, 4490} 4491 4492/** 4493 * Type of text modifier. 4494 * 4495 * @enum { number } 4496 * @syscap SystemCapability.ArkUI.ArkUI.Full 4497 * @since 7 4498 */ 4499/** 4500 * Type of text modifier. 4501 * 4502 * @enum { number } 4503 * @syscap SystemCapability.ArkUI.ArkUI.Full 4504 * @since 9 4505 * @form 4506 */ 4507/** 4508 * Type of text modifier. 4509 * 4510 * @enum { number } 4511 * @syscap SystemCapability.ArkUI.ArkUI.Full 4512 * @crossplatform 4513 * @since 10 4514 * @form 4515 */ 4516declare enum TextDecorationType { 4517 /** 4518 * Do not use text decorative lines. 4519 * 4520 * @syscap SystemCapability.ArkUI.ArkUI.Full 4521 * @since 7 4522 */ 4523 /** 4524 * Do not use text decorative lines. 4525 * 4526 * @syscap SystemCapability.ArkUI.ArkUI.Full 4527 * @since 9 4528 * @form 4529 */ 4530 /** 4531 * Do not use text decorative lines. 4532 * 4533 * @syscap SystemCapability.ArkUI.ArkUI.Full 4534 * @crossplatform 4535 * @since 10 4536 * @form 4537 */ 4538 None, 4539 4540 /** 4541 * Underline the words. 4542 * 4543 * @syscap SystemCapability.ArkUI.ArkUI.Full 4544 * @since 7 4545 */ 4546 /** 4547 * Underline the words. 4548 * 4549 * @syscap SystemCapability.ArkUI.ArkUI.Full 4550 * @since 9 4551 * @form 4552 */ 4553 /** 4554 * Underline the words. 4555 * 4556 * @syscap SystemCapability.ArkUI.ArkUI.Full 4557 * @crossplatform 4558 * @since 10 4559 * @form 4560 */ 4561 Underline, 4562 4563 /** 4564 * Text is in all uppercase. 4565 * 4566 * @syscap SystemCapability.ArkUI.ArkUI.Full 4567 * @since 7 4568 */ 4569 /** 4570 * Text is in all uppercase. 4571 * 4572 * @syscap SystemCapability.ArkUI.ArkUI.Full 4573 * @since 9 4574 * @form 4575 */ 4576 /** 4577 * Text is in all uppercase. 4578 * 4579 * @syscap SystemCapability.ArkUI.ArkUI.Full 4580 * @crossplatform 4581 * @since 10 4582 * @form 4583 */ 4584 Overline, 4585 4586 /** 4587 * A modifier line that passes through the text. 4588 * 4589 * @syscap SystemCapability.ArkUI.ArkUI.Full 4590 * @since 7 4591 */ 4592 /** 4593 * A modifier line that passes through the text. 4594 * 4595 * @syscap SystemCapability.ArkUI.ArkUI.Full 4596 * @since 9 4597 * @form 4598 */ 4599 /** 4600 * A modifier line that passes through the text. 4601 * 4602 * @syscap SystemCapability.ArkUI.ArkUI.Full 4603 * @crossplatform 4604 * @since 10 4605 * @form 4606 */ 4607 LineThrough, 4608} 4609 4610/** 4611 * Letter type in text 4612 * 4613 * @enum { number } 4614 * @syscap SystemCapability.ArkUI.ArkUI.Full 4615 * @since 7 4616 */ 4617/** 4618 * Letter type in text 4619 * 4620 * @enum { number } 4621 * @syscap SystemCapability.ArkUI.ArkUI.Full 4622 * @since 9 4623 * @form 4624 */ 4625/** 4626 * Letter type in text 4627 * 4628 * @enum { number } 4629 * @syscap SystemCapability.ArkUI.ArkUI.Full 4630 * @crossplatform 4631 * @since 10 4632 * @form 4633 */ 4634declare enum TextCase { 4635 /** 4636 * The default is normal. 4637 * 4638 * @syscap SystemCapability.ArkUI.ArkUI.Full 4639 * @since 7 4640 */ 4641 /** 4642 * The default is normal. 4643 * 4644 * @syscap SystemCapability.ArkUI.ArkUI.Full 4645 * @since 9 4646 * @form 4647 */ 4648 /** 4649 * The default is normal. 4650 * 4651 * @syscap SystemCapability.ArkUI.ArkUI.Full 4652 * @crossplatform 4653 * @since 10 4654 * @form 4655 */ 4656 Normal, 4657 4658 /** 4659 * The text is all lowercase. 4660 * 4661 * @syscap SystemCapability.ArkUI.ArkUI.Full 4662 * @since 7 4663 */ 4664 /** 4665 * The text is all lowercase. 4666 * 4667 * @syscap SystemCapability.ArkUI.ArkUI.Full 4668 * @since 9 4669 * @form 4670 */ 4671 /** 4672 * The text is all lowercase. 4673 * 4674 * @syscap SystemCapability.ArkUI.ArkUI.Full 4675 * @crossplatform 4676 * @since 10 4677 * @form 4678 */ 4679 LowerCase, 4680 4681 /** 4682 * The text is all uppercase. 4683 * 4684 * @syscap SystemCapability.ArkUI.ArkUI.Full 4685 * @since 7 4686 */ 4687 /** 4688 * The text is all uppercase. 4689 * 4690 * @syscap SystemCapability.ArkUI.ArkUI.Full 4691 * @since 9 4692 * @form 4693 */ 4694 /** 4695 * The text is all uppercase. 4696 * 4697 * @syscap SystemCapability.ArkUI.ArkUI.Full 4698 * @crossplatform 4699 * @since 10 4700 * @form 4701 */ 4702 UpperCase, 4703} 4704 4705/** 4706 * Enum of text height adaptation 4707 * 4708 * @enum { number } 4709 * @syscap SystemCapability.ArkUI.ArkUI.Full 4710 * @crossplatform 4711 * @since 10 4712 */ 4713declare enum TextHeightAdaptivePolicy { 4714 /** 4715 * Priority is given to using the maxLines attribute to adapt the text height. 4716 * If the layout size using the maxLines attribute exceeds the layout constraint, try reducing the font size to 4717 * display more text. 4718 * 4719 * @syscap SystemCapability.ArkUI.ArkUI.Full 4720 * @crossplatform 4721 * @since 10 4722 */ 4723 MAX_LINES_FIRST, 4724 4725 /** 4726 * Priority is given to using the minFontSize attribute to adapt the text height. 4727 * If the text can be layout in a single line using the minFontSize property, try increasing the font size and using 4728 * the maximum possible font size. 4729 * 4730 * @syscap SystemCapability.ArkUI.ArkUI.Full 4731 * @crossplatform 4732 * @since 10 4733 */ 4734 MIN_FONT_SIZE_FIRST, 4735 4736 /** 4737 * Priority is given to using the layout constraint to adapt the text height. 4738 * If the layout size exceeds the layout constraint, try reducing the font size. If the layout size still exceeds 4739 * the layout constraint after reducing the font size to minFontSize, remove the lines that exceed the layout 4740 * constraint. 4741 * 4742 * @syscap SystemCapability.ArkUI.ArkUI.Full 4743 * @crossplatform 4744 * @since 10 4745 */ 4746 LAYOUT_CONSTRAINT_FIRST, 4747} 4748 4749/** 4750 * ResponseType for contextMenu 4751 * 4752 * @enum { number } 4753 * @syscap SystemCapability.ArkUI.ArkUI.Full 4754 * @since 8 4755 */ 4756/** 4757 * ResponseType for contextMenu 4758 * 4759 * @enum { number } 4760 * @syscap SystemCapability.ArkUI.ArkUI.Full 4761 * @crossplatform 4762 * @since 10 4763 */ 4764declare enum ResponseType { 4765 /** 4766 * Right click. 4767 * 4768 * @syscap SystemCapability.ArkUI.ArkUI.Full 4769 * @since 8 4770 */ 4771 /** 4772 * Right click. 4773 * 4774 * @syscap SystemCapability.ArkUI.ArkUI.Full 4775 * @crossplatform 4776 * @since 10 4777 */ 4778 RightClick, 4779 4780 /** 4781 * Long press. 4782 * 4783 * @syscap SystemCapability.ArkUI.ArkUI.Full 4784 * @since 8 4785 */ 4786 /** 4787 * Long press. 4788 * 4789 * @syscap SystemCapability.ArkUI.ArkUI.Full 4790 * @crossplatform 4791 * @since 10 4792 */ 4793 LongPress, 4794} 4795 4796/** 4797 * HoverEffect enumeration description 4798 * 4799 * @enum { number } 4800 * @syscap SystemCapability.ArkUI.ArkUI.Full 4801 * @since 8 4802 */ 4803/** 4804 * HoverEffect enumeration description 4805 * 4806 * @enum { number } 4807 * @syscap SystemCapability.ArkUI.ArkUI.Full 4808 * @crossplatform 4809 * @since 10 4810 */ 4811declare enum HoverEffect { 4812 /** 4813 * Default effect 4814 * 4815 * @syscap SystemCapability.ArkUI.ArkUI.Full 4816 * @since 8 4817 */ 4818 /** 4819 * Default effect 4820 * 4821 * @syscap SystemCapability.ArkUI.ArkUI.Full 4822 * @crossplatform 4823 * @since 10 4824 */ 4825 Auto, 4826 4827 /** 4828 * Zoom in and out effect 4829 * 4830 * @syscap SystemCapability.ArkUI.ArkUI.Full 4831 * @since 8 4832 */ 4833 /** 4834 * Zoom in and out effect 4835 * 4836 * @syscap SystemCapability.ArkUI.ArkUI.Full 4837 * @crossplatform 4838 * @since 10 4839 */ 4840 Scale, 4841 4842 /** 4843 * Highlight effect 4844 * 4845 * @syscap SystemCapability.ArkUI.ArkUI.Full 4846 * @since 8 4847 */ 4848 /** 4849 * Highlight effect 4850 * 4851 * @syscap SystemCapability.ArkUI.ArkUI.Full 4852 * @crossplatform 4853 * @since 10 4854 */ 4855 Highlight, 4856 4857 /** 4858 * None effect 4859 * 4860 * @syscap SystemCapability.ArkUI.ArkUI.Full 4861 * @since 8 4862 */ 4863 /** 4864 * None effect 4865 * 4866 * @syscap SystemCapability.ArkUI.ArkUI.Full 4867 * @crossplatform 4868 * @since 10 4869 */ 4870 None, 4871} 4872 4873/** 4874 * Placement enumeration description 4875 * 4876 * @enum { number } 4877 * @syscap SystemCapability.ArkUI.ArkUI.Full 4878 * @since 8 4879 */ 4880/** 4881 * Placement enumeration description 4882 * 4883 * @enum { number } 4884 * @syscap SystemCapability.ArkUI.ArkUI.Full 4885 * @crossplatform 4886 * @since 10 4887 */ 4888declare enum Placement { 4889 /** 4890 * Left placement 4891 * 4892 * @syscap SystemCapability.ArkUI.ArkUI.Full 4893 * @since 8 4894 */ 4895 /** 4896 * Left placement 4897 * 4898 * @syscap SystemCapability.ArkUI.ArkUI.Full 4899 * @crossplatform 4900 * @since 10 4901 */ 4902 Left, 4903 4904 /** 4905 * Right placement 4906 * 4907 * @syscap SystemCapability.ArkUI.ArkUI.Full 4908 * @since 8 4909 */ 4910 /** 4911 * Right placement 4912 * 4913 * @syscap SystemCapability.ArkUI.ArkUI.Full 4914 * @crossplatform 4915 * @since 10 4916 */ 4917 Right, 4918 4919 /** 4920 * Top placement 4921 * 4922 * @syscap SystemCapability.ArkUI.ArkUI.Full 4923 * @since 8 4924 */ 4925 /** 4926 * Top placement 4927 * 4928 * @syscap SystemCapability.ArkUI.ArkUI.Full 4929 * @crossplatform 4930 * @since 10 4931 */ 4932 Top, 4933 4934 /** 4935 * Bottom placement 4936 * 4937 * @syscap SystemCapability.ArkUI.ArkUI.Full 4938 * @since 8 4939 */ 4940 /** 4941 * Bottom placement 4942 * 4943 * @syscap SystemCapability.ArkUI.ArkUI.Full 4944 * @crossplatform 4945 * @since 10 4946 */ 4947 Bottom, 4948 4949 /** 4950 * TopLeft placement 4951 * 4952 * @syscap SystemCapability.ArkUI.ArkUI.Full 4953 * @since 8 4954 */ 4955 /** 4956 * TopLeft placement 4957 * 4958 * @syscap SystemCapability.ArkUI.ArkUI.Full 4959 * @crossplatform 4960 * @since 10 4961 */ 4962 TopLeft, 4963 4964 /** 4965 * TopRight placement 4966 * 4967 * @syscap SystemCapability.ArkUI.ArkUI.Full 4968 * @since 8 4969 */ 4970 /** 4971 * TopRight placement 4972 * 4973 * @syscap SystemCapability.ArkUI.ArkUI.Full 4974 * @crossplatform 4975 * @since 10 4976 */ 4977 TopRight, 4978 4979 /** 4980 * BottomLeft placement 4981 * 4982 * @syscap SystemCapability.ArkUI.ArkUI.Full 4983 * @since 8 4984 */ 4985 /** 4986 * BottomLeft placement 4987 * 4988 * @syscap SystemCapability.ArkUI.ArkUI.Full 4989 * @crossplatform 4990 * @since 10 4991 */ 4992 BottomLeft, 4993 4994 /** 4995 * BottomRight placement 4996 * 4997 * @syscap SystemCapability.ArkUI.ArkUI.Full 4998 * @since 8 4999 */ 5000 /** 5001 * BottomRight placement 5002 * 5003 * @syscap SystemCapability.ArkUI.ArkUI.Full 5004 * @crossplatform 5005 * @since 10 5006 */ 5007 BottomRight, 5008 5009 /** 5010 * LeftTop placement 5011 * 5012 * @syscap SystemCapability.ArkUI.ArkUI.Full 5013 * @since 9 5014 */ 5015 /** 5016 * LeftTop placement 5017 * 5018 * @syscap SystemCapability.ArkUI.ArkUI.Full 5019 * @crossplatform 5020 * @since 10 5021 */ 5022 LeftTop, 5023 5024 /** 5025 * LeftBottom placement 5026 * 5027 * @syscap SystemCapability.ArkUI.ArkUI.Full 5028 * @since 9 5029 */ 5030 /** 5031 * LeftBottom placement 5032 * 5033 * @syscap SystemCapability.ArkUI.ArkUI.Full 5034 * @crossplatform 5035 * @since 10 5036 */ 5037 LeftBottom, 5038 5039 /** 5040 * RightTop placement 5041 * 5042 * @syscap SystemCapability.ArkUI.ArkUI.Full 5043 * @since 9 5044 */ 5045 /** 5046 * RightTop placement 5047 * 5048 * @syscap SystemCapability.ArkUI.ArkUI.Full 5049 * @crossplatform 5050 * @since 10 5051 */ 5052 RightTop, 5053 5054 /** 5055 * RightBottom placement 5056 * 5057 * @syscap SystemCapability.ArkUI.ArkUI.Full 5058 * @since 9 5059 */ 5060 /** 5061 * RightBottom placement 5062 * 5063 * @syscap SystemCapability.ArkUI.ArkUI.Full 5064 * @crossplatform 5065 * @since 10 5066 */ 5067 RightBottom, 5068} 5069 5070/** 5071 * Indicates the share option. 5072 * 5073 * @enum { number } 5074 * @syscap SystemCapability.ArkUI.ArkUI.Full 5075 * @since 9 5076 * @form 5077 */ 5078/** 5079 * Indicates the share option. 5080 * 5081 * @enum { number } 5082 * @syscap SystemCapability.ArkUI.ArkUI.Full 5083 * @crossplatform 5084 * @since 10 5085 * @form 5086 */ 5087declare enum CopyOptions { 5088 /** 5089 * Not allow share. 5090 * 5091 * @syscap SystemCapability.ArkUI.ArkUI.Full 5092 * @since 9 5093 * @form 5094 */ 5095 /** 5096 * Not allow share. 5097 * 5098 * @syscap SystemCapability.ArkUI.ArkUI.Full 5099 * @crossplatform 5100 * @since 10 5101 * @form 5102 */ 5103 None = 0, 5104 5105 /** 5106 * Share in app. 5107 * 5108 * @syscap SystemCapability.ArkUI.ArkUI.Full 5109 * @since 9 5110 * @form 5111 */ 5112 /** 5113 * Share in app. 5114 * 5115 * @syscap SystemCapability.ArkUI.ArkUI.Full 5116 * @crossplatform 5117 * @since 10 5118 * @form 5119 */ 5120 InApp = 1, 5121 5122 /** 5123 * Share in local device. 5124 * 5125 * @syscap SystemCapability.ArkUI.ArkUI.Full 5126 * @since 9 5127 * @form 5128 */ 5129 /** 5130 * Share in local device. 5131 * 5132 * @syscap SystemCapability.ArkUI.ArkUI.Full 5133 * @crossplatform 5134 * @since 10 5135 * @form 5136 */ 5137 LocalDevice = 2, 5138} 5139 5140/** 5141 * Defines the hit test mode. 5142 * 5143 * @enum { number } 5144 * @syscap SystemCapability.ArkUI.ArkUI.Full 5145 * @since 9 5146 */ 5147/** 5148 * Defines the hit test mode. 5149 * 5150 * @enum { number } 5151 * @syscap SystemCapability.ArkUI.ArkUI.Full 5152 * @crossplatform 5153 * @since 10 5154 */ 5155declare enum HitTestMode { 5156 /** 5157 * Both self and children nodes respond to the hit test for touch events, 5158 * but block hit test of the other nodes which is masked by this node. 5159 * 5160 * @syscap SystemCapability.ArkUI.ArkUI.Full 5161 * @since 9 5162 */ 5163 /** 5164 * Both self and children nodes respond to the hit test for touch events, 5165 * but block hit test of the other nodes which is masked by this node. 5166 * 5167 * @syscap SystemCapability.ArkUI.ArkUI.Full 5168 * @crossplatform 5169 * @since 10 5170 */ 5171 Default, 5172 5173 /** 5174 * Self respond to the hit test for touch events, 5175 * but block hit test of children and other nodes which is masked by this node. 5176 * 5177 * @syscap SystemCapability.ArkUI.ArkUI.Full 5178 * @since 9 5179 */ 5180 /** 5181 * Self respond to the hit test for touch events, 5182 * but block hit test of children and other nodes which is masked by this node. 5183 * 5184 * @syscap SystemCapability.ArkUI.ArkUI.Full 5185 * @crossplatform 5186 * @since 10 5187 */ 5188 Block, 5189 5190 /** 5191 * Self and children respond to the hit test for touch events, 5192 * and allow hit test of other nodes which is masked by this node. 5193 * 5194 * @syscap SystemCapability.ArkUI.ArkUI.Full 5195 * @since 9 5196 */ 5197 /** 5198 * Self and children respond to the hit test for touch events, 5199 * and allow hit test of other nodes which is masked by this node. 5200 * 5201 * @syscap SystemCapability.ArkUI.ArkUI.Full 5202 * @crossplatform 5203 * @since 10 5204 */ 5205 Transparent, 5206 5207 /** 5208 * Self not respond to the hit test for touch events, 5209 * but children respond to the hit test for touch events. 5210 * 5211 * @syscap SystemCapability.ArkUI.ArkUI.Full 5212 * @since 9 5213 */ 5214 /** 5215 * Self not respond to the hit test for touch events, 5216 * but children respond to the hit test for touch events. 5217 * 5218 * @syscap SystemCapability.ArkUI.ArkUI.Full 5219 * @crossplatform 5220 * @since 10 5221 */ 5222 None, 5223} 5224 5225/** 5226 * Title height. 5227 * 5228 * @enum { number } 5229 * @syscap SystemCapability.ArkUI.ArkUI.Full 5230 * @since 9 5231 */ 5232/** 5233 * Title height. 5234 * 5235 * @enum { number } 5236 * @syscap SystemCapability.ArkUI.ArkUI.Full 5237 * @crossplatform 5238 * @since 10 5239 */ 5240declare enum TitleHeight { 5241 /** 5242 * Title height when only main title is available. 5243 * 5244 * @syscap SystemCapability.ArkUI.ArkUI.Full 5245 * @since 9 5246 */ 5247 /** 5248 * Title height when only main title is available. 5249 * 5250 * @syscap SystemCapability.ArkUI.ArkUI.Full 5251 * @crossplatform 5252 * @since 10 5253 */ 5254 MainOnly, 5255 5256 /** 5257 * Title height when main title and subtitle are both available. 5258 * 5259 * @syscap SystemCapability.ArkUI.ArkUI.Full 5260 * @since 9 5261 */ 5262 /** 5263 * Title height when main title and subtitle are both available. 5264 * 5265 * @syscap SystemCapability.ArkUI.ArkUI.Full 5266 * @crossplatform 5267 * @since 10 5268 */ 5269 MainWithSub, 5270} 5271 5272/** 5273 * Modifier key for hot key. 5274 * 5275 * @enum { number } 5276 * @syscap SystemCapability.ArkUI.ArkUI.Full 5277 * @crossplatform 5278 * @since 10 5279 */ 5280declare enum ModifierKey { 5281 /** 5282 * ctrl. 5283 * 5284 * @syscap SystemCapability.ArkUI.ArkUI.Full 5285 * @crossplatform 5286 * @since 10 5287 */ 5288 CTRL, 5289 5290 /** 5291 * shift. 5292 * 5293 * @syscap SystemCapability.ArkUI.ArkUI.Full 5294 * @crossplatform 5295 * @since 10 5296 */ 5297 SHIFT, 5298 5299 /** 5300 * alt. 5301 * 5302 * @syscap SystemCapability.ArkUI.ArkUI.Full 5303 * @crossplatform 5304 * @since 10 5305 */ 5306 ALT, 5307} 5308 5309/** 5310 * Function key for hot key. 5311 * 5312 * @enum { number } 5313 * @syscap SystemCapability.ArkUI.ArkUI.Full 5314 * @crossplatform 5315 * @since 10 5316 */ 5317declare enum FunctionKey { 5318 /** 5319 * Escape key. 5320 * 5321 * @syscap SystemCapability.ArkUI.ArkUI.Full 5322 * @crossplatform 5323 * @since 10 5324 */ 5325 ESC, 5326 5327 /** 5328 * F1 key. 5329 * 5330 * @syscap SystemCapability.ArkUI.ArkUI.Full 5331 * @crossplatform 5332 * @since 10 5333 */ 5334 F1, 5335 5336 /** 5337 * F2 key. 5338 * 5339 * @syscap SystemCapability.ArkUI.ArkUI.Full 5340 * @crossplatform 5341 * @since 10 5342 */ 5343 F2, 5344 5345 /** 5346 * F3 key. 5347 * 5348 * @syscap SystemCapability.ArkUI.ArkUI.Full 5349 * @crossplatform 5350 * @since 10 5351 */ 5352 F3, 5353 5354 /** 5355 * F4 key. 5356 * 5357 * @syscap SystemCapability.ArkUI.ArkUI.Full 5358 * @crossplatform 5359 * @since 10 5360 */ 5361 F4, 5362 5363 /** 5364 * F5 key. 5365 * 5366 * @syscap SystemCapability.ArkUI.ArkUI.Full 5367 * @crossplatform 5368 * @since 10 5369 */ 5370 F5, 5371 5372 /** 5373 * F6 key. 5374 * 5375 * @syscap SystemCapability.ArkUI.ArkUI.Full 5376 * @crossplatform 5377 * @since 10 5378 */ 5379 F6, 5380 5381 /** 5382 * F7 key. 5383 * 5384 * @syscap SystemCapability.ArkUI.ArkUI.Full 5385 * @crossplatform 5386 * @since 10 5387 */ 5388 F7, 5389 5390 /** 5391 * F8 key. 5392 * 5393 * @syscap SystemCapability.ArkUI.ArkUI.Full 5394 * @crossplatform 5395 * @since 10 5396 */ 5397 F8, 5398 5399 /** 5400 * F9 key. 5401 * 5402 * @syscap SystemCapability.ArkUI.ArkUI.Full 5403 * @crossplatform 5404 * @since 10 5405 */ 5406 F9, 5407 5408 /** 5409 * F10 key. 5410 * 5411 * @syscap SystemCapability.ArkUI.ArkUI.Full 5412 * @crossplatform 5413 * @since 10 5414 */ 5415 F10, 5416 5417 /** 5418 * F11 key. 5419 * 5420 * @syscap SystemCapability.ArkUI.ArkUI.Full 5421 * @crossplatform 5422 * @since 10 5423 */ 5424 F11, 5425 5426 /** 5427 * F12 key. 5428 * 5429 * @syscap SystemCapability.ArkUI.ArkUI.Full 5430 * @crossplatform 5431 * @since 10 5432 */ 5433 F12, 5434} 5435 5436/** 5437 * The alignment of ImageSpan 5438 * 5439 * @enum { number } 5440 * @syscap SystemCapability.ArkUI.ArkUI.Full 5441 * @crossplatform 5442 * @since 10 5443 */ 5444declare enum ImageSpanAlignment { 5445 /** 5446 * Indicating that the bottom of the ImageSpan should be aligned with the baseline of the surrounding text. 5447 * 5448 * @syscap SystemCapability.ArkUI.ArkUI.Full 5449 * @crossplatform 5450 * @since 10 5451 */ 5452 BASELINE, 5453 5454 /** 5455 * Indicating that the bottom of the ImageSpan should be aligned with the bottom of the surrounding text. 5456 * 5457 * @syscap SystemCapability.ArkUI.ArkUI.Full 5458 * @crossplatform 5459 * @since 10 5460 */ 5461 BOTTOM, 5462 5463 /** 5464 * Indicating that the center of the ImageSpan should be aligned with the center of the surrounding text. 5465 * 5466 * @syscap SystemCapability.ArkUI.ArkUI.Full 5467 * @crossplatform 5468 * @since 10 5469 */ 5470 CENTER, 5471 5472 /** 5473 * Indicating that the top of the ImageSpan should be aligned with the top of the surrounding text. 5474 * 5475 * @syscap SystemCapability.ArkUI.ArkUI.Full 5476 * @crossplatform 5477 * @since 10 5478 */ 5479 TOP, 5480} 5481 5482/** 5483 * ObscuredReasons. 5484 * 5485 * @enum { number } 5486 * @syscap SystemCapability.ArkUI.ArkUI.Full 5487 * @since 10 5488 */ 5489declare enum ObscuredReasons { 5490 /** 5491 * Displayed data should appear as generic placeholders. 5492 * 5493 * @syscap SystemCapability.ArkUI.ArkUI.Full 5494 * @since 10 5495 */ 5496 PLACEHOLDER = 0, 5497} 5498 5499/** 5500 * Text content style. 5501 * 5502 * @enum { number } 5503 * @syscap SystemCapability.ArkUI.ArkUI.Full 5504 * @since 10 5505 */ 5506declare enum TextContentStyle { 5507 /** 5508 * Text content default style. 5509 * 5510 * @syscap SystemCapability.ArkUI.ArkUI.Full 5511 * @since 10 5512 */ 5513 DEFAULT, 5514 5515 /** 5516 * Text content inline style. 5517 * 5518 * @syscap SystemCapability.ArkUI.ArkUI.Full 5519 * @since 10 5520 */ 5521 INLINE 5522} 5523 5524/** 5525 * Enum of click effect level. 5526 * 5527 * @enum { number } 5528 * @syscap SystemCapability.ArkUI.ArkUI.Full 5529 * @crossplatform 5530 * @since 10 5531 */ 5532declare enum ClickEffectLevel { 5533 /** 5534 * Click effect level1. 5535 * The default scale number of this click effect level1 is 0.90. 5536 * The animation type is interpolatingSpring, velocity:10, mass:1, stiffness:410, damping:38. 5537 * 5538 * @syscap SystemCapability.ArkUI.ArkUI.Full 5539 * @crossplatform 5540 * @since 10 5541 */ 5542 LIGHT, 5543 5544 /** 5545 * Click effect level2. 5546 * The default scale number of this click effect level2 is 0.95. 5547 * The animation type is interpolatingSpring, velocity:10, mass:1, stiffness:350, damping:35. 5548 * 5549 * @syscap SystemCapability.ArkUI.ArkUI.Full 5550 * @crossplatform 5551 * @since 10 5552 */ 5553 MIDDLE, 5554 5555 /** 5556 * Click effect level3. 5557 * The default scale number of this click effect level3 is 0.95. 5558 * The animation type is interpolatingSpring, velocity:0, mass:1, stiffness:240, damping:28. 5559 * 5560 * @syscap SystemCapability.ArkUI.ArkUI.Full 5561 * @crossplatform 5562 * @since 10 5563 */ 5564 HEAVY, 5565} 5566 5567/** 5568 * The type of XComponent 5569 * 5570 * @enum { number } 5571 * @syscap SystemCapability.ArkUI.ArkUI.Full 5572 * @since 10 5573 */ 5574declare enum XComponentType { 5575 /** 5576 * Surface type. The default type is used. 5577 * 5578 * @syscap SystemCapability.ArkUI.ArkUI.Full 5579 * @since 10 5580 */ 5581 SURFACE, 5582 5583 /** 5584 * Component type. 5585 * 5586 * @syscap SystemCapability.ArkUI.ArkUI.Full 5587 * @since 10 5588 */ 5589 COMPONENT, 5590 5591 /** 5592 * Texture type. 5593 * 5594 * @syscap SystemCapability.ArkUI.ArkUI.Full 5595 * @since 10 5596 */ 5597 TEXTURE, 5598} 5599 5600/** 5601 * Nested scroll nested mode 5602 5603 * @enum { number } NestedScrollMode 5604 * @syscap SystemCapability.ArkUI.ArkUI.Full 5605 * @since 10 5606 */ 5607declare enum NestedScrollMode { 5608 /** 5609 * Only Self response scrolling. 5610 * 5611 * @syscap SystemCapability.ArkUI.ArkUI.Full 5612 * @since 10 5613 */ 5614 SELF_ONLY, 5615 5616 /** 5617 * Self priority response scrolling. 5618 * 5619 * @syscap SystemCapability.ArkUI.ArkUI.Full 5620 * @since 10 5621 */ 5622 SELF_FIRST, 5623 5624 /** 5625 * Parent scrollable component priority response scrolling. 5626 * 5627 * @syscap SystemCapability.ArkUI.ArkUI.Full 5628 * @since 10 5629 */ 5630 PARENT_FIRST, 5631 5632 /** 5633 * Both self and parent scrollable component response scrolling. 5634 * 5635 * @syscap SystemCapability.ArkUI.ArkUI.Full 5636 * @since 10 5637 */ 5638 PARALLEL, 5639} 5640 5641/** 5642 * Enum of RenderFit 5643 * 5644 * @enum { number } RenderFit 5645 * @syscap SystemCapability.ArkUI.ArkUI.Full 5646 * @crossplatform 5647 * @since 10 5648 */ 5649declare enum RenderFit { 5650 /** 5651 * Without scaling the content area, the content area is drawn in the center of the node. 5652 * 5653 * @syscap SystemCapability.ArkUI.ArkUI.Full 5654 * @crossplatform 5655 * @since 10 5656 */ 5657 CENTER = 0, 5658 /** 5659 * Without scaling the content area, the content area is drawn in the top center of the node. 5660 * 5661 * @syscap SystemCapability.ArkUI.ArkUI.Full 5662 * @crossplatform 5663 * @since 10 5664 */ 5665 TOP = 1, 5666 /** 5667 * Without scaling the content area, the content area is drawn in the bottom center of the node. 5668 * 5669 * @syscap SystemCapability.ArkUI.ArkUI.Full 5670 * @crossplatform 5671 * @since 10 5672 */ 5673 BOTTOM = 2, 5674 /** 5675 * Without scaling the content area, the content area is drawn in the left center of the node. 5676 * 5677 * @syscap SystemCapability.ArkUI.ArkUI.Full 5678 * @crossplatform 5679 * @since 10 5680 */ 5681 LEFT = 3, 5682 /** 5683 * Without scaling the content area, the content area is drawn in the right center of the node. 5684 * 5685 * @syscap SystemCapability.ArkUI.ArkUI.Full 5686 * @crossplatform 5687 * @since 10 5688 */ 5689 RIGHT = 4, 5690 /** 5691 * Without scaling the content area, the content area is drawn in the top left of the node. 5692 * 5693 * @syscap SystemCapability.ArkUI.ArkUI.Full 5694 * @crossplatform 5695 * @since 10 5696 */ 5697 TOP_LEFT = 5, 5698 /** 5699 * Without scaling the content area, the content area is drawn in the top right of the node. 5700 * 5701 * @syscap SystemCapability.ArkUI.ArkUI.Full 5702 * @crossplatform 5703 * @since 10 5704 */ 5705 TOP_RIGHT = 6, 5706 /** 5707 * Without scaling the content area, the content area is drawn in the bottom left of the node. 5708 * 5709 * @syscap SystemCapability.ArkUI.ArkUI.Full 5710 * @crossplatform 5711 * @since 10 5712 */ 5713 BOTTOM_LEFT = 7, 5714 /** 5715 * Without scaling the content area, the content area is drawn in the bottom right of the node. 5716 * 5717 * @syscap SystemCapability.ArkUI.ArkUI.Full 5718 * @crossplatform 5719 * @since 10 5720 */ 5721 BOTTOM_RIGHT = 8, 5722 /** 5723 * Scale the length and width of the content area to the node size to fill the node. 5724 * 5725 * @syscap SystemCapability.ArkUI.ArkUI.Full 5726 * @crossplatform 5727 * @since 10 5728 */ 5729 RESIZE_FILL = 9, 5730 /** 5731 * Scale the length or width of the content to the length or width of the node, ensuring that one side is equal, 5732 * the other side is less than or equal to the corresponding side of the node, and the content after scaling 5733 * is centered. 5734 * 5735 * @syscap SystemCapability.ArkUI.ArkUI.Full 5736 * @crossplatform 5737 * @since 10 5738 */ 5739 RESIZE_CONTAIN = 10, 5740 /** 5741 * Scale the length or width of the content to the length or width of the node, ensuring that one side is equal, 5742 * the other side is less than or equal to the corresponding side of the node. If the height of the scaled content 5743 * is less than or equal to the height of the node, the scaled content area is displayed at the top; otherwise, 5744 * the width of the scaled content is less than or equal to the width of the node, the scaled content area is 5745 * displayed at the left. 5746 * 5747 * @syscap SystemCapability.ArkUI.ArkUI.Full 5748 * @crossplatform 5749 * @since 10 5750 */ 5751 RESIZE_CONTAIN_TOP_LEFT = 11, 5752 /** 5753 * Scale the length or width of the content to the length or width of the node, ensuring that one side is equal, 5754 * the other side is less than or equal to the corresponding side of the node. If the height of the scaled content 5755 * is less than or equal to the height of the node, the scaled content area is displayed at the bottom; otherwise, 5756 * the width of the scaled content is less than or equal to the width of the node, the scaled content area is 5757 * displayed at the right. 5758 * 5759 * @syscap SystemCapability.ArkUI.ArkUI.Full 5760 * @crossplatform 5761 * @since 10 5762 */ 5763 RESIZE_CONTAIN_BOTTOM_RIGHT = 12, 5764 /** 5765 * Scale the length or width of the content to the length or width of the node, ensuring that one side is equal, 5766 * the other side is greater than or equal to the corresponding side of the node, and the content after scaling 5767 * displays the center area. 5768 * 5769 * @syscap SystemCapability.ArkUI.ArkUI.Full 5770 * @crossplatform 5771 * @since 10 5772 */ 5773 RESIZE_COVER = 13, 5774 /** 5775 * Scale the length or width of the content to the length or width of the node, ensuring that one side is equal, 5776 * the other side is greater than or equal to the corresponding side of the node. If the height of the scaled content 5777 * is greater than or equal to the height of the node, the scaled content area displays the top area; otherwise, 5778 * the width of the scaled content is greater than or equal to the width of the node, the scaled content area 5779 * displays the left area. 5780 * 5781 * @syscap SystemCapability.ArkUI.ArkUI.Full 5782 * @crossplatform 5783 * @since 10 5784 */ 5785 RESIZE_COVER_TOP_LEFT = 14, 5786 /** 5787 * Scale the length or width of the content to the length or width of the node, ensuring that one side is equal, 5788 * the other side is greater than or equal to the corresponding side of the node. If the height of the scaled content 5789 * is greater than or equal to the height of the node, the scaled content area displays the bottom area; otherwise, 5790 * the width of the scaled content is greater than or equal to the width of the node, the scaled content area 5791 * displays the right area. 5792 * 5793 * @syscap SystemCapability.ArkUI.ArkUI.Full 5794 * @crossplatform 5795 * @since 10 5796 */ 5797 RESIZE_COVER_BOTTOM_RIGHT = 15, 5798} 5799 5800/** 5801 * The Button Style of dialog, 5802 * @enum { number } 5803 * @syscap SystemCapability.ArkUI.ArkUI.Full 5804 * @crossplatform 5805 * @since 10 5806 */ 5807declare enum DialogButtonStyle { 5808 /** 5809 * Default Style. 5810 * @syscap SystemCapability.ArkUI.ArkUI.Full 5811 * @crossplatform 5812 * @since 10 5813 */ 5814 DEFAULT = 0, 5815 5816 /** 5817 * Highlight Style. 5818 * @syscap SystemCapability.ArkUI.ArkUI.Full 5819 * @crossplatform 5820 * @since 10 5821 */ 5822 HIGHLIGHT = 1 5823} 5824