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.
22 lines • 1.55 kB
TypeScript
import { AViewerPluginSync } from '../../viewer';
import { IObject3D } from '../../core';
/**
* Adds support for generating different types of lights and camera objects in the viewer, along with UI to do so.
*
* Custom generators can be added for more object types, check [GeometryGeneratorPlugin](https://threepipe.org/package/plugin-geometry-generator.html) for reference.
* @category Plugins
*/
export declare class Object3DGeneratorPlugin extends AViewerPluginSync {
static readonly PluginType = "Object3DGeneratorPlugin";
enabled: boolean;
toJSON: any;
protected _selectedType: string;
generate(type?: string, params?: any, addToScene?: boolean, select?: boolean): IObject3D<import('../../core').IObject3DEventMap, import('../../core').IGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap> | undefined, import('../../core').IMaterial<import('../../core').IMaterialEventMap> | import('../../core').IMaterial<import('../../core').IMaterialEventMap>[] | undefined>;
generators: Record<string, (params?: any) => IObject3D>;
constructor();
removeObject3DGenerators(prefix: string, refresh?: boolean): this;
removeObject3DGenerator(key: string, refresh?: boolean): this;
addObject3DGenerators(prefix: string, generators: Record<string, (params: any) => IObject3D>, refresh?: boolean): void;
addObject3DGenerator(key: string, generator: (params: any) => IObject3D, refresh?: boolean): void;
}
//# sourceMappingURL=../../src/plugins/extras/Object3DGeneratorPlugin.d.ts.map