Zoom canvas to coordinate
easyeda_canvas_locateZoom the EasyEDA canvas to a coordinate and scale, returning the viewport rectangle. Use to frame locations for capture or navigate to points of interest.
Instructions
Zoom the EasyEDA canvas to a coordinate/scale (document/canvas coordinates), returning the resulting viewport rectangle. Useful to frame a location before calling easyeda_canvas_capture, or standalone to navigate the user's view to a point of interest.
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 |