Design kit command
guide.add
Add guide
Adds a vertical or horizontal ruler guide at an offset on a frame or the page; answers its index.
- Kit
- Design 0.1.0 (.kdesign)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
frame | integer | no | one of several alternative parameters |
offset | number | no | |
page | integer | no | one of several alternative parameters |
vertical | boolean | no |
Call through design_run
text
design_run {
"path": "<file>.kdesign",
"steps": [{ "command": "guide.add" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: frame, offset, page, vertical. design_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": {
"frame": {
"description": "one of several alternative parameters",
"type": "integer",
"x-khp-types": [
"Node"
]
},
"offset": {
"type": "number"
},
"page": {
"description": "one of several alternative parameters",
"type": "integer",
"x-khp-types": [
"Node"
]
},
"vertical": {
"type": "boolean"
}
},
"returns": "{index}",
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (design_commands through @kition/[email protected], built from KitionAI/kition-design@abc7e16). As data: commands.jsonl.