Slide kit command

shape.adjust

Adjust Shape

Sets a preset shape's adjustment handle `index` (corner radius, arrow head size) to `value`. Applies to the shapes in `ids` (on slide `onSlide`, from 1) or else the selection.

Kit
Slide 0.1.0 (.kslide and .pptx)
Changes the document
yes
Acts on
ids (a list of ids), which a run step’s on fills

Parameters

Parameters of shape.adjust
NameTypeRequiredDescription
ids(integer | string)[]no
indexintegernoa position counted from 0 (the first is 0)
onSlideintegernothe slide the ids are on, from 1
valuenumbernothe adjustment value in file units

Call through slide_run

text
slide_run {
  "path": "<file>.pptx",
  "steps": [{ "command": "shape.adjust" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: ids, index, onSlide, value. 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": {
    "ids": {
      "items": {
        "description": "an id",
        "oneOf": [
          {
            "type": "integer"
          },
          {
            "type": "string"
          }
        ]
      },
      "type": "array",
      "x-khp-types": [
        "Shape"
      ]
    },
    "index": {
      "description": "a position counted from 0 (the first is 0)",
      "type": "integer"
    },
    "onSlide": {
      "description": "the slide the ids are on, from 1",
      "type": "integer"
    },
    "value": {
      "description": "the adjustment value in file units",
      "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.