---
title: "element.resize: Resize — Board kit command — Kition"
description: "Gives one element, or several scaled together, a new box [x0, y0, x1, y1] in board units."
canonical: "https://developer.kition.ai/docs/kits/board/commands/element.resize"
---

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

# element.resize

**Resize.** Gives one element, or several scaled together, a new box [x0, y0, x1, y1] in board units.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `box` | `number[]` | yes | The new box [x0, y0, x1, y1]: the element's unrotated box, or the selection's bounds with ids |
| `id` | `string` | no | The element (or ids) |
| `ids` | `string[]` | no | Elements to scale together (instead of id) |

## Call through board_run

```text
board_run {
  "path": "<file>.kboard",
  "steps": [{ "command": "element.resize", "params": { "box": <number[]> } }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `id`, `ids`. 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": {
    "box": {
      "description": "The new box [x0, y0, x1, y1]: the element's unrotated box, or the selection's bounds with ids",
      "items": {
        "description": "Coordinate",
        "maximum": 1000000,
        "minimum": -1000000,
        "type": "number"
      },
      "type": "array"
    },
    "id": {
      "description": "The element (or ids)",
      "type": "string",
      "x-khp-types": [
        "Element"
      ]
    },
    "ids": {
      "description": "Elements to scale together (instead of id)",
      "items": {
        "type": "string"
      },
      "type": "array",
      "x-khp-types": [
        "Element"
      ]
    }
  },
  "required": [
    "box"
  ],
  "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).
