UNPKG

threepipe

Version:

A modern 3D viewer framework built on top of three.js, written in TypeScript, designed to make creating high-quality, modular, and extensible 3D experiences on the web simple and enjoyable.

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