mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-12-04 13:48:04 +00:00
add interface getLongestLineWithIndent
Signed-off-by: PengKejie <pengkejie@h-partners.com>
(cherry picked from commit d4d1b917cf
)
This commit is contained in:
parent
1da07051e0
commit
080c8fdb83
9
api/@ohos.graphics.text.d.ts
vendored
9
api/@ohos.graphics.text.d.ts
vendored
@ -1217,6 +1217,15 @@ declare namespace text {
|
||||
*/
|
||||
getLongestLine(): number;
|
||||
|
||||
/**
|
||||
* Get the longest line of horizontal space this paragraph occupies, and this horizontal space contains the width
|
||||
* of indent.
|
||||
* @returns { number } The longest line with indent of horizontal space this paragraph occupies.
|
||||
* @syscap SystemCapability.Graphics.Drawing
|
||||
* @since 13
|
||||
*/
|
||||
getLongestLineWithIndent(): number;
|
||||
|
||||
/**
|
||||
* Get the min intrinsic width of horizontal space this paragraph occupies.
|
||||
* @returns { number } The min intrinsic width of horizontal space this paragraph occupies.
|
||||
|
Loading…
Reference in New Issue
Block a user