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

Method getAtomPaintAtPosition

external/.scrollLibs.js:18408–18412  ·  view source on GitHub ↗
(lineIndex, atomIndex)

Source from the content-addressed store, hash-verified

18406 return this.topDownArray.map(subparticle => subparticle.constructor.name + this.atomBreakSymbol + subparticle.indentation + subparticle.getLine()).join("\n")
18407 }
18408 getAtomPaintAtPosition(lineIndex, atomIndex) {
18409 this._initAtomTypeCache()
18410 const typeParticle = this._cache_paintParticles.topDownArray[lineIndex - 1]
18411 return typeParticle ? typeParticle.getAtom(atomIndex - 1) : undefined
18412 }
18413 _initAtomTypeCache() {
18414 const particleMTime = this.getLineOrSubparticlesModifiedTime()
18415 if (this._cache_programAtomTypeStringMTime === particleMTime) return undefined

Callers 1

_getAtomStyleMethod · 0.80

Calls 2

_initAtomTypeCacheMethod · 0.95
getAtomMethod · 0.45

Tested by

no test coverage detected