Slide kit command
drawing.format
Format Drawing Objects
Sets fill, stroke or geometry of drawing objects 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 |
|---|---|---|---|
effects | object | no | {shadow?, glow?} |
fill | any | no | |
geometry | any | 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 |
stroke | any | no |
Call through slide_run
text
slide_run {
"path": "<file>.pptx",
"steps": [{ "command": "drawing.format" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: effects, fill, geometry, id, ids, onSlide, stroke. 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": {
"effects": {
"additionalProperties": true,
"description": "{shadow?, glow?}",
"properties": {
"glow": {},
"shadow": {}
},
"type": "object"
},
"fill": {},
"geometry": {},
"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"
},
"stroke": {}
},
"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.