> For the complete documentation index, see [llms.txt](/llms.txt).
> The full corpus is at [llms-full.txt](/llms-full.txt).

# DecorationMapping

> **DecorationMapping** = `object`

Defined in: packages/editor/src/types/editor.ts:313

What one engine operation did to one registered decoration's range.

:::caution[Beta]
This API should not be used in production and may be trimmed from a public release.
:::

## Properties

### contentTouched

> **contentTouched**: `boolean`

Defined in: packages/editor/src/types/editor.ts:325

Whether the operation changed content inside `previousRange`.

***

### id

> **id**: `string`

Defined in: packages/editor/src/types/editor.ts:315

The decoration's `id`, matching the `Decoration` it describes.

***

### newRange

> **newRange**: `NonNullable`\<[`EditorSelection`](/api/editor/type-aliases/editorselection/)\> \| `null`

Defined in: packages/editor/src/types/editor.ts:323

The range after the operation. `null` means the operation destroyed
the decoration. Undo does not revive it: an `update()` with a
different range (or a drop and re-add) is required.

***

### origin

> **origin**: `"local"` \| `"remote"`

Defined in: packages/editor/src/types/editor.ts:327

Whether the operation came from a local edit or a remote one.

***

### previousRange

> **previousRange**: `NonNullable`\<[`EditorSelection`](/api/editor/type-aliases/editorselection/)\>

Defined in: packages/editor/src/types/editor.ts:317

The range the decoration held before the operation.