ModelTreeWalkerValue
interface
Object returned by ModelTreeWalker when traversing tree model.
Properties
module:engine/model/treewalker~ModelTreeWalkerValue#itemItem between old and new positions of
ModelTreeWalker.length : number | undefinedmodule:engine/model/treewalker~ModelTreeWalkerValue#lengthLength of the item. For
'elementStart'it is 1. For'text'it is the length of the text. For'elementEnd'it isundefined.module:engine/model/treewalker~ModelTreeWalkerValue#nextPositionNext position of the iterator.
- Forward iteration: For
'elementStart'it is the first position inside the element. For all other types it is the position after the item. - Backward iteration: For
'elementEnd'it is last position inside element. For all other types it is the position before the item.
- Forward iteration: For
module:engine/model/treewalker~ModelTreeWalkerValue#previousPositionPrevious position of the iterator.
- Forward iteration: For
'elementEnd'it is the last position inside the element. For all other types it is the position before the item. - Backward iteration: For
'elementStart'it is the first position inside the element. For all other types it is the position after item.
- Forward iteration: For
module:engine/model/treewalker~ModelTreeWalkerValue#type