---
title: "shapeBuilder.regions: Shape builder regions — Design kit command — Kition"
description: "Answers the regions the shape builder sees among the selected or given layers, with their paths, sources and covering paints."
canonical: "https://developer.kition.ai/docs/kits/design/commands/shapeBuilder.regions"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/design/commands/shapeBuilder.regions](https://developer.kition.ai/docs/kits/design/commands/shapeBuilder.regions)

# shapeBuilder.regions

**Shape builder regions.** Answers the regions the shape builder sees among the selected or given layers, with their paths, sources and covering paints.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `ids` | `(integer \| string)[]` | no |  |

## Call through design_run

```text
design_run {
  "path": "<file>.kdesign",
  "steps": [{ "command": "shapeBuilder.regions" }]
}
```

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `regions` | `any[]` | no |  |
| `sources` | `any[]` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "regions": {
      "type": "array"
    },
    "sources": {
      "type": "array"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "ids": {
      "items": {
        "description": "an id",
        "oneOf": [
          {
            "type": "integer"
          },
          {
            "type": "string"
          }
        ]
      },
      "type": "array",
      "x-khp-types": [
        "Node"
      ]
    }
  },
  "returns": "{sources (bottom to top), regions: [{index, path (SVG, page), sources (top-most first), parts: [{id, stroke}] (the fills and outlined strokes covering it, top-most first), bounds [x, y, w, h], point [x, y] inside}]} — visible strokes take part as their outlined areas, so stroked lines and open paths split regions",
  "type": "object"
}
```

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