MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / comparePosition

Method comparePosition

packages/designer/src/document/node/node.ts:1018–1020  ·  view source on GitHub ↗

* 判断与其它节点的位置关系 * * 16 thisNode contains otherNode * 8 thisNode contained_by otherNode * 2 thisNode before or after otherNode * 0 thisNode same as otherNode

(otherNode: INode)

Source from the content-addressed store, hash-verified

1016 * 0 thisNode same as otherNode
1017 */
1018 comparePosition(otherNode: INode): PositionNO {
1019 return comparePosition(this, otherNode);
1020 }
1021
1022 unlinkSlot(slotNode: INode) {
1023 const i = this._slots.indexOf(slotNode);

Callers 1

node.test.tsFile · 0.80

Calls 1

comparePositionFunction · 0.85

Tested by

no test coverage detected