UNPKG

molstar

Version:

A comprehensive macromolecular library.

26 lines (25 loc) 908 B
/** * Copyright (c) 2019 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose <alexander.rose@weirdbyte.de> */ import { Interval } from '../../mol-data/int'; import { isEveryLoci } from '../../mol-model/loci'; import { applyMarkerAction } from '../../mol-util/marker-action'; export { SequenceWrapper }; var SequenceWrapper = /** @class */ (function () { function SequenceWrapper(data, markerArray, length) { this.data = data; this.markerArray = markerArray; this.length = length; } SequenceWrapper.prototype.markResidue = function (loci, action) { if (isEveryLoci(loci)) { return applyMarkerAction(this.markerArray, Interval.ofLength(this.length), action); } else { return this.mark(loci, action); } }; return SequenceWrapper; }());