From bc4e2db70d0f0ce21fb812a60f75f5ef2f7083ca Mon Sep 17 00:00:00 2001 From: lemon_u Date: Thu, 13 Mar 2025 14:20:49 +0800 Subject: [PATCH] add api Signed-off-by: lemon_u --- api/@ohos.graphics.text.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/@ohos.graphics.text.d.ts b/api/@ohos.graphics.text.d.ts index edaf344f7d..afd3a8209e 100755 --- a/api/@ohos.graphics.text.d.ts +++ b/api/@ohos.graphics.text.d.ts @@ -1059,6 +1059,14 @@ declare namespace text { * @since 18 */ tab?: TextTab; + + /** + * Sets whether to trim excess whitespace at the end of each line for text typography. + * @type { ?boolean } it is boolean type data + * @syscap SystemCapability.Graphics.Drawing + * @since 20 + */ + trimLineEndSpace?: boolean; } /** -- Gitee