Slide kit command
drawing.transform
Transform Drawing Objects
Sets a drawing object's frame, or moves, rotates or flips it, by KitDrawing ids.
- Kit
- Slide 0.1.0 (.kslide and .pptx)
- Changes the document
- yes
- Acts on
ids(a list of ids), which a run step’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
dx | number | no | |
dy | number | no | |
flipH | boolean | no | |
flipV | boolean | no | |
frame | integer | no | |
id | integer | string | no | an id; one object instead of ids |
ids | (integer | string)[] | no | |
onSlide | integer | no | the slide the ids are on, from 1 |
rotateBy | number | no | degrees |
Call through slide_run
text
slide_run {
"path": "<file>.pptx",
"steps": [{ "command": "drawing.transform" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: dx, dy, flipH, flipV, frame, id, ids, onSlide, rotateBy. slide_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": {
"dx": {
"type": "number"
},
"dy": {
"type": "number"
},
"flipH": {
"type": "boolean"
},
"flipV": {
"type": "boolean"
},
"frame": {
"type": "integer"
},
"id": {
"description": "an id; one object instead of ids",
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"x-khp-types": [
"Shape"
]
},
"ids": {
"items": {
"description": "an id",
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
},
"type": "array",
"x-khp-types": [
"Shape"
]
},
"onSlide": {
"description": "the slide the ids are on, from 1",
"type": "integer"
},
"rotateBy": {
"description": "degrees",
"type": "number"
}
},
"type": "object",
"x-khp-position": "independent"
}Generated from the command list of @kition/[email protected] and the kit itself (slide_commands through @kition/[email protected], built from KitionAI/kition-slide@7ef3d11). As data: commands.jsonl.