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

Method pathVectorToCuePath

external/.scrollLibs.js:16320–16330  ·  view source on GitHub ↗
(pathVector)

Source from the content-addressed store, hash-verified

16318 return ancestorParticles
16319 }
16320 pathVectorToCuePath(pathVector) {
16321 const path = pathVector.slice() // copy array
16322 const names = []
16323 let particle = this
16324 while (path.length) {
16325 if (!particle) return names
16326 names.push(particle.particleAt(path[0]).cue)
16327 particle = particle.particleAt(path.shift())
16328 }
16329 return names
16330 }
16331 toStringWithLineNumbers() {
16332 return this.toString()
16333 .split("\n")

Callers

nothing calls this directly

Calls 3

sliceMethod · 0.80
particleAtMethod · 0.80
shiftMethod · 0.80

Tested by

no test coverage detected