From b718826bde48c9932c733f29787a49a871549554 Mon Sep 17 00:00:00 2001 From: tzcurtain Date: Fri, 25 Jul 2025 16:31:06 +0800 Subject: [PATCH] add paragraph import define Signed-off-by: tzcurtain --- api/@internal/component/ets/text_common.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/api/@internal/component/ets/text_common.d.ts b/api/@internal/component/ets/text_common.d.ts index da0a2e01d1..da5c53dbe4 100644 --- a/api/@internal/component/ets/text_common.d.ts +++ b/api/@internal/component/ets/text_common.d.ts @@ -891,6 +891,16 @@ declare type RectHeightStyle = import('../api/@ohos.graphics.text').default.Rect */ declare type TextBox = import('../api/@ohos.graphics.text').default.TextBox; +/** + * The Paragraph type provide detailed information about a paragraph, + * including properties such as line count, line height and other relevant metrics. + * + * @typedef { import('../api/@ohos.graphics.text').default.Paragraph } Paragraph + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +declare type Paragraph = import('../api/@ohos.graphics.text').default.Paragraph; + /** * Defines the cursor style * -- Gitee