提交 05d59b4a 编写于 作者: M Mugen87

TS: Improve exporter files.

上级 7221f4b6
import { Object3D } from '../../../src/Three';
export class ColladaExporter {
constructor();
export interface ColladaExporterOptions {
author?: string;
textureDirectory?: string;
version?: string;
}
parse(object: Object3D, onDone: (res: any) => void, options: object): null;
export interface ColladaExporterResult {
data: string;
textures: object[];
}
export class ColladaExporter {
constructor();
parse(object: Object3D, onDone: (res: ColladaExporterResult) => void, options: ColladaExporterOptions): ColladaExporterResult | null;
}
import { Object3D } from '../../../src/Three';
import {
Object3D,
AnimationClip
} from '../../../src/Three';
export interface GLTFExporterOptions {
binary?: boolean;
trs?: boolean;
onlyVisible?: boolean;
truncateDrawRange?: boolean;
embedImages?: boolean;
animations?: AnimationClip[];
forceIndices?: boolean;
forcePowerOfTwoTextures?: boolean;
includeCustomExtensions?: boolean;
}
export class GLTFExporter {
constructor();
constructor();
parse(input: Object3D, onCompleted: (gltf: object) => void, options: object): null;
parse(input: Object3D, onCompleted: (gltf: object) => void, options: GLTFExporterOptions): void;
}
import { Object3D } from '../../../src/Three';
export interface PLYExporterOptions {
binary?: boolean;
excludeAttributes?: string[];
}
export class PLYExporter {
constructor();
constructor();
parse(object: Object3D, onDone: (res: any) => void, options: object): null;
parse(object: Object3D, onDone: (res: string) => void, options: PLYExporterOptions): string | null;
}
import { Object3D } from '../../../src/Three';
export interface STLExporterOptions {
binary?: boolean;
}
export class STLExporter {
constructor();
constructor();
parse(scene: Object3D, options: {});
parse(scene: Object3D, options?: STLExporterOptions): string;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册