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

Method getAtomProperties

external/.scrollLibs.js:15573–15581  ·  view source on GitHub ↗
(atomIndex)

Source from the content-addressed store, hash-verified

15571 return particle
15572 }
15573 getAtomProperties(atomIndex) {
15574 const start = this._getAtomIndexCharacterStartPosition(atomIndex)
15575 const atom = atomIndex < 0 ? "" : this.getAtom(atomIndex)
15576 return {
15577 startCharIndex: start,
15578 endCharIndex: start + atom.length,
15579 atom: atom
15580 }
15581 }
15582 fill(fill = "") {
15583 this.topDownArray.forEach(line => {
15584 line.atoms.forEach((atom, index) => line.setAtom(index, fill))

Callers 1

Calls 2

getAtomMethod · 0.95

Tested by

no test coverage detected