Board kit command
element.resize
Resize
Gives one element, or several scaled together, a new box [x0, y0, x1, y1] in board units.
- Kit
- Board 0.1.0 (.kboard)
- Changes the document
- yes
- Acts on
id(one id), which a run step’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
box | number[] | yes | The new box [x0, y0, x1, y1]: the element's unrotated box, or the selection's bounds with ids |
id | string | no | The element (or ids) |
ids | string[] | no | Elements to scale together (instead of id) |
Call through board_run
text
board_run {
"path": "<file>.kboard",
"steps": [{ "command": "element.resize", "params": { "box": <number[]> } }]
}The required parameters, with placeholders for their types: not a tested example. Optional: id, ids. board_run answers the step’s result in completed[i].result.
Result
The kit gives no result schema for this command.
Parameter schema
json
{
"additionalProperties": false,
"properties": {
"box": {
"description": "The new box [x0, y0, x1, y1]: the element's unrotated box, or the selection's bounds with ids",
"items": {
"description": "Coordinate",
"maximum": 1000000,
"minimum": -1000000,
"type": "number"
},
"type": "array"
},
"id": {
"description": "The element (or ids)",
"type": "string",
"x-khp-types": [
"Element"
]
},
"ids": {
"description": "Elements to scale together (instead of id)",
"items": {
"type": "string"
},
"type": "array",
"x-khp-types": [
"Element"
]
}
},
"required": [
"box"
],
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (board_commands through @kition/[email protected], built from KitionAI/kition-board@e78c190). As data: commands.jsonl.