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 * @file 18 * @kit ArkUI 19 */ 20 21/*** if arkts 1.2 */ 22import { ResourceColor, Length } from './units'; 23import { CommonMethod } from './common'; 24import { FontWeight, MarqueeUpdateStrategy } from './enums'; 25import { Resource } from './../../../api/global/resource'; 26/*** endif */ 27 28/** 29 * Defines Marquee constructor options. 30 * 31 * Anonymous Object Rectification. 32 * @interface MarqueeOptions 33 * @syscap SystemCapability.ArkUI.ArkUI.Full 34 * @crossplatform 35 * @form 36 * @atomicservice 37 * @since arkts {'1.1':'18','1.2':'20'} 38 * @arkts 1.1&1.2 39 */ 40interface MarqueeOptions { 41 /** 42 * Control whether the running lamp enters the playing state. 43 * 44 * @type { boolean } 45 * @syscap SystemCapability.ArkUI.ArkUI.Full 46 * @since 8 47 */ 48 /** 49 * Control whether the running lamp enters the playing state. 50 * 51 * @type { boolean } 52 * @syscap SystemCapability.ArkUI.ArkUI.Full 53 * @form 54 * @since 9 55 */ 56 /** 57 * Control whether the running lamp enters the playing state. 58 * 59 * @type { boolean } 60 * @syscap SystemCapability.ArkUI.ArkUI.Full 61 * @crossplatform 62 * @form 63 * @since 10 64 */ 65 /** 66 * Control whether the running lamp enters the playing state. 67 * 68 * @type { boolean } 69 * @syscap SystemCapability.ArkUI.ArkUI.Full 70 * @crossplatform 71 * @form 72 * @atomicservice 73 * @since 11 74 */ 75 /** 76 * Control whether the running lamp enters the playing state. 77 * 78 * Anonymous Object Rectification. 79 * 80 * <p><strong>NOTE</strong>: 81 * <br><em>true</em>: Start scrolling. 82 * <br><em>false</em>: Do not start scrolling. 83 * <br>This parameter cannot be used to restart scrolling that has been completed. 84 * </p> 85 * 86 * @type { boolean } 87 * @syscap SystemCapability.ArkUI.ArkUI.Full 88 * @crossplatform 89 * @form 90 * @atomicservice 91 * @since arkts {'1.1':'18','1.2':'20'} 92 * @arkts 1.1&1.2 93 */ 94 start: boolean; 95 96 /** 97 * Scroll animation text scroll step, when step is larger than the text width of Marquee, take the default value. 98 * 99 * @type { ?number } 100 * @syscap SystemCapability.ArkUI.ArkUI.Full 101 * @since 8 102 */ 103 /** 104 * Scroll animation text scroll step, when step is larger than the text width of Marquee, take the default value. 105 * 106 * @type { ?number } 107 * @syscap SystemCapability.ArkUI.ArkUI.Full 108 * @form 109 * @since 9 110 */ 111 /** 112 * Scroll animation text scroll step, when step is larger than the text width of Marquee, take the default value. 113 * 114 * @type { ?number } 115 * @syscap SystemCapability.ArkUI.ArkUI.Full 116 * @crossplatform 117 * @form 118 * @since 10 119 */ 120 /** 121 * Scroll animation text scroll step, when step is larger than the text width of Marquee, take the default value. 122 * 123 * @type { ?number } 124 * @syscap SystemCapability.ArkUI.ArkUI.Full 125 * @crossplatform 126 * @form 127 * @atomicservice 128 * @since 11 129 */ 130 /** 131 * Scroll animation text scroll step, when step is larger than the text width of Marquee, take the default value. 132 * 133 * Anonymous Object Rectification. 134 * 135 * <p><strong>NOTE</strong>: 136 * <br>If the value is greater than the text width of the marquee, the default value is used. 137 * </p> 138 * 139 * @type { ?number } - The unit is vp. 140 * @default 6 141 * @syscap SystemCapability.ArkUI.ArkUI.Full 142 * @crossplatform 143 * @form 144 * @atomicservice 145 * @since arkts {'1.1':'18','1.2':'20'} 146 * @arkts 1.1&1.2 147 */ 148 step?: number; 149 150 /** 151 * Set the number of times the scroll is repeated, infinite loop if it is less than or equal to zero. 152 * 153 * @type { ?number } 154 * @syscap SystemCapability.ArkUI.ArkUI.Full 155 * @since 8 156 */ 157 /** 158 * Set the number of times the scroll is repeated, infinite loop if it is less than or equal to zero. 159 * 160 * @type { ?number } 161 * @syscap SystemCapability.ArkUI.ArkUI.Full 162 * @form 163 * @since 9 164 */ 165 /** 166 * Set the number of times the scroll is repeated, infinite loop if it is less than or equal to zero. 167 * 168 * @type { ?number } 169 * @syscap SystemCapability.ArkUI.ArkUI.Full 170 * @crossplatform 171 * @form 172 * @since 10 173 */ 174 /** 175 * Set the number of times the scroll is repeated, infinite loop if it is less than or equal to zero. 176 * 177 * @type { ?number } 178 * @syscap SystemCapability.ArkUI.ArkUI.Full 179 * @crossplatform 180 * @form 181 * @atomicservice 182 * @since 11 183 */ 184 /** 185 * Set the number of times the scroll is repeated, infinite loop if it is less than or equal to zero. 186 * 187 * Anonymous Object Rectification. 188 * 189 * <p><strong>NOTE</strong>: 190 * <br>If the value is less than or equal to 0, the marquee will scroll continuously. 191 * <br>Regardless of the value, the marquee scrolls only once on an ArkTS widget. 192 * </p> 193 * 194 * @type { ?number } 195 * @default -1 196 * @syscap SystemCapability.ArkUI.ArkUI.Full 197 * @crossplatform 198 * @form 199 * @atomicservice 200 * @since arkts {'1.1':'18','1.2':'20'} 201 * @arkts 1.1&1.2 202 */ 203 loop?: number; 204 205 /** 206 * Set text to scroll from the beginning or backward. 207 * 208 * @type { ?boolean } 209 * @syscap SystemCapability.ArkUI.ArkUI.Full 210 * @since 8 211 */ 212 /** 213 * Set text to scroll from the beginning or backward. 214 * 215 * @type { ?boolean } 216 * @syscap SystemCapability.ArkUI.ArkUI.Full 217 * @form 218 * @since 9 219 */ 220 /** 221 * Set text to scroll from the beginning or backward. 222 * 223 * @type { ?boolean } 224 * @syscap SystemCapability.ArkUI.ArkUI.Full 225 * @crossplatform 226 * @form 227 * @since 10 228 */ 229 /** 230 * Set text to scroll from the beginning or backward. 231 * 232 * @type { ?boolean } 233 * @syscap SystemCapability.ArkUI.ArkUI.Full 234 * @crossplatform 235 * @form 236 * @atomicservice 237 * @since 11 238 */ 239 /** 240 * Set text to scroll from the beginning or backward. 241 * 242 * Anonymous Object Rectification. 243 * @type { ?boolean } 244 * @default true 245 * @syscap SystemCapability.ArkUI.ArkUI.Full 246 * @crossplatform 247 * @form 248 * @atomicservice 249 * @since arkts {'1.1':'18','1.2':'20'} 250 * @arkts 1.1&1.2 251 */ 252 fromStart?: boolean; 253 254 /** 255 * Text that needs scrolling. 256 * 257 * @type { string } 258 * @syscap SystemCapability.ArkUI.ArkUI.Full 259 * @since 8 260 */ 261 /** 262 * Text that needs scrolling. 263 * 264 * @type { string } 265 * @syscap SystemCapability.ArkUI.ArkUI.Full 266 * @form 267 * @since 9 268 */ 269 /** 270 * Text that needs scrolling. 271 * 272 * @type { string } 273 * @syscap SystemCapability.ArkUI.ArkUI.Full 274 * @crossplatform 275 * @form 276 * @since 10 277 */ 278 /** 279 * Text that needs scrolling. 280 * 281 * @type { string } 282 * @syscap SystemCapability.ArkUI.ArkUI.Full 283 * @crossplatform 284 * @form 285 * @atomicservice 286 * @since 11 287 */ 288 /** 289 * Text that needs scrolling. 290 * 291 * Anonymous Object Rectification. 292 * @type { string } 293 * @syscap SystemCapability.ArkUI.ArkUI.Full 294 * @crossplatform 295 * @form 296 * @atomicservice 297 * @since arkts {'1.1':'18','1.2':'20'} 298 * @arkts 1.1&1.2 299 */ 300 src: string; 301} 302 303/** 304 * Provides the interface for the marquee attributes. 305 * 306 * @interface MarqueeInterface 307 * @syscap SystemCapability.ArkUI.ArkUI.Full 308 * @since 8 309 */ 310/** 311 * Provides the interface for the marquee attributes. 312 * 313 * @interface MarqueeInterface 314 * @syscap SystemCapability.ArkUI.ArkUI.Full 315 * @form 316 * @since 9 317 */ 318/** 319 * Provides the interface for the marquee attributes. 320 * 321 * @interface MarqueeInterface 322 * @syscap SystemCapability.ArkUI.ArkUI.Full 323 * @crossplatform 324 * @form 325 * @since 10 326 */ 327/** 328 * Provides the interface for the marquee attributes. 329 * 330 * @interface MarqueeInterface 331 * @syscap SystemCapability.ArkUI.ArkUI.Full 332 * @crossplatform 333 * @form 334 * @atomicservice 335 * @since arkts {'1.1':'11','1.2':'20'} 336 * @arkts 1.1&1.2 337 */ 338interface MarqueeInterface { 339 /** 340 * Create marquee. 341 * 342 * @param { object } value 343 * @returns { MarqueeAttribute } 344 * @syscap SystemCapability.ArkUI.ArkUI.Full 345 * @since 8 346 */ 347 /** 348 * Create marquee. 349 * 350 * @param { object } value 351 * @returns { MarqueeAttribute } 352 * @syscap SystemCapability.ArkUI.ArkUI.Full 353 * @form 354 * @since 9 355 */ 356 /** 357 * Create marquee. 358 * 359 * @param { object } value 360 * @returns { MarqueeAttribute } 361 * @syscap SystemCapability.ArkUI.ArkUI.Full 362 * @crossplatform 363 * @form 364 * @since 10 365 */ 366 /** 367 * Create marquee. 368 * 369 * @param { object } value 370 * @returns { MarqueeAttribute } 371 * @syscap SystemCapability.ArkUI.ArkUI.Full 372 * @crossplatform 373 * @form 374 * @atomicservice 375 * @since 11 376 */ 377 /** 378 * Create marquee. 379 * 380 * Anonymous Object Rectification. 381 * @param { MarqueeOptions } options - Marquee options. 382 * @returns { MarqueeAttribute } 383 * @syscap SystemCapability.ArkUI.ArkUI.Full 384 * @crossplatform 385 * @form 386 * @atomicservice 387 * @since arkts {'1.1':'18','1.2':'20'} 388 * @arkts 1.1&1.2 389 */ 390 (options: MarqueeOptions): MarqueeAttribute; 391} 392 393/** 394 * Declares marquee properties. 395 * 396 * @extends CommonMethod<MarqueeAttribute> 397 * @syscap SystemCapability.ArkUI.ArkUI.Full 398 * @since 8 399 */ 400/** 401 * Declares marquee properties. 402 * 403 * @extends CommonMethod<MarqueeAttribute> 404 * @syscap SystemCapability.ArkUI.ArkUI.Full 405 * @form 406 * @since 9 407 */ 408/** 409 * Declares marquee properties. 410 * 411 * @extends CommonMethod<MarqueeAttribute> 412 * @syscap SystemCapability.ArkUI.ArkUI.Full 413 * @crossplatform 414 * @form 415 * @since 10 416 */ 417/** 418 * Declares marquee properties. 419 * 420 * @extends CommonMethod<MarqueeAttribute> 421 * @syscap SystemCapability.ArkUI.ArkUI.Full 422 * @crossplatform 423 * @form 424 * @atomicservice 425 * @since arkts {'1.1':'11','1.2':'20'} 426 * @arkts 1.1&1.2 427 */ 428declare class MarqueeAttribute extends CommonMethod<MarqueeAttribute> { 429 /** 430 * Set marquee font Color. 431 * 432 * @param { ResourceColor } value 433 * @returns { MarqueeAttribute } 434 * @syscap SystemCapability.ArkUI.ArkUI.Full 435 * @since 8 436 */ 437 /** 438 * Set marquee font Color. 439 * 440 * @param { ResourceColor } value 441 * @returns { MarqueeAttribute } 442 * @syscap SystemCapability.ArkUI.ArkUI.Full 443 * @form 444 * @since 9 445 */ 446 /** 447 * Set marquee font Color. 448 * 449 * @param { ResourceColor } value 450 * @returns { MarqueeAttribute } 451 * @syscap SystemCapability.ArkUI.ArkUI.Full 452 * @crossplatform 453 * @form 454 * @since 10 455 */ 456 /** 457 * Set marquee font Color. 458 * 459 * @param { ResourceColor } value 460 * @returns { MarqueeAttribute } 461 * @syscap SystemCapability.ArkUI.ArkUI.Full 462 * @crossplatform 463 * @form 464 * @atomicservice 465 * @since arkts {'1.1':'11','1.2':'20'} 466 * @arkts 1.1&1.2 467 */ 468 fontColor(value: ResourceColor): MarqueeAttribute; 469 470 /** 471 * Set marquee font size. 472 * 473 * @param { Length } value 474 * @returns { MarqueeAttribute } 475 * @syscap SystemCapability.ArkUI.ArkUI.Full 476 * @since 8 477 */ 478 /** 479 * Set marquee font size. 480 * 481 * @param { Length } value 482 * @returns { MarqueeAttribute } 483 * @syscap SystemCapability.ArkUI.ArkUI.Full 484 * @form 485 * @since 9 486 */ 487 /** 488 * Set marquee font size. 489 * 490 * @param { Length } value 491 * @returns { MarqueeAttribute } 492 * @syscap SystemCapability.ArkUI.ArkUI.Full 493 * @crossplatform 494 * @form 495 * @since 10 496 */ 497 /** 498 * Set marquee font size. 499 * 500 * <p><strong>NOTE</strong>: 501 * <br>If fontSize is of the number type, the unit fp is used. The default font size is 16 fp. 502 * <br>This parameter cannot be set in percentage. 503 * </p> 504 * 505 * @param { Length } value 506 * @returns { MarqueeAttribute } 507 * @syscap SystemCapability.ArkUI.ArkUI.Full 508 * @crossplatform 509 * @form 510 * @atomicservice 511 * @since arkts {'1.1':'11','1.2':'20'} 512 * @arkts 1.1&1.2 513 */ 514 fontSize(value: Length): MarqueeAttribute; 515 516 /** 517 * Set marquee allow scale. 518 * 519 * @param { boolean } value 520 * @returns { MarqueeAttribute } 521 * @syscap SystemCapability.ArkUI.ArkUI.Full 522 * @since 8 523 */ 524 /** 525 * Set marquee allow scale. 526 * 527 * @param { boolean } value 528 * @returns { MarqueeAttribute } 529 * @syscap SystemCapability.ArkUI.ArkUI.Full 530 * @form 531 * @since 9 532 */ 533 /** 534 * Set marquee allow scale. 535 * 536 * @param { boolean } value 537 * @returns { MarqueeAttribute } 538 * @syscap SystemCapability.ArkUI.ArkUI.Full 539 * @crossplatform 540 * @form 541 * @since 10 542 */ 543 /** 544 * Set marquee allow scale. 545 * 546 * <p><strong>NOTE</strong>: 547 * <br>This parameter is effective only when fontSize is in fp units. 548 * </p> 549 * 550 * @param { boolean } value - Default value is false. 551 * @returns { MarqueeAttribute } 552 * @syscap SystemCapability.ArkUI.ArkUI.Full 553 * @crossplatform 554 * @form 555 * @atomicservice 556 * @since arkts {'1.1':'11','1.2':'20'} 557 * @arkts 1.1&1.2 558 */ 559 allowScale(value: boolean): MarqueeAttribute; 560 561 /** 562 * Set marquee font weight. 563 * 564 * @param { number | FontWeight | string } value 565 * @returns { MarqueeAttribute } 566 * @syscap SystemCapability.ArkUI.ArkUI.Full 567 * @since 8 568 */ 569 /** 570 * Set marquee font weight. 571 * 572 * @param { number | FontWeight | string } value 573 * @returns { MarqueeAttribute } 574 * @syscap SystemCapability.ArkUI.ArkUI.Full 575 * @form 576 * @since 9 577 */ 578 /** 579 * Set marquee font weight. 580 * 581 * @param { number | FontWeight | string } value 582 * @returns { MarqueeAttribute } 583 * @syscap SystemCapability.ArkUI.ArkUI.Full 584 * @crossplatform 585 * @form 586 * @since 10 587 */ 588 /** 589 * Set marquee font weight. 590 * 591 * <p><strong>NOTE</strong>: 592 * <br>If the value is too large, the text may be clipped depending on the font. 593 * <br>For the number type, the value range is [100, 900], at an interval of 100. 594 * <br>The default value is 400. 595 * <br>A larger value indicates a heavier font weight. 596 * <br>For the string type, only strings that represent a number, for example, "400", 597 * and the following enumerated values of FontWeight are supported: "bold", "bolder", "lighter", "regular", and "medium". 598 * </p> 599 * 600 * @param { number | FontWeight | string } value - Default value is FontWeight.Normal. 601 * @returns { MarqueeAttribute } 602 * @syscap SystemCapability.ArkUI.ArkUI.Full 603 * @crossplatform 604 * @form 605 * @atomicservice 606 * @since arkts {'1.1':'11','1.2':'20'} 607 * @arkts 1.1&1.2 608 */ 609 fontWeight(value: number | FontWeight | string): MarqueeAttribute; 610 611 /** 612 * Set marquee font family. 613 * 614 * @param { string | Resource } value 615 * @returns { MarqueeAttribute } 616 * @syscap SystemCapability.ArkUI.ArkUI.Full 617 * @since 8 618 */ 619 /** 620 * Set marquee font family. 621 * 622 * @param { string | Resource } value 623 * @returns { MarqueeAttribute } 624 * @syscap SystemCapability.ArkUI.ArkUI.Full 625 * @form 626 * @since 9 627 */ 628 /** 629 * Set marquee font family. 630 * 631 * @param { string | Resource } value 632 * @returns { MarqueeAttribute } 633 * @syscap SystemCapability.ArkUI.ArkUI.Full 634 * @crossplatform 635 * @form 636 * @since 10 637 */ 638 /** 639 * Set marquee font family. 640 * 641 * <p><strong>NOTE</strong>: 642 * <br>Default font: 'HarmonyOS Sans' 643 * <br>The 'HarmonyOS Sans' font and registered custom fonts are supported for applications. 644 * <br>Only the 'HarmonyOS Sans' font is supported for widgets. 645 * </p> 646 * 647 * @param { string | Resource } value 648 * @returns { MarqueeAttribute } 649 * @syscap SystemCapability.ArkUI.ArkUI.Full 650 * @crossplatform 651 * @form 652 * @atomicservice 653 * @since arkts {'1.1':'11','1.2':'20'} 654 * @arkts 1.1&1.2 655 */ 656 fontFamily(value: string | Resource): MarqueeAttribute; 657 658 /** 659 * Marquee scrolling strategy after text update. 660 * 661 * <p><strong>NOTE</strong>: 662 * <br>This attribute takes effect when the marquee is in the playing state 663 * and the text content width exceeds the width of the marquee component. 664 * </p> 665 * 666 * @param { MarqueeUpdateStrategy } value - The scrolling strategy after text update.Default value is MarqueeUpdateStrategy.DEFAULT. 667 * @returns { MarqueeAttribute } 668 * @syscap SystemCapability.ArkUI.ArkUI.Full 669 * @crossplatform 670 * @atomicservice 671 * @since arkts {'1.1':'12','1.2':'20'} 672 * @arkts 1.1&1.2 673 */ 674 marqueeUpdateStrategy(value: MarqueeUpdateStrategy): MarqueeAttribute; 675 676 /** 677 * Called when scrolling starts. 678 * 679 * @param { function } event 680 * @returns { MarqueeAttribute } 681 * @syscap SystemCapability.ArkUI.ArkUI.Full 682 * @since 8 683 */ 684 /** 685 * Called when scrolling starts. 686 * 687 * @param { function } event 688 * @returns { MarqueeAttribute } 689 * @syscap SystemCapability.ArkUI.ArkUI.Full 690 * @form 691 * @since 9 692 */ 693 /** 694 * Called when scrolling starts. 695 * 696 * @param { function } event 697 * @returns { MarqueeAttribute } 698 * @syscap SystemCapability.ArkUI.ArkUI.Full 699 * @crossplatform 700 * @form 701 * @since 10 702 */ 703 /** 704 * Called when scrolling starts. 705 * 706 * @param { function } event 707 * @returns { MarqueeAttribute } 708 * @syscap SystemCapability.ArkUI.ArkUI.Full 709 * @crossplatform 710 * @form 711 * @atomicservice 712 * @since arkts {'1.1':'11','1.2':'20'} 713 * @arkts 1.1&1.2 714 */ 715 onStart(event: () => void): MarqueeAttribute; 716 717 /** 718 * Called when scrolling to the bottom. 719 * 720 * @param { function } event 721 * @returns { MarqueeAttribute } 722 * @syscap SystemCapability.ArkUI.ArkUI.Full 723 * @since 8 724 */ 725 /** 726 * Called when scrolling to the bottom. 727 * 728 * @param { function } event 729 * @returns { MarqueeAttribute } 730 * @syscap SystemCapability.ArkUI.ArkUI.Full 731 * @form 732 * @since 9 733 */ 734 /** 735 * Called when scrolling to the bottom. 736 * 737 * @param { function } event 738 * @returns { MarqueeAttribute } 739 * @syscap SystemCapability.ArkUI.ArkUI.Full 740 * @crossplatform 741 * @form 742 * @since 10 743 */ 744 /** 745 * Called when scrolling to the bottom. 746 * 747 * <p><strong>NOTE</strong>: 748 * <br>This event will be triggered for multiple times if the loop attribute is not set to 1. 749 * </p> 750 * 751 * @param { function } event 752 * @returns { MarqueeAttribute } 753 * @syscap SystemCapability.ArkUI.ArkUI.Full 754 * @crossplatform 755 * @form 756 * @atomicservice 757 * @since arkts {'1.1':'11','1.2':'20'} 758 * @arkts 1.1&1.2 759 */ 760 onBounce(event: () => void): MarqueeAttribute; 761 762 /** 763 * Called when scrolling is complete. 764 * 765 * @param { function } event 766 * @returns { MarqueeAttribute } 767 * @syscap SystemCapability.ArkUI.ArkUI.Full 768 * @since 8 769 */ 770 /** 771 * Called when scrolling is complete. 772 * 773 * @param { function } event 774 * @returns { MarqueeAttribute } 775 * @syscap SystemCapability.ArkUI.ArkUI.Full 776 * @form 777 * @since 9 778 */ 779 /** 780 * Called when scrolling is complete. 781 * 782 * @param { function } event 783 * @returns { MarqueeAttribute } 784 * @syscap SystemCapability.ArkUI.ArkUI.Full 785 * @crossplatform 786 * @form 787 * @since 10 788 */ 789 /** 790 * Called when scrolling is complete. 791 * 792 * @param { function } event 793 * @returns { MarqueeAttribute } 794 * @syscap SystemCapability.ArkUI.ArkUI.Full 795 * @crossplatform 796 * @form 797 * @atomicservice 798 * @since arkts {'1.1':'11','1.2':'20'} 799 * @arkts 1.1&1.2 800 */ 801 onFinish(event: () => void): MarqueeAttribute; 802} 803 804/** 805 * Defines Marquee Component. 806 * 807 * @syscap SystemCapability.ArkUI.ArkUI.Full 808 * @since 8 809 */ 810/** 811 * Defines Marquee Component. 812 * 813 * @syscap SystemCapability.ArkUI.ArkUI.Full 814 * @form 815 * @since 9 816 */ 817/** 818 * Defines Marquee Component. 819 * 820 * @syscap SystemCapability.ArkUI.ArkUI.Full 821 * @crossplatform 822 * @form 823 * @since 10 824 */ 825/** 826 * Defines Marquee Component. 827 * 828 * <p><strong>NOTE</strong>: 829 * <br>To ensure that scrolling frame rates are not affected, 830 * it is recommended that the number of Marquee components in a scroll container does not exceed four, or alternatively, 831 * use the Text component's TextOverflow.MARQUEE as a substitute. 832 * <br>The text is scrolled only when its width exceeds the width of the Marquee component. 833 * </p> 834 * 835 * @syscap SystemCapability.ArkUI.ArkUI.Full 836 * @crossplatform 837 * @form 838 * @atomicservice 839 * @since 11 840 */ 841declare const Marquee: MarqueeInterface; 842 843/** 844 * Defines Marquee Component instance. 845 * 846 * @syscap SystemCapability.ArkUI.ArkUI.Full 847 * @since 8 848 */ 849/** 850 * Defines Marquee Component instance. 851 * 852 * @syscap SystemCapability.ArkUI.ArkUI.Full 853 * @form 854 * @since 9 855 */ 856/** 857 * Defines Marquee Component instance. 858 * 859 * @syscap SystemCapability.ArkUI.ArkUI.Full 860 * @crossplatform 861 * @form 862 * @since 10 863 */ 864/** 865 * Defines Marquee Component instance. 866 * 867 * @syscap SystemCapability.ArkUI.ArkUI.Full 868 * @crossplatform 869 * @form 870 * @atomicservice 871 * @since 11 872 */ 873declare const MarqueeInstance: MarqueeAttribute; 874