Return a new point with its path, key and offset set to new values.
π€ When using point.moveTo, since the point isn't aware of the document, it's possible it will become "unset" if the path or key changes and need to be re-normalized relative to the document using point.normalize(document).
moveToEndOfNode
moveToEndOfNode(node: Node) => Point
Return a new point at the end of a node.
π€ This method may need to be followed by point.normalize(document), like moveTo.
moveToStartOfNode
moveToStartOfNode(node: Node) => Point
Return a new point at the start of a node.
π€ This method may need to be followed by point.normalize(document), like moveTo.
normalize
normalize(node: Node) => Point
Normalize the point relative to a node, ensuring that its key and path are in sync, that its offset is valid, and that it references a leaf text node.
setKey
setKey(key: String|Null) => Point
Return a new point with a new key.
setOffset
setOffset(offset: Number|Null) => Point
Return a new point with a new offset.
setPath
setPath(path: List|Array|Null) => Point
Return a new point with a new path.
unset
unset() => Point
Return a new point with the key, path, and offset all set to null.