1# Enums 2 3>**NOTE** 4> 5>The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. 6 7## Color 8 9**Widget capability**: This API can be used in ArkTS widgets since API version 9. 10 11**Atomic service API**: This API can be used in atomic services since API version 11. 12 13**System capability**: SystemCapability.ArkUI.ArkUI.Full 14 15| Color | Value | Illustration | 16| ------------------------ | ------------- | ---------------------------------------- | 17| Black | 0x000000 |  | 18| Blue | 0x0000ff |  | 19| Brown | 0xa52a2a |  | 20| Gray | 0x808080 |  | 21| Grey | 0x808080 |  | 22| Green | 0x008000 |  | 23| Orange | 0xffa500 |  | 24| Pink | 0xffc0cb |  | 25| Red | 0xff0000 |  | 26| White | 0xffffff |  | 27| Yellow | 0xffff00 |  | 28| Transparent<sup>9+</sup> | rgba(0,0,0,0) | Transparent | 29 30## ImageFit 31 32**System capability**: SystemCapability.ArkUI.ArkUI.Full 33 34| Name | Description | 35| --------- | ------------------------------- | 36| Contain | The image is scaled with its aspect ratio retained for the content to be completely displayed within the display boundaries.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 9.<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 37| Cover | The image is scaled with its aspect ratio retained for both sides to be greater than or equal to the display boundaries.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 9.<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 38| Auto | The image is scaled automatically based on its own size and the size of the component to fit the display area.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 9.<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 39| Fill | The image is scaled to fill the display area, and its aspect ratio is not retained.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 9.<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 40| ScaleDown | The image is displayed with its aspect ratio retained, in a size smaller than or equal to the original size.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 9.<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 41| None | The image is displayed in its original size.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 9.<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 42| TOP_START<sup>12+</sup> | The image is displayed at the top start corner of the **Image** component, keeping its original size.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 12.<br>**Atomic service API**: This API can be used in atomic services since API version 12.| 43| TOP<sup>12+</sup> | The image is displayed horizontally centered at the top of the **Image** component, keeping its original size.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 12.<br>**Atomic service API**: This API can be used in atomic services since API version 12.| 44| TOP_END<sup>12+</sup> | The image is displayed at the top end corner of the **Image** component, keeping its original size.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 12.<br>**Atomic service API**: This API can be used in atomic services since API version 12.| 45| START<sup>12+</sup> | The image is displayed vertically centered at the start of the **Image** component, keeping its original size.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 12.<br>**Atomic service API**: This API can be used in atomic services since API version 12.| 46| CENTER<sup>12+</sup> | The image is displayed at the center of the **Image** component both horizontally and vertically, keeping its original size.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 12.<br>**Atomic service API**: This API can be used in atomic services since API version 12.| 47| END<sup>12+</sup> | The image is displayed vertically centered at the end of the **Image** component, keeping its original size.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 12.<br>**Atomic service API**: This API can be used in atomic services since API version 12.| 48| BOTTOM_START<sup>12+</sup> | The image is displayed at the bottom start corner of the **Image** component, keeping its original size.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 12.<br>**Atomic service API**: This API can be used in atomic services since API version 12.| 49| BOTTOM<sup>12+</sup> | The image is displayed horizontally centered at the bottom of the **Image** component, keeping its original size.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 12.<br>**Atomic service API**: This API can be used in atomic services since API version 12.| 50| BOTTOM_END<sup>12+</sup>| The image is displayed at the bottom end corner of the **Image** component, keeping its original size.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 12.<br>**Atomic service API**: This API can be used in atomic services since API version 12.| 51 52 53## BorderStyle 54 55**Widget capability**: This API can be used in ArkTS widgets since API version 9. 56 57**Atomic service API**: This API can be used in atomic services since API version 11. 58 59**System capability**: SystemCapability.ArkUI.ArkUI.Full 60 61| Name | Description | 62| ------ | ----------------------------- | 63| Dotted | Dotted border. The radius of a dot is half of **borderWidth**.| 64| Dashed | Dashed border. | 65| Solid | Solid border. | 66 67## LineJoinStyle 68 69**Widget capability**: This API can be used in ArkTS widgets since API version 9. 70 71**Atomic service API**: This API can be used in atomic services since API version 11. 72 73**System capability**: SystemCapability.ArkUI.ArkUI.Full 74 75| Name | Description | 76| ----- | ---------- | 77| Bevel | Bevel is used to connect paths.| 78| Miter | Miter is used to connect paths.| 79| Round | Round is used to connect paths.| 80 81## TouchType 82 83**Atomic service API**: This API can be used in atomic services since API version 11. 84 85**System capability**: SystemCapability.ArkUI.ArkUI.Full 86 87| Name | Description | 88| ------ | --------------- | 89| Down | A finger is pressed. | 90| Up | A finger is lifted. | 91| Move | A finger moves on the screen in pressed state.| 92| Cancel | A touch event is canceled. | 93 94## MouseButton<sup>8+</sup> 95 96**Atomic service API**: This API can be used in atomic services since API version 11. 97 98**System capability**: SystemCapability.ArkUI.ArkUI.Full 99 100| Name | Description | 101| ------- | -------- | 102| Left | Left button on the mouse. | 103| Right | Right button on the mouse. | 104| Middle | Middle button on the mouse. | 105| Back | Back button on the left of the mouse.| 106| Forward | Forward button on the left of the mouse.| 107| None | No button. | 108 109## MouseAction<sup>8+</sup> 110 111**Atomic service API**: This API can be used in atomic services since API version 11. 112 113**System capability**: SystemCapability.ArkUI.ArkUI.Full 114 115| Name | Description | 116| ------- | ------- | 117| Press | The mouse button is pressed.| 118| Release | The mouse button is released.| 119| Move | The mouse cursor moves. | 120| Hover | The mouse pointer is hovered on an element.<br>**NOTE**<br>This value has no effect. | 121 122## ModifierKey<sup>10+</sup> 123 124Enumerates the input method modifier keys. 125 126**Atomic service API**: This API can be used in atomic services since API version 11. 127 128**System capability**: SystemCapability.ArkUI.ArkUI.Full 129 130| Name | Description | 131| ----- | ------------ | 132| CTRL | Ctrl key on the keyboard. | 133| SHIFT | Shift key on the keyboard.| 134| ALT | Alt key on the keyboard. | 135 136## FunctionKey<sup>10+</sup> 137 138Enumerates the input method function keys. 139 140**System capability**: SystemCapability.ArkUI.ArkUI.Full 141 142| Name | Description | 143| ---- | ------------ | 144| ESC | Esc key on the keyboard.<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 145| F1 | F1 key on the keyboard.<br>**Atomic service API**: This API can be used in atomic services since API version 11. | 146| F2 | F2 key on the keyboard.<br>**Atomic service API**: This API can be used in atomic services since API version 11. | 147| F3 | F3 key on the keyboard.<br>**Atomic service API**: This API can be used in atomic services since API version 11. | 148| F4 | F4 key on the keyboard.<br>**Atomic service API**: This API can be used in atomic services since API version 11. | 149| F5 | F5 key on the keyboard.<br>**Atomic service API**: This API can be used in atomic services since API version 11. | 150| F6 | F6 key on the keyboard.<br>**Atomic service API**: This API can be used in atomic services since API version 11. | 151| F7 | F7 key on the keyboard.<br>**Atomic service API**: This API can be used in atomic services since API version 11. | 152| F8 | F8 key on the keyboard.<br>**Atomic service API**: This API can be used in atomic services since API version 11. | 153| F9 | F9 key on the keyboard.<br>**Atomic service API**: This API can be used in atomic services since API version 11. | 154| F10 | F10 key on the keyboard.<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 155| F11 | F11 key on the keyboard.<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 156| F12 | F12 key on the keyboard.<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 157| TAB<sup>12+</sup> | Tab key on the keyboard.<br>**Atomic service API**: This API can be used in atomic services since API version 12.| 158| DPAD_UP<sup>12+</sup> | Up arrow key on the keyboard.<br>**Atomic service API**: This API can be used in atomic services since API version 12.| 159| DPAD_DOWN<sup>12+</sup> | Down arrow key on the keyboard.<br>**Atomic service API**: This API can be used in atomic services since API version 12.| 160| DPAD_LEFT<sup>12+</sup> | Left arrow key on the keyboard.<br>**Atomic service API**: This API can be used in atomic services since API version 12.| 161| DPAD_RIGHT<sup>12+</sup> | Right arrow key on the keyboard.<br>**Atomic service API**: This API can be used in atomic services since API version 12.| 162 163## Curve 164 165Enumerates the interpolation curves. For details about the animation, see <!--RP1-->[Bezier Curve](../../../../design/ux-design/animation-attributes.md)<!--RP1End-->. 166 167**Widget capability**: This API can be used in ArkTS widgets since API version 9. 168 169**Atomic service API**: This API can be used in atomic services since API version 11. 170 171**System capability**: SystemCapability.ArkUI.ArkUI.Full 172 173| Name | Description | 174| ------------------- | ---------------------------------------- | 175| Linear | The animation speed keeps unchanged. | 176| Ease | The animation starts slowly, accelerates, and then slows down towards the end. The cubic-bezier curve (0.25, 0.1, 0.25, 1.0) is used.| 177| EaseIn | The animation starts at a low speed and then picks up speed until the end. The cubic-bezier curve (0.42, 0.0, 1.0, 1.0) is used.| 178| EaseOut | The animation ends at a low speed. The cubic-bezier curve (0.0, 0.0, 0.58, 1.0) is used.| 179| EaseInOut | The animation starts and ends at a low speed. The cubic-bezier curve (0.42, 0.0, 0.58, 1.0) is used.| 180| FastOutSlowIn | The animation uses the standard cubic-bezier curve (0.4, 0.0, 0.2, 1.0). | 181| LinearOutSlowIn | The animation uses the deceleration cubic-bezier curve (0.0, 0.0, 0.2, 1.0). | 182| FastOutLinearIn | The animation uses the acceleration cubic-bezier curve (0.4, 0.0, 1.0, 1.0). | 183| ExtremeDeceleration | The animation uses the extreme deceleration cubic-bezier curve (0.0, 0.0, 0.0, 1.0). | 184| Sharp | The animation uses the sharp cubic-bezier curve (0.33, 0.0, 0.67, 1.0).| 185| Rhythm | The animation uses the rhythm cubic-bezier curve (0.7, 0.0, 0.2, 1.0). | 186| Smooth | The animation uses the smooth cubic-bezier curve (0.4, 0.0, 0.4, 1.0). | 187| Friction | The animation uses the friction cubic-bezier curve (0.2, 0.0, 0.2, 1.0). | 188 189## AnimationStatus 190 191**Widget capability**: This API can be used in ArkTS widgets since API version 10. 192 193**Atomic service API**: This API can be used in atomic services since API version 11. 194 195**System capability**: SystemCapability.ArkUI.ArkUI.Full 196 197| Name | Description | 198| ------- | --------- | 199| Initial | The animation is in the initial state. | 200| Running | The animation is being played.| 201| Paused | The animation is paused.| 202| Stopped | The animation is stopped.| 203 204## FillMode 205 206**Widget capability**: This API can be used in ArkTS widgets since API version 10. 207 208**Atomic service API**: This API can be used in atomic services since API version 11. 209 210**System capability**: SystemCapability.ArkUI.ArkUI.Full 211 212| Name | Description | 213| --------- | ---------------------------------------- | 214| None | Before execution, the animation does not apply any styles to the target component. After execution, the animation restores the target component to its default state. | 215| Forwards | The target component retains the state set by the last keyframe encountered during execution of the animation. | 216| Backwards | The animation applies the values defined in the first relevant keyframe once it is applied to the target component, and retains the values during the period set by **delay**. The first relevant keyframe depends on the value of **playMode**. If **playMode** is **Normal** or **Alternate**, the first relevant keyframe is in the **from** state. If **playMode** is **Reverse** or **AlternateReverse**, the first relevant keyframe is in the **to** state.| 217| Both | The animation follows the rules for both **Forwards** and **Backwards**, extending the animation attributes in both directions.| 218 219## PlayMode 220 221**Widget capability**: This API can be used in ArkTS widgets since API version 9. 222 223**Atomic service API**: This API can be used in atomic services since API version 11. 224 225**System capability**: SystemCapability.ArkUI.ArkUI.Full 226 227| Name | Description | 228| ---------------- | ---------------------------------------- | 229| Normal | The animation is played forwards. | 230| Reverse | The animation is played backwards. | 231| Alternate | The animation is played forwards for an odd number of times (1, 3, 5...) and backwards for an even number of times (2, 4, 6...).| 232| AlternateReverse | The animation is played backwards for an odd number of times (1, 3, 5...) and forwards for an even number of times (2, 4, 6...).| 233 234## KeyType 235 236**Atomic service API**: This API can be used in atomic services since API version 11. 237 238**System capability**: SystemCapability.ArkUI.ArkUI.Full 239 240| Name | Description | 241| ---- | ----- | 242| Down | The key is pressed.| 243| Up | The key is released.| 244 245## KeySource 246 247**Atomic service API**: This API can be used in atomic services since API version 11. 248 249**System capability**: SystemCapability.ArkUI.ArkUI.Full 250 251| Name | Description | 252| -------- | ---------- | 253| Unknown | Unknown input device. | 254| Keyboard | The input device is a keyboard.| 255 256## Edge 257 258**System capability**: SystemCapability.ArkUI.ArkUI.Full 259 260| Name | Description | 261| -------------------------------- | ------------------------------------------------------------ | 262| Top | Top edge in the vertical direction.<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 263| Center<sup>(deprecated) </sup> | Center position in the vertical direction.<br> This API is deprecated since API version 9. | 264| Bottom | Bottom edge in the vertical direction.<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 265| Baseline<sup>(deprecated) </sup> | Text baseline position in the cross axis direction.<br> This API is deprecated since API version 9. | 266| Start | Start position in the horizontal direction.<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 267| Middle<sup>(deprecated) </sup> | Center position in the horizontal direction.<br> This API is deprecated since API version 9. | 268| End | End position in the horizontal direction.<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 269 270## Week 271 272**Atomic service API**: This API can be used in atomic services since API version 11. 273 274**System capability**: SystemCapability.ArkUI.ArkUI.Full 275 276| Name | Description | 277| ---- | ---- | 278| Mon | Monday. | 279| Tue | Tuesday. | 280| Wed | Wednesday. | 281| Thur | Thursday. | 282| Fri | Friday. | 283| Sat | Saturday. | 284| Sun | Sunday. | 285 286## Direction 287 288**Widget capability**: This API can be used in ArkTS widgets since API version 9. 289 290**Atomic service API**: This API can be used in atomic services since API version 11. 291 292**System capability**: SystemCapability.ArkUI.ArkUI.Full 293 294| Name | Description | 295| ---- | ----------- | 296| Ltr | Components are arranged from left to right. | 297| Rtl | Components are arranged from right to left. | 298| Auto | The default layout direction is used.| 299 300## BarState 301 302**Widget capability**: This API can be used in ArkTS widgets since API version 9. 303 304**Atomic service API**: This API can be used in atomic services since API version 11. 305 306**System capability**: SystemCapability.ArkUI.ArkUI.Full 307 308| Name | Description | 309| ---- | ------------------ | 310| Off | Not displayed. | 311| On | Always displayed. | 312| Auto | Displayed when the screen is touched and hidden after 2s.| 313 314## TitleHeight<sup>9+</sup> 315 316**Atomic service API**: This API can be used in atomic services since API version 11. 317 318**System capability**: SystemCapability.ArkUI.ArkUI.Full 319 320| Name | Description | 321| ----------- | -------------------------- | 322| MainOnly | Recommended height (56 vp) of the title bar when only the main title is available. | 323| MainWithSub | Recommended height (82 vp) of the title bar when both the main title and subtitle exist.| 324 325## EdgeEffect 326 327**Widget capability**: This API can be used in ArkTS widgets since API version 9. 328 329**Atomic service API**: This API can be used in atomic services since API version 11. 330 331**System capability**: SystemCapability.ArkUI.ArkUI.Full 332 333| Name | Description | 334| ------ | ---------------------------------------- | 335| Spring | Spring effect. When at one of the edges, the component can move beyond the bounds through touches, and produces a bounce effect when the user releases their finger.| 336| Fade | Fade effect. When at one of the edges, the component produces a fade effect. | 337| None | No effect when the component is at one of the edges. | 338 339## Alignment 340 341**Widget capability**: This API can be used in ArkTS widgets since API version 9. 342 343**Atomic service API**: This API can be used in atomic services since API version 11. 344 345**System capability**: SystemCapability.ArkUI.ArkUI.Full 346 347| Name | Description | 348| ----------- | -------- | 349| TopStart | Top start. | 350| Top | Horizontally centered on the top. | 351| TopEnd | Top end. | 352| Start | Vertically centered start.| 353| Center | Horizontally and vertically centered.| 354| End | Vertically centered end. | 355| BottomStart | Bottom start. | 356| Bottom | Horizontally centered on the bottom. | 357| BottomEnd | Bottom end. | 358 359## TransitionType 360 361**Widget capability**: This API can be used in ArkTS widgets since API version 9. 362 363**Atomic service API**: This API can be used in atomic services since API version 11. 364 365**System capability**: SystemCapability.ArkUI.ArkUI.Full 366 367| Name | Description | 368| ------ | ------------------------------ | 369| All | The transition takes effect in all scenarios.| 370| Insert | The transition takes effect when a component is inserted or displayed.| 371| Delete | The transition takes effect when a component is deleted or hidden.| 372 373## RelateType 374 375**Atomic service API**: This API can be used in atomic services since API version 11. 376 377**System capability**: SystemCapability.ArkUI.ArkUI.Full 378 379| Name | Description | 380| ---- | -------------- | 381| FILL | The current child component is scaled to fill the parent component.| 382| FIT | The current child component is scaled to adapt to the parent component.| 383 384## Visibility 385 386**Widget capability**: This API can be used in ArkTS widgets since API version 9. 387 388**Atomic service API**: This API can be used in atomic services since API version 11. 389 390**System capability**: SystemCapability.ArkUI.ArkUI.Full 391 392| Name | Description | 393| ------- | ---------------- | 394| Hidden | The component is hidden, and a placeholder is used for it in the layout. | 395| Visible | The component is visible. | 396| None | The component is hidden. It is not involved in the layout, and no placeholder is used for it.| 397 398## LineCapStyle 399 400**Widget capability**: This API can be used in ArkTS widgets since API version 9. 401 402**Atomic service API**: This API can be used in atomic services since API version 11. 403 404**System capability**: SystemCapability.ArkUI.ArkUI.Full 405 406| Name | Description | 407| ------ | ----------------------------- | 408| Butt | The ends of the line are squared off, and the line does not extend beyond its two endpoints. | 409| Round | The line is extended at the endpoints by a half circle whose diameter is equal to the line width. | 410| Square | The line is extended at the endpoints by a rectangle whose width is equal to half the line width and height equal to the line width.| 411 412## Axis 413 414**Widget capability**: This API can be used in ArkTS widgets since API version 9. 415 416**Atomic service API**: This API can be used in atomic services since API version 11. 417 418**System capability**: SystemCapability.ArkUI.ArkUI.Full 419 420| Name | Description | 421| ---------- | ------ | 422| Vertical | Vertical direction.| 423| Horizontal | Horizontal direction.| 424 425## HorizontalAlign 426 427**Widget capability**: This API can be used in ArkTS widgets since API version 9. 428 429**Atomic service API**: This API can be used in atomic services since API version 11. 430 431**System capability**: SystemCapability.ArkUI.ArkUI.Full 432 433| Name | Description | 434| ------ | ------------ | 435| Start | Aligned with the start edge in the same direction as the language in use.| 436| Center | Aligned with the center. This is the default alignment mode.| 437| End | Aligned with the end edge in the same direction as the language in use. | 438 439## FlexAlign 440 441**Widget capability**: This API can be used in ArkTS widgets since API version 9. 442 443**Atomic service API**: This API can be used in atomic services since API version 11. 444 445**System capability**: SystemCapability.ArkUI.ArkUI.Full 446 447| Name | Description | 448| ------------ | ---------------------------------------- | 449| Start | The child components are aligned with the start edge of the main axis. The first component is aligned with the main-start, and subsequent components are aligned with the previous one. | 450| Center | The child components are aligned in the center of the main axis. The space between the first component and the main-start is the same as that between the last component and the main-end. | 451| End | The child components are aligned with the end edge of the main axis. The last component is aligned with the main-end, and other components are aligned with the next one. | 452| SpaceBetween | The child components are evenly distributed along the main axis. The space between any two adjacent components is the same. The first component is aligned with the main-start, the last component is aligned with the main-end, and the remaining components are distributed so that the space between any two adjacent components is the same.| 453| SpaceAround | The child components are evenly distributed along the main axis. The space between any two adjacent components is the same. The space between the first component and main-start, and that between the last component and cross-main are both half the size of the space between two adjacent components.| 454| SpaceEvenly | The child components are evenly distributed along the main axis. The space between the first component and main-start, the space between the last component and main-end, and the space between any two adjacent components are the same.| 455 456## ItemAlign 457 458**Widget capability**: This API can be used in ArkTS widgets since API version 9. 459 460**Atomic service API**: This API can be used in atomic services since API version 11. 461 462**System capability**: SystemCapability.ArkUI.ArkUI.Full 463 464| Name | Description | 465| -------- | ---------------------------------------- | 466| Auto | The default configuration of the flex container is used. | 467| Start | The items in the flex container are aligned with the cross-start edge. | 468| Center | The items in the flex container are centered along the cross axis. | 469| End | The items in the flex container are aligned with the cross-end edge. | 470| Stretch | The items in the flex container are stretched and padded along the cross axis. If the flex container has the **Wrap** attribute set to **FlexWrap.Wrap** or **FlexWrap.WrapReverse**, the items are stretched to the cross size of the widest element on the current row or column. In other cases, the items are stretched to the container size regardless of whether their size is set.| 471| Baseline | The items in the flex container are aligned in such a manner that their text baselines are aligned along the cross axis. | 472 473## FlexDirection 474 475**Widget capability**: This API can be used in ArkTS widgets since API version 9. 476 477**Atomic service API**: This API can be used in atomic services since API version 11. 478 479**System capability**: SystemCapability.ArkUI.ArkUI.Full 480 481| Name | Description | 482| ------------- | ---------------- | 483| Row | The child components are arranged in the same direction as the main axis runs along the rows. | 484| RowReverse | The child components are arranged opposite to the **Row** direction. | 485| Column | The child components are arranged in the same direction as the main axis runs down the columns. | 486| ColumnReverse | The child components are arranged opposite to the **Column** direction.| 487 488## FlexWrap 489 490**Widget capability**: This API can be used in ArkTS widgets since API version 9. 491 492**Atomic service API**: This API can be used in atomic services since API version 11. 493 494**System capability**: SystemCapability.ArkUI.ArkUI.Full 495 496| Name | Description | 497| ----------- | --------------------------- | 498| NoWrap | The child components in the flex container are arranged in a single line. If any of them have minimum size constraints applied, the flex container does not forcibly shrink them when overflow occurs. | 499| Wrap | The child components in the flex container are arranged in multiple lines, and they may overflow. | 500| WrapReverse | The child components in the flex container are reversely arranged in multiple lines, and they may overflow.| 501 502## VerticalAlign 503 504**Widget capability**: This API can be used in ArkTS widgets since API version 9. 505 506**Atomic service API**: This API can be used in atomic services since API version 11. 507 508**System capability**: SystemCapability.ArkUI.ArkUI.Full 509 510| Name | Description | 511| ------ | ------------ | 512| Top | Top aligned. | 513| Center | Center aligned. This is the default alignment mode.| 514| Bottom | Bottom aligned. | 515 516## ImageRepeat 517 518**Widget capability**: This API can be used in ArkTS widgets since API version 9. 519 520**Atomic service API**: This API can be used in atomic services since API version 11. 521 522**System capability**: SystemCapability.ArkUI.ArkUI.Full 523 524| Name | Description | 525| -------- | ------------- | 526| X | The image is repeatedly drawn only along the horizontal axis.| 527| Y | The image is repeatedly drawn only along the vertical axis.| 528| XY | The image is repeatedly drawn along both axes. | 529| NoRepeat | The image is not repeatedly drawn. | 530 531## ImageSize 532 533**System capability**: SystemCapability.ArkUI.ArkUI.Full 534 535| Name | Description | 536| ------- | ----------------------------------- | 537| Cover | The image is scaled with its aspect ratio retained for both sides to be greater than or equal to the display boundaries.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 9.<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 538| Contain | The image is scaled with its aspect ratio retained for the content to be completely displayed within the display boundaries.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 9.<br> **Atomic service API**: This API can be used in atomic services since API version 11. | 539| Auto | The original image aspect ratio remains unchanged. Default value.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 9.<br> **Atomic service API**: This API can be used in atomic services since API version 11. | 540| FILL<sup>12+</sup> | The image is scaled to fill the display area, and its aspect ratio is not retained.<br>**Atomic service API**: This API can be used in atomic services since API version 12.| 541 542## GradientDirection 543 544**Widget capability**: This API can be used in ArkTS widgets since API version 9. 545 546**Atomic service API**: This API can be used in atomic services since API version 11. 547 548**System capability**: SystemCapability.ArkUI.ArkUI.Full 549 550| Name | Description | 551| ----------- | ----- | 552| Left | The gradient direction is from right to left.| 553| Top | The gradient direction is from bottom to top.| 554| Right | The gradient direction is from left to right.| 555| Bottom | The gradient direction is from top to bottom.| 556| LeftTop | The gradient direction is upper left. | 557| LeftBottom | The gradient direction is lower left. | 558| RightTop | The gradient direction is upper right. | 559| RightBottom | The gradient direction is lower right. | 560| None | No gradient. | 561 562## SharedTransitionEffectType 563 564**Atomic service API**: This API can be used in atomic services since API version 11. 565 566**System capability**: SystemCapability.ArkUI.ArkUI.Full 567 568| Name | Description | 569| -------- | ---------------------------------------- | 570| Static | The element position remains unchanged on the target page, and transition opacity can be configured. Currently, this effect is only valid in redirecting to the target page.| 571| Exchange | The element is relocated and scaled properly on the target page. | 572 573## FontStyle 574 575**Widget capability**: This API can be used in ArkTS widgets since API version 9. 576 577**Atomic service API**: This API can be used in atomic services since API version 11. 578 579**System capability**: SystemCapability.ArkUI.ArkUI.Full 580 581| Name | Description | 582| ------ | -------- | 583| Normal | Standard font style.| 584| Italic | Italic font style.| 585 586## FontWeight 587 588**Widget capability**: This API can be used in ArkTS widgets since API version 9. 589 590**Atomic service API**: This API can be used in atomic services since API version 11. 591 592**System capability**: SystemCapability.ArkUI.ArkUI.Full 593 594| Name | Value | Description | 595| ------- | ----- | ----------- | 596| Lighter | 100 | The font weight is lighter.| 597| Normal | 400 | The font weight is normal.| 598| Regular | 400 | The font weight is regular.| 599| Medium | 500 | The font weight is medium.| 600| Bold | 700 | The font weight is bold. | 601| Bolder | 900 | The font weight is bolder.| 602 603## TextAlign 604 605**Atomic service API**: This API can be used in atomic services since API version 11. 606 607**System capability**: SystemCapability.ArkUI.ArkUI.Full 608 609| Name | Description | 610| --------------------- | ------------------------------------------------------------ | 611| Start | Aligned with the start.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 9.| 612| Center | Horizontally centered.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 9.| 613| End | Aligned with the end.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 9.| 614| JUSTIFY<sup>10+</sup> | Aligned with both margins.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 10.| 615 616## TextOverflow 617 618**Atomic service API**: This API can be used in atomic services since API version 11. 619 620**System capability**: SystemCapability.ArkUI.ArkUI.Full 621 622| Name | Description | 623| --------------------- | ------------------- | 624| None | Overflowing content is clipped at the limit of the maximum line width.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 9.| 625| Clip | Overflowing content is clipped at the limit of the maximum line width.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 9.| 626| Ellipsis | An ellipsis (...) is used to represent text overflow.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 9.| 627| MARQUEE<sup>10+</sup> | Text continuously scrolls when text overflow occurs.| 628 629## TextDecorationType 630 631**Widget capability**: This API can be used in ArkTS widgets since API version 9. 632 633**Atomic service API**: This API can be used in atomic services since API version 11. 634 635**System capability**: SystemCapability.ArkUI.ArkUI.Full 636 637| Name | Description | 638| ----------- | --------- | 639| Underline | Line under the text. | 640| LineThrough | Line through the text.| 641| Overline | Line over the text. | 642| None | No text decoration.| 643 644## TextCase 645 646**Widget capability**: This API can be used in ArkTS widgets since API version 9. 647 648**Atomic service API**: This API can be used in atomic services since API version 11. 649 650**System capability**: SystemCapability.ArkUI.ArkUI.Full 651 652| Name | Description | 653| --------- | ---------- | 654| Normal | The original case of the text is retained.| 655| LowerCase | All letters in the text are in lowercase. | 656| UpperCase | All letters in the text are in uppercase. | 657 658## ResponseType<sup>8+</sup> 659 660**Atomic service API**: This API can be used in atomic services since API version 11. 661 662**System capability**: SystemCapability.ArkUI.ArkUI.Full 663 664| Name | Description | 665| ---------- | ------------- | 666| LongPress | The menu is displayed when the component is long-pressed. | 667| RightClick | The menu is displayed when the component is right-clicked.| 668 669## HoverEffect<sup>8+</sup> 670 671**Atomic service API**: This API can be used in atomic services since API version 11. 672 673**System capability**: SystemCapability.ArkUI.ArkUI.Full 674 675| Name | Description | 676| --------- | -------------- | 677| Auto | Default hover effect.| 678| Scale | Scale effect. | 679| Highlight | Background fade-in and fade-out effect. | 680| None | No effect. | 681 682## Placement<sup>8+</sup> 683 684**Atomic service API**: This API can be used in atomic services since API version 11. 685 686**System capability**: SystemCapability.ArkUI.ArkUI.Full 687 688| Name | Description | 689| ------------------------ | ------------------------------------------------------------ | 690| Left | The popup is on the left of the component, vertically aligned with the component on the left. | 691| Right | The popup is on the right of the component, vertically aligned with the component on the right. | 692| Top | The popup is at the top of the component, horizontally aligned with the component at the top. | 693| Bottom | The popup is at the bottom of the component, horizontally aligned with the component at the bottom. | 694| TopLeft | The popup is at the top of the component and, since API version 9, aligned with the left of the component.| 695| TopRight | The popup is at the top of the component and, since API version 9, aligned with the right of the component.| 696| BottomLeft | The popup is at the bottom of the component and, since API version 9, aligned with the left of the component.| 697| BottomRight | The popup is at the bottom of the component and, since API version 9, aligned with the right of the component.| 698| LeftTop<sup>9+</sup> | The popup is on the left of the component and aligned with the top of the component. | 699| LeftBottom<sup>9+</sup> | The popup is on the left of the component and aligned with the bottom of the component. | 700| RightTop<sup>9+</sup> | The popup is on the right of the component and aligned with the top of the component. | 701| RightBottom<sup>9+</sup> | The popup is on the right of the component and aligned with the bottom of the component. | 702 703## CopyOptions<sup>9+</sup> 704 705**System capability**: SystemCapability.ArkUI.ArkUI.Full 706 707| Name | Description | 708| ----------- | -------- | 709| None | Copy is not allowed.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 9.<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 710| InApp | Intra-application copy is allowed.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 9.<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 711| LocalDevice | Intra-device copy is allowed.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 9.<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 712| CROSS_DEVICE<sup>(deprecated)</sup> | Cross-device copy is allowed.<br>**Widget capability**: This API can be used in ArkTS widgets since API version 11.<br>**NOTE**<br>This API is supported since API version 11 and deprecated since API version 12.| 713 714## HitTestMode<sup>9+</sup> 715 716**Atomic service API**: This API can be used in atomic services since API version 11. 717 718**System capability**: SystemCapability.ArkUI.ArkUI.Full 719 720| Name | Description | 721| ----------- | ---------------------------------------- | 722| Default | Both the node and its child node respond to the hit test of a touch event, but its sibling node is blocked from the hit test.| 723| Block | The node responds to the hit test of a touch event, but its child node and sibling node are blocked from the hit test.| 724| Transparent | Both the node and its child node respond to the hit test of a touch event, and its sibling node is also considered during the hit test.| 725| None | The node does not respond to the hit test of a touch event, but its child node and sibling node are considered during the hit test. | 726 727## DialogButtonStyle<sup>10+</sup> 728 729**System capability**: SystemCapability.ArkUI.ArkUI.Full 730 731**Atomic service API**: This API can be used in atomic services since API version 11. 732 733**System capability**: SystemCapability.ArkUI.ArkUI.Full 734 735| Name | Description | 736| --------- | --------------------------------- | 737| DEFAULT | Blue text on white background (black background under the dark theme).| 738| HIGHLIGHT | White text on blue background. | 739 740## TextHeightAdaptivePolicy<sup>10+</sup> 741 742**Atomic service API**: This API can be used in atomic services since API version 11. 743 744**System capability**: SystemCapability.ArkUI.ArkUI.Full 745 746| Name | Description | 747| ----------------------- | ------------------------ | 748| MAX_LINES_FIRST | Prioritize the **maxLines** settings.| 749| MIN_FONT_SIZE_FIRST | Prioritize the **minFontSize** settings. | 750| LAYOUT_CONSTRAINT_FIRST | Prioritize the layout constraint settings in terms of height.| 751 752## NestedScrollMode<sup>10+</sup> 753 754**Atomic service API**: This API can be used in atomic services since API version 11. 755 756**System capability**: SystemCapability.ArkUI.ArkUI.Full 757 758| Name | Description | 759| ------ | ------------------------------ | 760| SELF_ONLY | The scrolling is contained within the component, and no scroll chaining occurs, that is, the parent component does not scroll when the component scrolling reaches the boundary. | 761| SELF_FIRST | The component scrolls first, and when it hits the boundary, the parent component scrolls. When the parent component hits the boundary, its edge effect is displayed. If no edge effect is specified for the parent component, the edge effect of the child component is displayed instead. | 762| PARENT_FIRST | The parent component scrolls first, and when it hits the boundary, the component scrolls. When the component hits the boundary, its edge effect is displayed. If no edge effect is specified for the component, the edge effect of the parent component is displayed instead.| 763| PARALLEL | The component and its parent component scroll at the same time. When both the component and its parent component hit the boundary, the edge effect of the component is displayed. If no edge effect is specified for the component, the edge effect of the parent component is displayed instead.| 764 765## ObscuredReasons<sup>10+</sup> 766 767**Atomic service API**: This API can be used in atomic services since API version 11. 768 769**System capability**: SystemCapability.ArkUI.ArkUI.Full 770 771| Name | Description | 772| ----------- | ------------------------ | 773| PLACEHOLDER | The content is replaced by a placeholder.| 774 775## ColoringStrategy<sup>10+</sup> 776 777Enumerates the coloring strategies. 778 779**System capability**: SystemCapability.ArkUI.ArkUI.Full 780 781| Name | Description | 782| ------ | --------------- | 783| INVERT | The foreground colors are the inverse of the component background colors. This strategy is only applicable when set within the [foregroundColor](ts-universal-attributes-foreground-color.md#foregroundcolor) attribute.<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 784| AVERAGE<sup>11+</sup> | The shadow colors of the component are the average color obtained from the component background shadow area. This strategy is only applicable when set within the [shadow](ts-universal-attributes-image-effect.md#shadow) attribute whose input parameter type is ShadowOptions.<br>**Atomic service API**: This API can be used in atomic services since API version 12.| 785| PRIMARY<sup>11+</sup> | The shadow colors of the component are the primary color obtained from the component background shadow area. This strategy is only applicable when set within the [shadow](ts-universal-attributes-image-effect.md#shadow) attribute whose input parameter type is ShadowOptions.<br>**Atomic service API**: This API can be used in atomic services since API version 12.| 786 787## ClickEffectLevel<sup>10+</sup> 788 789**Atomic service API**: This API can be used in atomic services since API version 11. 790 791**System capability**: SystemCapability.ArkUI.ArkUI.Full 792 793| Name | Description | Animation Settings | Default Zoom Ratio | 794| ------ | --------------------------------- | --------------------------------- | --------------------------------- | 795| LIGHT | Small area (light)| Spring effect, with stiffness of 410, damping of 38, and initial velocity of 1.| 90% | 796| MIDDLE | Medium area (stable)| Spring effect, with stiffness of 350, damping of 35, and initial velocity of 0.5.| 95% | 797| HEAVY | Large area (heavy)| Spring effect, with stiffness of 240, damping of 28, and initial velocity of 0.| 95% | 798 799## CheckBoxShape<sup>11+</sup> 800 801**Widget capability**: This API can be used in ArkTS widgets since API version 11. 802 803**Atomic service API**: This API can be used in atomic services since API version 12. 804 805**System capability**: SystemCapability.ArkUI.ArkUI.Full 806 807| Name | Value | Description | 808| -------------- | ---- | -------- | 809| CIRCLE | 0 | Circle. | 810| ROUNDED_SQUARE | 1 | Rounded square.| 811 812## FoldStatus<sup>11+</sup> 813 814**Atomic service API**: This API can be used in atomic services since API version 12. 815 816**System capability**: SystemCapability.ArkUI.ArkUI.Full 817 818| Name | Description | 819| ---------------------- | ---------- | 820| FOLD_STATUS_UNKNOWN | The folding status of the device is unknown.| 821| FOLD_STATUS_EXPANDED | The device is fully open. | 822| FOLD_STATUS_FOLDED | The device is folded (completely closed). | 823| FOLD_STATUS_HALF_FOLDED | The device is half-folded, somewhere between fully open and completely closed.| 824 825## TextContentStyle<sup>10+</sup> 826 827**Atomic service API**: This API can be used in atomic services since API version 11. 828 829**System capability**: SystemCapability.ArkUI.ArkUI.Full 830 831| Name | Description | 832| ------- | ------------------------------------------------------------ | 833| DEFAULT | Default style. The caret width is fixed at 1.5 vp, and the caret height is subject to the background height and font size of the selected text.| 834| INLINE | Inline input style. The background height of the selected text is the same as the height of the text box.<br>This style is used in scenarios where editing and non-editing states are obvious, for example, renaming in the file list view.<br>The **showError** attribute is not supported for this style.<br>This style does not allow for text dragging and dropping.| 835 836 837## Nullable<sup>11+</sup> 838 839Nullable\<T> { 840 841(data: T); 842 843} 844 845The object of this type can be of a custom type or **undefined**. 846 847**Atomic service API**: This API can be used in atomic services since API version 12. 848 849**System capability**: SystemCapability.ArkUI.ArkUI.Full 850 851| Name| Type| Mandatory| Description | 852| ---- | ---- | ---- | -------------------------- | 853| data | T | Yes | The object of this type can be of a custom type or **undefined**.| 854 855## WordBreak<sup>11+</sup> 856 857**Atomic service API**: This API can be used in atomic services since API version 11. 858 859**System capability**: SystemCapability.ArkUI.ArkUI.Full 860 861| Name | Description | 862| ----- | -------------------------------------- | 863| NORMAL | Word breaks can occur between any two characters for Chinese, Japanese, and Korean (CJK) text, but can occur only at a space character for non-CJK text (such as English).| 864| BREAK_ALL | Line breaks can occur between any two characters for non-CJK text. CJK text behavior is the same as for **NORMAL**.| 865| BREAK_WORD | This option has the same effect as **BREAK_ALL** for non-CJK text, except that if it preferentially wraps lines at appropriate characters (for example, spaces) whenever possible. CJK text behavior is the same as for **NORMAL**.| 866 867## LineBreakStrategy<sup>12+</sup> 868 869**Atomic service API**: This API can be used in atomic services since API version 12. 870 871**System capability**: SystemCapability.ArkUI.ArkUI.Full 872 873| Name | Description | 874| ------------ | ------------------------------------------------------------ | 875| GREEDY | Places as many words on a line as possible and moves to the next line only if no more words can fit into the same line.| 876| HIGH_QUALITY | Fills in lines as much as possible on the basis of **BALANCED**, which may results in a large blank area on the last line.| 877| BALANCED | Balances the line length when possible without word splitting. | 878 879## TextSelectableMode<sup>12+</sup> 880 881**Atomic service API**: This API can be used in atomic services since API version 12. 882 883**System capability**: SystemCapability.ArkUI.ArkUI.Full 884 885| Name | Description | 886| ------------ | ------------------------------------------------------------ | 887| SELECTABLE_UNFOCUSABLE | The text is selectable, but not focusable. Setting the **selection**, **bindSelectionMenu**, or **copyOption** attribute does not affect the behavior.| 888| SELECTABLE_FOCUSABLE | The text is selectable and focusable. It obtains focus when touched.| 889| UNSELECTABLE | The text is not selectable nor focusable. The **selection**, **bindSelectionMenu**, and **copyOption** attributes do not work in this case. | 890 891## AccessibilityHoverType<sup>12+</sup> 892 893**Atomic service API**: This API can be used in atomic services since API version 12. 894 895**System capability**: SystemCapability.ArkUI.ArkUI.Full 896 897| Name | Value| Description | 898| ------------ | - | ------------------------------------------------------------ | 899| HOVER_ENTER | 0 | A finger is pressed. | 900| HOVER_MOVE | 1 | The touch moves. | 901| HOVER_EXIT | 2 | The finger is lifted. | 902| HOVER_CANCEL | 3 | The current event is canceled. | 903 904## EllipsisMode<sup>11+</sup> 905 906**Atomic service API**: This API can be used in atomic services since API version 12. 907 908**System capability**: SystemCapability.ArkUI.ArkUI.Full 909 910| Name | Description | 911| ----- | -------------------------------------- | 912| START | An ellipsis is used at the start of the line of text.| 913| CENTER | An ellipsis is used at the center of the line of text.| 914| END | An ellipsis is used at the end of the line of text.| 915 916## ArrowPointPosition<sup>11+</sup> 917 918**Atomic service API**: This API can be used in atomic services since API version 12. 919 920**System capability**: SystemCapability.ArkUI.ArkUI.Full 921 922| Name | Description | 923| ------------- | -------------------------------------- | 924| START | On the leftmost side of the parent component in the horizontal layout; on the top of the parent component in the vertical layout.| 925| CENTER | In the center of the parent component.| 926| END | On the rightmost side of the parent component in the horizontal layout; at the bottom of the parent component in the vertical layout.| 927 928## OptionWidthMode<sup>11+</sup> 929 930**Atomic service API**: This API can be used in atomic services since API version 12. 931 932**System capability**: SystemCapability.ArkUI.ArkUI.Full 933 934| Name | Description | 935| ----------- | ------------------------------ | 936| FIT_CONTENT | Uses the default width, that is, width of two columns. | 937| FIT_TRIGGER | Inherits the width of the drop-down list button.| 938 939## PixelRoundCalcPolicy<sup>11+</sup> 940 941Enumerates the pixel rounding policies for component boundaries. 942 943**Widget capability**: This API can be used in ArkTS widgets since API version 11. 944 945**Atomic service API**: This API can be used in atomic services since API version 11. 946 947**System capability**: SystemCapability.ArkUI.ArkUI.Full 948 949| Name | Description | 950| ------ | ----------------------------- | 951| NO_FORCE_ROUND | The value is not rounded off.| 952| FORCE_CEIL | The value is rounded up to the nearest integer.| 953| FORCE_FLOOR | The value is rounded down to the nearest integer.| 954 955## TextDecorationStyle<sup>12+</sup> 956 957**Atomic service API**: This API can be used in atomic services since API version 12. 958 959**System capability**: SystemCapability.ArkUI.ArkUI.Full 960 961| Name | Description | 962| ----------- | --------- | 963| SOLID | Single solid line (default value). | 964| DOUBLE | Double solid line.| 965| DOTTED | Dotted line. | 966| DASHED | Dashed line.| 967| WAVY | Wavy line.| 968 969## EmbeddedType<sup>12+</sup> 970Enumerates the types of the providers that can be started by the **EmbeddedComponent**. 971 972**Atomic service API**: This API can be used in atomic services since API version 12. 973 974**System capability**: SystemCapability.ArkUI.ArkUI.Full 975 976| Name | Value| Description | 977| --------------------- | - | ---------------------------------------------------- | 978| EMBEDDED_UI_EXTENSION | 0 | EmbeddedUIExtensionAbility.| 979 980## MarqueeUpdateStrategy<sup>12+</sup> 981 982**Atomic service API**: This API can be used in atomic services since API version 12. 983 984**System capability**: SystemCapability.ArkUI.ArkUI.Full 985 986| Name | Value | Description | 987| ---------- | ------------------------ | ------------------------ | 988| DEFAULT | 0 | After the marquee attributes are updated, the marquee scrolls from the start position. | 989| PRESERVE_POSITION | 1 | After the marquee attributes are updated, the marquee scrolls from the current position.| 990 991## AppRotation<sup>12+</sup> 992 993**Atomic service API**: This API can be used in atomic services since API version 12. 994 995**System capability**: SystemCapability.ArkUI.ArkUI.Full 996 997| Name | Description | 998| ------ | ----------------------------- | 999| ROTATION_0 | 0 degrees.| 1000| ROTATION_90 |90 degrees.| 1001| ROTATION_180 | 180 degrees.| 1002| ROTATION_270 | 270 degrees.| 1003 1004## ScrollSource<sup>12+</sup> 1005 1006Enumerates the sources of scroll operations. 1007 1008**Atomic service API**: This API can be used in atomic services since API version 12. 1009 1010**System capability**: SystemCapability.ArkUI.ArkUI.Full 1011 1012| Name | Value | Description | 1013| ------ | ------ | ---------------------------------------- | 1014| DRAG | 0 | Drag event.| 1015| FLING | 1 | Inertia scrolling after the drag ends.| 1016| EDGE_EFFECT | 2 | Edge scrolling effect with **EdgeEffect.Spring**.| 1017| OTHER_USER_INPUT | 3 | Other user inputs aside from dragging, such as those from the mouse wheel and keyboard events.| 1018| SCROLL_BAR | 4 | Drag event from the scrollbar.| 1019| SCROLL_BAR_FLING | 5 | Inertia scrolling with velocity after the scrollbar is released.| 1020| SCROLLER | 6 | Non-animated methods of the **Scroller** object.| 1021| SCROLLER_ANIMATION | 7 | Animated methods of the **Scroller** object.| 1022 1023## ImageSpanAlignment<sup>10+</sup> 1024 1025**Atomic service API**: This API can be used in atomic services since API version 11. 1026 1027**System capability**: SystemCapability.ArkUI.ArkUI.Full 1028 1029| Name | Description | 1030| -------- | ------------------------------ | 1031| TOP | The image is top aligned with the line. | 1032| CENTER | The image is centered aligned with the line. | 1033| BOTTOM | The image is bottom aligned with the line. | 1034| BASELINE | The image is bottom aligned with the text baseline.| 1035 1036 1037## XComponentType<sup>10+</sup> 1038 1039**System capability**: SystemCapability.ArkUI.ArkUI.Full 1040 1041| Name | Description | 1042| -------------------------------- | ------------------------------------------------------------ | 1043| SURFACE | The component is used for EGL/OpenGLES and media data input, where the custom content is displayed individually on the screen. When the background color is set to black, the display subsystem (DSS) is used.<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 1044| COMPONENT<sup>(deprecated)</sup> | The component becomes a container where non-UI logic can be executed to dynamically load the display content.<br>**NOTE**<br>This API is deprecated since API version 12. You are advised to use other container components instead.<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 1045| TEXTURE | The component is used for EGL/OpenGLES and media data input, where the custom content is combined with the content of the component and then displayed on the screen. 1. Frame synchronization is maintained, which ensures that the GPU textures and other ArkUI drawing commands are batched and sent to the RenderService within the same frame. 2. Animations are unified with built-in components. 3. As the GPU is used for composition, this type may consume more power compared to the surface type that uses the display subsystem (DSS).<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 1046| NODE<sup>12+</sup> | The component is used as a placeholder container for native UI nodes. Page components developed with native APIs can be displayed within this container's area.<br>**NOTE**<br>This type is no longer being evolved. You are advised to use the [ContentSlot](../../../quick-start/arkts-rendering-control-contentslot.md) placeholder component for managing components created with native APIs. **ContentSlot** is superior to the NODE-type **XComponent** in terms of memory and performance.<br>**Atomic service API**: This API can be used in atomic services since API version 12.| 1047 1048## HoverModeAreaType<sup>14+</sup> 1049 1050Enumerates the types of display areas for the hover mode. 1051 1052**Atomic service API**: This API can be used in atomic services since API version 14. 1053 1054**System capability**: SystemCapability.ArkUI.ArkUI.Full 1055 1056| Name | Description | 1057| ------ | ----------------------------- | 1058| TOP_SCREEN | Upper half screen.| 1059| BOTTOM_SCREEN | Lower half screen.| 1060 1061## WidthBreakpoint<sup>13+</sup> 1062 1063Enumerates the width breakpoint values corresponding to different window width thresholds. The value is returned through [getWindowWidthBreakpoint](../js-apis-arkui-UIContext.md#getwindowwidthbreakpoint13). 1064 1065**Atomic service API**: This API can be used in atomic services since API version 13. 1066 1067**System capability**: SystemCapability.ArkUI.ArkUI.Full 1068 1069| Name | Value | Description | 1070| -------- | ---- | ---------------------- | 1071| WIDTH_XS | 0 | The window width is less than 320 vp.| 1072| WIDTH_SM | 1 | The window width is greater than or equal to 320 vp and less than 600 vp.| 1073| WIDTH_MD | 2 | The window width is greater than or equal to 600 vp and less than 840 vp.| 1074| WIDTH_LG | 3 | The window width is greater than or equal to 840 vp and less than 1440 vp.| 1075| WIDTH_XL | 4 | The window width is greater than or equal to 1440 vp.| 1076 1077## HeightBreakpoint<sup>13+</sup> 1078 1079Enumerates the height breakpoint values corresponding to different window aspect ratio thresholds. The value is returned through [getWindowHeightBreakpoint](../js-apis-arkui-UIContext.md#getwindowheightbreakpoint13). 1080 1081**Atomic service API**: This API can be used in atomic services since API version 13. 1082 1083**System capability**: SystemCapability.ArkUI.ArkUI.Full 1084 1085| Name | Value | Description | 1086| -------- | ---- | ---------------------- | 1087| HEIGHT_SM | 0 | The window aspect ratio is less than 0.8.| 1088| HEIGHT_MD | 1 | The window aspect ratio is greater than or equal to 0.8 and less than 1.2.| 1089| HEIGHT_LG | 2 | The window aspect ratio is greater than or equal to 1.2.| 1090 1091## RenderFit<sup>10+</sup> 1092 1093Enumerates the modes in which the final state of the component's content is rendered during its width and height animation process. 1094 1095**Atomic service API**: This API can be used in atomic services since API version 11. 1096 1097**System capability**: SystemCapability.ArkUI.ArkUI.Full 1098 1099| Name | Description | 1100| --------------------------- | ---------------------------------------------------------------------------------- | 1101| CENTER | The component's content stays at the final size and always aligned with the center of the component.  | 1102| TOP | The component's content stays at the final size and always aligned with the top center of the component.  | 1103| BOTTOM | The component's content stays at the final size and always aligned with the bottom center of the component.  | 1104| LEFT | The component's content stays at the final size and always aligned with the left of the component.  | 1105| RIGHT | The component's content stays at the final size and always aligned with the right of the component.  | 1106| TOP_LEFT | The component's content stays at the final size and always aligned with the upper left corner of the component.  | 1107| TOP_RIGHT | The component's content stays at the final size and always aligned with the upper right corner of the component.  | 1108| BOTTOM_LEFT | The component's content stays at the final size and always aligned with the lower left corner of the component.  | 1109| BOTTOM_RIGHT | The component's content stays at the final size and always aligned with the lower right corner of the component.  | 1110| RESIZE_FILL | The component's content is always resized to fill the component's content box, without considering its aspect ratio in the final state.  | 1111| RESIZE_CONTAIN | While maintaining its aspect ratio in the final state, the component's content is scaled to fit within the component's content box. It is always aligned with the center of the component.  | 1112| RESIZE_CONTAIN_TOP_LEFT | While maintaining its aspect ratio in the final state, the component's content is scaled to fit within the component's content box. When there is remaining space in the width direction of the component, the content is left-aligned with the component. When there is remaining space in the height direction of the component, the content is top-aligned with the component.  | 1113| RESIZE_CONTAIN_BOTTOM_RIGHT | While maintaining its aspect ratio in the final state, the component's content is scaled to fit within the component's content box. When there is remaining space in the width direction of the component, the content is right-aligned with the component. When there is remaining space in the height direction of the component, the content is bottom-aligned with the component.  | 1114| RESIZE_COVER | While maintaining its aspect ratio in the final state, the component's content is scaled to cover the component's entire content box. It is always aligned with the center of the component, so that its middle part is displayed.  | 1115| RESIZE_COVER_TOP_LEFT | While maintaining its aspect ratio in the final state, the component's content is scaled to cover the component's entire content box. When there is remaining space in the width direction, the content is left-aligned with the component, so that its left part is displayed. When there is remaining space in the height direction, the content is top-aligned with the component, so that its top part is displayed.  | 1116| RESIZE_COVER_BOTTOM_RIGHT | While maintaining its aspect ratio in the final state, the component's content is scaled to cover the component's entire content box. When there is remaining space in the width direction, the content is right-aligned with the component, so that its right part is displayed. When there is remaining space in the height direction, the content is bottom-aligned with the component, so that its bottom part is displayed.  | 1117 1118> **NOTE** 1119> 1120> - In the illustrative diagrams, the blue area indicates the content, and the orange area indicates the component content box. 1121> - Different render fit modes create different effects during the width and height animation process. Choose the one that best fits your need. 1122