diff --git a/api/arkui/component/marquee.static.d.ets b/api/arkui/component/marquee.static.d.ets index 2752783d26c8cd7da3ded02fd89d134d776542a5..3011c6b19cb0dd3fac813a8e0a4c24fe2004b7df 100644 --- a/api/arkui/component/marquee.static.d.ets +++ b/api/arkui/component/marquee.static.d.ets @@ -158,12 +158,12 @@ export declare interface MarqueeAttribute extends CommonMethod { * and the following enumerated values of FontWeight are supported: "bold", "bolder", "lighter", "regular", and "medium". *

* - * @param { number | FontWeight | string | undefined } value - Default value is FontWeight.Normal. + * @param { number | FontWeight | ResourceStr | undefined } value - Default value is FontWeight.Normal. * @returns { MarqueeAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - default fontWeight(value: number | FontWeight | string | undefined): this; + default fontWeight(value: number | FontWeight | ResourceStr | undefined): this; /** * Set marquee font family. * diff --git a/api/arkui/component/symbolSpan.static.d.ets b/api/arkui/component/symbolSpan.static.d.ets index 49a3fed3395798d206630908165ac06271ec1d97..0bc1b82b373c8aaba88d9d0d339eaa70b6146cbf 100644 --- a/api/arkui/component/symbolSpan.static.d.ets +++ b/api/arkui/component/symbolSpan.static.d.ets @@ -55,12 +55,12 @@ export declare interface SymbolSpanAttribute extends CommonMethod { /** * Called when the font SymbolSpan weight is set. * - * @param { number | FontWeight | string | undefined } value + * @param { number | FontWeight | ResourceStr | undefined } value * @returns { SymbolSpanAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - default fontWeight(value: number | FontWeight | string | undefined): this; + default fontWeight(value: number | FontWeight | ResourceStr | undefined): this; /** * Called when the SymbolSpan effect is set. * diff --git a/api/arkui/component/symbolglyph.static.d.ets b/api/arkui/component/symbolglyph.static.d.ets index b6f7d7c26e06c8e42a7a9a07eb0ff97e3f71f172..ca63c6e0cb317df7a6cf4755e59f265b931f22cf 100644 --- a/api/arkui/component/symbolglyph.static.d.ets +++ b/api/arkui/component/symbolglyph.static.d.ets @@ -367,12 +367,12 @@ export declare interface SymbolGlyphAttribute extends CommonMethod { /** * Called when the font symbolGlyph weight is set. * - * @param { number | FontWeight | string } value + * @param { number | FontWeight | ResourceStr | undefined } value * @returns { SymbolGlyphAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - default fontWeight(value: number | FontWeight | string | undefined): this; + default fontWeight(value: number | FontWeight | ResourceStr | undefined): this; /** * Called when the symbolGlyph effect is set. * @@ -404,7 +404,7 @@ export declare interface SymbolGlyphAttribute extends CommonMethod { /** * Called when the minimum font scale of the font is set. * - * @param { Optional } scale + * @param { number | Resource | undefined } scale * @returns { SymbolGlyphAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 @@ -413,7 +413,7 @@ export declare interface SymbolGlyphAttribute extends CommonMethod { /** * Called when the maximum font scale of the font is set. * - * @param { Optional } scale + * @param { number | Resource | undefined } scale * @returns { SymbolGlyphAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 diff --git a/api/arkui/component/text.static.d.ets b/api/arkui/component/text.static.d.ets index 1c4e93d13272d778e6007d240d05c27e6aab1bed..8e8410ac71f9a14ec9c8858be4dd473693257827 100644 --- a/api/arkui/component/text.static.d.ets +++ b/api/arkui/component/text.static.d.ets @@ -176,13 +176,13 @@ export declare interface TextAttribute extends CommonMethod { /** * Called when the font weight is set. * - * @param { number | FontWeight | string } weight - * @param { FontSettingOptions } options - font setting options. + * @param { number | FontWeight | ResourceStr | undefined } weight + * @param { FontSettingOptions | undefined } [options] - font setting options. * @returns { TextAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - default fontWeight(weight: number | FontWeight | string | undefined, options?: FontSettingOptions | undefined): this; + default fontWeight(weight: number | FontWeight | ResourceStr | undefined, options?: FontSettingOptions | undefined): this; /** * Set font line spacing. * @@ -196,6 +196,16 @@ export declare interface TextAttribute extends CommonMethod { * @since 20 */ default lineSpacing(value: LengthMetrics | undefined): this; + /** + * Set font line spacing with options. + * + * @param { LengthMetrics | undefined } value + * @param { LineSpacingOptions } options + * @returns { TextAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default lineSpacing(value: LengthMetrics | undefined, options?: LineSpacingOptions): this; /** * Called when the horizontal center mode of the font is set. * @@ -599,7 +609,7 @@ export declare interface TextAttribute extends CommonMethod { /** * Set the marquee options. * - * @param { Optional } options + * @param { TextMarqueeOptions | undefined } options * @returns { TextAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 @@ -681,6 +691,15 @@ export declare interface TextAttribute extends CommonMethod { * @since 20 */ default attributeModifier(modifier: AttributeModifier | AttributeModifier | undefined): this; + /** + * Set the shader style of the text, such as lineargradient or radialgradient. + * + * @param { ShaderStyle | undefined } shader - The shader style of the text. + * @returns { TextAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default shaderStyle(shader: ShaderStyle | undefined): this; } /** * Defines span type. diff --git a/api/arkui/component/textArea.static.d.ets b/api/arkui/component/textArea.static.d.ets index 7dfad37fba8ccad9a43bb45d5735148bb9309e29..10372681440db36dcaa213f1be61a33c3f0595fa 100644 --- a/api/arkui/component/textArea.static.d.ets +++ b/api/arkui/component/textArea.static.d.ets @@ -286,12 +286,12 @@ export declare interface TextAreaAttribute extends CommonMethod { /** * Called when the font weight is set. * - * @param { number | FontWeight | string | undefined } value + * @param { number | FontWeight | ResourceStr | undefined } value * @returns { TextAreaAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - default fontWeight(value: number | FontWeight | string | undefined): this; + default fontWeight(value: number | FontWeight | ResourceStr | undefined): this; /** * Called when the font list of text is set. * @@ -762,6 +762,16 @@ export declare interface TextAreaAttribute extends CommonMethod { * @since 20 */ default lineSpacing(value: LengthMetrics | undefined): this; + /** + * Set font line spacing with options. + * + * @param { LengthMetrics | undefined } value + * @param { LineSpacingOptions } options + * @returns { TextAreaAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default lineSpacing(value: LengthMetrics | undefined, options?: LineSpacingOptions): this; /** * Called when the line height of the font is set. * @@ -992,6 +1002,33 @@ export declare interface TextAreaAttribute extends CommonMethod { * @since 20 */ default attributeModifier(modifier: AttributeModifier | AttributeModifier | undefined): this; + /** + * Set the stroke width. + * + * @param { LengthMetrics | undefined } width - indicates the stroke width. + * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default strokeWidth(width: LengthMetrics | undefined): this; + /** + * Set the stroke color. + * + * @param { ResourceColor | undefined } color - indicates the stroke color. + * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default strokeColor(color: ResourceColor | undefined): this; + /** + * Define min lines of the text area. + * + * @param { number | undefined } lines - Min lines of the node + * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default minLines(lines: number | undefined): this; } /** diff --git a/api/arkui/component/textInput.static.d.ets b/api/arkui/component/textInput.static.d.ets index d38c228ed4337d3d53f2caa6d517b5ecd5b00e06..3497f55e02a1c76c628e756130c322f72ec93164 100644 --- a/api/arkui/component/textInput.static.d.ets +++ b/api/arkui/component/textInput.static.d.ets @@ -1009,12 +1009,12 @@ export declare interface TextInputAttribute extends CommonMethod { /** * Called when the font weight is set. * - * @param { number | FontWeight | string | undefined } value + * @param { number | FontWeight | ResourceStr | undefined } value * @returns { TextInputAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - default fontWeight(value: number | FontWeight | string | undefined): this; + default fontWeight(value: number | FontWeight | ResourceStr | undefined): this; /** * Called when the font list of text is set. * @@ -1750,6 +1750,24 @@ export declare interface TextInputAttribute extends CommonMethod { * @since 20 */ attributeModifier(modifier: AttributeModifier | AttributeModifier | undefined): this; + /** + * Set the stroke width. + * + * @param { LengthMetrics | undefined } width - indicates the stroke width. + * @returns { TextInputAttribute } returns the instance of the TextInputAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default strokeWidth(width: LengthMetrics | undefined): this; + /** + * Sets whether enable auto fill animation effect or not. + * + * @param { boolean | undefined } enabled - Indicates the flag whether auto fill animation effect is enabled. + * @returns { TextInputAttribute } Returns the instance of the TextInputAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default enableAutoFillAnimation(enabled: boolean | undefined): this; } /**