diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index f1c6d2eaaba7229b6e597dd08e8feb5ea952880a..019b5f7d1227c3c23548d41eb4633e7aba86cb71 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -5931,9 +5931,9 @@ declare interface ScaleOptions { } /** - * Defines the align rule options of relative container. + * Defines the vertical align rule of relative container. * - * @interface AlignRuleParam + * @interface VerticalAlignParam * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form @@ -5941,11 +5941,12 @@ declare interface ScaleOptions { * @since 20 * @arkts 1.2 */ -declare interface AlignRuleParam { +declare interface VerticalAlignParam { /** - * The param of anchor. + * Specifies the anchor component * - * @type { ?string } + * Anonymous Object Rectification + * @type { string } anchor * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form @@ -5954,10 +5955,12 @@ declare interface AlignRuleParam { * @arkts 1.2 */ anchor: string; + /** - * The param of align. + * Sets the vertical alignment relative to the anchor component. * - * @type { T } + * Anonymous Object Rectification + * @type { VerticalAlign } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form @@ -5965,7 +5968,48 @@ declare interface AlignRuleParam { * @since 20 * @arkts 1.2 */ - align: T + align: VerticalAlign; +} + +/** + * Defines the horizontal align rule of relative container. + * + * @interface HorizontalAlignParam + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ +declare interface HorizontalAlignParam { + /** + * Specifies the anchor component + * + * Anonymous Object Rectification + * @type { string } anchor + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + anchor: string; + + /** + * Sets the horizontal alignment relative to the anchor component. + * + * Anonymous Object Rectification + * @type { HorizontalAlign } align + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + align: HorizontalAlign; } /** @@ -5983,7 +6027,8 @@ declare interface AlignRuleOption { /** * The param of left align. * - * @type { ?AlignRuleParam } + * Anonymous Object Rectification + * @type { ?HorizontalAlignParam } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form @@ -5991,12 +6036,13 @@ declare interface AlignRuleOption { * @since 20 * @arkts 1.2 */ - left?:AlignRuleParam; + left?:HorizontalAlignParam; /** * The param of right align. * - * @type { ?AlignRuleParam } + * Anonymous Object Rectification + * @type { ?HorizontalAlignParam } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form @@ -6004,12 +6050,13 @@ declare interface AlignRuleOption { * @since 20 * @arkts 1.2 */ - right?: AlignRuleParam; + right?: HorizontalAlignParam; /** * The param of middle align. * - * @type { ?AlignRuleParam } + * Anonymous Object Rectification + * @type { ?HorizontalAlignParam } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form @@ -6017,12 +6064,13 @@ declare interface AlignRuleOption { * @since 20 * @arkts 1.2 */ - middle?: AlignRuleParam; + middle?: HorizontalAlignParam; /** * The param of top align. * - * @type { ?AlignRuleParam } + * Anonymous Object Rectification + * @type { ?VerticalAlignParam } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form @@ -6030,24 +6078,27 @@ declare interface AlignRuleOption { * @since 20 * @arkts 1.2 */ - top?: AlignRuleParam; + top?: VerticalAlignParam; /** * The param of bottom align. * - * @type { ?AlignRuleParam } + * Anonymous Object Rectification + * @type { ?VerticalAlignParam } * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform * @form * @atomicservice * @since 20 * @arkts 1.2 */ - bottom?: AlignRuleParam; + bottom?: VerticalAlignParam; /** * The param of center align. * - * @type { ?AlignRuleParam } + * Anonymous Object Rectification + * @type { ?VerticalAlignParam } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form @@ -6055,7 +6106,7 @@ declare interface AlignRuleOption { * @since 20 * @arkts 1.2 */ - center?: AlignRuleParam; + center?: VerticalAlignParam; /** * Defines the bias ratio in horizontal and vertical direction. @@ -34583,6 +34634,28 @@ declare enum EffectEdge { * @arkts 1.1&1.2 */ END = 2, + + /** + * Effective only for the top edge. Use only in free scroll. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + TOP = 4, + + /** + * Effective only for the bottom edge. Use only in free scroll. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + BOTTOM = 8, } /**