Index Tree Node
IndexTreeNode is the node of IndexTree. It is used to represent the document of text-based editors.
Properties
Functions
Clones the element node with the given issueTimeTicket lambda and value.
Returns the offset of the given node in the children. If includeRemoved is true, it includes removed nodes in the calculation.
getChildrenText returns text value of all text type children.
Inserts the newNode after the targetNode.
Inserts the newNode before the targetNode.
Returns the length of the node including padding. If includeRemoved is true, it includes removed nodes in the calculation.
Removes the given child (physically purges it from the tree).
Updates the size of the ancestors. It is used when the size of the node is changed. If includeRemoved is true, it updates ancestors totalSize including removed nodes.
Updates the size of the descendants. It is used when the tree is newly created and the size of the descendants is not calculated. If includeRemoved is true, it includes removed nodes in the calculation.