Slide kit command

shape.effects

Shape Effects

Sets shadow, glow, soft edges, reflection, bevel or 3-D rotation effects. The shadow presets: `outer` is Offset: Bottom Right (black at 40 %, blurred 4 pt, 3 pt down and right; subtle by design), `bottom` is Offset: Bottom, `center` is Offset: Center; give {color, blur, dist, dir} (points, degrees) for a stronger one. 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.effects
NameTypeRequiredDescription
bevelanynonone|circle|…
glownumber | object | null | "none"noglow radius in points or custom glow; null or none removes it
ids(integer | string)[]no
onSlideintegernothe slide the ids are on, from 1
reflection"none" | "tight" | "half" | "full"no
resetbooleannoremove every effect
shadowstring | objectnoshadow preset or custom shadow
softEdgesnumber (≥ 0, ≤ 100)nosoft edge radius in points; zero removes it

Call through slide_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: bevel, glow, ids, onSlide, reflection, reset, shadow, softEdges. 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": {
    "bevel": {
      "description": "none|circle|…"
    },
    "glow": {
      "description": "glow radius in points or custom glow; null or none removes it",
      "oneOf": [
        {
          "maximum": 150,
          "minimum": 0,
          "type": "number"
        },
        {
          "additionalProperties": false,
          "properties": {
            "color": {},
            "radius": {
              "maximum": 150,
              "minimum": 0,
              "type": "number"
            }
          },
          "type": "object"
        },
        {
          "type": "null"
        },
        {
          "enum": [
            "none"
          ],
          "type": "string"
        }
      ]
    },
    "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"
    },
    "reflection": {
      "enum": [
        "none",
        "tight",
        "half",
        "full"
      ],
      "type": "string"
    },
    "reset": {
      "description": "remove every effect",
      "type": "boolean"
    },
    "shadow": {
      "description": "shadow preset or custom shadow",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "additionalProperties": false,
          "properties": {
            "blur": {
              "maximum": 200,
              "minimum": 0,
              "type": "number"
            },
            "color": {},
            "dir": {
              "type": "number"
            },
            "dist": {
              "maximum": 200,
              "minimum": 0,
              "type": "number"
            },
            "inner": {
              "type": "boolean"
            }
          },
          "type": "object"
        }
      ]
    },
    "softEdges": {
      "description": "soft edge radius in points; zero removes it",
      "maximum": 100,
      "minimum": 0,
      "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.