diff --git a/api/arkui/component/search.static.d.ets b/api/arkui/component/search.static.d.ets index 9ef38d679032ca0c6bebc13890359718f1d12081..8d72e1a08e376b5bee028c30fcd42cd4f6439616 100644 --- a/api/arkui/component/search.static.d.ets +++ b/api/arkui/component/search.static.d.ets @@ -1014,6 +1014,33 @@ export declare interface SearchAttribute extends CommonMethod { * @since 20 */ default keyboardAppearance(appearance: KeyboardAppearance | undefined): this; + /** + * Set the stroke width. + * + * @param { LengthMetrics | undefined } width - indicates the stroke width. + * @returns { SearchAttribute } returns the instance of the SearchAttribute. + * @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 { SearchAttribute } returns the instance of the SearchAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default strokeColor(color: ResourceColor | undefined): this; + /** + * Whether to enable automatic spacing between Chinese and Latin characters. + * + * @param { boolean | undefined } enabled - The default value is false, indicates the flag whether to enable automatic spacing. + * @returns { SearchAttribute } returns the instance of the SearchAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default enableAutoSpacing(enabled: boolean | undefined): this; /** * Sets the attribute modifier. * diff --git a/api/arkui/component/symbolglyph.static.d.ets b/api/arkui/component/symbolglyph.static.d.ets index b6f7d7c26e06c8e42a7a9a07eb0ff97e3f71f172..2e4590cb7a482937ddbb64497e66b9ae74ebe33a 100644 --- a/api/arkui/component/symbolglyph.static.d.ets +++ b/api/arkui/component/symbolglyph.static.d.ets @@ -358,12 +358,21 @@ export declare interface SymbolGlyphAttribute extends CommonMethod { /** * Called when the SymbolGlyph color is set. * - * @param { Array } value + * @param { Array | undefined } value * @returns { SymbolGlyphAttribute } The attribute of the SymbolGlyph. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ default fontColor(value: Array | undefined): this; + /** + * Set the shader style of the symbol, such as lineargradient or radialgradient. + * + * @param { Array | undefined } shaders - The shaders style of the symbol. + * @returns { SymbolGlyphAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default shaderStyle(shaders: Array | undefined): this; /** * Called when the font symbolGlyph weight is set. * @@ -419,6 +428,20 @@ export declare interface SymbolGlyphAttribute extends CommonMethod { * @since 20 */ default maxFontScale(scale: number | Resource | undefined): this; + /** + * Set the shadow of symbol. + * + *

NOTE: + *
This API does not work with the fill attribute, showType attribute or coloring strategy. + *

+ * + * @param { ShadowOptions | undefined } shadow - The shadow options. + * @returns { SymbolGlyphAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 20 + */ + default symbolShadow(shadow: ShadowOptions | undefined): this; /** * Sets the attribute modifier. * diff --git a/api/arkui/component/text.static.d.ets b/api/arkui/component/text.static.d.ets index 1c4e93d13272d778e6007d240d05c27e6aab1bed..2392b393a44b8a1af35a0a9aa18d321387144098 100644 --- a/api/arkui/component/text.static.d.ets +++ b/api/arkui/component/text.static.d.ets @@ -217,6 +217,15 @@ export declare interface TextAttribute extends CommonMethod { * @since 20 */ default textAlign(value: TextAlign | undefined): this; + /** + * Set the vertical align of the text. + * + * @param { TextVerticalAlign | undefined } textVerticalAlign - The default value is BASELINE. + * @returns { TextAttribute } returns the instance of the TextAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default textVerticalAlign(textVerticalAlign: TextVerticalAlign | undefined): this; /** * Called when the vertical center mode of the font is set. * @@ -672,6 +681,24 @@ export declare interface TextAttribute extends CommonMethod { * @since 20 */ default enableHapticFeedback(isEnabled: boolean | undefined): this; + /** + * Set whether to optimize the trailing spaces at the end of each line during text layout. + * + * @param { boolean | undefined } optimize + * @returns { TextAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default optimizeTrailingSpace(optimize: boolean | undefined): this; + /** + * Whether to enable automatic spacing between Chinese and Latin characters. + * + * @param { boolean | undefined } enabled - The default value is false, indicates the flag whether to enable automatic spacing. + * @returns { TextAttribute } returns the instance of the TextAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default enableAutoSpacing(enabled: boolean | undefined): this; /** * Sets the attribute modifier. * @@ -681,6 +708,15 @@ export declare interface TextAttribute extends CommonMethod { * @since 20 */ default attributeModifier(modifier: AttributeModifier | AttributeModifier | undefined): this; + /** + * Set text transition. + * + * @param { ContentTransition | undefined } transition - The transition of text. + * @returns { TextAttribute } returns the instance of the TextAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default contentTransition(transition: ContentTransition | 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..087c470a27f07b3b1baa0188488cedd519e03e7b 100644 --- a/api/arkui/component/textArea.static.d.ets +++ b/api/arkui/component/textArea.static.d.ets @@ -672,6 +672,16 @@ export declare interface TextAreaAttribute extends CommonMethod { * @since 20 */ default maxLines(value: number | undefined): this; + /** + * Define max lines of the text area, behavior can be displayed as the scrolling capability. + * + * @param { number | undefined} lines - Max lines of the node + * @param { MaxLinesOptions | undefined } options - max lines of setting options. + * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default maxLines(lines: number | undefined, options: MaxLinesOptions | undefined): this; /** * Set the word break type. * @@ -983,6 +993,15 @@ export declare interface TextAreaAttribute extends CommonMethod { * @since 20 */ default keyboardAppearance(appearance: KeyboardAppearance | undefined): this; + /** + * Whether to enable automatic spacing between Chinese and Latin characters. + * + * @param { boolean | undefined } enabled - The default value is false, indicates the flag whether to enable automatic spacing. + * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default enableAutoSpacing(enabled: boolean | undefined): this; /** * Sets the attribute modifier. * diff --git a/api/arkui/component/textInput.static.d.ets b/api/arkui/component/textInput.static.d.ets index d38c228ed4337d3d53f2caa6d517b5ecd5b00e06..323b65c45c16455ff2aa61391c1553011535596c 100644 --- a/api/arkui/component/textInput.static.d.ets +++ b/api/arkui/component/textInput.static.d.ets @@ -1741,6 +1741,24 @@ export declare interface TextInputAttribute extends CommonMethod { * @since 20 */ default keyboardAppearance(appearance: KeyboardAppearance | undefined): this; + /** + * Set the stroke color. + * + * @param { ResourceColor | undefined } color - indicates the stroke color. + * @returns { TextInputAttribute } returns the instance of the TextInputAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default strokeColor(color: ResourceColor | undefined): this; + /** + * Whether to enable automatic spacing between Chinese and Latin characters. + * + * @param { boolean | undefined } enabled - The default value is false, indicates the flag whether to enable automatic spacing. + * @returns { TextInputAttribute } returns the instance of the TextInputAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + default enableAutoSpacing(enabled: boolean | undefined): this; /** * Sets the attribute modifier. *