> ## Documentation Index
> Fetch the complete documentation index at: https://docs.supernote.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Layer

> Layer data type.

<Note>
  Only note files (`.note`) have layer data. Other file types do not have layer data.
</Note>

| Field            | Type      | Description                                                                                                                                                                                                                                                                                                                                                        |
| ---------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `layerId`        | `number`  | Layer ID:<br />- `-1` background layer: cannot delete, cannot rename, cannot reorder, cannot set as current layer, can set visibility<br />- `0` main layer: cannot delete, cannot rename, can reorder, can set as current layer, can set visibility<br />- `1-3` custom layers: can delete, can rename, can reorder, can set as current layer, can set visibility |
| `name`           | `string`  | Layer name                                                                                                                                                                                                                                                                                                                                                         |
| `isCurrentLayer` | `boolean` | Whether this is the current layer                                                                                                                                                                                                                                                                                                                                  |
| `isVisible`      | `boolean` | Whether this layer is visible                                                                                                                                                                                                                                                                                                                                      |
