MCPcopy Create free account
hub / github.com/breck7/scroll / _getPathVector

Method _getPathVector

external/.scrollLibs.js:15721–15726  ·  view source on GitHub ↗
(relativeTo)

Source from the content-addressed store, hash-verified

15719 return this._getPathVector(relativeTo)
15720 }
15721 _getPathVector(relativeTo) {
15722 if (this.isRoot(relativeTo)) return []
15723 const path = this.parent._getPathVector(relativeTo)
15724 path.push(this.index)
15725 return path
15726 }
15727 get index() {
15728 return this.parent._indexOfParticle(this)
15729 }

Callers 2

getPathVectorMethod · 0.95

Calls 1

isRootMethod · 0.95

Tested by

no test coverage detected