molstar
Version:
A comprehensive macromolecular library.
40 lines (39 loc) • 1.43 kB
JavaScript
/**
* Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @author Panagiotis Tourlas <panagiot_tourlov@hotmail.com>
*
* Adapted from MolQL project
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.all = exports.Keywords = exports.Operators = exports.Properties = void 0;
const properties_1 = require("./properties");
const operators_1 = require("./operators");
const keywords_1 = require("./keywords");
exports.Properties = [];
for (const name in properties_1.properties) {
if (properties_1.properties[name].isUnsupported)
continue;
exports.Properties.push(name);
if (properties_1.properties[name].abbr)
exports.Properties.push(...properties_1.properties[name].abbr);
}
exports.Operators = [];
operators_1.operators.forEach(o => {
if (o.isUnsupported)
return;
exports.Operators.push(o.name);
if (o.abbr)
exports.Operators.push(...o.abbr);
});
exports.Keywords = [];
for (const name in keywords_1.keywords) {
if (!keywords_1.keywords[name].map)
continue;
exports.Keywords.push(name);
if (keywords_1.keywords[name].abbr)
exports.Keywords.push(...keywords_1.keywords[name].abbr);
}
exports.all = { Properties: exports.Properties, Operators: [...exports.Operators, 'of'], Keywords: exports.Keywords };
;