UNPKG

threepipe

Version:

A 3D viewer framework built on top of three.js in TypeScript with a focus on quality rendering, modularity and extensibility.

9 lines (7 loc) 273 B
import {IExportParser} from '../IExporter' import {AnyOptions} from 'ts-browser-helpers' export class SimpleTextExporter implements IExportParser { async parseAsync(obj: any, _: AnyOptions): Promise<Blob> { return new Blob([obj], {type: 'text/plain'}) } }