()
| 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] |
nothing calls this directly
no test coverage detected