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 * Defines the data type of the interface restriction. 18 * 19 * @interface Resource 20 * @syscap SystemCapability.ArkUI.ArkUI.Full 21 * @since 7 22 */ 23/** 24 * Defines the data type of the interface restriction. 25 * 26 * @interface Resource 27 * @syscap SystemCapability.ArkUI.ArkUI.Full 28 * @since 9 29 * @form 30 */ 31/** 32 * Defines the data type of the interface restriction. 33 * 34 * @syscap SystemCapability.ArkUI.ArkUI.Full 35 * @crossplatform 36 * @since 10 37 * @form 38 */ 39/** 40 * Defines the data type of the interface restriction. 41 * 42 * @syscap SystemCapability.ArkUI.ArkUI.Full 43 * @crossplatform 44 * @atomicservice 45 * @since 11 46 * @form 47 */ 48declare type Resource = import('../api/global/resource').Resource; 49 50/** 51 * Defines the length property with string, number and resource unit. 52 * 53 * @syscap SystemCapability.ArkUI.ArkUI.Full 54 * @since 7 55 */ 56/** 57 * Defines the length property with string, number and resource unit. 58 * 59 * @syscap SystemCapability.ArkUI.ArkUI.Full 60 * @since 9 61 * @form 62 */ 63/** 64 * Defines the length property with string, number and resource unit. 65 * 66 * @syscap SystemCapability.ArkUI.ArkUI.Full 67 * @crossplatform 68 * @since 10 69 * @form 70 */ 71/** 72 * Defines the length property with string, number and resource unit. 73 * 74 * @syscap SystemCapability.ArkUI.ArkUI.Full 75 * @crossplatform 76 * @atomicservice 77 * @since 11 78 * @form 79 */ 80declare type Length = string | number | Resource; 81 82/** 83 * Defines the length property with number in units of px. 84 * 85 * @syscap SystemCapability.ArkUI.ArkUI.Full 86 * @since 10 87 */ 88/** 89 * Defines the length property with number in units of px. 90 * 91 * @syscap SystemCapability.ArkUI.ArkUI.Full 92 * @atomicservice 93 * @since 11 94 */ 95declare type PX = `${number}px`; 96 97/** 98 * Defines the length property with number or number in units of vp. 99 * 100 * @syscap SystemCapability.ArkUI.ArkUI.Full 101 * @since 10 102 */ 103/** 104 * Defines the length property with number or number in units of vp. 105 * 106 * @syscap SystemCapability.ArkUI.ArkUI.Full 107 * @atomicservice 108 * @since 11 109 */ 110declare type VP = `${number}vp` | number; 111 112/** 113 * Defines the length property with number in units of fp. 114 * 115 * @syscap SystemCapability.ArkUI.ArkUI.Full 116 * @since 10 117 */ 118/** 119 * Defines the length property with number in units of fp. 120 * 121 * @syscap SystemCapability.ArkUI.ArkUI.Full 122 * @atomicservice 123 * @since 11 124 */ 125declare type FP = `${number}fp`; 126 127/** 128 * Defines the length property with number in units of lpx. 129 * 130 * @syscap SystemCapability.ArkUI.ArkUI.Full 131 * @since 10 132 */ 133/** 134 * Defines the length property with number in units of lpx. 135 * 136 * @syscap SystemCapability.ArkUI.ArkUI.Full 137 * @atomicservice 138 * @since 11 139 */ 140declare type LPX = `${number}lpx`; 141 142/** 143 * Defines the length property with number in units of Percentage. 144 * 145 * @syscap SystemCapability.ArkUI.ArkUI.Full 146 * @since 10 147 */ 148/** 149 * Defines the length property with number in units of Percentage. 150 * 151 * @syscap SystemCapability.ArkUI.ArkUI.Full 152 * @atomicservice 153 * @since 11 154 */ 155declare type Percentage = `${number}%`; 156 157/** 158 * Defines the angle property with number in units of deg. 159 * 160 * @syscap SystemCapability.ArkUI.ArkUI.Full 161 * @since 10 162 */ 163/** 164 * Defines the angle property with number in units of deg. 165 * 166 * @syscap SystemCapability.ArkUI.ArkUI.Full 167 * @atomicservice 168 * @since 11 169 */ 170declare type Degree = `${number}deg`; 171 172/** 173 * Defines the dimension property with number with units(vp|px|fp|lpx|%), and resource. 174 * 175 * @syscap SystemCapability.ArkUI.ArkUI.Full 176 * @since 10 177 */ 178/** 179 * Defines the dimension property with number with units(vp|px|fp|lpx|%), and resource. 180 * 181 * @syscap SystemCapability.ArkUI.ArkUI.Full 182 * @atomicservice 183 * @since 11 184 */ 185declare type Dimension = PX | VP | FP | LPX | Percentage | Resource; 186 187/** 188 * Defines the string which can use resource. 189 * 190 * @syscap SystemCapability.ArkUI.ArkUI.Full 191 * @since 7 192 */ 193/** 194 * Defines the string which can use resource. 195 * 196 * @syscap SystemCapability.ArkUI.ArkUI.Full 197 * @since 9 198 * @form 199 */ 200/** 201 * Defines the string which can use resource. 202 * 203 * @syscap SystemCapability.ArkUI.ArkUI.Full 204 * @crossplatform 205 * @since 10 206 * @form 207 */ 208/** 209 * Defines the string which can use resource. 210 * 211 * @syscap SystemCapability.ArkUI.ArkUI.Full 212 * @crossplatform 213 * @atomicservice 214 * @since 11 215 * @form 216 */ 217declare type ResourceStr = string | Resource; 218 219/** 220 * Defines the padding property. 221 * 222 * @syscap SystemCapability.ArkUI.ArkUI.Full 223 * @since 7 224 */ 225/** 226 * Defines the padding property. 227 * 228 * @syscap SystemCapability.ArkUI.ArkUI.Full 229 * @since 9 230 * @form 231 */ 232/** 233 * Defines the padding property. 234 * 235 * @syscap SystemCapability.ArkUI.ArkUI.Full 236 * @crossplatform 237 * @since 10 238 * @form 239 */ 240/** 241 * Defines the padding property. 242 * 243 * @syscap SystemCapability.ArkUI.ArkUI.Full 244 * @crossplatform 245 * @atomicservice 246 * @since 11 247 * @form 248 */ 249declare type Padding = { 250 /** 251 * top property. 252 * 253 * @type { ?Length } 254 * @syscap SystemCapability.ArkUI.ArkUI.Full 255 * @since 7 256 */ 257 /** 258 * top property. 259 * 260 * @type { ?Length } 261 * @syscap SystemCapability.ArkUI.ArkUI.Full 262 * @since 9 263 * @form 264 */ 265 /** 266 * top property. 267 * 268 * @type { ?Length } 269 * @syscap SystemCapability.ArkUI.ArkUI.Full 270 * @crossplatform 271 * @since 10 272 * @form 273 */ 274 /** 275 * top property. 276 * 277 * @type { ?Length } 278 * @syscap SystemCapability.ArkUI.ArkUI.Full 279 * @crossplatform 280 * @atomicservice 281 * @since 11 282 * @form 283 */ 284 top?: Length; 285 286 /** 287 * right property. 288 * 289 * @type { ?Length } 290 * @syscap SystemCapability.ArkUI.ArkUI.Full 291 * @since 7 292 */ 293 /** 294 * right property. 295 * 296 * @type { ?Length } 297 * @syscap SystemCapability.ArkUI.ArkUI.Full 298 * @since 9 299 * @form 300 */ 301 /** 302 * right property. 303 * 304 * @type { ?Length } 305 * @syscap SystemCapability.ArkUI.ArkUI.Full 306 * @crossplatform 307 * @since 10 308 * @form 309 */ 310 /** 311 * right property. 312 * 313 * @type { ?Length } 314 * @syscap SystemCapability.ArkUI.ArkUI.Full 315 * @crossplatform 316 * @atomicservice 317 * @since 11 318 * @form 319 */ 320 right?: Length; 321 322 /** 323 * bottom property. 324 * 325 * @type { ?Length } 326 * @syscap SystemCapability.ArkUI.ArkUI.Full 327 * @since 7 328 */ 329 /** 330 * bottom property. 331 * 332 * @type { ?Length } 333 * @syscap SystemCapability.ArkUI.ArkUI.Full 334 * @since 9 335 * @form 336 */ 337 /** 338 * bottom property. 339 * 340 * @type { ?Length } 341 * @syscap SystemCapability.ArkUI.ArkUI.Full 342 * @crossplatform 343 * @since 10 344 * @form 345 */ 346 /** 347 * bottom property. 348 * 349 * @type { ?Length } 350 * @syscap SystemCapability.ArkUI.ArkUI.Full 351 * @crossplatform 352 * @atomicservice 353 * @since 11 354 * @form 355 */ 356 bottom?: Length; 357 358 /** 359 * left property. 360 * 361 * @type { ?Length } 362 * @syscap SystemCapability.ArkUI.ArkUI.Full 363 * @since 7 364 */ 365 /** 366 * left property. 367 * 368 * @type { ?Length } 369 * @syscap SystemCapability.ArkUI.ArkUI.Full 370 * @since 9 371 * @form 372 */ 373 /** 374 * left property. 375 * 376 * @type { ?Length } 377 * @syscap SystemCapability.ArkUI.ArkUI.Full 378 * @crossplatform 379 * @since 10 380 * @form 381 */ 382 /** 383 * left property. 384 * 385 * @type { ?Length } 386 * @syscap SystemCapability.ArkUI.ArkUI.Full 387 * @crossplatform 388 * @atomicservice 389 * @since 11 390 * @form 391 */ 392 left?: Length; 393}; 394 395/** 396 * Defines the margin property. 397 * 398 * @syscap SystemCapability.ArkUI.ArkUI.Full 399 * @since 7 400 */ 401/** 402 * Defines the margin property. 403 * 404 * @syscap SystemCapability.ArkUI.ArkUI.Full 405 * @since 9 406 * @form 407 */ 408/** 409 * Defines the margin property. 410 * 411 * @syscap SystemCapability.ArkUI.ArkUI.Full 412 * @crossplatform 413 * @since 10 414 * @form 415 */ 416/** 417 * Defines the margin property. 418 * 419 * @syscap SystemCapability.ArkUI.ArkUI.Full 420 * @crossplatform 421 * @atomicservice 422 * @since 11 423 * @form 424 */ 425declare type Margin = Padding; 426 427/** 428 * Defines the border width property. 429 * 430 * @syscap SystemCapability.ArkUI.ArkUI.Full 431 * @crossplatform 432 * @since 10 433 */ 434/** 435 * Defines the border width property. 436 * 437 * @syscap SystemCapability.ArkUI.ArkUI.Full 438 * @crossplatform 439 * @atomicservice 440 * @since 11 441 */ 442declare type EdgeWidth = EdgeWidths; 443 444/** 445 * Defines the border width property. 446 * 447 * @syscap SystemCapability.ArkUI.ArkUI.Full 448 * @since 9 449 * @form 450 */ 451/** 452 * Defines the border width property. 453 * 454 * @syscap SystemCapability.ArkUI.ArkUI.Full 455 * @crossplatform 456 * @since 10 457 * @form 458 */ 459/** 460 * Defines the border width property. 461 * 462 * @syscap SystemCapability.ArkUI.ArkUI.Full 463 * @crossplatform 464 * @atomicservice 465 * @since 11 466 * @form 467 */ 468declare type EdgeWidths = { 469 /** 470 * top property. 471 * 472 * @type { ?Length } 473 * @syscap SystemCapability.ArkUI.ArkUI.Full 474 * @since 9 475 * @form 476 */ 477 /** 478 * top property. 479 * 480 * @type { ?Length } 481 * @syscap SystemCapability.ArkUI.ArkUI.Full 482 * @crossplatform 483 * @since 10 484 * @form 485 */ 486 /** 487 * top property. 488 * 489 * @type { ?Length } 490 * @syscap SystemCapability.ArkUI.ArkUI.Full 491 * @crossplatform 492 * @atomicservice 493 * @since 11 494 * @form 495 */ 496 top?: Length; 497 498 /** 499 * right property. 500 * 501 * @type { ?Length } 502 * @syscap SystemCapability.ArkUI.ArkUI.Full 503 * @since 9 504 * @form 505 */ 506 /** 507 * right property. 508 * 509 * @type { ?Length } 510 * @syscap SystemCapability.ArkUI.ArkUI.Full 511 * @crossplatform 512 * @since 10 513 * @form 514 */ 515 /** 516 * right property. 517 * 518 * @type { ?Length } 519 * @syscap SystemCapability.ArkUI.ArkUI.Full 520 * @crossplatform 521 * @atomicservice 522 * @since 11 523 * @form 524 */ 525 right?: Length; 526 527 /** 528 * bottom property. 529 * 530 * @type { ?Length } 531 * @syscap SystemCapability.ArkUI.ArkUI.Full 532 * @since 9 533 * @form 534 */ 535 /** 536 * bottom property. 537 * 538 * @type { ?Length } 539 * @syscap SystemCapability.ArkUI.ArkUI.Full 540 * @crossplatform 541 * @since 10 542 * @form 543 */ 544 /** 545 * bottom property. 546 * 547 * @type { ?Length } 548 * @syscap SystemCapability.ArkUI.ArkUI.Full 549 * @crossplatform 550 * @atomicservice 551 * @since 11 552 * @form 553 */ 554 bottom?: Length; 555 556 /** 557 * left property. 558 * 559 * @type { ?Length } 560 * @syscap SystemCapability.ArkUI.ArkUI.Full 561 * @since 9 562 * @form 563 */ 564 /** 565 * left property. 566 * 567 * @type { ?Length } 568 * @syscap SystemCapability.ArkUI.ArkUI.Full 569 * @crossplatform 570 * @since 10 571 * @form 572 */ 573 /** 574 * left property. 575 * 576 * @type { ?Length } 577 * @syscap SystemCapability.ArkUI.ArkUI.Full 578 * @crossplatform 579 * @atomicservice 580 * @since 11 581 * @form 582 */ 583 left?: Length; 584}; 585 586/** 587 * Defines the outline width property. 588 * 589 * @syscap SystemCapability.ArkUI.ArkUI.Full 590 * @crossplatform 591 * @since 11 592 * @form 593 */ 594declare type EdgeOutlineWidths = { 595 /** 596 * top outline width property. 597 * 598 * @type { ?Dimension } 599 * @syscap SystemCapability.ArkUI.ArkUI.Full 600 * @crossplatform 601 * @since 11 602 * @form 603 */ 604 top?: Dimension; 605 606 /** 607 * right outline width property. 608 * 609 * @type { ?Dimension } 610 * @syscap SystemCapability.ArkUI.ArkUI.Full 611 * @crossplatform 612 * @since 11 613 * @form 614 */ 615 right?: Dimension; 616 617 /** 618 * bottom outline width property. 619 * 620 * @type { ?Dimension } 621 * @syscap SystemCapability.ArkUI.ArkUI.Full 622 * @crossplatform 623 * @since 11 624 * @form 625 */ 626 bottom?: Dimension; 627 628 /** 629 * left outline width property. 630 * 631 * @type { ?Dimension } 632 * @syscap SystemCapability.ArkUI.ArkUI.Full 633 * @crossplatform 634 * @since 11 635 * @form 636 */ 637 left?: Dimension; 638}; 639 640/** 641 * Defines the border radius property. 642 * 643 * @syscap SystemCapability.ArkUI.ArkUI.Full 644 * @since 9 645 * @form 646 */ 647/** 648 * Defines the border radius property. 649 * 650 * @syscap SystemCapability.ArkUI.ArkUI.Full 651 * @crossplatform 652 * @since 10 653 * @form 654 */ 655/** 656 * Defines the border radius property. 657 * 658 * @syscap SystemCapability.ArkUI.ArkUI.Full 659 * @crossplatform 660 * @atomicservice 661 * @since 11 662 * @form 663 */ 664declare type BorderRadiuses = { 665 /** 666 * top-left property. 667 * 668 * @type { ?Length } 669 * @syscap SystemCapability.ArkUI.ArkUI.Full 670 * @since 9 671 * @form 672 */ 673 /** 674 * top-left property. 675 * 676 * @type { ?Length } 677 * @syscap SystemCapability.ArkUI.ArkUI.Full 678 * @crossplatform 679 * @since 10 680 * @form 681 */ 682 /** 683 * top-left property. 684 * 685 * @type { ?Length } 686 * @syscap SystemCapability.ArkUI.ArkUI.Full 687 * @crossplatform 688 * @atomicservice 689 * @since 11 690 * @form 691 */ 692 topLeft?: Length; 693 694 /** 695 * top-right property. 696 * 697 * @type { ?Length } 698 * @syscap SystemCapability.ArkUI.ArkUI.Full 699 * @since 9 700 * @form 701 */ 702 /** 703 * top-right property. 704 * 705 * @type { ?Length } 706 * @syscap SystemCapability.ArkUI.ArkUI.Full 707 * @crossplatform 708 * @since 10 709 * @form 710 */ 711 /** 712 * top-right property. 713 * 714 * @type { ?Length } 715 * @syscap SystemCapability.ArkUI.ArkUI.Full 716 * @crossplatform 717 * @atomicservice 718 * @since 11 719 * @form 720 */ 721 topRight?: Length; 722 723 /** 724 * bottom-left property. 725 * 726 * @type { ?Length } 727 * @syscap SystemCapability.ArkUI.ArkUI.Full 728 * @since 9 729 * @form 730 */ 731 /** 732 * bottom-left property. 733 * 734 * @type { ?Length } 735 * @syscap SystemCapability.ArkUI.ArkUI.Full 736 * @crossplatform 737 * @since 10 738 * @form 739 */ 740 /** 741 * bottom-left property. 742 * 743 * @type { ?Length } 744 * @syscap SystemCapability.ArkUI.ArkUI.Full 745 * @crossplatform 746 * @atomicservice 747 * @since 11 748 * @form 749 */ 750 bottomLeft?: Length; 751 752 /** 753 * bottom-right property. 754 * 755 * @type { ?Length } 756 * @syscap SystemCapability.ArkUI.ArkUI.Full 757 * @since 9 758 * @form 759 */ 760 /** 761 * bottom-right property. 762 * 763 * @type { ?Length } 764 * @syscap SystemCapability.ArkUI.ArkUI.Full 765 * @crossplatform 766 * @since 10 767 * @form 768 */ 769 /** 770 * bottom-right property. 771 * 772 * @type { ?Length } 773 * @syscap SystemCapability.ArkUI.ArkUI.Full 774 * @crossplatform 775 * @atomicservice 776 * @since 11 777 * @form 778 */ 779 bottomRight?: Length; 780}; 781 782/** 783 * Defines the outline radius property. 784 * 785 * @syscap SystemCapability.ArkUI.ArkUI.Full 786 * @crossplatform 787 * @since 11 788 * @form 789 */ 790declare type OutlineRadiuses = { 791 /** 792 * top-left property. 793 * 794 * @type { ?Dimension } 795 * @syscap SystemCapability.ArkUI.ArkUI.Full 796 * @crossplatform 797 * @since 11 798 * @form 799 */ 800 topLeft?: Dimension; 801 802 /** 803 * top-right property. 804 * 805 * @type { ?Dimension } 806 * @syscap SystemCapability.ArkUI.ArkUI.Full 807 * @crossplatform 808 * @since 11 809 * @form 810 */ 811 topRight?: Dimension; 812 813 /** 814 * bottom-left property. 815 * 816 * @type { ?Dimension } 817 * @syscap SystemCapability.ArkUI.ArkUI.Full 818 * @crossplatform 819 * @since 11 820 * @form 821 */ 822 bottomLeft?: Dimension; 823 824 /** 825 * bottom-right property. 826 * 827 * @type { ?Dimension } 828 * @syscap SystemCapability.ArkUI.ArkUI.Full 829 * @crossplatform 830 * @since 11 831 * @form 832 */ 833 bottomRight?: Dimension; 834}; 835 836/** 837 * Defines the border color property. 838 * 839 * @syscap SystemCapability.ArkUI.ArkUI.Full 840 * @since 9 841 * @form 842 */ 843/** 844 * Defines the border color property. 845 * 846 * @syscap SystemCapability.ArkUI.ArkUI.Full 847 * @crossplatform 848 * @since 10 849 * @form 850 */ 851/** 852 * Defines the border color property. 853 * 854 * @syscap SystemCapability.ArkUI.ArkUI.Full 855 * @crossplatform 856 * @atomicservice 857 * @since 11 858 * @form 859 */ 860declare type EdgeColors = { 861 /** 862 * top property. 863 * 864 * @type { ?ResourceColor } 865 * @syscap SystemCapability.ArkUI.ArkUI.Full 866 * @since 9 867 * @form 868 */ 869 /** 870 * top property. 871 * 872 * @type { ?ResourceColor } 873 * @syscap SystemCapability.ArkUI.ArkUI.Full 874 * @crossplatform 875 * @since 10 876 * @form 877 */ 878 /** 879 * top property. 880 * 881 * @type { ?ResourceColor } 882 * @syscap SystemCapability.ArkUI.ArkUI.Full 883 * @crossplatform 884 * @atomicservice 885 * @since 11 886 * @form 887 */ 888 top?: ResourceColor; 889 890 /** 891 * right property. 892 * 893 * @type { ?ResourceColor } 894 * @syscap SystemCapability.ArkUI.ArkUI.Full 895 * @since 9 896 * @form 897 */ 898 /** 899 * right property. 900 * 901 * @type { ?ResourceColor } 902 * @syscap SystemCapability.ArkUI.ArkUI.Full 903 * @crossplatform 904 * @since 10 905 * @form 906 */ 907 /** 908 * right property. 909 * 910 * @type { ?ResourceColor } 911 * @syscap SystemCapability.ArkUI.ArkUI.Full 912 * @crossplatform 913 * @atomicservice 914 * @since 11 915 * @form 916 */ 917 right?: ResourceColor; 918 919 /** 920 * bottom property. 921 * 922 * @type { ?ResourceColor } 923 * @syscap SystemCapability.ArkUI.ArkUI.Full 924 * @since 9 925 * @form 926 */ 927 /** 928 * bottom property. 929 * 930 * @type { ?ResourceColor } 931 * @syscap SystemCapability.ArkUI.ArkUI.Full 932 * @crossplatform 933 * @since 10 934 * @form 935 */ 936 /** 937 * bottom property. 938 * 939 * @type { ?ResourceColor } 940 * @syscap SystemCapability.ArkUI.ArkUI.Full 941 * @crossplatform 942 * @atomicservice 943 * @since 11 944 * @form 945 */ 946 bottom?: ResourceColor; 947 948 /** 949 * left property. 950 * 951 * @type { ?ResourceColor } 952 * @syscap SystemCapability.ArkUI.ArkUI.Full 953 * @since 9 954 * @form 955 */ 956 /** 957 * left property. 958 * 959 * @type { ?ResourceColor } 960 * @syscap SystemCapability.ArkUI.ArkUI.Full 961 * @crossplatform 962 * @since 10 963 * @form 964 */ 965 /** 966 * left property. 967 * 968 * @type { ?ResourceColor } 969 * @syscap SystemCapability.ArkUI.ArkUI.Full 970 * @crossplatform 971 * @atomicservice 972 * @since 11 973 * @form 974 */ 975 left?: ResourceColor; 976}; 977 978/** 979 * Defines the border style property. 980 * 981 * @syscap SystemCapability.ArkUI.ArkUI.Full 982 * @since 9 983 * @form 984 */ 985/** 986 * Defines the border style property. 987 * 988 * @syscap SystemCapability.ArkUI.ArkUI.Full 989 * @crossplatform 990 * @since 10 991 * @form 992 */ 993/** 994 * Defines the border style property. 995 * 996 * @syscap SystemCapability.ArkUI.ArkUI.Full 997 * @crossplatform 998 * @atomicservice 999 * @since 11 1000 * @form 1001 */ 1002declare type EdgeStyles = { 1003 /** 1004 * top property. 1005 * 1006 * @type { ?BorderStyle } 1007 * @syscap SystemCapability.ArkUI.ArkUI.Full 1008 * @since 9 1009 * @form 1010 */ 1011 /** 1012 * top property. 1013 * 1014 * @type { ?BorderStyle } 1015 * @syscap SystemCapability.ArkUI.ArkUI.Full 1016 * @crossplatform 1017 * @since 10 1018 * @form 1019 */ 1020 /** 1021 * top property. 1022 * 1023 * @type { ?BorderStyle } 1024 * @syscap SystemCapability.ArkUI.ArkUI.Full 1025 * @crossplatform 1026 * @atomicservice 1027 * @since 11 1028 * @form 1029 */ 1030 top?: BorderStyle; 1031 1032 /** 1033 * right property. 1034 * 1035 * @type { ?BorderStyle } 1036 * @syscap SystemCapability.ArkUI.ArkUI.Full 1037 * @since 9 1038 * @form 1039 */ 1040 /** 1041 * right property. 1042 * 1043 * @type { ?BorderStyle } 1044 * @syscap SystemCapability.ArkUI.ArkUI.Full 1045 * @crossplatform 1046 * @since 10 1047 * @form 1048 */ 1049 /** 1050 * right property. 1051 * 1052 * @type { ?BorderStyle } 1053 * @syscap SystemCapability.ArkUI.ArkUI.Full 1054 * @crossplatform 1055 * @atomicservice 1056 * @since 11 1057 * @form 1058 */ 1059 right?: BorderStyle; 1060 1061 /** 1062 * bottom property. 1063 * 1064 * @type { ?BorderStyle } 1065 * @syscap SystemCapability.ArkUI.ArkUI.Full 1066 * @since 9 1067 * @form 1068 */ 1069 /** 1070 * bottom property. 1071 * 1072 * @type { ?BorderStyle } 1073 * @syscap SystemCapability.ArkUI.ArkUI.Full 1074 * @crossplatform 1075 * @since 10 1076 * @form 1077 */ 1078 /** 1079 * bottom property. 1080 * 1081 * @type { ?BorderStyle } 1082 * @syscap SystemCapability.ArkUI.ArkUI.Full 1083 * @crossplatform 1084 * @atomicservice 1085 * @since 11 1086 * @form 1087 */ 1088 bottom?: BorderStyle; 1089 1090 /** 1091 * left property. 1092 * 1093 * @type { ?BorderStyle } 1094 * @syscap SystemCapability.ArkUI.ArkUI.Full 1095 * @since 9 1096 * @form 1097 */ 1098 /** 1099 * left property. 1100 * 1101 * @type { ?BorderStyle } 1102 * @syscap SystemCapability.ArkUI.ArkUI.Full 1103 * @crossplatform 1104 * @since 10 1105 * @form 1106 */ 1107 /** 1108 * left property. 1109 * 1110 * @type { ?BorderStyle } 1111 * @syscap SystemCapability.ArkUI.ArkUI.Full 1112 * @crossplatform 1113 * @atomicservice 1114 * @since 11 1115 * @form 1116 */ 1117 left?: BorderStyle; 1118}; 1119 1120/** 1121 * Defines the outline style property. 1122 * 1123 * @syscap SystemCapability.ArkUI.ArkUI.Full 1124 * @crossplatform 1125 * @since 11 1126 * @form 1127 */ 1128declare type EdgeOutlineStyles = { 1129 /** 1130 * top property. 1131 * 1132 * @type { ?OutlineStyle } 1133 * @syscap SystemCapability.ArkUI.ArkUI.Full 1134 * @crossplatform 1135 * @since 11 1136 * @form 1137 */ 1138 top?: OutlineStyle; 1139 1140 /** 1141 * right property. 1142 * 1143 * @type { ?OutlineStyle } 1144 * @syscap SystemCapability.ArkUI.ArkUI.Full 1145 * @crossplatform 1146 * @since 11 1147 * @form 1148 */ 1149 right?: OutlineStyle; 1150 1151 /** 1152 * bottom property. 1153 * 1154 * @type { ?OutlineStyle } 1155 * @syscap SystemCapability.ArkUI.ArkUI.Full 1156 * @crossplatform 1157 * @since 11 1158 * @form 1159 */ 1160 bottom?: OutlineStyle; 1161 1162 /** 1163 * left property. 1164 * 1165 * @type { ?OutlineStyle } 1166 * @syscap SystemCapability.ArkUI.ArkUI.Full 1167 * @crossplatform 1168 * @since 11 1169 * @form 1170 */ 1171 left?: OutlineStyle; 1172}; 1173 1174/** 1175 * Defines the offset property. 1176 * 1177 * @syscap SystemCapability.ArkUI.ArkUI.Full 1178 * @since 7 1179 */ 1180/** 1181 * Defines the offset property. 1182 * 1183 * @syscap SystemCapability.ArkUI.ArkUI.Full 1184 * @crossplatform 1185 * @since 10 1186 */ 1187/** 1188 * Defines the offset property. 1189 * 1190 * @syscap SystemCapability.ArkUI.ArkUI.Full 1191 * @crossplatform 1192 * @atomicservice 1193 * @since 11 1194 */ 1195declare type Offset = { 1196 /** 1197 * dx property. 1198 * 1199 * @type { Length } 1200 * @syscap SystemCapability.ArkUI.ArkUI.Full 1201 * @since 7 1202 */ 1203 /** 1204 * dx property. 1205 * 1206 * @type { Length } 1207 * @syscap SystemCapability.ArkUI.ArkUI.Full 1208 * @crossplatform 1209 * @since 10 1210 */ 1211 /** 1212 * dx property. 1213 * 1214 * @type { Length } 1215 * @syscap SystemCapability.ArkUI.ArkUI.Full 1216 * @crossplatform 1217 * @atomicservice 1218 * @since 11 1219 */ 1220 dx: Length; 1221 1222 /** 1223 * dy property. 1224 * 1225 * @type { Length } 1226 * @syscap SystemCapability.ArkUI.ArkUI.Full 1227 * @since 7 1228 */ 1229 /** 1230 * dy property. 1231 * 1232 * @type { Length } 1233 * @syscap SystemCapability.ArkUI.ArkUI.Full 1234 * @crossplatform 1235 * @since 10 1236 */ 1237 /** 1238 * dy property. 1239 * 1240 * @type { Length } 1241 * @syscap SystemCapability.ArkUI.ArkUI.Full 1242 * @crossplatform 1243 * @atomicservice 1244 * @since 11 1245 */ 1246 dy: Length; 1247}; 1248 1249/** 1250 * Defines the color which can use resource. 1251 * 1252 * @syscap SystemCapability.ArkUI.ArkUI.Full 1253 * @since 7 1254 */ 1255/** 1256 * Defines the color which can use resource. 1257 * 1258 * @syscap SystemCapability.ArkUI.ArkUI.Full 1259 * @since 9 1260 * @form 1261 */ 1262/** 1263 * Defines the color which can use resource. 1264 * 1265 * @syscap SystemCapability.ArkUI.ArkUI.Full 1266 * @crossplatform 1267 * @since 10 1268 * @form 1269 */ 1270/** 1271 * Defines the color which can use resource. 1272 * 1273 * @syscap SystemCapability.ArkUI.ArkUI.Full 1274 * @crossplatform 1275 * @atomicservice 1276 * @since 11 1277 * @form 1278 */ 1279declare type ResourceColor = Color | number | string | Resource; 1280 1281/** 1282 * Defines the length constrain property. 1283 * 1284 * @syscap SystemCapability.ArkUI.ArkUI.Full 1285 * @since 9 1286 * @form 1287 */ 1288/** 1289 * Defines the length constrain property. 1290 * 1291 * @syscap SystemCapability.ArkUI.ArkUI.Full 1292 * @crossplatform 1293 * @since 10 1294 * @form 1295 */ 1296/** 1297 * Defines the length constrain property. 1298 * 1299 * @syscap SystemCapability.ArkUI.ArkUI.Full 1300 * @crossplatform 1301 * @atomicservice 1302 * @since 11 1303 * @form 1304 */ 1305declare type LengthConstrain = { 1306 /** 1307 * minimum length. 1308 * 1309 * @type { Length } 1310 * @syscap SystemCapability.ArkUI.ArkUI.Full 1311 * @since 9 1312 * @form 1313 */ 1314 /** 1315 * minimum length. 1316 * 1317 * @type { Length } 1318 * @syscap SystemCapability.ArkUI.ArkUI.Full 1319 * @crossplatform 1320 * @since 10 1321 * @form 1322 */ 1323 /** 1324 * minimum length. 1325 * 1326 * @type { Length } 1327 * @syscap SystemCapability.ArkUI.ArkUI.Full 1328 * @crossplatform 1329 * @atomicservice 1330 * @since 11 1331 * @form 1332 */ 1333 minLength: Length; 1334 1335 /** 1336 * maximum length. 1337 * 1338 * @type { Length } 1339 * @syscap SystemCapability.ArkUI.ArkUI.Full 1340 * @since 9 1341 * @form 1342 */ 1343 /** 1344 * maximum length. 1345 * 1346 * @type { Length } 1347 * @syscap SystemCapability.ArkUI.ArkUI.Full 1348 * @crossplatform 1349 * @since 10 1350 * @form 1351 */ 1352 /** 1353 * maximum length. 1354 * 1355 * @type { Length } 1356 * @syscap SystemCapability.ArkUI.ArkUI.Full 1357 * @crossplatform 1358 * @atomicservice 1359 * @since 11 1360 * @form 1361 */ 1362 maxLength: Length; 1363}; 1364 1365/** 1366 * Defines the font used for text. 1367 * 1368 * @interface Font 1369 * @syscap SystemCapability.ArkUI.ArkUI.Full 1370 * @since 7 1371 */ 1372/** 1373 * Defines the font used for text. 1374 * 1375 * @interface Font 1376 * @syscap SystemCapability.ArkUI.ArkUI.Full 1377 * @crossplatform 1378 * @since 10 1379 */ 1380/** 1381 * Defines the font used for text. 1382 * 1383 * @interface Font 1384 * @syscap SystemCapability.ArkUI.ArkUI.Full 1385 * @crossplatform 1386 * @atomicservice 1387 * @since 11 1388 */ 1389declare interface Font { 1390 /** 1391 * font size. 1392 * 1393 * @type { ?Length } 1394 * @syscap SystemCapability.ArkUI.ArkUI.Full 1395 * @since 7 1396 */ 1397 /** 1398 * font size. 1399 * 1400 * @type { ?Length } 1401 * @syscap SystemCapability.ArkUI.ArkUI.Full 1402 * @crossplatform 1403 * @since 10 1404 */ 1405 /** 1406 * font size. 1407 * 1408 * @type { ?Length } 1409 * @syscap SystemCapability.ArkUI.ArkUI.Full 1410 * @crossplatform 1411 * @atomicservice 1412 * @since 11 1413 */ 1414 size?: Length; 1415 1416 /** 1417 * font weight. 1418 * 1419 * @type { ?(FontWeight | number | string) } 1420 * @syscap SystemCapability.ArkUI.ArkUI.Full 1421 * @since 7 1422 */ 1423 /** 1424 * font weight. 1425 * 1426 * @type { ?(FontWeight | number | string) } 1427 * @syscap SystemCapability.ArkUI.ArkUI.Full 1428 * @crossplatform 1429 * @since 10 1430 */ 1431 /** 1432 * font weight. 1433 * 1434 * @type { ?(FontWeight | number | string) } 1435 * @syscap SystemCapability.ArkUI.ArkUI.Full 1436 * @crossplatform 1437 * @atomicservice 1438 * @since 11 1439 */ 1440 weight?: FontWeight | number | string; 1441 1442 /** 1443 * font family. 1444 * 1445 * @type { ?(string | Resource) } 1446 * @syscap SystemCapability.ArkUI.ArkUI.Full 1447 * @since 7 1448 */ 1449 /** 1450 * font family. 1451 * 1452 * @type { ?(string | Resource) } 1453 * @syscap SystemCapability.ArkUI.ArkUI.Full 1454 * @crossplatform 1455 * @since 10 1456 */ 1457 /** 1458 * font family. 1459 * 1460 * @type { ?(string | Resource) } 1461 * @syscap SystemCapability.ArkUI.ArkUI.Full 1462 * @crossplatform 1463 * @atomicservice 1464 * @since 11 1465 */ 1466 family?: string | Resource; 1467 1468 /** 1469 * font style. 1470 * 1471 * @type { ?FontStyle } 1472 * @syscap SystemCapability.ArkUI.ArkUI.Full 1473 * @since 7 1474 */ 1475 /** 1476 * font style. 1477 * 1478 * @type { ?FontStyle } 1479 * @syscap SystemCapability.ArkUI.ArkUI.Full 1480 * @crossplatform 1481 * @since 10 1482 */ 1483 /** 1484 * font style. 1485 * 1486 * @type { ?FontStyle } 1487 * @syscap SystemCapability.ArkUI.ArkUI.Full 1488 * @crossplatform 1489 * @atomicservice 1490 * @since 11 1491 */ 1492 style?: FontStyle; 1493} 1494 1495/** 1496 * Defines the area property. 1497 * 1498 * @interface Area 1499 * @syscap SystemCapability.ArkUI.ArkUI.Full 1500 * @since 8 1501 */ 1502/** 1503 * Defines the area property. 1504 * 1505 * @interface Area 1506 * @syscap SystemCapability.ArkUI.ArkUI.Full 1507 * @since 9 1508 * @form 1509 */ 1510/** 1511 * Defines the area property. 1512 * 1513 * @interface Area 1514 * @syscap SystemCapability.ArkUI.ArkUI.Full 1515 * @crossplatform 1516 * @since 10 1517 * @form 1518 */ 1519/** 1520 * Defines the area property. 1521 * 1522 * @interface Area 1523 * @syscap SystemCapability.ArkUI.ArkUI.Full 1524 * @crossplatform 1525 * @atomicservice 1526 * @since 11 1527 * @form 1528 */ 1529declare interface Area { 1530 /** 1531 * Defines the width property. 1532 * 1533 * @type { Length } 1534 * @syscap SystemCapability.ArkUI.ArkUI.Full 1535 * @since 8 1536 */ 1537 /** 1538 * Defines the width property. 1539 * 1540 * @type { Length } 1541 * @syscap SystemCapability.ArkUI.ArkUI.Full 1542 * @since 9 1543 * @form 1544 */ 1545 /** 1546 * Defines the width property. 1547 * 1548 * @type { Length } 1549 * @syscap SystemCapability.ArkUI.ArkUI.Full 1550 * @crossplatform 1551 * @since 10 1552 * @form 1553 */ 1554 /** 1555 * Defines the width property. 1556 * 1557 * @type { Length } 1558 * @syscap SystemCapability.ArkUI.ArkUI.Full 1559 * @crossplatform 1560 * @atomicservice 1561 * @since 11 1562 * @form 1563 */ 1564 width: Length; 1565 1566 /** 1567 * Defines the height property. 1568 * 1569 * @type { Length } 1570 * @syscap SystemCapability.ArkUI.ArkUI.Full 1571 * @since 8 1572 */ 1573 /** 1574 * Defines the height property. 1575 * 1576 * @type { Length } 1577 * @syscap SystemCapability.ArkUI.ArkUI.Full 1578 * @since 9 1579 * @form 1580 */ 1581 /** 1582 * Defines the height property. 1583 * 1584 * @type { Length } 1585 * @syscap SystemCapability.ArkUI.ArkUI.Full 1586 * @crossplatform 1587 * @since 10 1588 * @form 1589 */ 1590 /** 1591 * Defines the height property. 1592 * 1593 * @type { Length } 1594 * @syscap SystemCapability.ArkUI.ArkUI.Full 1595 * @crossplatform 1596 * @atomicservice 1597 * @since 11 1598 * @form 1599 */ 1600 height: Length; 1601 1602 /** 1603 * Defines the local position. 1604 * 1605 * @type { Position } 1606 * @syscap SystemCapability.ArkUI.ArkUI.Full 1607 * @since 8 1608 */ 1609 /** 1610 * Defines the local position. 1611 * 1612 * @type { Position } 1613 * @syscap SystemCapability.ArkUI.ArkUI.Full 1614 * @since 9 1615 * @form 1616 */ 1617 /** 1618 * Defines the local position. 1619 * 1620 * @type { Position } 1621 * @syscap SystemCapability.ArkUI.ArkUI.Full 1622 * @crossplatform 1623 * @since 10 1624 * @form 1625 */ 1626 /** 1627 * Defines the local position. 1628 * 1629 * @type { Position } 1630 * @syscap SystemCapability.ArkUI.ArkUI.Full 1631 * @crossplatform 1632 * @atomicservice 1633 * @since 11 1634 * @form 1635 */ 1636 position: Position; 1637 1638 /** 1639 * Defines the global position. 1640 * 1641 * @type { Position } 1642 * @syscap SystemCapability.ArkUI.ArkUI.Full 1643 * @since 8 1644 */ 1645 /** 1646 * Defines the global position. 1647 * 1648 * @type { Position } 1649 * @syscap SystemCapability.ArkUI.ArkUI.Full 1650 * @since 9 1651 * @form 1652 */ 1653 /** 1654 * Defines the global position. 1655 * 1656 * @type { Position } 1657 * @syscap SystemCapability.ArkUI.ArkUI.Full 1658 * @crossplatform 1659 * @since 10 1660 * @form 1661 */ 1662 /** 1663 * Defines the global position. 1664 * 1665 * @type { Position } 1666 * @syscap SystemCapability.ArkUI.ArkUI.Full 1667 * @crossplatform 1668 * @atomicservice 1669 * @since 11 1670 * @form 1671 */ 1672 globalPosition: Position; 1673} 1674 1675/** 1676 * Defines the position. 1677 * 1678 * @interface Position 1679 * @syscap SystemCapability.ArkUI.ArkUI.Full 1680 * @since 7 1681 */ 1682/** 1683 * Defines the position. 1684 * 1685 * @interface Position 1686 * @syscap SystemCapability.ArkUI.ArkUI.Full 1687 * @since 9 1688 * @form 1689 */ 1690/** 1691 * Defines the position. 1692 * 1693 * @interface Position 1694 * @syscap SystemCapability.ArkUI.ArkUI.Full 1695 * @crossplatform 1696 * @since 10 1697 * @form 1698 */ 1699/** 1700 * Defines the position. 1701 * 1702 * @interface Position 1703 * @syscap SystemCapability.ArkUI.ArkUI.Full 1704 * @crossplatform 1705 * @atomicservice 1706 * @since 11 1707 * @form 1708 */ 1709declare interface Position { 1710 /** 1711 * Coordinate x of the Position. 1712 * 1713 * @type { ?Length } 1714 * @syscap SystemCapability.ArkUI.ArkUI.Full 1715 * @since 7 1716 */ 1717 /** 1718 * Coordinate x of the Position. 1719 * 1720 * @type { ?Length } 1721 * @syscap SystemCapability.ArkUI.ArkUI.Full 1722 * @since 9 1723 * @form 1724 */ 1725 /** 1726 * Coordinate x of the Position. 1727 * 1728 * @type { ?Length } 1729 * @syscap SystemCapability.ArkUI.ArkUI.Full 1730 * @crossplatform 1731 * @since 10 1732 * @form 1733 */ 1734 /** 1735 * Coordinate x of the Position. 1736 * 1737 * @type { ?Length } 1738 * @syscap SystemCapability.ArkUI.ArkUI.Full 1739 * @crossplatform 1740 * @atomicservice 1741 * @since 11 1742 * @form 1743 */ 1744 x?: Length; 1745 1746 /** 1747 * Coordinate y of the Position. 1748 * 1749 * @type { ?Length } 1750 * @syscap SystemCapability.ArkUI.ArkUI.Full 1751 * @since 7 1752 */ 1753 /** 1754 * Coordinate y of the Position. 1755 * 1756 * @type { ?Length } 1757 * @syscap SystemCapability.ArkUI.ArkUI.Full 1758 * @since 9 1759 * @form 1760 */ 1761 /** 1762 * Coordinate y of the Position. 1763 * 1764 * @type { ?Length } 1765 * @syscap SystemCapability.ArkUI.ArkUI.Full 1766 * @crossplatform 1767 * @since 10 1768 * @form 1769 */ 1770 /** 1771 * Coordinate y of the Position. 1772 * 1773 * @type { ?Length } 1774 * @syscap SystemCapability.ArkUI.ArkUI.Full 1775 * @crossplatform 1776 * @atomicservice 1777 * @since 11 1778 * @form 1779 */ 1780 y?: Length; 1781} 1782/** 1783 * Defines the Bias. 1784 * 1785 * @interface Bias 1786 * @syscap SystemCapability.ArkUI.ArkUI.Full 1787 * @crossplatform 1788 * @since 11 1789 * @form 1790 */ 1791declare interface Bias { 1792 /** 1793 * Horizontal ratio of the Bias, it must be >= 0. 1794 * 1795 * @type { ?number } 1796 * @default 0.5 1797 * @syscap SystemCapability.ArkUI.ArkUI.Full 1798 * @crossplatform 1799 * @since 11 1800 * @form 1801 */ 1802 horizontal?: number; 1803 1804 /** 1805 * Vertical ratio of the Bias, it must be >= 0. 1806 * 1807 * @type { ?number } 1808 * @default 0.5 1809 * @syscap SystemCapability.ArkUI.ArkUI.Full 1810 * @crossplatform 1811 * @since 11 1812 * @form 1813 */ 1814 vertical?: number; 1815} 1816 1817/** 1818 * Defines the constrain size options. 1819 * 1820 * @interface ConstraintSizeOptions 1821 * @syscap SystemCapability.ArkUI.ArkUI.Full 1822 * @since 7 1823 */ 1824/** 1825 * Defines the constrain size options. 1826 * 1827 * @interface ConstraintSizeOptions 1828 * @syscap SystemCapability.ArkUI.ArkUI.Full 1829 * @since 9 1830 * @form 1831 */ 1832/** 1833 * Defines the constrain size options. 1834 * 1835 * @interface ConstraintSizeOptions 1836 * @syscap SystemCapability.ArkUI.ArkUI.Full 1837 * @crossplatform 1838 * @since 10 1839 * @form 1840 */ 1841/** 1842 * Defines the constrain size options. 1843 * 1844 * @interface ConstraintSizeOptions 1845 * @syscap SystemCapability.ArkUI.ArkUI.Full 1846 * @crossplatform 1847 * @atomicservice 1848 * @since 11 1849 * @form 1850 */ 1851declare interface ConstraintSizeOptions { 1852 /** 1853 * Defines the min width. 1854 * 1855 * @type { ?Length } 1856 * @syscap SystemCapability.ArkUI.ArkUI.Full 1857 * @since 7 1858 */ 1859 /** 1860 * Defines the min width. 1861 * 1862 * @type { ?Length } 1863 * @syscap SystemCapability.ArkUI.ArkUI.Full 1864 * @since 9 1865 * @form 1866 */ 1867 /** 1868 * Defines the min width. 1869 * 1870 * @type { ?Length } 1871 * @syscap SystemCapability.ArkUI.ArkUI.Full 1872 * @crossplatform 1873 * @since 10 1874 * @form 1875 */ 1876 /** 1877 * Defines the min width. 1878 * 1879 * @type { ?Length } 1880 * @syscap SystemCapability.ArkUI.ArkUI.Full 1881 * @crossplatform 1882 * @atomicservice 1883 * @since 11 1884 * @form 1885 */ 1886 minWidth?: Length; 1887 1888 /** 1889 * Defines the max width. 1890 * 1891 * @type { ?Length } 1892 * @syscap SystemCapability.ArkUI.ArkUI.Full 1893 * @since 7 1894 */ 1895 /** 1896 * Defines the max width. 1897 * 1898 * @type { ?Length } 1899 * @syscap SystemCapability.ArkUI.ArkUI.Full 1900 * @since 9 1901 * @form 1902 */ 1903 /** 1904 * Defines the max width. 1905 * 1906 * @type { ?Length } 1907 * @syscap SystemCapability.ArkUI.ArkUI.Full 1908 * @crossplatform 1909 * @since 10 1910 * @form 1911 */ 1912 /** 1913 * Defines the max width. 1914 * 1915 * @type { ?Length } 1916 * @syscap SystemCapability.ArkUI.ArkUI.Full 1917 * @crossplatform 1918 * @atomicservice 1919 * @since 11 1920 * @form 1921 */ 1922 maxWidth?: Length; 1923 1924 /** 1925 * Defines the min height. 1926 * 1927 * @type { ?Length } 1928 * @syscap SystemCapability.ArkUI.ArkUI.Full 1929 * @since 7 1930 */ 1931 /** 1932 * Defines the min height. 1933 * 1934 * @type { ?Length } 1935 * @syscap SystemCapability.ArkUI.ArkUI.Full 1936 * @since 9 1937 * @form 1938 */ 1939 /** 1940 * Defines the min height. 1941 * 1942 * @type { ?Length } 1943 * @syscap SystemCapability.ArkUI.ArkUI.Full 1944 * @crossplatform 1945 * @since 10 1946 * @form 1947 */ 1948 /** 1949 * Defines the min height. 1950 * 1951 * @type { ?Length } 1952 * @syscap SystemCapability.ArkUI.ArkUI.Full 1953 * @crossplatform 1954 * @atomicservice 1955 * @since 11 1956 * @form 1957 */ 1958 minHeight?: Length; 1959 1960 /** 1961 * Defines the max height. 1962 * 1963 * @type { ?Length } 1964 * @syscap SystemCapability.ArkUI.ArkUI.Full 1965 * @since 7 1966 */ 1967 /** 1968 * Defines the max height. 1969 * 1970 * @type { ?Length } 1971 * @syscap SystemCapability.ArkUI.ArkUI.Full 1972 * @since 9 1973 * @form 1974 */ 1975 /** 1976 * Defines the max height. 1977 * 1978 * @type { ?Length } 1979 * @syscap SystemCapability.ArkUI.ArkUI.Full 1980 * @crossplatform 1981 * @since 10 1982 * @form 1983 */ 1984 /** 1985 * Defines the max height. 1986 * 1987 * @type { ?Length } 1988 * @syscap SystemCapability.ArkUI.ArkUI.Full 1989 * @crossplatform 1990 * @atomicservice 1991 * @since 11 1992 * @form 1993 */ 1994 maxHeight?: Length; 1995} 1996 1997/** 1998 * Defines the size options. 1999 * 2000 * @interface SizeOptions 2001 * @syscap SystemCapability.ArkUI.ArkUI.Full 2002 * @since 7 2003 */ 2004/** 2005 * Defines the size options. 2006 * 2007 * @interface SizeOptions 2008 * @syscap SystemCapability.ArkUI.ArkUI.Full 2009 * @since 9 2010 * @form 2011 */ 2012/** 2013 * Defines the size options. 2014 * 2015 * @interface SizeOptions 2016 * @syscap SystemCapability.ArkUI.ArkUI.Full 2017 * @crossplatform 2018 * @since 10 2019 * @form 2020 */ 2021/** 2022 * Defines the size options. 2023 * 2024 * @interface SizeOptions 2025 * @syscap SystemCapability.ArkUI.ArkUI.Full 2026 * @crossplatform 2027 * @atomicservice 2028 * @since 11 2029 * @form 2030 */ 2031declare interface SizeOptions { 2032 /** 2033 * Defines the width. 2034 * 2035 * @type { ?Length } 2036 * @syscap SystemCapability.ArkUI.ArkUI.Full 2037 * @since 7 2038 */ 2039 /** 2040 * Defines the width. 2041 * 2042 * @type { ?Length } 2043 * @syscap SystemCapability.ArkUI.ArkUI.Full 2044 * @since 9 2045 * @form 2046 */ 2047 /** 2048 * Defines the width. 2049 * 2050 * @type { ?Length } 2051 * @syscap SystemCapability.ArkUI.ArkUI.Full 2052 * @crossplatform 2053 * @since 10 2054 * @form 2055 */ 2056 /** 2057 * Defines the width. 2058 * 2059 * @type { ?Length } 2060 * @syscap SystemCapability.ArkUI.ArkUI.Full 2061 * @crossplatform 2062 * @atomicservice 2063 * @since 11 2064 * @form 2065 */ 2066 width?: Length; 2067 2068 /** 2069 * Defines the height. 2070 * 2071 * @type { ?Length } 2072 * @syscap SystemCapability.ArkUI.ArkUI.Full 2073 * @since 7 2074 */ 2075 /** 2076 * Defines the height. 2077 * 2078 * @type { ?Length } 2079 * @syscap SystemCapability.ArkUI.ArkUI.Full 2080 * @since 9 2081 * @form 2082 */ 2083 /** 2084 * Defines the height. 2085 * 2086 * @type { ?Length } 2087 * @syscap SystemCapability.ArkUI.ArkUI.Full 2088 * @crossplatform 2089 * @since 10 2090 * @form 2091 */ 2092 /** 2093 * Defines the height. 2094 * 2095 * @type { ?Length } 2096 * @syscap SystemCapability.ArkUI.ArkUI.Full 2097 * @crossplatform 2098 * @atomicservice 2099 * @since 11 2100 * @form 2101 */ 2102 height?: Length; 2103} 2104 2105/** 2106 * Defines the options of border. 2107 * 2108 * @interface BorderOptions 2109 * @syscap SystemCapability.ArkUI.ArkUI.Full 2110 * @since 7 2111 */ 2112/** 2113 * Defines the options of border. 2114 * 2115 * @interface BorderOptions 2116 * @syscap SystemCapability.ArkUI.ArkUI.Full 2117 * @since 9 2118 * @form 2119 */ 2120/** 2121 * Defines the options of border. 2122 * 2123 * @interface BorderOptions 2124 * @syscap SystemCapability.ArkUI.ArkUI.Full 2125 * @crossplatform 2126 * @since 10 2127 * @form 2128 */ 2129/** 2130 * Defines the options of border. 2131 * 2132 * @interface BorderOptions 2133 * @syscap SystemCapability.ArkUI.ArkUI.Full 2134 * @crossplatform 2135 * @atomicservice 2136 * @since 11 2137 * @form 2138 */ 2139declare interface BorderOptions { 2140 /** 2141 * Defines the border width. 2142 * 2143 * @type { ?Length } 2144 * @syscap SystemCapability.ArkUI.ArkUI.Full 2145 * @since 7 2146 */ 2147 /** 2148 * Defines the border width. 2149 * 2150 * @type { ?(EdgeWidths | Length) } 2151 * @syscap SystemCapability.ArkUI.ArkUI.Full 2152 * @since 9 2153 * @form 2154 */ 2155 /** 2156 * Defines the border width. 2157 * 2158 * @type { ?(EdgeWidths | Length) } 2159 * @syscap SystemCapability.ArkUI.ArkUI.Full 2160 * @crossplatform 2161 * @since 10 2162 * @form 2163 */ 2164 /** 2165 * Defines the border width. 2166 * 2167 * @type { ?(EdgeWidths | Length) } 2168 * @syscap SystemCapability.ArkUI.ArkUI.Full 2169 * @crossplatform 2170 * @atomicservice 2171 * @since 11 2172 * @form 2173 */ 2174 width?: EdgeWidths | Length; 2175 2176 /** 2177 * Defines the border color. 2178 * 2179 * @type { ?ResourceColor } 2180 * @syscap SystemCapability.ArkUI.ArkUI.Full 2181 * @since 7 2182 */ 2183 /** 2184 * Defines the border color. 2185 * 2186 * @type { ?(EdgeColors | ResourceColor) } 2187 * @syscap SystemCapability.ArkUI.ArkUI.Full 2188 * @since 9 2189 * @form 2190 */ 2191 /** 2192 * Defines the border color. 2193 * 2194 * @type { ?(EdgeColors | ResourceColor) } 2195 * @syscap SystemCapability.ArkUI.ArkUI.Full 2196 * @crossplatform 2197 * @since 10 2198 * @form 2199 */ 2200 /** 2201 * Defines the border color. 2202 * 2203 * @type { ?(EdgeColors | ResourceColor) } 2204 * @syscap SystemCapability.ArkUI.ArkUI.Full 2205 * @crossplatform 2206 * @atomicservice 2207 * @since 11 2208 * @form 2209 */ 2210 color?: EdgeColors | ResourceColor; 2211 2212 /** 2213 * Defines the border radius. 2214 * 2215 * @type { ?Length } 2216 * @syscap SystemCapability.ArkUI.ArkUI.Full 2217 * @since 7 2218 */ 2219 /** 2220 * Defines the border radius. 2221 * 2222 * @type { ?(BorderRadiuses | Length) } 2223 * @syscap SystemCapability.ArkUI.ArkUI.Full 2224 * @since 9 2225 * @form 2226 */ 2227 /** 2228 * Defines the border radius. 2229 * 2230 * @type { ?(BorderRadiuses | Length) } 2231 * @syscap SystemCapability.ArkUI.ArkUI.Full 2232 * @crossplatform 2233 * @since 10 2234 * @form 2235 */ 2236 /** 2237 * Defines the border radius. 2238 * 2239 * @type { ?(BorderRadiuses | Length) } 2240 * @syscap SystemCapability.ArkUI.ArkUI.Full 2241 * @crossplatform 2242 * @atomicservice 2243 * @since 11 2244 * @form 2245 */ 2246 radius?: BorderRadiuses | Length; 2247 2248 /** 2249 * Defines the border style. 2250 * 2251 * @type { ?BorderStyle } 2252 * @syscap SystemCapability.ArkUI.ArkUI.Full 2253 * @since 7 2254 */ 2255 /** 2256 * Defines the border style. 2257 * 2258 * @type { ?(EdgeStyles | BorderStyle) } 2259 * @syscap SystemCapability.ArkUI.ArkUI.Full 2260 * @since 9 2261 * @form 2262 */ 2263 /** 2264 * Defines the border style. 2265 * 2266 * @type { ?(EdgeStyles | BorderStyle) } 2267 * @syscap SystemCapability.ArkUI.ArkUI.Full 2268 * @crossplatform 2269 * @since 10 2270 * @form 2271 */ 2272 /** 2273 * Defines the border style. 2274 * 2275 * @type { ?(EdgeStyles | BorderStyle) } 2276 * @syscap SystemCapability.ArkUI.ArkUI.Full 2277 * @crossplatform 2278 * @atomicservice 2279 * @since 11 2280 * @form 2281 */ 2282 style?: EdgeStyles | BorderStyle; 2283} 2284 2285/** 2286 * Defines the options of border. 2287 * 2288 * @interface OutlineOptions 2289 * @syscap SystemCapability.ArkUI.ArkUI.Full 2290 * @crossplatform 2291 * @since 11 2292 * @form 2293 */ 2294declare interface OutlineOptions { 2295 /** 2296 * Defines the outline width. 2297 * 2298 * @type { ?(EdgeOutlineWidths | Dimension) } 2299 * @syscap SystemCapability.ArkUI.ArkUI.Full 2300 * @crossplatform 2301 * @since 11 2302 * @form 2303 */ 2304 width?: EdgeOutlineWidths | Dimension; 2305 2306 /** 2307 * Defines the outline color. 2308 * 2309 * @type { ?(EdgeColors | ResourceColor) } 2310 * @syscap SystemCapability.ArkUI.ArkUI.Full 2311 * @crossplatform 2312 * @since 11 2313 * @form 2314 */ 2315 color?: EdgeColors | ResourceColor; 2316 2317 /** 2318 * Defines the outline radius. 2319 * 2320 * @type { ?(OutlineRadiuses | Dimension) } 2321 * @syscap SystemCapability.ArkUI.ArkUI.Full 2322 * @crossplatform 2323 * @since 11 2324 * @form 2325 */ 2326 radius?: OutlineRadiuses | Dimension; 2327 2328 /** 2329 * Defines the outline style. 2330 * 2331 * @type { ?(EdgeOutlineStyles | OutlineStyle) } 2332 * @syscap SystemCapability.ArkUI.ArkUI.Full 2333 * @crossplatform 2334 * @since 11 2335 * @form 2336 */ 2337 style?: EdgeOutlineStyles | OutlineStyle; 2338} 2339 2340/** 2341 * Define the style of checkbox mark. 2342 * 2343 * @interface MarkStyle 2344 * @syscap SystemCapability.ArkUI.ArkUI.Full 2345 * @crossplatform 2346 * @since 10 2347 */ 2348/** 2349 * Define the style of checkbox mark. 2350 * 2351 * @interface MarkStyle 2352 * @syscap SystemCapability.ArkUI.ArkUI.Full 2353 * @crossplatform 2354 * @atomicservice 2355 * @since 11 2356 */ 2357declare interface MarkStyle { 2358 /** 2359 * Define the stroke color of checkbox mark. 2360 * 2361 * @type { ?ResourceColor } 2362 * @syscap SystemCapability.ArkUI.ArkUI.Full 2363 * @crossplatform 2364 * @since 10 2365 */ 2366 /** 2367 * Define the stroke color of checkbox mark. 2368 * 2369 * @type { ?ResourceColor } 2370 * @syscap SystemCapability.ArkUI.ArkUI.Full 2371 * @crossplatform 2372 * @atomicservice 2373 * @since 11 2374 */ 2375 strokeColor?: ResourceColor; 2376 2377 /** 2378 * Define the size of checkbox mark. 2379 * 2380 * @type { ?Length } 2381 * @syscap SystemCapability.ArkUI.ArkUI.Full 2382 * @crossplatform 2383 * @since 10 2384 */ 2385 /** 2386 * Define the size of checkbox mark. 2387 * 2388 * @type { ?Length } 2389 * @syscap SystemCapability.ArkUI.ArkUI.Full 2390 * @crossplatform 2391 * @atomicservice 2392 * @since 11 2393 */ 2394 size?: Length; 2395 2396 /** 2397 * Define the stroke width of checkbox mark. 2398 * 2399 * @type { ?Length } 2400 * @syscap SystemCapability.ArkUI.ArkUI.Full 2401 * @crossplatform 2402 * @since 10 2403 */ 2404 /** 2405 * Define the stroke width of checkbox mark. 2406 * 2407 * @type { ?Length } 2408 * @syscap SystemCapability.ArkUI.ArkUI.Full 2409 * @crossplatform 2410 * @atomicservice 2411 * @since 11 2412 */ 2413 strokeWidth?: Length; 2414} 2415 2416/** 2417 * Defines the ColorFilter object. 2418 * 2419 * @syscap SystemCapability.ArkUI.ArkUI.Full 2420 * @since 9 2421 * @form 2422 */ 2423/** 2424 * Defines the ColorFilter object. 2425 * 2426 * @syscap SystemCapability.ArkUI.ArkUI.Full 2427 * @crossplatform 2428 * @since 10 2429 * @form 2430 */ 2431/** 2432 * Defines the ColorFilter object. 2433 * 2434 * @syscap SystemCapability.ArkUI.ArkUI.Full 2435 * @crossplatform 2436 * @atomicservice 2437 * @since 11 2438 * @form 2439 */ 2440declare class ColorFilter { 2441 /** 2442 * Creates ColorFilter with 4*5 matrix. 2443 * 2444 * @param { number[] } value 4*5 color matrix values. The value[m*n] is located in the m row and n column. The matrix is row-first. 2445 * @syscap SystemCapability.ArkUI.ArkUI.Full 2446 * @since 9 2447 * @form 2448 */ 2449 /** 2450 * Creates ColorFilter with 4*5 matrix. 2451 * 2452 * @param { number[] } value 4*5 color matrix values. The value[m*n] is located in the m row and n column. The matrix is row-first. 2453 * @syscap SystemCapability.ArkUI.ArkUI.Full 2454 * @crossplatform 2455 * @since 10 2456 * @form 2457 */ 2458 /** 2459 * Creates ColorFilter with 4*5 matrix. 2460 * 2461 * @param { number[] } value 4*5 color matrix values. The value[m*n] is located in the m row and n column. The matrix is row-first. 2462 * @syscap SystemCapability.ArkUI.ArkUI.Full 2463 * @crossplatform 2464 * @atomicservice 2465 * @since 11 2466 * @form 2467 */ 2468 constructor(value: number[]); 2469} 2470 2471/** 2472 * Defines TouchPoint 2473 * 2474 * @interface TouchPoint 2475 * @syscap SystemCapability.ArkUI.ArkUI.Full 2476 * @since 11 2477 */ 2478declare interface TouchPoint { 2479 /** 2480 * Define the touch point x coordinate. 2481 * 2482 * @type { Dimension } 2483 * @syscap SystemCapability.ArkUI.ArkUI.Full 2484 * @since 11 2485 */ 2486 x: Dimension; 2487 2488 /** 2489 * Define the touch point y coordinate. 2490 * 2491 * @type { Dimension } 2492 * @syscap SystemCapability.ArkUI.ArkUI.Full 2493 * @since 11 2494 */ 2495 y: Dimension; 2496} 2497 2498declare module "GlobalResource" { 2499 module "GlobalResource" { 2500 // @ts-ignore 2501 export type { Resource, ResourceStr }; 2502 } 2503} 2504 2505declare module 'DragControllerUnitParam' { 2506 module 'DragControllerUnitParam' { 2507 // @ts-ignore 2508 export type {ResourceColor, TouchPoint }; 2509 } 2510}