eda_pcb_document_navigate_to_region
Navigate the PCB canvas to a specified coordinate region, highlighting the target area with a rectangular indicator to help you locate and focus on relevant board sections.
Instructions
pcb_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 的矩形范围;
本接口不进行缩放操作,但会生成指示定位中心及表示区域范围的矩形框;
此处的单位为数据层面单位,在跨度上等同于画布层面的 mil returns: 操作是否成功
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |