UNPKG

molstar

Version:

A comprehensive macromolecular library.

33 lines (32 loc) 1.49 kB
"use strict"; /** * Copyright (c) 2018-2020 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Michal Malý <michal.maly@ibt.cas.cz> * @author Jiří Černý <jiri.cerny@ibt.cas.cz> */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ConfalPyramidsTypes = void 0; var location_1 = require("../../../mol-model/location"); var loci_1 = require("../../../mol-model/loci"); var behavior_1 = require("./behavior"); var ConfalPyramidsTypes; (function (ConfalPyramidsTypes) { ConfalPyramidsTypes.DataTag = 'dnatco-confal-half-pyramid'; function Location(step, isLower) { return (0, location_1.DataLocation)(ConfalPyramidsTypes.DataTag, { step: step, isLower: isLower }, {}); } ConfalPyramidsTypes.Location = Location; function isLocation(x) { return !!x && x.kind === 'data-location' && x.tag === ConfalPyramidsTypes.DataTag; } ConfalPyramidsTypes.isLocation = isLocation; function Loci(data, elements) { return (0, loci_1.DataLoci)(ConfalPyramidsTypes.DataTag, data, elements, undefined, function () { return (0, behavior_1.confalPyramidLabel)(data); }); } ConfalPyramidsTypes.Loci = Loci; function isLoci(x) { return !!x && x.kind === 'data-loci' && x.tag === ConfalPyramidsTypes.DataTag; } ConfalPyramidsTypes.isLoci = isLoci; })(ConfalPyramidsTypes = exports.ConfalPyramidsTypes || (exports.ConfalPyramidsTypes = {}));