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

Method index

packages/core/src/document/node/node.ts:47–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 */
46 @computed
47 get index() {
48 if (!this.parent) {
49 return -1
50 }
51
52 return this.parent!.children!.indexOf(this)
53 }
54
55 /**
56 * z-index level of this node

Callers

nothing calls this directly

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected