@react-three/drei 11.0.0-alpha.5 → 11.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -1
- package/core/index.d.mts +194 -51
- package/core/index.d.ts +194 -51
- package/core/index.mjs +543 -240
- package/experimental/index.d.mts +20 -0
- package/experimental/index.d.ts +20 -0
- package/external/index.d.mts +38 -2
- package/external/index.d.ts +38 -2
- package/external/index.mjs +3 -4
- package/index.d.mts +211 -53
- package/index.d.ts +211 -53
- package/index.mjs +544 -241
- package/legacy/index.d.mts +211 -56
- package/legacy/index.d.ts +211 -56
- package/legacy/index.mjs +687 -260
- package/native/index.d.mts +219 -130
- package/native/index.d.ts +219 -130
- package/native/index.mjs +1225 -416
- package/package.json +7 -7
- package/webgpu/index.d.mts +249 -129
- package/webgpu/index.d.ts +249 -129
- package/webgpu/index.mjs +1468 -516
package/index.d.mts
CHANGED
|
@@ -4,11 +4,11 @@ import * as _react_three_fiber from '@react-three/fiber';
|
|
|
4
4
|
import { ThreeElements, ReactThreeFiber, ThreeElement, Vector2, Vector3, ThreeEvent, Color as Color$1, ObjectMap, ComputeFunction, Euler } from '@react-three/fiber';
|
|
5
5
|
import * as THREE from 'three';
|
|
6
6
|
import { MeshStandardMaterial, Texture as Texture$1, Matrix4, Color, ColorRepresentation, Object3D, Fog, FogExp2, WebGLCubeRenderTarget, CubeCamera as CubeCamera$1, OrthographicCamera as OrthographicCamera$1, PerspectiveCamera as PerspectiveCamera$1, Event, EventDispatcher, Camera, Material, Vector3 as Vector3$1, Group, LOD, Mesh, ExtrudeGeometry, PositionalAudio as PositionalAudio$1, AnimationClip, AnimationMixer, AnimationAction, BufferGeometry, BufferAttribute, InstancedMesh as InstancedMesh$1, InstancedBufferAttribute, DepthTexture, CubeTexture as CubeTexture$1, Raycaster, Intersection, RenderTargetOptions, Box3, Sphere as Sphere$1, Loader as Loader$1, ColorSpace, Scene, PlaneGeometry, MeshBasicMaterial } from 'three';
|
|
7
|
+
import { MeshBVHUniformStruct, SplitStrategy } from 'three-mesh-bvh';
|
|
7
8
|
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass.js';
|
|
8
9
|
import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass.js';
|
|
9
10
|
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js';
|
|
10
11
|
import { ArcballControls as ArcballControls$1 } from 'three/examples/jsm/controls/ArcballControls.js';
|
|
11
|
-
import { DragConfig } from '@use-gesture/react';
|
|
12
12
|
import { FirstPersonControls as FirstPersonControls$1 } from 'three/examples/jsm/controls/FirstPersonControls.js';
|
|
13
13
|
import { FlyControls as FlyControls$1 } from 'three/examples/jsm/controls/FlyControls.js';
|
|
14
14
|
import * as zustand from 'zustand';
|
|
@@ -33,7 +33,6 @@ import { GetGPUTier } from 'detect-gpu';
|
|
|
33
33
|
import Stats$1 from 'stats-gl';
|
|
34
34
|
import { GroundedSkybox } from 'three/examples/jsm/objects/GroundedSkybox.js';
|
|
35
35
|
import { Sky as Sky$1 } from 'three/examples/jsm/objects/Sky.js';
|
|
36
|
-
import { SplitStrategy } from 'three-mesh-bvh';
|
|
37
36
|
import CameraControlsImpl from 'camera-controls';
|
|
38
37
|
export { default as CameraControlsImpl } from 'camera-controls';
|
|
39
38
|
import { FaceLandmarkerResult, FaceLandmarkerOptions, FaceLandmarker as FaceLandmarker$1 } from '@mediapipe/tasks-vision';
|
|
@@ -191,6 +190,25 @@ declare module '@react-three/fiber' {
|
|
|
191
190
|
}
|
|
192
191
|
}
|
|
193
192
|
|
|
193
|
+
declare module '@react-three/fiber' {
|
|
194
|
+
interface ThreeElements {
|
|
195
|
+
meshRefractionMaterial_: ThreeElements['shaderMaterial'] & {
|
|
196
|
+
envMap?: THREE.CubeTexture | THREE.Texture | null;
|
|
197
|
+
bounces?: number;
|
|
198
|
+
ior?: number;
|
|
199
|
+
correctMips?: boolean;
|
|
200
|
+
aberrationStrength?: number;
|
|
201
|
+
fresnel?: number;
|
|
202
|
+
bvh?: MeshBVHUniformStruct;
|
|
203
|
+
color?: ReactThreeFiber.Color;
|
|
204
|
+
opacity?: number;
|
|
205
|
+
resolution?: [number, number] | THREE.Vector2;
|
|
206
|
+
viewMatrixInverse?: THREE.Matrix4;
|
|
207
|
+
projectionMatrixInverse?: THREE.Matrix4;
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
194
212
|
declare module '@react-three/fiber' {
|
|
195
213
|
interface ThreeElements {
|
|
196
214
|
portalMaterialImpl: ThreeElements['shaderMaterial'] & {
|
|
@@ -384,8 +402,9 @@ type DeviceOrientationControlsProps = Omit<ThreeElement<typeof DeviceOrientation
|
|
|
384
402
|
};
|
|
385
403
|
declare const DeviceOrientationControls: ForwardRefComponent<DeviceOrientationControlsProps, DeviceOrientationControls$1>;
|
|
386
404
|
|
|
387
|
-
type
|
|
388
|
-
|
|
405
|
+
type DragConfig = {
|
|
406
|
+
threshold?: number;
|
|
407
|
+
filterTaps?: boolean;
|
|
389
408
|
};
|
|
390
409
|
type DragControlsProps = {
|
|
391
410
|
autoTransform?: boolean;
|
|
@@ -397,7 +416,7 @@ type DragControlsProps = {
|
|
|
397
416
|
onDrag?: (localMatrix: THREE.Matrix4, deltaLocalMatrix: THREE.Matrix4, worldMatrix: THREE.Matrix4, deltaWorldMatrix: THREE.Matrix4) => void;
|
|
398
417
|
onDragEnd?: () => void;
|
|
399
418
|
children: React.ReactNode;
|
|
400
|
-
dragConfig?:
|
|
419
|
+
dragConfig?: DragConfig;
|
|
401
420
|
};
|
|
402
421
|
declare const DragControls: ForwardRefComponent<DragControlsProps, THREE.Group>;
|
|
403
422
|
|
|
@@ -638,6 +657,7 @@ type CloudsProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
|
638
657
|
frustumCulled?: boolean;
|
|
639
658
|
};
|
|
640
659
|
type CloudProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
660
|
+
materialFactory?: (baseMaterial: typeof Material) => Material;
|
|
641
661
|
seed?: number;
|
|
642
662
|
segments?: number;
|
|
643
663
|
bounds?: ReactThreeFiber.Vector3;
|
|
@@ -655,9 +675,52 @@ type CloudProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
|
655
675
|
opacity?: number;
|
|
656
676
|
color?: ReactThreeFiber.Color;
|
|
657
677
|
};
|
|
658
|
-
declare const Clouds: React.ForwardRefExoticComponent<Omit<
|
|
659
|
-
|
|
660
|
-
|
|
678
|
+
declare const Clouds: React.ForwardRefExoticComponent<Omit<_react_three_fiber.Mutable<_react_three_fiber.Overwrite<Partial<_react_three_fiber.Overwrite<Group<THREE.Object3DEventMap>, _react_three_fiber.MathProps<Group<THREE.Object3DEventMap>> & _react_three_fiber.ReactProps<Group<THREE.Object3DEventMap>> & Partial<_react_three_fiber.EventHandlers> & _react_three_fiber.NodeProps<Group<THREE.Object3DEventMap>>>>, Omit<_react_three_fiber.InstanceProps<Group<THREE.Object3DEventMap>, typeof Group>, "object">>>, "ref"> & {
|
|
679
|
+
texture?: string;
|
|
680
|
+
limit?: number;
|
|
681
|
+
range?: number;
|
|
682
|
+
material?: typeof Material;
|
|
683
|
+
materialFactory?: (baseMaterial: typeof Material) => Material;
|
|
684
|
+
frustumCulled?: boolean;
|
|
685
|
+
} & React.RefAttributes<Group<THREE.Object3DEventMap>>>;
|
|
686
|
+
declare const CloudInstance: React.ForwardRefExoticComponent<Omit<_react_three_fiber.Mutable<_react_three_fiber.Overwrite<Partial<_react_three_fiber.Overwrite<Group<THREE.Object3DEventMap>, _react_three_fiber.MathProps<Group<THREE.Object3DEventMap>> & _react_three_fiber.ReactProps<Group<THREE.Object3DEventMap>> & Partial<_react_three_fiber.EventHandlers> & _react_three_fiber.NodeProps<Group<THREE.Object3DEventMap>>>>, Omit<_react_three_fiber.InstanceProps<Group<THREE.Object3DEventMap>, typeof Group>, "object">>>, "ref"> & {
|
|
687
|
+
materialFactory?: (baseMaterial: typeof Material) => Material;
|
|
688
|
+
seed?: number;
|
|
689
|
+
segments?: number;
|
|
690
|
+
bounds?: ReactThreeFiber.Vector3;
|
|
691
|
+
concentrate?: "random" | "inside" | "outside";
|
|
692
|
+
scale?: ReactThreeFiber.Vector3;
|
|
693
|
+
volume?: number;
|
|
694
|
+
smallestVolume?: number;
|
|
695
|
+
distribute?: (cloud: CloudState, index: number) => {
|
|
696
|
+
point: Vector3$1;
|
|
697
|
+
volume?: number;
|
|
698
|
+
};
|
|
699
|
+
growth?: number;
|
|
700
|
+
speed?: number;
|
|
701
|
+
fade?: number;
|
|
702
|
+
opacity?: number;
|
|
703
|
+
color?: ReactThreeFiber.Color;
|
|
704
|
+
} & React.RefAttributes<Group<THREE.Object3DEventMap>>>;
|
|
705
|
+
declare const Cloud: React.ForwardRefExoticComponent<Omit<_react_three_fiber.Mutable<_react_three_fiber.Overwrite<Partial<_react_three_fiber.Overwrite<Group<THREE.Object3DEventMap>, _react_three_fiber.MathProps<Group<THREE.Object3DEventMap>> & _react_three_fiber.ReactProps<Group<THREE.Object3DEventMap>> & Partial<_react_three_fiber.EventHandlers> & _react_three_fiber.NodeProps<Group<THREE.Object3DEventMap>>>>, Omit<_react_three_fiber.InstanceProps<Group<THREE.Object3DEventMap>, typeof Group>, "object">>>, "ref"> & {
|
|
706
|
+
materialFactory?: (baseMaterial: typeof Material) => Material;
|
|
707
|
+
seed?: number;
|
|
708
|
+
segments?: number;
|
|
709
|
+
bounds?: ReactThreeFiber.Vector3;
|
|
710
|
+
concentrate?: "random" | "inside" | "outside";
|
|
711
|
+
scale?: ReactThreeFiber.Vector3;
|
|
712
|
+
volume?: number;
|
|
713
|
+
smallestVolume?: number;
|
|
714
|
+
distribute?: (cloud: CloudState, index: number) => {
|
|
715
|
+
point: Vector3$1;
|
|
716
|
+
volume?: number;
|
|
717
|
+
};
|
|
718
|
+
growth?: number;
|
|
719
|
+
speed?: number;
|
|
720
|
+
fade?: number;
|
|
721
|
+
opacity?: number;
|
|
722
|
+
color?: ReactThreeFiber.Color;
|
|
723
|
+
} & React.RefAttributes<Group<THREE.Object3DEventMap>>>;
|
|
661
724
|
|
|
662
725
|
type CatmullRomLineProps = Omit<LineProps, 'ref' | 'segments'> & {
|
|
663
726
|
closed?: boolean;
|
|
@@ -777,25 +840,25 @@ type Args<T> = T extends new (...args: any) => any ? ConstructorParameters<T> :
|
|
|
777
840
|
type ShapeProps<T> = Omit<ThreeElements['mesh'], 'ref' | 'args'> & {
|
|
778
841
|
args?: Args<T>;
|
|
779
842
|
};
|
|
780
|
-
declare const Box: ForwardRefComponent<ShapeProps<typeof THREE.BoxGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
781
|
-
declare const Circle: ForwardRefComponent<ShapeProps<typeof THREE.CircleGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
782
|
-
declare const Cone: ForwardRefComponent<ShapeProps<typeof THREE.ConeGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
783
|
-
declare const Cylinder: ForwardRefComponent<ShapeProps<typeof THREE.CylinderGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
784
|
-
declare const Sphere: ForwardRefComponent<ShapeProps<typeof THREE.SphereGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
785
|
-
declare const Plane: ForwardRefComponent<ShapeProps<typeof THREE.PlaneGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
786
|
-
declare const Tube: ForwardRefComponent<ShapeProps<typeof THREE.TubeGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
787
|
-
declare const Torus: ForwardRefComponent<ShapeProps<typeof THREE.TorusGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
788
|
-
declare const TorusKnot: ForwardRefComponent<ShapeProps<typeof THREE.TorusKnotGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
789
|
-
declare const Tetrahedron: ForwardRefComponent<ShapeProps<typeof THREE.TetrahedronGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
790
|
-
declare const Ring: ForwardRefComponent<ShapeProps<typeof THREE.RingGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
791
|
-
declare const Polyhedron: ForwardRefComponent<ShapeProps<typeof THREE.PolyhedronGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
792
|
-
declare const Icosahedron: ForwardRefComponent<ShapeProps<typeof THREE.IcosahedronGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
793
|
-
declare const Octahedron: ForwardRefComponent<ShapeProps<typeof THREE.OctahedronGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
794
|
-
declare const Dodecahedron: ForwardRefComponent<ShapeProps<typeof THREE.DodecahedronGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
795
|
-
declare const Extrude: ForwardRefComponent<ShapeProps<typeof THREE.ExtrudeGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
796
|
-
declare const Lathe: ForwardRefComponent<ShapeProps<typeof THREE.LatheGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
797
|
-
declare const Capsule: ForwardRefComponent<ShapeProps<typeof THREE.CapsuleGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
798
|
-
declare const Shape: ForwardRefComponent<ShapeProps<typeof THREE.ShapeGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
843
|
+
declare const Box: ForwardRefComponent<ShapeProps<typeof THREE.BoxGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.Object3DEventMap>>;
|
|
844
|
+
declare const Circle: ForwardRefComponent<ShapeProps<typeof THREE.CircleGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.Object3DEventMap>>;
|
|
845
|
+
declare const Cone: ForwardRefComponent<ShapeProps<typeof THREE.ConeGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.Object3DEventMap>>;
|
|
846
|
+
declare const Cylinder: ForwardRefComponent<ShapeProps<typeof THREE.CylinderGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.Object3DEventMap>>;
|
|
847
|
+
declare const Sphere: ForwardRefComponent<ShapeProps<typeof THREE.SphereGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.Object3DEventMap>>;
|
|
848
|
+
declare const Plane: ForwardRefComponent<ShapeProps<typeof THREE.PlaneGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.Object3DEventMap>>;
|
|
849
|
+
declare const Tube: ForwardRefComponent<ShapeProps<typeof THREE.TubeGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.Object3DEventMap>>;
|
|
850
|
+
declare const Torus: ForwardRefComponent<ShapeProps<typeof THREE.TorusGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.Object3DEventMap>>;
|
|
851
|
+
declare const TorusKnot: ForwardRefComponent<ShapeProps<typeof THREE.TorusKnotGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.Object3DEventMap>>;
|
|
852
|
+
declare const Tetrahedron: ForwardRefComponent<ShapeProps<typeof THREE.TetrahedronGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.Object3DEventMap>>;
|
|
853
|
+
declare const Ring: ForwardRefComponent<ShapeProps<typeof THREE.RingGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.Object3DEventMap>>;
|
|
854
|
+
declare const Polyhedron: ForwardRefComponent<ShapeProps<typeof THREE.PolyhedronGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.Object3DEventMap>>;
|
|
855
|
+
declare const Icosahedron: ForwardRefComponent<ShapeProps<typeof THREE.IcosahedronGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.Object3DEventMap>>;
|
|
856
|
+
declare const Octahedron: ForwardRefComponent<ShapeProps<typeof THREE.OctahedronGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.Object3DEventMap>>;
|
|
857
|
+
declare const Dodecahedron: ForwardRefComponent<ShapeProps<typeof THREE.DodecahedronGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.Object3DEventMap>>;
|
|
858
|
+
declare const Extrude: ForwardRefComponent<ShapeProps<typeof THREE.ExtrudeGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.Object3DEventMap>>;
|
|
859
|
+
declare const Lathe: ForwardRefComponent<ShapeProps<typeof THREE.LatheGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.Object3DEventMap>>;
|
|
860
|
+
declare const Capsule: ForwardRefComponent<ShapeProps<typeof THREE.CapsuleGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.Object3DEventMap>>;
|
|
861
|
+
declare const Shape: ForwardRefComponent<ShapeProps<typeof THREE.ShapeGeometry>, THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.Object3DEventMap>>;
|
|
799
862
|
|
|
800
863
|
type Glyph = {
|
|
801
864
|
_cachedOutline: string[];
|
|
@@ -834,7 +897,8 @@ type Text3DProps = Omit<ThreeElements['mesh'], 'ref'> & {
|
|
|
834
897
|
font: FontData | string;
|
|
835
898
|
bevelSegments?: number;
|
|
836
899
|
smooth?: number;
|
|
837
|
-
|
|
900
|
+
height?: number;
|
|
901
|
+
} & Omit<TextGeometryParameters, 'font' | 'depth'>;
|
|
838
902
|
declare const Text3D: ForwardRefComponent<React.PropsWithChildren<Text3DProps & {
|
|
839
903
|
letterSpacing?: number;
|
|
840
904
|
lineHeight?: number;
|
|
@@ -886,6 +950,12 @@ type OnDragStartProps = {
|
|
|
886
950
|
origin: THREE.Vector3;
|
|
887
951
|
directions: THREE.Vector3[];
|
|
888
952
|
};
|
|
953
|
+
type OnDragProps = {
|
|
954
|
+
local: THREE.Matrix4;
|
|
955
|
+
deltaLocal: THREE.Matrix4;
|
|
956
|
+
world: THREE.Matrix4;
|
|
957
|
+
deltaWorld: THREE.Matrix4;
|
|
958
|
+
};
|
|
889
959
|
type OnHoverProps = {
|
|
890
960
|
component: 'Arrow' | 'Slider' | 'Rotator' | 'Sphere';
|
|
891
961
|
axis: 0 | 1 | 2;
|
|
@@ -916,8 +986,8 @@ type PivotControlsProps = {
|
|
|
916
986
|
annotations?: boolean;
|
|
917
987
|
annotationsClass?: string;
|
|
918
988
|
onDragStart?: (props: OnDragStartProps) => void;
|
|
919
|
-
onDrag?: (
|
|
920
|
-
onDragEnd?: () => void;
|
|
989
|
+
onDrag?: (props: OnDragProps) => void;
|
|
990
|
+
onDragEnd?: (props: OnDragProps) => void;
|
|
921
991
|
onHover?: (props: OnHoverProps) => void;
|
|
922
992
|
depthTest?: boolean;
|
|
923
993
|
renderOrder?: number;
|
|
@@ -960,8 +1030,8 @@ type HelperType = Object3D & {
|
|
|
960
1030
|
dispose: () => void;
|
|
961
1031
|
};
|
|
962
1032
|
type HelperConstructor = new (...args: any[]) => any;
|
|
963
|
-
type HelperArgs<T> = T extends [infer _, ...infer R] ? R :
|
|
964
|
-
declare function useHelper<T extends HelperConstructor>(object3D: React.RefObject<Object3D> | Falsey, helperConstructor: T, ...args: HelperArgs<ConstructorParameters<T>>): React.RefObject<HelperType | null>;
|
|
1033
|
+
type HelperArgs<T> = T extends [infer _, ...infer R] ? R : [];
|
|
1034
|
+
declare function useHelper<T extends HelperConstructor>(object3D: React.RefObject<Object3D | null> | Falsey, helperConstructor: T, ...args: HelperArgs<ConstructorParameters<T>>): React.RefObject<HelperType | null>;
|
|
965
1035
|
type HelperProps<T extends HelperConstructor> = {
|
|
966
1036
|
type: T;
|
|
967
1037
|
args?: HelperArgs<ConstructorParameters<T>>;
|
|
@@ -1018,7 +1088,7 @@ declare class PositionMesh extends THREE.Group {
|
|
|
1018
1088
|
get geometry(): THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap> | undefined;
|
|
1019
1089
|
raycast(raycaster: THREE.Raycaster, intersects: THREE.Intersection[]): void;
|
|
1020
1090
|
}
|
|
1021
|
-
declare const Instance: React.ForwardRefExoticComponent<Omit<_react_three_fiber.Mutable<_react_three_fiber.Overwrite<Partial<_react_three_fiber.Overwrite<PositionMesh, _react_three_fiber.MathProps<PositionMesh> & _react_three_fiber.ReactProps<PositionMesh> & Partial<_react_three_fiber.EventHandlers>>>, Omit<_react_three_fiber.InstanceProps<PositionMesh, typeof PositionMesh>, "object">>>, "ref"> & {
|
|
1091
|
+
declare const Instance: React.ForwardRefExoticComponent<Omit<_react_three_fiber.Mutable<_react_three_fiber.Overwrite<Partial<_react_three_fiber.Overwrite<PositionMesh, _react_three_fiber.MathProps<PositionMesh> & _react_three_fiber.ReactProps<PositionMesh> & Partial<_react_three_fiber.EventHandlers> & _react_three_fiber.NodeProps<PositionMesh>>>, Omit<_react_three_fiber.InstanceProps<PositionMesh, typeof PositionMesh>, "object">>>, "ref"> & {
|
|
1022
1092
|
context?: React.Context<Api$1>;
|
|
1023
1093
|
} & React.RefAttributes<unknown>>;
|
|
1024
1094
|
declare const Instances: ForwardRefComponent<InstancesProps, THREE.InstancedMesh>;
|
|
@@ -1027,10 +1097,21 @@ interface MergedProps extends Omit<InstancesProps, 'children'> {
|
|
|
1027
1097
|
children: (...instances: [React.FC<InstanceProps> & Record<string, React.FC<InstanceProps>>, ...React.FC<InstanceProps>[]]) => React.ReactNode;
|
|
1028
1098
|
}
|
|
1029
1099
|
declare const Merged: ForwardRefComponent<MergedProps, THREE.Group>;
|
|
1030
|
-
declare function createInstances<T = InstanceProps>(): readonly [React.ForwardRefExoticComponent<Omit<
|
|
1100
|
+
declare function createInstances<T = InstanceProps>(): readonly [React.ForwardRefExoticComponent<Omit<_react_three_fiber.Mutable<_react_three_fiber.Overwrite<Partial<_react_three_fiber.Overwrite<THREE.InstancedMesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.InstancedMeshEventMap>, _react_three_fiber.MathProps<THREE.InstancedMesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.InstancedMeshEventMap>> & _react_three_fiber.ReactProps<THREE.InstancedMesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.InstancedMeshEventMap>> & Partial<_react_three_fiber.EventHandlers> & _react_three_fiber.NodeProps<THREE.InstancedMesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.InstancedMeshEventMap>>>>, Omit<_react_three_fiber.InstanceProps<THREE.InstancedMesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.InstancedMeshEventMap>, typeof THREE.InstancedMesh>, "object">>>, "ref" | "args"> & {
|
|
1101
|
+
context?: React.Context<Api$1>;
|
|
1102
|
+
range?: number;
|
|
1103
|
+
limit?: number;
|
|
1104
|
+
frames?: number;
|
|
1105
|
+
} & React.RefAttributes<THREE.InstancedMesh<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material<THREE.MaterialEventMap> | THREE.Material<THREE.MaterialEventMap>[], THREE.InstancedMeshEventMap>>>, React.ForwardRefExoticComponent<React.PropsWithoutRef<T & Omit<_react_three_fiber.Mutable<_react_three_fiber.Overwrite<Partial<_react_three_fiber.Overwrite<PositionMesh, _react_three_fiber.MathProps<PositionMesh> & _react_three_fiber.ReactProps<PositionMesh> & Partial<_react_three_fiber.EventHandlers> & _react_three_fiber.NodeProps<PositionMesh>>>, Omit<_react_three_fiber.InstanceProps<PositionMesh, typeof PositionMesh>, "object">>>, "ref"> & {
|
|
1031
1106
|
context?: React.Context<Api$1>;
|
|
1032
1107
|
}> & React.RefAttributes<PositionMesh & T>>];
|
|
1033
|
-
declare const InstancedAttribute: React.ForwardRefExoticComponent<Omit<
|
|
1108
|
+
declare const InstancedAttribute: React.ForwardRefExoticComponent<Omit<_react_three_fiber.Mutable<_react_three_fiber.Overwrite<Partial<_react_three_fiber.Overwrite<THREE.InstancedBufferAttribute, _react_three_fiber.MathProps<THREE.InstancedBufferAttribute> & _react_three_fiber.ReactProps<THREE.InstancedBufferAttribute> & _react_three_fiber.NodeProps<THREE.InstancedBufferAttribute>>>, Omit<_react_three_fiber.InstanceProps<THREE.InstancedBufferAttribute, typeof THREE.InstancedBufferAttribute>, "object">>>, "ref" | "args"> & {
|
|
1109
|
+
name: string;
|
|
1110
|
+
defaultValue: any;
|
|
1111
|
+
normalized?: boolean;
|
|
1112
|
+
usage?: number;
|
|
1113
|
+
type?: "float" | "int" | "uint" | "short" | "ushort" | "byte";
|
|
1114
|
+
} & React.RefAttributes<THREE.InstancedBufferAttribute>>;
|
|
1034
1115
|
|
|
1035
1116
|
type Size = {
|
|
1036
1117
|
w: number;
|
|
@@ -1134,7 +1215,40 @@ type SpriteAnimatorState = {
|
|
|
1134
1215
|
ref: React.Ref<THREE.Group>;
|
|
1135
1216
|
};
|
|
1136
1217
|
declare function useSpriteAnimator(): SpriteAnimatorState | null;
|
|
1137
|
-
declare const SpriteAnimator: React.ForwardRefExoticComponent<
|
|
1218
|
+
declare const SpriteAnimator: React.ForwardRefExoticComponent<{
|
|
1219
|
+
startFrame?: number;
|
|
1220
|
+
endFrame?: number;
|
|
1221
|
+
fps?: number;
|
|
1222
|
+
frameName?: string;
|
|
1223
|
+
textureDataURL?: string;
|
|
1224
|
+
textureImageURL?: string;
|
|
1225
|
+
loop?: boolean;
|
|
1226
|
+
numberOfFrames?: number;
|
|
1227
|
+
autoPlay?: boolean;
|
|
1228
|
+
animationNames?: Array<string>;
|
|
1229
|
+
onStart?: (data: AnimationEventData) => void;
|
|
1230
|
+
onEnd?: (data: AnimationEventData) => void;
|
|
1231
|
+
onLoopEnd?: (data: AnimationEventData) => void;
|
|
1232
|
+
onFrame?: (data: AnimationEventData) => void;
|
|
1233
|
+
play?: boolean;
|
|
1234
|
+
pause?: boolean;
|
|
1235
|
+
flipX?: boolean;
|
|
1236
|
+
alphaTest?: number;
|
|
1237
|
+
asSprite?: boolean;
|
|
1238
|
+
offset?: number;
|
|
1239
|
+
playBackwards?: boolean;
|
|
1240
|
+
resetOnEnd?: boolean;
|
|
1241
|
+
instanceItems?: Vector3[];
|
|
1242
|
+
maxItems?: number;
|
|
1243
|
+
spriteDataset?: {
|
|
1244
|
+
spriteTexture: THREE.Texture;
|
|
1245
|
+
spriteData: SpriteData | null;
|
|
1246
|
+
aspect: Vector3;
|
|
1247
|
+
} | null;
|
|
1248
|
+
canvasRenderingContext2DSettings?: CanvasRenderingContext2DSettings;
|
|
1249
|
+
roundFramePosition?: boolean;
|
|
1250
|
+
meshProps?: CommonMeshProps;
|
|
1251
|
+
} & Omit<_react_three_fiber.Mutable<_react_three_fiber.Overwrite<Partial<_react_three_fiber.Overwrite<THREE.Group<THREE.Object3DEventMap>, _react_three_fiber.MathProps<THREE.Group<THREE.Object3DEventMap>> & _react_three_fiber.ReactProps<THREE.Group<THREE.Object3DEventMap>> & Partial<_react_three_fiber.EventHandlers> & _react_three_fiber.NodeProps<THREE.Group<THREE.Object3DEventMap>>>>, Omit<_react_three_fiber.InstanceProps<THREE.Group<THREE.Object3DEventMap>, typeof THREE.Group>, "object">>>, "ref"> & React.RefAttributes<THREE.Group<THREE.Object3DEventMap>>>;
|
|
1138
1252
|
|
|
1139
1253
|
type Api<T extends AnimationClip> = {
|
|
1140
1254
|
ref: React.RefObject<Object3D | undefined | null>;
|
|
@@ -1220,7 +1334,7 @@ declare const Svg: ForwardRefComponent<SvgProps, Object3D>;
|
|
|
1220
1334
|
declare function useDepthBuffer({ size, frames }?: {
|
|
1221
1335
|
size?: number;
|
|
1222
1336
|
frames?: number;
|
|
1223
|
-
}): DepthTexture | null;
|
|
1337
|
+
}): DepthTexture<THREE.DepthTextureImageData> | null;
|
|
1224
1338
|
|
|
1225
1339
|
interface CubeTextureOptions {
|
|
1226
1340
|
path: string;
|
|
@@ -1319,27 +1433,42 @@ declare function Fbx({ path, ...props }: {
|
|
|
1319
1433
|
type Path = string | string[];
|
|
1320
1434
|
type UseDraco = boolean | string;
|
|
1321
1435
|
type UseMeshopt = boolean;
|
|
1436
|
+
type UseKTX2 = boolean | string;
|
|
1322
1437
|
type ExtendLoader$1 = (loader: GLTFLoader) => void;
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
}
|
|
1438
|
+
interface UseGLTFOptions {
|
|
1439
|
+
draco?: UseDraco;
|
|
1440
|
+
meshopt?: UseMeshopt;
|
|
1441
|
+
ktx2?: UseKTX2;
|
|
1442
|
+
extendLoader?: ExtendLoader$1;
|
|
1443
|
+
}
|
|
1444
|
+
declare function useGLTF<T extends Path>(path: T, optionsOrDraco?: UseGLTFOptions | UseDraco, useMeshoptArg?: UseMeshopt, useKTX2Arg?: UseKTX2, extendLoaderArg?: ExtendLoader$1): T extends any[] ? (GLTF & ObjectMap)[] : GLTF & ObjectMap;
|
|
1445
|
+
declare namespace useGLTF {
|
|
1446
|
+
var preload: (path: Path, optionsOrDraco?: UseGLTFOptions | UseDraco, useMeshoptArg?: UseMeshopt, useKTX2Arg?: UseKTX2, extendLoaderArg?: ExtendLoader$1) => void;
|
|
1447
|
+
var clear: (path: Path) => void;
|
|
1448
|
+
var setDecoderPath: (path: string) => void;
|
|
1449
|
+
var setKTX2TranscoderPath: (path: string) => void;
|
|
1450
|
+
}
|
|
1329
1451
|
type GltfProps = Omit<CloneProps, 'object'> & {
|
|
1330
1452
|
src: string;
|
|
1331
1453
|
useDraco?: UseDraco;
|
|
1332
1454
|
useMeshOpt?: UseMeshopt;
|
|
1333
1455
|
extendLoader?: ExtendLoader$1;
|
|
1456
|
+
options?: UseGLTFOptions;
|
|
1334
1457
|
};
|
|
1335
|
-
declare const Gltf: React.ForwardRefExoticComponent<Omit<
|
|
1458
|
+
declare const Gltf: React.ForwardRefExoticComponent<Omit<CloneProps, "object"> & {
|
|
1459
|
+
src: string;
|
|
1460
|
+
useDraco?: UseDraco;
|
|
1461
|
+
useMeshOpt?: UseMeshopt;
|
|
1462
|
+
extendLoader?: ExtendLoader$1;
|
|
1463
|
+
options?: UseGLTFOptions;
|
|
1464
|
+
} & React.RefAttributes<THREE.Group<THREE.Object3DEventMap>>>;
|
|
1336
1465
|
|
|
1337
1466
|
type ExtendLoader = (loader: KTX2Loader) => void;
|
|
1338
1467
|
declare function useKTX2<Url extends string[] | string | Record<string, string>>(input: Url, basisPath?: boolean | string, extendLoader?: ExtendLoader): Url extends any[] ? Texture$1[] : Url extends object ? {
|
|
1339
1468
|
[key in keyof Url]: Texture$1;
|
|
1340
1469
|
} : Texture$1;
|
|
1341
1470
|
declare namespace useKTX2 {
|
|
1342
|
-
var preload: (url: string
|
|
1471
|
+
var preload: (url: string | string[], basisPath?: boolean | string, extendLoader?: ExtendLoader) => void;
|
|
1343
1472
|
var clear: (input: string | string[]) => void;
|
|
1344
1473
|
var setTranscoderPath: (path: string) => void;
|
|
1345
1474
|
}
|
|
@@ -1380,6 +1509,13 @@ declare const Texture: ({ children, input, onLoad, }: {
|
|
|
1380
1509
|
onLoad?: Parameters<typeof useTexture>[1];
|
|
1381
1510
|
}) => React.JSX.Element;
|
|
1382
1511
|
|
|
1512
|
+
declare const useVariants: (model: GLTF, inVariant?: string) => {
|
|
1513
|
+
variants: any;
|
|
1514
|
+
activeVariant: string | null;
|
|
1515
|
+
setVariant: (variantName: string | null) => void;
|
|
1516
|
+
materials: Material<THREE.MaterialEventMap>[];
|
|
1517
|
+
};
|
|
1518
|
+
|
|
1383
1519
|
type WebcamVideoTextureProps = Omit<VideoTextureProps, 'src'> & {
|
|
1384
1520
|
constraints?: MediaStreamConstraints;
|
|
1385
1521
|
};
|
|
@@ -1465,7 +1601,7 @@ declare const StatsGl: ForwardRefComponent<StatsGlProps, HTMLDivElement>;
|
|
|
1465
1601
|
type FBOSettings = {
|
|
1466
1602
|
depth?: boolean;
|
|
1467
1603
|
} & RenderTargetOptions;
|
|
1468
|
-
declare function useFBO(width?: number | FBOSettings, height?: number, settings?: FBOSettings): THREE.WebGLRenderTarget<THREE.Texture<unknown>>;
|
|
1604
|
+
declare function useFBO(width?: number | FBOSettings, height?: number, settings?: FBOSettings): THREE.WebGLRenderTarget<THREE.Texture<unknown, THREE.TextureEventMap>>;
|
|
1469
1605
|
type UseFBOParams = Parameters<typeof useFBO>;
|
|
1470
1606
|
type FboProps = {
|
|
1471
1607
|
children?: (target: Fbo) => React.ReactNode;
|
|
@@ -1479,7 +1615,7 @@ declare const Fbo: React.ForwardRefExoticComponent<{
|
|
|
1479
1615
|
height?: UseFBOParams[1];
|
|
1480
1616
|
} & {
|
|
1481
1617
|
depth?: boolean;
|
|
1482
|
-
} & THREE.RenderTargetOptions & React.RefAttributes<THREE.WebGLRenderTarget<THREE.Texture<unknown>>>>;
|
|
1618
|
+
} & THREE.RenderTargetOptions & React.RefAttributes<THREE.WebGLRenderTarget<THREE.Texture<unknown, THREE.TextureEventMap>>>>;
|
|
1483
1619
|
|
|
1484
1620
|
type FisheyeProps = ThreeElements['mesh'] & {
|
|
1485
1621
|
zoom?: number;
|
|
@@ -1533,7 +1669,7 @@ type RenderCubeTextureProps = Omit<ThreeElements['texture'], 'ref' | 'args' | 'r
|
|
|
1533
1669
|
};
|
|
1534
1670
|
type RenderCubeTextureApi = {
|
|
1535
1671
|
scene: THREE.Scene;
|
|
1536
|
-
fbo:
|
|
1672
|
+
fbo: WebGLCubeRenderTarget;
|
|
1537
1673
|
camera: THREE.CubeCamera;
|
|
1538
1674
|
};
|
|
1539
1675
|
declare const RenderCubeTexture: ForwardRefComponent<RenderCubeTextureProps, RenderCubeTextureApi>;
|
|
@@ -1685,7 +1821,7 @@ type EnvironmentLoaderProps = {
|
|
|
1685
1821
|
extensions?: (loader: Loader$1) => void;
|
|
1686
1822
|
colorSpace?: ColorSpace;
|
|
1687
1823
|
};
|
|
1688
|
-
declare function useEnvironment({ files, path, preset, colorSpace, extensions, }?: Partial<EnvironmentLoaderProps>): Texture$1<unknown> | CubeTexture$1<unknown>;
|
|
1824
|
+
declare function useEnvironment({ files, path, preset, colorSpace, extensions, }?: Partial<EnvironmentLoaderProps>): Texture$1<unknown, THREE.TextureEventMap> | CubeTexture$1<unknown>;
|
|
1689
1825
|
declare namespace useEnvironment {
|
|
1690
1826
|
var preload: (preloadOptions?: EnvironmentLoaderPreloadOptions) => void;
|
|
1691
1827
|
var clear: (clearOptions?: EnvironmentLoaderClearOptions) => void;
|
|
@@ -1756,7 +1892,13 @@ type ResizeProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
|
1756
1892
|
box3?: THREE.Box3;
|
|
1757
1893
|
precise?: boolean;
|
|
1758
1894
|
};
|
|
1759
|
-
declare const Resize: React.ForwardRefExoticComponent<Omit<
|
|
1895
|
+
declare const Resize: React.ForwardRefExoticComponent<Omit<_react_three_fiber.Mutable<_react_three_fiber.Overwrite<Partial<_react_three_fiber.Overwrite<THREE.Group<THREE.Object3DEventMap>, _react_three_fiber.MathProps<THREE.Group<THREE.Object3DEventMap>> & _react_three_fiber.ReactProps<THREE.Group<THREE.Object3DEventMap>> & Partial<_react_three_fiber.EventHandlers> & _react_three_fiber.NodeProps<THREE.Group<THREE.Object3DEventMap>>>>, Omit<_react_three_fiber.InstanceProps<THREE.Group<THREE.Object3DEventMap>, typeof THREE.Group>, "object">>>, "ref"> & {
|
|
1896
|
+
width?: boolean;
|
|
1897
|
+
height?: boolean;
|
|
1898
|
+
depth?: boolean;
|
|
1899
|
+
box3?: THREE.Box3;
|
|
1900
|
+
precise?: boolean;
|
|
1901
|
+
} & React.RefAttributes<THREE.Group<THREE.Object3DEventMap>>>;
|
|
1760
1902
|
|
|
1761
1903
|
type ScreenSizerProps = Omit<ThreeElements['object3D'], 'ref'> & {
|
|
1762
1904
|
scale?: number;
|
|
@@ -1972,7 +2114,23 @@ type FacemeshApi = {
|
|
|
1972
2114
|
eyeRightRef: React.RefObject<FacemeshEyeApi>;
|
|
1973
2115
|
eyeLeftRef: React.RefObject<FacemeshEyeApi>;
|
|
1974
2116
|
};
|
|
1975
|
-
declare const Facemesh: React.ForwardRefExoticComponent<
|
|
2117
|
+
declare const Facemesh: React.ForwardRefExoticComponent<{
|
|
2118
|
+
points?: MediaPipePoints;
|
|
2119
|
+
face?: MediaPipeFaceMesh;
|
|
2120
|
+
width?: number;
|
|
2121
|
+
height?: number;
|
|
2122
|
+
depth?: number;
|
|
2123
|
+
verticalTri?: [number, number, number];
|
|
2124
|
+
origin?: number | THREE.Vector3;
|
|
2125
|
+
facialTransformationMatrix?: (typeof FacemeshDatas.SAMPLE_FACELANDMARKER_RESULT.facialTransformationMatrixes)[0];
|
|
2126
|
+
offset?: boolean;
|
|
2127
|
+
offsetScalar?: number;
|
|
2128
|
+
faceBlendshapes?: (typeof FacemeshDatas.SAMPLE_FACELANDMARKER_RESULT.faceBlendshapes)[0];
|
|
2129
|
+
eyes?: boolean;
|
|
2130
|
+
eyesAsOrigin?: boolean;
|
|
2131
|
+
debug?: boolean;
|
|
2132
|
+
LineComponent?: React.ComponentType<LineProps>;
|
|
2133
|
+
} & Omit<_react_three_fiber.Mutable<_react_three_fiber.Overwrite<Partial<_react_three_fiber.Overwrite<THREE.Group<THREE.Object3DEventMap>, _react_three_fiber.MathProps<THREE.Group<THREE.Object3DEventMap>> & _react_three_fiber.ReactProps<THREE.Group<THREE.Object3DEventMap>> & Partial<_react_three_fiber.EventHandlers> & _react_three_fiber.NodeProps<THREE.Group<THREE.Object3DEventMap>>>>, Omit<_react_three_fiber.InstanceProps<THREE.Group<THREE.Object3DEventMap>, typeof THREE.Group>, "object">>>, "ref"> & React.RefAttributes<FacemeshApi>>;
|
|
1976
2134
|
type FacemeshEyeProps = {
|
|
1977
2135
|
side: 'left' | 'right';
|
|
1978
2136
|
debug?: boolean;
|
|
@@ -2160,5 +2318,5 @@ type MarchingPlaneProps = {
|
|
|
2160
2318
|
} & ThreeElements['group'];
|
|
2161
2319
|
declare const MarchingPlane: ForwardRefComponent<MarchingPlaneProps, THREE.Group>;
|
|
2162
2320
|
|
|
2163
|
-
export { AdaptiveDpr, AdaptiveEvents, ArcballControls, BBAnchor, Backdrop, Billboard, Bounds, Box, Bvh, CameraControls, CameraShake, Capsule, CatmullRomLine, Center, Circle, Clone, Cloud, CloudInstance, Clouds, ComputedAttribute, Cone, CubeCamera, CubeTexture, CubicBezierLine, CurveModifier, CycleRaycast, Cylinder, Decal, Detailed, DetectGPU, DeviceOrientationControls, Dodecahedron, DragControls, Edges, Environment, EnvironmentCube, EnvironmentMap, EnvironmentPortal, Example, Extrude, FaceControls, FaceLandmarker, FaceLandmarkerDefaults, Facemesh, FacemeshDatas, FacemeshEye, FacemeshEyeDefaults, Fbo, Fbx, FirstPersonControls, Fisheye, Float, FlyControls, GizmoHelper, GizmoViewcube, GizmoViewport, Gltf, Helper, Html, Hud, Icosahedron, Instance, InstancedAttribute, Instances, IsObject, KeyboardControls, Ktx2, Lathe, Lightformer, Loader, MapControls, MarchingCube, MarchingCubes, MarchingPlane, Mask, MatcapTexture, Merged, MotionPathControls, NormalTexture, Octahedron, OrbitControls, OrthographicCamera, Outlines, PerformanceMonitor, PerspectiveCamera, PivotControls, Plane, Point, PointMaterial, PointMaterialImpl, PointerLockControls, Points, PointsBuffer, Polyhedron, PositionMesh, PositionPoint, PositionalAudio, Preload, PresentationControls, Progress, QuadraticBezierLine, RenderCubeTexture, RenderTexture, Resize, Ring, RoundedBox, RoundedBoxGeometry, Sampler, ScreenQuad, ScreenSizer, ScreenSpace, ScreenVideoTexture, Scroll, ScrollControls, Select, Shadow, Shape, Sky, Sphere, Splat, SpriteAnimator, Stage, Stats, StatsGl, Svg, Tetrahedron, Text3D, Texture, Torus, TorusKnot, TrackballControls, Trail, TrailTexture, TransformControls, Tube, VideoTexture, View, WebcamVideoTexture, calcPosFromAngles, checkIfFrameIsEmpty, createInstances, getFirstFrame, meshBounds, presetsObj, useAnimations, useAspect, useBVH, useBounds, useContextBridge, useCubeCamera, useCubeTexture, useCursor, useCustomRaycast, useDepthBuffer, useDetectGPU, useEnvironment, useFBO, useFBX, useFaceControls, useFaceLandmarker, useFont, useGLTF, useGizmoContext, useHelper, useIntersect, useKTX2, useKeyboardControls, useMask, useMatcapTexture, useMotion, useNormalTexture, usePerformanceMonitor, useProgress, useScroll, useSelect, useSpriteAnimator, useSpriteLoader, useSurfaceSampler, useTexture, useTrail, useTrailTexture, useVideoTexture };
|
|
2164
|
-
export type { ArcballControlsProps, Args, BBAnchorProps, BVHOptions, BackdropProps, BillboardProps, BoundsApi, BoundsProps, BvhProps, CalculatePosition, CameraControlsProps, CameraShakeProps, CatmullRomLineProps, CenterProps, CloneProps, CloudProps, CloudsProps, ComputedAttributeProps, ContainerProps, CubeCameraOptions, CubeCameraProps, CubeTextureProps, CubicBezierLineProps, CurveModifierProps, CurveModifierRef, CycleRaycastProps, DecalProps, DetailedProps, DetectGPUProps, DeviceOrientationControlsProps, DragControlsProps, EdgesProps, EdgesRef, EnvironmentLoaderProps, EnvironmentProps, ExampleApi, ExampleProps,
|
|
2321
|
+
export { AdaptiveDpr, AdaptiveEvents, ArcballControls, BBAnchor, Backdrop, Billboard, Bounds, Box, Bvh, CameraControls, CameraShake, Capsule, CatmullRomLine, Center, Circle, Clone, Cloud, CloudInstance, Clouds, ComputedAttribute, Cone, CubeCamera, CubeTexture, CubicBezierLine, CurveModifier, CycleRaycast, Cylinder, Decal, Detailed, DetectGPU, DeviceOrientationControls, Dodecahedron, DragControls, Edges, Environment, EnvironmentCube, EnvironmentMap, EnvironmentPortal, Example, Extrude, FaceControls, FaceLandmarker, FaceLandmarkerDefaults, Facemesh, FacemeshDatas, FacemeshEye, FacemeshEyeDefaults, Fbo, Fbx, FirstPersonControls, Fisheye, Float, FlyControls, GizmoHelper, GizmoViewcube, GizmoViewport, Gltf, Helper, Html, Hud, Icosahedron, Instance, InstancedAttribute, Instances, IsObject, KeyboardControls, Ktx2, Lathe, Lightformer, Loader, MapControls, MarchingCube, MarchingCubes, MarchingPlane, Mask, MatcapTexture, Merged, MotionPathControls, NormalTexture, Octahedron, OrbitControls, OrthographicCamera, Outlines, PerformanceMonitor, PerspectiveCamera, PivotControls, Plane, Point, PointMaterial, PointMaterialImpl, PointerLockControls, Points, PointsBuffer, Polyhedron, PositionMesh, PositionPoint, PositionalAudio, Preload, PresentationControls, Progress, QuadraticBezierLine, RenderCubeTexture, RenderTexture, Resize, Ring, RoundedBox, RoundedBoxGeometry, Sampler, ScreenQuad, ScreenSizer, ScreenSpace, ScreenVideoTexture, Scroll, ScrollControls, Select, Shadow, Shape, Sky, Sphere, Splat, SpriteAnimator, Stage, Stats, StatsGl, Svg, Tetrahedron, Text3D, Texture, Torus, TorusKnot, TrackballControls, Trail, TrailTexture, TransformControls, Tube, VideoTexture, View, WebcamVideoTexture, calcPosFromAngles, checkIfFrameIsEmpty, createInstances, getFirstFrame, meshBounds, presetsObj, useAnimations, useAspect, useBVH, useBounds, useContextBridge, useCubeCamera, useCubeTexture, useCursor, useCustomRaycast, useDepthBuffer, useDetectGPU, useEnvironment, useFBO, useFBX, useFaceControls, useFaceLandmarker, useFont, useGLTF, useGizmoContext, useHelper, useIntersect, useKTX2, useKeyboardControls, useMask, useMatcapTexture, useMotion, useNormalTexture, usePerformanceMonitor, useProgress, useScroll, useSelect, useSpriteAnimator, useSpriteLoader, useSurfaceSampler, useTexture, useTrail, useTrailTexture, useVariants, useVideoTexture };
|
|
2322
|
+
export type { ArcballControlsProps, Args, BBAnchorProps, BVHOptions, BackdropProps, BillboardProps, BoundsApi, BoundsProps, BvhProps, CalculatePosition, CameraControlsProps, CameraShakeProps, CatmullRomLineProps, CenterProps, CloneProps, CloudProps, CloudsProps, ComputedAttributeProps, ContainerProps, CubeCameraOptions, CubeCameraProps, CubeTextureProps, CubicBezierLineProps, CurveModifierProps, CurveModifierRef, CycleRaycastProps, DecalProps, DetailedProps, DetectGPUProps, DeviceOrientationControlsProps, DragConfig, DragControlsProps, EdgesProps, EdgesRef, EnvironmentLoaderProps, EnvironmentProps, ExampleApi, ExampleProps, FaceControlsApi, FaceControlsProps, FaceLandmarkerProps, FacemeshApi, FacemeshEyeApi, FacemeshEyeProps, FacemeshProps, FboProps, FirstPersonControlsProps, FisheyeProps, FloatProps, FlyControlsProps, FontData, FrameData, GizmoHelperProps, GltfProps, Glyph, HelperProps, HtmlProps, HudProps, InstanceProps, InstancedAttributeProps, InstancesProps, KeyboardControlsEntry, KeyboardControlsProps, Ktx2Props, LightProps, LoaderOptions, MapControlsProps, MarchingCubeProps, MarchingCubesProps, MarchingPlaneProps, MaskProps, MediaPipeFaceMesh, MediaPipePoints, MergedProps, MetaData, MotionPathProps, MotionPathRef, OnCenterCallbackProps, OnDragProps, OnDragStartProps, OnHoverProps, OrbitControlsChangeEvent, OrbitControlsProps, OrthographicCameraProps, OutlinesProps, PerformanceMonitorApi, PerformanceMonitorProps, PerspectiveCameraProps, PivotControlsProps, PointMaterialProps, PointerLockControlsProps, PointsBuffersProps, PointsInstancesProps, PositionalAudioProps, PreloadProps, PresentationControlProps, PresetsType, QuadraticBezierLineProps, QuadraticBezierLineRef, RenderCubeTextureApi, RenderCubeTextureProps, RenderTextureProps, ResizeProps, RoundedBoxGeometryProps, RoundedBoxProps, SamplerProps, ScreenQuadProps, ScreenSizerProps, ScreenSpaceProps, ScreenVideoTextureProps, ScrollControlsProps, ScrollControlsState, ScrollProps, SelectProps, ShadowProps, ShadowType, ShakeController, ShapeProps, SharedState, Size, SizeProps, SkyProps, SplatMaterialType, SplatProps, SpriteAnimatorProps, SpriteData, StageProps, StatsGlProps, StatsOptions, StatsProps, SvgProps, TargetMesh, Text3DProps, TrackballControlsProps, TrailProps, TrailTextureProps, TransformControlsProps, TransformFn, UseGLTFOptions, VideoTextureProps, ViewProps, ViewportProps, WebcamVideoTextureProps, useSurfaceSamplerProps };
|