UNPKG

videx-3d

Version:

React 3D component library designed for sub surface visualizations in the browser

21 lines (20 loc) 732 B
import { ReactNode } from 'react'; import { BufferGeometry, Material, Object3D } from 'three'; import { PickResult } from './picking-helper'; export type EmitterCallback = (e: PickResult) => void; /** * EventEmitter props * @expand */ export type EventEmitterProps = { autoUpdate?: boolean; autoUpdateRenderPriority?: number; threshold?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10; onResult?: EmitterCallback; children?: ReactNode; }; export type RenderableObject = Object3D & { material: Material; geometry: BufferGeometry; }; export declare const EventEmitter: ({ autoUpdate, autoUpdateRenderPriority, threshold, onResult, children, }: EventEmitterProps) => import("react/jsx-runtime").JSX.Element;