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

Method atomTypeDefinitions

external/.scrollLibs.js:19942–19949  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19940`
19941 }
19942 get atomTypeDefinitions() {
19943 if (this._cache_atomTypes) return this._cache_atomTypes
19944 const types = {}
19945 // todo: add built in atom types?
19946 this.getSubparticlesByParser(atomTypeDefinitionParser).forEach(type => (types[type.atomTypeId] = type))
19947 this._cache_atomTypes = types
19948 return types
19949 }
19950 getAtomTypeDefinitionById(atomTypeId) {
19951 // todo: return unknownAtomTypeDefinition? or is that handled somewhere else?
19952 return this.atomTypeDefinitions[atomTypeId]

Callers

nothing calls this directly

Calls 2

forEachMethod · 0.80

Tested by

no test coverage detected