MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / comparePosition

Method comparePosition

packages/core/src/document/node/node.ts:677–679  ·  view source on GitHub ↗

* compare the position of this node and another node * * - 16 thisNode contains otherNode * - 8 thisNode contained_by otherNode * - 2 thisNode before or after otherNode * - 0 thisNode same as otherNode

(otherNode: Node)

Source from the content-addressed store, hash-verified

675 * - 0 thisNode same as otherNode
676 */
677 comparePosition(otherNode: Node) {
678 return comparePosition(this, otherNode)
679 }
680
681 /**
682 * get next sibling node

Callers

nothing calls this directly

Calls 1

comparePositionFunction · 0.85

Tested by

no test coverage detected