ViewTreeWalkerValue
interface
Object returned by ViewTreeWalker when traversing tree view.
Properties
module:engine/view/treewalker~ViewTreeWalkerValue#itemItem between the old and the new positions of the tree walker.
length : number | undefinedmodule:engine/view/treewalker~ViewTreeWalkerValue#lengthLength of the item. For
'elementStart'it is1. For'text'it is the length of that text. For'elementEnd'it isundefined.module:engine/view/treewalker~ViewTreeWalkerValue#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. - If the position is at the beginning or at the end of the
ViewTextit is always moved from the inside of the text to its parent just before or just after that text.
- Forward iteration: For
module:engine/view/treewalker~ViewTreeWalkerValue#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. - If the position is at the beginning or at the end of the
ViewTextit is always moved from the inside of the text to its parent just before or just after that text.
- Forward iteration: For
module:engine/view/treewalker~ViewTreeWalkerValue#typeType of the step made by
ViewTreeWalker.