UNPKG

threepipe

Version:

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

26 lines 1.16 kB
import { BlobExt, ExportFileOptions } from '../../assetmanager'; import { AViewerPluginSync, ThreeViewer } from '../../viewer'; import { UiObjectConfig } from 'uiconfig.js'; export interface ExportAssetOptions extends ExportFileOptions { convertMeshToIndexed?: boolean; name?: string; compress?: boolean; } /** * Asset Exporter Plugin * Provides options and methods to export the scene, object GLB or Viewer Config. * All the functionality is available in the viewer directly, this provides only a ui-config and maintains state of the options. */ export declare class AssetExporterPlugin extends AViewerPluginSync<''> { static readonly PluginType = "AssetExporterPlugin"; enabled: boolean; constructor(); onAdded(viewer: ThreeViewer): void; onRemove(viewer: ThreeViewer): void; readonly exportOptions: ExportAssetOptions; exportScene(options?: ExportAssetOptions): Promise<BlobExt | undefined>; downloadSceneGlb(): Promise<void>; exportSelected(options?: ExportAssetOptions, download?: boolean): Promise<BlobExt | undefined>; uiConfig: UiObjectConfig; } //# sourceMappingURL=AssetExporterPlugin.d.ts.map