Slide kit command

shape.freeform

Freeform

Draws a freeform line or closed filled shape through `points` (slide points), optionally smoothed into curves.

Kit
Slide 0.1.0 (.kslide and .pptx)
Changes the document
yes

Parameters

Parameters of shape.freeform
NameTypeRequiredDescription
closedbooleannofilled shape
onSlideintegernothe slide the ids are on, from 1
pointsnumber[][]no[[x, y], …] in slide points
smoothbooleannocurve through the points

Call through slide_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: closed, onSlide, points, smooth. 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": {
    "closed": {
      "description": "filled shape",
      "type": "boolean"
    },
    "onSlide": {
      "description": "the slide the ids are on, from 1",
      "type": "integer"
    },
    "points": {
      "description": "[[x, y], …] in slide points",
      "items": {
        "items": {
          "type": "number"
        },
        "type": "array"
      },
      "type": "array"
    },
    "smooth": {
      "description": "curve through the points",
      "type": "boolean"
    }
  },
  "returns": "{id}",
  "type": "object"
}

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.