molstar
Version:
A comprehensive macromolecular library.
22 lines • 748 B
JavaScript
/**
* Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author David Sehnal <david.sehnal@gmail.com>
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ArrayTrajectory = void 0;
var ArrayTrajectory = /** @class */ (function () {
function ArrayTrajectory(frames) {
this.frames = frames;
this.frameCount = frames.length;
this.representative = frames[0];
this.duration = frames.length;
}
ArrayTrajectory.prototype.getFrameAtIndex = function (i) {
return this.frames[i];
};
return ArrayTrajectory;
}());
exports.ArrayTrajectory = ArrayTrajectory;
//# sourceMappingURL=trajectory.js.map
;