MCPcopy Create free account
hub / github.com/SplootCode/splootcode / getChainToRoot

Method getChainToRoot

packages/editor/src/layout/rendered_node.ts:326–331  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

324 }
325
326 getChainToRoot(): number[] {
327 if (this.parentChildSet === null) {
328 return []
329 }
330 return this.parentChildSet.getChainToRoot().concat(this.index)
331 }
332
333 registerCursorPositions(cursorMap: CursorMap) {
334 if (this.parentChildSet !== null && this.layout.boxType !== NodeBoxType.INVISIBLE) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected