From 1c88c18ea2bb8f6762f0660c263d1c313677b6d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=82=96=E5=B8=85?= Date: Fri, 1 Jul 2022 16:37:48 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20ba5d991=20from=20https://gitee.com/crea?= =?UTF-8?q?zydog/interface=5Fsdk-js/pulls/2073=20Signed-off-by:=20?= =?UTF-8?q?=E8=82=96=E5=B8=85=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes to be committed: modified: api/@ohos.uitest.d.ts --- api/@ohos.uitest.d.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/api/@ohos.uitest.d.ts b/api/@ohos.uitest.d.ts index 9b40a88f38..237ac9e789 100644 --- a/api/@ohos.uitest.d.ts +++ b/api/@ohos.uitest.d.ts @@ -471,6 +471,24 @@ class UiComponent{ * @test */ dragTo(target: UiComponent): Promise; + + /** + * Pinch enlarge this {@link UiComponent} to the target scale. + * @syscap SystemCapability.Test.UiTest + * @param scale the scale of the pinch enlarge this {@link UiComponent}'s size. + * @since 9 + * @test + */ + pinchOut(scale: number): Promise; + + /** + * Pinch shrink this {@link UiComponent} to the target scale. + * @syscap SystemCapability.Test.UiTest + * @param scale the scale of the pinch shrink this {@link UiComponent}'s size. + * @since 9 + * @test + */ + pinchIn(scale: number): Promise; } /** -- Gitee