未验证 提交 ee96226f 编写于 作者: O openharmony_ci 提交者: Gitee

!21410 【新增功能】提供获取组件绘制区域坐标和大小的能力

Merge pull request !21410 from huangdong/re
# @ohos.componentUtils (componentUtils) # @ohos.arkui.componentUtils (componentUtils)
提供获取组件绘制区域坐标和大小的能力。 提供获取组件绘制区域坐标和大小的能力。
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
## 导入模块 ## 导入模块
```js ```js
import componentUtils from '@ohos.componentUtils' import componentUtils from '@ohos.arkui.componentUtils'
``` ```
## componentUtils.getRectangleById ## componentUtils.getRectangleById
...@@ -142,7 +142,7 @@ let modePosition = componentUtils.getRectangleById("onClick"); ...@@ -142,7 +142,7 @@ let modePosition = componentUtils.getRectangleById("onClick");
```js ```js
import matrix4 from '@ohos.matrix4'; import matrix4 from '@ohos.matrix4';
import componentUtils from '@ohos.componentUtils'; import componentUtils from '@ohos.arkui.componentUtils';
@Entry @Entry
@Component @Component
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册