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

Method getLineAtomPreludeTypes

external/.scrollLibs.js:18477–18485  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18475 return this.parsedAtoms.map(slot => slot.atomTypeId).join(" ")
18476 }
18477 getLineAtomPreludeTypes() {
18478 return this.parsedAtoms
18479 .map(slot => {
18480 const def = slot.atomTypeDefinition
18481 //todo: cleanup
18482 return def ? def.preludeKindId : PreludeAtomTypeIds.anyAtom
18483 })
18484 .join(" ")
18485 }
18486 getLinePaints(defaultScope = "source") {
18487 return this.parsedAtoms.map(slot => slot.paint || defaultScope).join(" ")
18488 }

Calls 2

mapMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected