Slide kit command

comment.place

Place Comment Anchors

Answers where each comment anchor in `anchors` is now: whether its object is found, its slide, and its shape's box or point (in points).

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

Parameters

Parameters of comment.place
NameTypeRequiredDescription
anchorsobject[]no[{ids, range?}]
onSlideintegernothe slide the ids are on, from 1

Call through slide_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: anchors, onSlide. slide_run answers the step’s result in completed[i].result.

Result

Result JSON Schema
json
{
  "type": "array"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "anchors": {
      "description": "[{ids, range?}]",
      "items": {
        "additionalProperties": true,
        "properties": {
          "ids": {
            "items": {
              "description": "an id",
              "oneOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "string"
                }
              ]
            },
            "type": "array"
          },
          "range": {}
        },
        "type": "object"
      },
      "type": "array"
    },
    "onSlide": {
      "description": "the slide the ids are on, from 1",
      "type": "integer"
    }
  },
  "returns": "[{found, slide: index | null, rect: {x, y, width, height} | null, point: {x, y} | null}] (found: the first id still exists; slide and rect where its marker goes now, in slide points; nothing is found before the document has a replica, and placing never makes one)",
  "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.