CAD kit command
view.pan
Pan
Moves the view by a delta, from one point to another, or to a new centre, without changing the zoom.
- Kit
- CAD 0.1.0 (.dxf)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
center | number[] | no | |
delta | number[] | no | [dx, dy]; in one of several forms of the parameters |
from | number[] | no | |
to | number[] | no |
Call through cad_run
text
cad_run {
"path": "<file>.dxf",
"steps": [{ "command": "view.pan" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: center, delta, from, to. cad_run answers the step’s result in completed[i].result.
Result
Result JSON Schema
json
{
"description": "nothing; the view changes",
"type": "null"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"center": {
"items": {
"type": "number"
},
"type": "array"
},
"delta": {
"description": "[dx, dy]; in one of several forms of the parameters",
"items": {
"type": "number"
},
"type": "array"
},
"from": {
"items": {
"type": "number"
},
"type": "array"
},
"to": {
"items": {
"type": "number"
},
"type": "array"
}
},
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (cad_commands through @kition/[email protected], built from KitionAI/kition-cad@1ec542d). As data: commands.jsonl.