Slide kit command
animation.timing
Timing
Sets start (on click, with or after previous), duration and delay of animation `index` or the selected shapes' animations. Appear and Disappear happen at once and take no duration, as a .pptx stores none for them: a duration given to them stays 0.
- Kit
- Slide 0.1.0 (.kslide and .pptx)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
delay | number (≥ 0, ≤ 600000) | no | milliseconds |
duration | number (≥ 0, ≤ 600000) | no | milliseconds |
index | integer | no | a position counted from 0 (the first is 0); else selected shapes |
repeat | integer (≥ 0, ≤ 4294967295) | no | |
rewind | boolean | no | |
start | "onClick" | "withPrevious" | "afterPrevious" | no | |
trigger | integer | string | null | no | start on a click on this shape; null for the slide's click order |
Call through slide_run
text
slide_run {
"path": "<file>.pptx",
"steps": [{ "command": "animation.timing" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: delay, duration, index, repeat, rewind, start, trigger. 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": {
"delay": {
"description": "milliseconds",
"maximum": 600000,
"minimum": 0,
"type": "number"
},
"duration": {
"description": "milliseconds",
"maximum": 600000,
"minimum": 0,
"type": "number"
},
"index": {
"description": "a position counted from 0 (the first is 0); else selected shapes",
"type": "integer"
},
"repeat": {
"maximum": 4294967295,
"minimum": 0,
"type": "integer"
},
"rewind": {
"type": "boolean"
},
"start": {
"enum": [
"onClick",
"withPrevious",
"afterPrevious"
],
"type": "string"
},
"trigger": {
"description": "start on a click on this shape; null for the slide's click order",
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
},
{
"type": "null"
}
],
"x-khp-types": [
"Shape"
]
}
},
"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.