UNPKG

@metacell/geppetto-meta-ui

Version:

React components from geppetto-meta to create neuroscience applications and visualize data.

37 lines (36 loc) 947 B
import { MeshProps, MeshStandardMaterialProps } from "@react-three/fiber"; import React from "react"; import { type FC } from "react"; export interface Object3D { id?: string; url: string; opts?: { material?: MeshStandardMaterialProps; mesh?: MeshProps; }; highlightOnClick?: { thickness?: number; color?: string; } | boolean; } type STLViewerProps = { objects: Object3D[]; frustumCulled?: boolean; onLoadError?: (reasons: Array<{ error: Error; object: Object3D; }>) => void; }; type Canvas3DProps = { children?: any; defaultLightOff?: boolean; object3dUrls?: Array<Object3D | string>; onLoadError?: (reasons: Array<{ error: Error; object: Object3D; }>) => void; nonInteractive?: boolean; }; declare const STLViewer: FC<STLViewerProps>; export default STLViewer; export declare const Canvas3D: React.FC<Canvas3DProps>;