/** * Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Sukolsak Sakshuwong */ import { GraphicsRenderObject } from '../../mol-gl/render-object'; import { WebGLContext } from '../../mol-gl/webgl/context'; import { RuntimeContext } from '../../mol-task'; export type RenderObjectExportData = { [k: string]: string | Uint8Array | ArrayBuffer | undefined } export interface RenderObjectExporter { readonly fileExtension: string add(renderObject: GraphicsRenderObject, webgl: WebGLContext, ctx: RuntimeContext): Promise | undefined getData(ctx: RuntimeContext): Promise getBlob(ctx: RuntimeContext): Promise }