react-ngl
Version:
React wrapper for ngl
22 lines (21 loc) • 765 B
TypeScript
import React from 'react';
import { NGL, RepresentationDescriptor } from '../../utils';
export declare const ComponentDefaultParameters: {
name: string;
status: string;
visible: boolean;
};
export declare type ComponentParameters = typeof ComponentDefaultParameters;
export interface ComponentProps {
path: string | File | Blob;
loadFileParams?: Partial<NGL.StageLoadFileParams>;
params?: Partial<NGL.ComponentParameters>;
reprList?: RepresentationDescriptor[];
position?: NGL.Vector3;
quaternion?: NGL.Quaternion;
scale?: number;
transform?: NGL.Matrix4;
onLoad?: (component: NGL.Component | undefined) => void;
onLoadFailure?: (error: Error) => void;
}
export declare const Component: React.FC<ComponentProps>;