molstar
Version:
A comprehensive macromolecular library.
20 lines (19 loc) • 720 B
JavaScript
/**
* Copyright (c) 2017 Mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author David Sehnal <david.sehnal@gmail.com>
*/
import { core } from './symbol-table/core';
import { structureQuery } from './symbol-table/structure-query';
import { internal } from './symbol-table/internal';
import { normalizeTable, symbolList } from './helpers';
const MolScriptSymbolTable = { core, structureQuery, internal };
normalizeTable(MolScriptSymbolTable);
export const SymbolList = symbolList(MolScriptSymbolTable);
export const SymbolMap = (function () {
const map = Object.create(null);
for (const s of SymbolList)
map[s.id] = s;
return map;
})();
export { MolScriptSymbolTable };