---
title: "drawing.transform: Transform Drawing Objects — Slide kit command — Kition"
description: "Sets a drawing object's frame, or moves, rotates or flips it, by KitDrawing ids."
canonical: "https://developer.kition.ai/docs/kits/slide/commands/drawing.transform"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/slide/commands/drawing.transform](https://developer.kition.ai/docs/kits/slide/commands/drawing.transform)

# drawing.transform

**Transform Drawing Objects.** Sets a drawing object's frame, or moves, rotates or flips it, by KitDrawing ids.

- Kit: Slide 0.1.0 (.kslide and .pptx); reference: [Slide kit commands](https://developer.kition.ai/docs/kits/slide.md)
- Changes the document: yes
- Acts on: `ids` (a list of ids), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `dx` | `number` | no |  |
| `dy` | `number` | no |  |
| `flipH` | `boolean` | no |  |
| `flipV` | `boolean` | no |  |
| `frame` | `integer` | no |  |
| `id` | `integer \| string` | no | an id; one object instead of ids |
| `ids` | `(integer \| string)[]` | no |  |
| `onSlide` | `integer` | no | the slide the ids are on, from 1 |
| `rotateBy` | `number` | no | degrees |

## Call through slide_run

```text
slide_run {
  "path": "<file>.pptx",
  "steps": [{ "command": "drawing.transform" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `dx`, `dy`, `flipH`, `flipV`, `frame`, `id`, `ids`, `onSlide`, `rotateBy`. 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": {
    "dx": {
      "type": "number"
    },
    "dy": {
      "type": "number"
    },
    "flipH": {
      "type": "boolean"
    },
    "flipV": {
      "type": "boolean"
    },
    "frame": {
      "type": "integer"
    },
    "id": {
      "description": "an id; one object instead of ids",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-types": [
        "Shape"
      ]
    },
    "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"
    },
    "rotateBy": {
      "description": "degrees",
      "type": "number"
    }
  },
  "type": "object",
  "x-khp-position": "independent"
}
```

Generated from the command list of @kition/slide-darwin-arm64@0.1.0 and the kit itself (slide_commands through @kition/cli@0.1.1, built from KitionAI/kition-slide@7ef3d11).
