得到对象屏幕坐标
输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
target | string | 是 | ObjectId | — |
tag | string | 是 | String | — |
selectionIndex | string | 是 | String | — |
输出
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
targetId | string | 是 | — | — |
projectId | string | 是 | — | — |
ScreenObjects | array | 是 | [] | — |
调用
typescript
//调用触发事件
piclient.emit("object.getScreenInfo",{
target: "ObjectId",
tag: "String",
selectionIndex: "String",
})
//监听事件获取回调信息
piclient.on("object.getScreenInfo","",(res) => {
alert(JSON.stringify(res))
})