Initial project import
This commit is contained in:
21
node_modules/@react-three/drei/core/Trail.d.ts
generated
vendored
Normal file
21
node_modules/@react-three/drei/core/Trail.d.ts
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import * as React from 'react';
|
||||
import { ColorRepresentation, Mesh, Object3D } from 'three';
|
||||
import { MeshLineGeometry as MeshLineGeometryImpl } from 'meshline';
|
||||
import { ForwardRefComponent } from '../helpers/ts-utils';
|
||||
type Settings = {
|
||||
width: number;
|
||||
length: number;
|
||||
decay: number;
|
||||
local: boolean;
|
||||
stride: number;
|
||||
interval: number;
|
||||
};
|
||||
export type TrailProps = {
|
||||
color?: ColorRepresentation;
|
||||
attenuation?: (width: number) => number;
|
||||
target?: React.RefObject<Object3D>;
|
||||
} & Partial<Settings>;
|
||||
export declare function useTrail(target: Object3D, settings: Partial<Settings>): React.RefObject<Float32Array | null>;
|
||||
export type MeshLineGeometry = Mesh & MeshLineGeometryImpl;
|
||||
export declare const Trail: ForwardRefComponent<React.PropsWithChildren<TrailProps>, MeshLineGeometry>;
|
||||
export {};
|
||||
Reference in New Issue
Block a user