---
title: "element.rotate: Rotate — Board kit command — Kition"
description: "Rotates the elements by degrees clockwise, each about its own centre or all about the selection's centre."
canonical: "https://developer.kition.ai/docs/kits/board/commands/element.rotate"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/board/commands/element.rotate](https://developer.kition.ai/docs/kits/board/commands/element.rotate)

# element.rotate

**Rotate.** Rotates the elements by degrees clockwise, each about its own centre or all about the selection's centre.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `about` | `"each" \| "selection"` | no | Each about its own centre (default) or all about the selection's centre |
| `degrees` | `number (≥ -3600, ≤ 3600)` | yes | Degrees, clockwise |
| `ids` | `string[]` | yes | The elements |

## Call through board_run

```text
board_run {
  "path": "<file>.kboard",
  "steps": [{ "command": "element.rotate", "params": { "degrees": <number>, "ids": <string[]> } }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `about`. board_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": {
    "about": {
      "description": "Each about its own centre (default) or all about the selection's centre",
      "enum": [
        "each",
        "selection"
      ],
      "type": "string"
    },
    "degrees": {
      "description": "Degrees, clockwise",
      "maximum": 3600,
      "minimum": -3600,
      "type": "number"
    },
    "ids": {
      "description": "The elements",
      "items": {
        "type": "string"
      },
      "type": "array",
      "x-khp-types": [
        "Element"
      ]
    }
  },
  "required": [
    "degrees",
    "ids"
  ],
  "type": "object"
}
```

Generated from the command list of @kition/board-darwin-arm64@0.1.0 and the kit itself (board_commands through @kition/cli@0.1.1, built from KitionAI/kition-board@e78c190).
