# at.inlay.canvas

> Published by [inlay.at](https://lexicon.garden/identity/did:plc:mdg3w2kpadcyxy33pizokzf3)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:mdg3w2kpadcyxy33pizokzf3/at.inlay.canvas)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mdg3w2kpadcyxy33pizokzf3/at.inlay.canvas/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mdg3w2kpadcyxy33pizokzf3/at.inlay.canvas/examples)

## Definitions

### `at.inlay.canvas`

**Type**: `record`

Canvas - a spatial arrangement of component windows.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `windows` | `array` | Yes |  |
| `createdAt` | `string` (datetime) | No |  |
| `overrides` | `array` | No | Ordered DID stack for resolution overrides. DIDs listed here are prepended to every component's import stack during rendering. |

### `at.inlay.canvas#window`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `x` | `integer` | Yes |  |
| `y` | `integer` | Yes |  |
| `z` | `integer` | Yes |  |
| `id` | `string` | Yes |  |
| `props` | `unknown` | No | Properties to pass to the component. |
| `width` | `integer` | No |  |
| `height` | `integer` | No |  |
| `componentUri` | `string` (at-uri) | Yes | AT URI of the component record to render. |

## Raw Schema

```json
{
  "id": "at.inlay.canvas",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "windows"
        ],
        "properties": {
          "windows": {
            "type": "array",
            "items": {
              "ref": "#window",
              "type": "ref"
            }
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "overrides": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "did"
            },
            "description": "Ordered DID stack for resolution overrides. DIDs listed here are prepended to every component's import stack during rendering."
          }
        }
      },
      "description": "Canvas - a spatial arrangement of component windows."
    },
    "window": {
      "type": "object",
      "required": [
        "id",
        "x",
        "y",
        "z",
        "componentUri"
      ],
      "properties": {
        "x": {
          "type": "integer"
        },
        "y": {
          "type": "integer"
        },
        "z": {
          "type": "integer"
        },
        "id": {
          "type": "string",
          "maxLength": 64
        },
        "props": {
          "type": "unknown",
          "description": "Properties to pass to the component."
        },
        "width": {
          "type": "integer"
        },
        "height": {
          "type": "integer"
        },
        "componentUri": {
          "type": "string",
          "format": "at-uri",
          "description": "AT URI of the component record to render."
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
