eda_sch_document_navigate_to_region
Navigate the schematic canvas to a rectangular region using coordinates. Centers the view on the specified area for targeted inspection.
Instructions
sch_Document.navigateToRegion(left: number, right: number, top: number, bottom: number) -> Promise 定位到画布区域 remarks: 本接口在前端画布上定位到指定的区域;
例如:传入数据为 {left: 0, right: 60, top: 100, bottom: -20} => navigateToRegion(0, 60, 100, -20),
则画布将会定位到以 [30, 40] 为中心的,x 轴方向长度为 60,y 轴方向长度为 120 的矩形范围;
本接口不进行缩放操作,但会生成指示定位中心及表示区域范围的矩形框;
此处的单位跨度为 0.01inch
ADD since EDA v4.2 returns: 操作是否成功
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |