# MapperModelToViewPositionEventData

typedef

Data pipeline object that can store and pass data between callbacks. The callback should add the `viewPosition` value to that object with calculated the [view position](module_engine_view_position-ViewPosition.md).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/conversion/mapper.ts#L1339)

<a id="properties">

## Properties

<a id="member-isPhantom">

### `isPhantom?: boolean`

Should be set to `true` if the model position to map is pointing to a place in model tree which no longer exists. For example, it could be an end of a removed model range.

<a id="member-mapper">

### `mapper: Mapper`

Mapper instance that fired the event.

<a id="member-modelPosition">

### `modelPosition: ModelPosition`

The model position.

<a id="member-viewPosition">

### `viewPosition?: ViewPosition`

The callback should add the `viewPosition` value to that object with calculated the [view position](module_engine_view_position-ViewPosition.md).

#### Value

`object`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
