UNPKG

molstar

Version:

A comprehensive macromolecular library.

48 lines (47 loc) 1.89 kB
"use strict"; /** * 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.Functions = exports.Keywords = exports.Operators = exports.Properties = void 0; var tslib_1 = require("tslib"); var properties_1 = require("./properties"); var operators_1 = require("./operators"); var keywords_1 = require("./keywords"); var functions_1 = require("./functions"); exports.Properties = []; for (var name_1 in properties_1.properties) { if (properties_1.properties[name_1].isUnsupported) continue; exports.Properties.push(name_1); if (properties_1.properties[name_1].abbr) exports.Properties.push.apply(exports.Properties, properties_1.properties[name_1].abbr); } exports.Operators = []; operators_1.operators.forEach(function (o) { if (o.isUnsupported) return; exports.Operators.push(o.name); if (o.abbr) exports.Operators.push.apply(exports.Operators, o.abbr); }); exports.Keywords = []; for (var name_2 in keywords_1.keywords) { if (!keywords_1.keywords[name_2].map) continue; exports.Keywords.push(name_2); if (keywords_1.keywords[name_2].abbr) exports.Keywords.push.apply(exports.Keywords, keywords_1.keywords[name_2].abbr); } exports.Functions = []; for (var name_3 in functions_1.functions) { if (!functions_1.functions[name_3].map) continue; exports.Functions.push(name_3); } exports.all = { Properties: exports.Properties, Operators: tslib_1.__spreadArray(tslib_1.__spreadArray([], exports.Operators, true), exports.Functions, true), Keywords: exports.Keywords };