---
title: "project.freeform.layout: Freeform Layout — Film kit command — Kition"
description: "Reads the Freeform card positions and sizes of `bin`'s items (auto-placed ones included) for a panel `width`."
canonical: "https://developer.kition.ai/docs/kits/film/commands/project.freeform.layout"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/film/commands/project.freeform.layout](https://developer.kition.ai/docs/kits/film/commands/project.freeform.layout)

# project.freeform.layout

**Freeform Layout.** Reads the Freeform card positions and sizes of `bin`'s items (auto-placed ones included) for a panel `width`.

- Kit: Film 0.1.0 (.kfilm); reference: [Film kit commands](https://developer.kition.ai/docs/kits/film.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `bin` | `integer` | no | binId? |
| `width` | `number` | no |  |

## Call through film_run

```text
film_run {
  "path": "<file>.kfilm",
  "steps": [{ "command": "project.freeform.layout" }]
}
```

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `bin` | `any` | no |  |
| `cards` | `object[]` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "bin": {},
    "cards": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "item": {
            "type": "integer"
          },
          "placed": {
            "type": "boolean"
          },
          "size": {
            "type": "number"
          },
          "stack": {},
          "x": {
            "type": "number"
          },
          "y": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "bin": {
      "description": "binId?",
      "type": "integer",
      "x-khp-types": [
        "Bin"
      ]
    },
    "width": {
      "type": "number"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/film-darwin-arm64@0.1.0 and the kit itself (film_commands through @kition/cli@0.1.1, built from KitionAI/kition-film@375db59).
