molstar
Version:
A comprehensive macromolecular library.
18 lines (17 loc) • 786 B
TypeScript
/**
* Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Sukolsak Sakshuwong <sukolsak@stanford.edu>
*/
import { GraphicsRenderObject } from '../../mol-gl/render-object';
import { WebGLContext } from '../../mol-gl/webgl/context';
import { RuntimeContext } from '../../mol-task';
export declare type RenderObjectExportData = {
[k: string]: string | Uint8Array | ArrayBuffer | undefined;
};
export interface RenderObjectExporter<D extends RenderObjectExportData> {
readonly fileExtension: string;
add(renderObject: GraphicsRenderObject, webgl: WebGLContext, ctx: RuntimeContext): Promise<void> | undefined;
getData(ctx: RuntimeContext): Promise<D>;
getBlob(ctx: RuntimeContext): Promise<Blob>;
}