Board kit command
frame.add
Frame
Makes a frame with a box and title and moves the named elements into it; frames group content and export as one area.
- Kit
- Board 0.1.0 (.kboard)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
box | number[] | yes | The frame's box [x0, y0, x1, y1] |
children | string[] | no | Elements to put in the frame |
page | string | no | The page's id; the shown page when absent |
title | string | no | The frame's title |
Call through board_run
text
board_run {
"path": "<file>.kboard",
"steps": [{ "command": "frame.add", "params": { "box": <number[]> } }]
}The required parameters, with placeholders for their types: not a tested example. Optional: children, page, title. 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 frame's box [x0, y0, x1, y1]",
"items": {
"description": "Coordinate",
"maximum": 1000000,
"minimum": -1000000,
"type": "number"
},
"type": "array"
},
"children": {
"description": "Elements to put in the frame",
"items": {
"type": "string"
},
"type": "array",
"x-khp-types": [
"Element"
]
},
"page": {
"description": "The page's id; the shown page when absent",
"type": "string",
"x-khp-types": [
"Page"
]
},
"title": {
"description": "The frame's title",
"type": "string"
}
},
"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.