Zoom canvas to coordinate
easyeda_canvas_locateZooms the EasyEDA canvas to specified x/y coordinates at a given scale ratio, changing the user's viewport for PCB or schematic inspection.
Instructions
Zoom canvas to x/y (PCB/footprint: mil; schematic/symbol: 0.01 inch). scaleRatio 200 means 200%. Returned viewport bounds use requested document units only when center-based 1x/10x scaling is verified; otherwise the unit is unverified. Changes the user's viewport.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "easyeda_canvas_locate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| tabId | No | ||
| scaleRatio | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| left | No | ||
| error | No | ||
| right | No | ||
| bottom | No | ||
| located | Yes | ||
| not_available | No | ||
| viewport_unit | No | ||
| coordinate_alignment | No | ||
| viewport_scale_applied | No |