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.
Properties
-
isPhantom : boolean | undefined
module:engine/conversion/mapper~MapperModelToViewPositionEventData#isPhantom
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. -
module:engine/conversion/mapper~MapperModelToViewPositionEventData#mapper
Mapper instance that fired the event.
-
module:engine/conversion/mapper~MapperModelToViewPositionEventData#modelPosition
The model position.
-
viewPosition : ViewPosition | undefined
module:engine/conversion/mapper~MapperModelToViewPositionEventData#viewPosition
The callback should add the
viewPosition
value to that object with calculated the view position.