eda_dmt_editor_control_zoom
Adjusts the canvas zoom to a specified percentage. Returns the zoomed area coordinates, or false when the operation is unsupported or the target tab is missing.
Instructions
dmt_EditorControl.zoom(percent: number, tabId?: string) -> { left: number; right: number; top: number; bottom: number } | false
设置缩放比例
remarks: 在返回数据中,原理图、符号画布坐标单位跨度为 0.01inch,PCB、封装画布坐标单位跨度为 mil
returns: 缩放到的区域数据,false 表示画布不支持该缩放操作或 tabId 不存在
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |