@react-three/drei 10.8.0-alpha.1 → 11.0.0-alpha.1
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/core/_chunks/libs/tunnel-rat.mjs +11 -11
- package/core/_chunks/libs/zustand.mjs +3 -3
- package/core/core/index.d.mts +150 -150
- package/core/core/index.mjs +646 -646
- package/index.d.mts +5 -5
- package/native/_chunks/libs/tunnel-rat.mjs +11 -11
- package/native/_chunks/libs/zustand.mjs +3 -3
- package/native/native/index.d.mts +164 -164
- package/native/native/index.mjs +765 -765
- package/package.json +1 -1
- package/webgpu/webgpu/index.d.mts +1 -1
package/core/core/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { CSSProperties, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from "react";
|
|
3
3
|
import * as FIBER from "@react-three/fiber";
|
|
4
4
|
import { Color, ComputeFunction, Euler, ObjectMap, ReactThreeFiber, ThreeElement, ThreeElements, ThreeEvent, Vector2, Vector3 } from "@react-three/fiber";
|
|
@@ -252,7 +252,7 @@ type RenderTextureProps = Omit<ThreeElements['texture'], 'ref' | 'args'> & {
|
|
|
252
252
|
eventPriority?: number;
|
|
253
253
|
frames?: number;
|
|
254
254
|
compute?: (event: any, state: any, previous: any) => false | undefined;
|
|
255
|
-
children: React
|
|
255
|
+
children: React.ReactNode;
|
|
256
256
|
};
|
|
257
257
|
declare const RenderTexture: ForwardRefComponent<RenderTextureProps, THREE$1.Texture>;
|
|
258
258
|
//#endregion
|
|
@@ -288,7 +288,7 @@ type CubeCameraOptions = {
|
|
|
288
288
|
fog?: Fog | FogExp2;
|
|
289
289
|
};
|
|
290
290
|
type CubeCameraProps = Omit<ThreeElements['group'], 'children'> & {
|
|
291
|
-
children?: (tex: Texture$2) => React
|
|
291
|
+
children?: (tex: Texture$2) => React.ReactNode;
|
|
292
292
|
frames?: number;
|
|
293
293
|
} & CubeCameraOptions;
|
|
294
294
|
declare function useCubeCamera({
|
|
@@ -311,13 +311,13 @@ declare function CubeCamera({
|
|
|
311
311
|
envMap,
|
|
312
312
|
fog,
|
|
313
313
|
...props
|
|
314
|
-
}: CubeCameraProps): React
|
|
314
|
+
}: CubeCameraProps): React.JSX.Element;
|
|
315
315
|
//#endregion
|
|
316
316
|
//#region src/core/Cameras/OrthographicCamera/OrthographicCamera.d.ts
|
|
317
317
|
type OrthographicCameraProps = Omit<ThreeElements['orthographicCamera'], 'ref' | 'children'> & {
|
|
318
318
|
makeDefault?: boolean;
|
|
319
319
|
manual?: boolean;
|
|
320
|
-
children?: React
|
|
320
|
+
children?: React.ReactNode | ((texture: THREE$1.Texture) => React.ReactNode);
|
|
321
321
|
frames?: number;
|
|
322
322
|
resolution?: number;
|
|
323
323
|
envMap?: THREE$1.Texture;
|
|
@@ -328,7 +328,7 @@ declare const OrthographicCamera: ForwardRefComponent<OrthographicCameraProps, O
|
|
|
328
328
|
type PerspectiveCameraProps = Omit<ThreeElements['perspectiveCamera'], 'ref' | 'children'> & {
|
|
329
329
|
makeDefault?: boolean;
|
|
330
330
|
manual?: boolean;
|
|
331
|
-
children?: React
|
|
331
|
+
children?: React.ReactNode | ((texture: THREE$1.Texture) => React.ReactNode);
|
|
332
332
|
frames?: number;
|
|
333
333
|
resolution?: number;
|
|
334
334
|
envMap?: THREE$1.Texture;
|
|
@@ -366,7 +366,7 @@ type DragControlsProps = {
|
|
|
366
366
|
onDragStart?: (origin: THREE$1.Vector3) => void;
|
|
367
367
|
onDrag?: (localMatrix: THREE$1.Matrix4, deltaLocalMatrix: THREE$1.Matrix4, worldMatrix: THREE$1.Matrix4, deltaWorldMatrix: THREE$1.Matrix4) => void;
|
|
368
368
|
onDragEnd?: () => void;
|
|
369
|
-
children: React
|
|
369
|
+
children: React.ReactNode;
|
|
370
370
|
dragConfig?: DragConfig;
|
|
371
371
|
};
|
|
372
372
|
declare const DragControls: ForwardRefComponent<DragControlsProps, THREE$1.Group>;
|
|
@@ -408,7 +408,7 @@ type KeyboardControlsEntry<T extends string = string> = {
|
|
|
408
408
|
};
|
|
409
409
|
type KeyboardControlsProps = {
|
|
410
410
|
map: KeyboardControlsEntry[];
|
|
411
|
-
children: React
|
|
411
|
+
children: React.ReactNode;
|
|
412
412
|
onChange?: (name: string, pressed: boolean, state: KeyboardControlsState) => void;
|
|
413
413
|
domElement?: HTMLElement;
|
|
414
414
|
};
|
|
@@ -417,7 +417,7 @@ declare function KeyboardControls({
|
|
|
417
417
|
children,
|
|
418
418
|
onChange,
|
|
419
419
|
domElement
|
|
420
|
-
}: KeyboardControlsProps): React
|
|
420
|
+
}: KeyboardControlsProps): React.JSX.Element;
|
|
421
421
|
type Selector<T extends string = string> = (state: KeyboardControlsState<T>) => boolean;
|
|
422
422
|
declare function useKeyboardControls<T extends string = string>(): [StoreApiWithSubscribeWithSelector<KeyboardControlsState<T>>['subscribe'], StoreApiWithSubscribeWithSelector<KeyboardControlsState<T>>['getState']];
|
|
423
423
|
declare function useKeyboardControls<T extends string = string>(sel: Selector<T>): ReturnType<Selector<T>>;
|
|
@@ -439,8 +439,8 @@ type MotionPathProps = ThreeElements['group'] & {
|
|
|
439
439
|
curves?: THREE$1.Curve<THREE$1.Vector3>[];
|
|
440
440
|
debug?: boolean;
|
|
441
441
|
debugColor?: THREE$1.ColorRepresentation;
|
|
442
|
-
object?: React
|
|
443
|
-
focus?: [x: number, y: number, z: number] | React
|
|
442
|
+
object?: React.RefObject<THREE$1.Object3D>;
|
|
443
|
+
focus?: [x: number, y: number, z: number] | React.RefObject<THREE$1.Object3D>;
|
|
444
444
|
loop?: boolean;
|
|
445
445
|
offset?: number;
|
|
446
446
|
smooth?: boolean | number;
|
|
@@ -452,8 +452,8 @@ type MotionPathProps = ThreeElements['group'] & {
|
|
|
452
452
|
type MotionState = {
|
|
453
453
|
current: number;
|
|
454
454
|
path: THREE$1.CurvePath<THREE$1.Vector3>;
|
|
455
|
-
focus: React
|
|
456
|
-
object: React
|
|
455
|
+
focus: React.RefObject<THREE$1.Object3D> | [x: number, y: number, z: number] | undefined;
|
|
456
|
+
object: React.RefObject<THREE$1.Object3D>;
|
|
457
457
|
offset: number;
|
|
458
458
|
point: THREE$1.Vector3;
|
|
459
459
|
tangent: THREE$1.Vector3;
|
|
@@ -463,7 +463,7 @@ type MotionPathRef = THREE$1.Group & {
|
|
|
463
463
|
motion: MotionState;
|
|
464
464
|
};
|
|
465
465
|
declare function useMotion(): MotionState;
|
|
466
|
-
declare const MotionPathControls: React
|
|
466
|
+
declare const MotionPathControls: React.ForwardRefExoticComponent<Omit<MotionPathProps, "ref"> & React.RefAttributes<MotionPathRef>>;
|
|
467
467
|
//#endregion
|
|
468
468
|
//#region src/core/Controls/OrbitControls/OrbitControls.d.ts
|
|
469
469
|
type ExtractCallback<T, E extends string> = T extends {
|
|
@@ -509,7 +509,7 @@ type PresentationControlProps = {
|
|
|
509
509
|
azimuth?: [number, number];
|
|
510
510
|
damping?: number;
|
|
511
511
|
enabled?: boolean;
|
|
512
|
-
children?: React
|
|
512
|
+
children?: React.ReactNode;
|
|
513
513
|
domElement?: HTMLElement;
|
|
514
514
|
};
|
|
515
515
|
declare function PresentationControls({
|
|
@@ -525,7 +525,7 @@ declare function PresentationControls({
|
|
|
525
525
|
polar,
|
|
526
526
|
azimuth,
|
|
527
527
|
damping
|
|
528
|
-
}: PresentationControlProps): React
|
|
528
|
+
}: PresentationControlProps): React.JSX.Element;
|
|
529
529
|
//#endregion
|
|
530
530
|
//#region src/core/Controls/ScrollControls/ScrollControls.d.ts
|
|
531
531
|
type ScrollControlsProps = {
|
|
@@ -538,8 +538,8 @@ type ScrollControlsProps = {
|
|
|
538
538
|
maxSpeed?: number;
|
|
539
539
|
prepend?: boolean;
|
|
540
540
|
enabled?: boolean;
|
|
541
|
-
style?: React
|
|
542
|
-
children: React
|
|
541
|
+
style?: React.CSSProperties;
|
|
542
|
+
children: React.ReactNode;
|
|
543
543
|
};
|
|
544
544
|
type ScrollControlsState = {
|
|
545
545
|
el: HTMLDivElement;
|
|
@@ -568,16 +568,16 @@ declare function ScrollControls({
|
|
|
568
568
|
prepend,
|
|
569
569
|
style,
|
|
570
570
|
children
|
|
571
|
-
}: ScrollControlsProps): React
|
|
571
|
+
}: ScrollControlsProps): React.JSX.Element;
|
|
572
572
|
interface ScrollPropsWithFalseHtml {
|
|
573
|
-
children?: React
|
|
573
|
+
children?: React.ReactNode;
|
|
574
574
|
html?: false;
|
|
575
575
|
style?: never;
|
|
576
576
|
}
|
|
577
577
|
interface ScrollPropsWithTrueHtml {
|
|
578
|
-
children?: React
|
|
578
|
+
children?: React.ReactNode;
|
|
579
579
|
html: true;
|
|
580
|
-
style?: React
|
|
580
|
+
style?: React.CSSProperties;
|
|
581
581
|
}
|
|
582
582
|
type ScrollProps = ScrollPropsWithFalseHtml | ScrollPropsWithTrueHtml;
|
|
583
583
|
declare const Scroll: ForwardRefComponent<ScrollProps, THREE$1.Group & HTMLDivElement>;
|
|
@@ -624,7 +624,7 @@ type CloudState = {
|
|
|
624
624
|
position: Vector3$2;
|
|
625
625
|
volume: number;
|
|
626
626
|
length: number;
|
|
627
|
-
ref: React
|
|
627
|
+
ref: React.RefObject<Group>;
|
|
628
628
|
speed: number;
|
|
629
629
|
growth: number;
|
|
630
630
|
opacity: number;
|
|
@@ -660,9 +660,9 @@ type CloudProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
|
660
660
|
opacity?: number;
|
|
661
661
|
color?: ReactThreeFiber.Color;
|
|
662
662
|
};
|
|
663
|
-
declare const Clouds: React
|
|
664
|
-
declare const CloudInstance: React
|
|
665
|
-
declare const Cloud: React
|
|
663
|
+
declare const Clouds: React.ForwardRefExoticComponent<Omit<CloudsProps, "ref"> & React.RefAttributes<Group<THREE.Object3DEventMap>>>;
|
|
664
|
+
declare const CloudInstance: React.ForwardRefExoticComponent<Omit<CloudProps, "ref"> & React.RefAttributes<Group<THREE.Object3DEventMap>>>;
|
|
665
|
+
declare const Cloud: React.ForwardRefExoticComponent<Omit<CloudProps, "ref"> & React.RefAttributes<Group<THREE.Object3DEventMap>>>;
|
|
666
666
|
//#endregion
|
|
667
667
|
//#region src/core/Geometry/CatmullRomLine/CatmullRomLine.d.ts
|
|
668
668
|
type CatmullRomLineProps = Omit<LineProps, 'ref' | 'segments'> & {
|
|
@@ -670,7 +670,7 @@ type CatmullRomLineProps = Omit<LineProps, 'ref' | 'segments'> & {
|
|
|
670
670
|
curveType?: 'centripetal' | 'chordal' | 'catmullrom';
|
|
671
671
|
tension?: number;
|
|
672
672
|
segments?: number;
|
|
673
|
-
LineComponent?: React
|
|
673
|
+
LineComponent?: React.ComponentType<LineProps>;
|
|
674
674
|
};
|
|
675
675
|
declare const CatmullRomLine: ForwardRefComponent<CatmullRomLineProps, Line2>;
|
|
676
676
|
//#endregion
|
|
@@ -681,13 +681,13 @@ type CubicBezierLineProps = Omit<LineProps, 'points' | 'ref'> & {
|
|
|
681
681
|
midA: Vector3$2 | [number, number, number];
|
|
682
682
|
midB: Vector3$2 | [number, number, number];
|
|
683
683
|
segments?: number;
|
|
684
|
-
LineComponent?: React
|
|
684
|
+
LineComponent?: React.ComponentType<LineProps>;
|
|
685
685
|
};
|
|
686
686
|
declare const CubicBezierLine: ForwardRefComponent<CubicBezierLineProps, Line2>;
|
|
687
687
|
//#endregion
|
|
688
688
|
//#region src/core/Geometry/CurveModifier/CurveModifier.d.ts
|
|
689
689
|
interface CurveModifierProps {
|
|
690
|
-
children: React
|
|
690
|
+
children: React.ReactElement<ThreeElements['mesh']>;
|
|
691
691
|
curve?: THREE$1.Curve<THREE$1.Vector3>;
|
|
692
692
|
}
|
|
693
693
|
type CurveModifierRef = Flow;
|
|
@@ -696,12 +696,12 @@ declare const CurveModifier: ForwardRefComponent<CurveModifierProps, CurveModifi
|
|
|
696
696
|
//#region src/core/Geometry/Decal/Decal.d.ts
|
|
697
697
|
type DecalProps = Omit<FIBER.ThreeElements['mesh'], 'ref' | 'children'> & {
|
|
698
698
|
debug?: boolean;
|
|
699
|
-
mesh?: React
|
|
699
|
+
mesh?: React.RefObject<THREE$1.Mesh>;
|
|
700
700
|
position?: FIBER.Vector3;
|
|
701
701
|
rotation?: FIBER.Euler | number;
|
|
702
702
|
scale?: FIBER.Vector3;
|
|
703
703
|
map?: THREE$1.Texture;
|
|
704
|
-
children?: React
|
|
704
|
+
children?: React.ReactNode;
|
|
705
705
|
polygonOffsetFactor?: number;
|
|
706
706
|
depthTest?: boolean;
|
|
707
707
|
};
|
|
@@ -709,7 +709,7 @@ declare const Decal: ForwardRefComponent<DecalProps, THREE$1.Mesh>;
|
|
|
709
709
|
//#endregion
|
|
710
710
|
//#region src/core/Geometry/Detailed/Detailed.d.ts
|
|
711
711
|
type DetailedProps = Omit<ThreeElements['lOD'], 'ref'> & {
|
|
712
|
-
children: React
|
|
712
|
+
children: React.ReactElement<Object3D>[];
|
|
713
713
|
hysteresis?: number;
|
|
714
714
|
distances: number[];
|
|
715
715
|
};
|
|
@@ -722,7 +722,7 @@ interface EdgesProps {
|
|
|
722
722
|
lineWidth?: number;
|
|
723
723
|
color?: THREE$1.ColorRepresentation;
|
|
724
724
|
scale?: number;
|
|
725
|
-
LineComponent?: React
|
|
725
|
+
LineComponent?: React.ComponentType<LineProps>;
|
|
726
726
|
}
|
|
727
727
|
interface EdgesRef {
|
|
728
728
|
computeLineDistances: () => void;
|
|
@@ -742,8 +742,8 @@ type PointsInstancesProps = Omit<ThreeElements['points'], 'ref'> & {
|
|
|
742
742
|
declare class PositionPoint extends THREE$1.Group {
|
|
743
743
|
size: number;
|
|
744
744
|
color: THREE$1.Color;
|
|
745
|
-
instance: React
|
|
746
|
-
instanceKey: React
|
|
745
|
+
instance: React.RefObject<THREE$1.Points | undefined>;
|
|
746
|
+
instanceKey: React.RefObject<PositionPoint | undefined>;
|
|
747
747
|
constructor();
|
|
748
748
|
get geometry(): THREE$1.BufferGeometry<THREE$1.NormalBufferAttributes, THREE$1.BufferGeometryEventMap> | undefined;
|
|
749
749
|
raycast(raycaster: THREE$1.Raycaster, intersects: THREE$1.Intersection[]): void;
|
|
@@ -767,7 +767,7 @@ type QuadraticBezierLineProps = Omit<LineProps, 'points' | 'ref'> & {
|
|
|
767
767
|
end: Vector3$2 | [number, number, number];
|
|
768
768
|
mid?: Vector3$2 | [number, number, number];
|
|
769
769
|
segments?: number;
|
|
770
|
-
LineComponent?: React
|
|
770
|
+
LineComponent?: React.ComponentType<LineProps>;
|
|
771
771
|
};
|
|
772
772
|
declare const QuadraticBezierLine: ForwardRefComponent<QuadraticBezierLineProps, QuadraticBezierLineRef>;
|
|
773
773
|
//#endregion
|
|
@@ -853,7 +853,7 @@ type Text3DProps = Omit<ThreeElements['mesh'], 'ref'> & {
|
|
|
853
853
|
bevelSegments?: number;
|
|
854
854
|
smooth?: number;
|
|
855
855
|
} & Omit<TextGeometryParameters, 'font'>;
|
|
856
|
-
declare const Text3D: ForwardRefComponent<React
|
|
856
|
+
declare const Text3D: ForwardRefComponent<React.PropsWithChildren<Text3DProps & {
|
|
857
857
|
letterSpacing?: number;
|
|
858
858
|
lineHeight?: number;
|
|
859
859
|
}>, THREE$1.Mesh>;
|
|
@@ -903,13 +903,13 @@ declare module '@react-three/fiber' {
|
|
|
903
903
|
}
|
|
904
904
|
}
|
|
905
905
|
interface WireframeProps {
|
|
906
|
-
geometry?: THREE$1.BufferGeometry | React
|
|
906
|
+
geometry?: THREE$1.BufferGeometry | React.RefObject<THREE$1.BufferGeometry>;
|
|
907
907
|
simplify?: boolean;
|
|
908
908
|
}
|
|
909
909
|
declare function Wireframe({
|
|
910
910
|
geometry: customGeometry,
|
|
911
911
|
...props
|
|
912
|
-
}: WireframeProps & WireframeMaterialProps): React
|
|
912
|
+
}: WireframeProps & WireframeMaterialProps): React.JSX.Element;
|
|
913
913
|
//#endregion
|
|
914
914
|
//#region src/core/Gizmos/gizmo/GizmoHelper.d.ts
|
|
915
915
|
type GizmoHelperContext = {
|
|
@@ -944,7 +944,7 @@ type GenericProps = {
|
|
|
944
944
|
onClick?: (e: ThreeEvent<MouseEvent>) => null;
|
|
945
945
|
faces?: string[];
|
|
946
946
|
};
|
|
947
|
-
declare const GizmoViewcube: (props: GenericProps) => React
|
|
947
|
+
declare const GizmoViewcube: (props: GenericProps) => React.JSX.Element;
|
|
948
948
|
//#endregion
|
|
949
949
|
//#region src/core/Gizmos/gizmo/GizmoViewport.d.ts
|
|
950
950
|
type GizmoViewportProps = ThreeElements['group'] & {
|
|
@@ -971,7 +971,7 @@ declare const GizmoViewport: ({
|
|
|
971
971
|
labelColor,
|
|
972
972
|
onClick,
|
|
973
973
|
...props
|
|
974
|
-
}: GizmoViewportProps) => React
|
|
974
|
+
}: GizmoViewportProps) => React.JSX.Element;
|
|
975
975
|
//#endregion
|
|
976
976
|
//#region src/core/Gizmos/PivotControls/context.d.ts
|
|
977
977
|
type OnDragStartProps = {
|
|
@@ -1014,14 +1014,14 @@ type PivotControlsProps = {
|
|
|
1014
1014
|
userData?: {
|
|
1015
1015
|
[key: string]: any;
|
|
1016
1016
|
};
|
|
1017
|
-
children?: React
|
|
1018
|
-
LineComponent?: React
|
|
1017
|
+
children?: React.ReactNode;
|
|
1018
|
+
LineComponent?: React.ComponentType<LineProps>;
|
|
1019
1019
|
};
|
|
1020
1020
|
declare const PivotControls: ForwardRefComponent<PivotControlsProps, THREE$1.Group>;
|
|
1021
1021
|
//#endregion
|
|
1022
1022
|
//#region src/core/Gizmos/TransformControls/TransformControls.d.ts
|
|
1023
1023
|
type TransformControlsProps = Omit<ThreeElement<typeof TransformControls$1>, 'ref' | 'args'> & Omit<ThreeElements['group'], 'ref'> & {
|
|
1024
|
-
object?: THREE$1.Object3D | React
|
|
1024
|
+
object?: THREE$1.Object3D | React.RefObject<THREE$1.Object3D>;
|
|
1025
1025
|
enabled?: boolean;
|
|
1026
1026
|
axis?: string | null;
|
|
1027
1027
|
domElement?: HTMLElement;
|
|
@@ -1034,7 +1034,7 @@ type TransformControlsProps = Omit<ThreeElement<typeof TransformControls$1>, 're
|
|
|
1034
1034
|
showX?: boolean;
|
|
1035
1035
|
showY?: boolean;
|
|
1036
1036
|
showZ?: boolean;
|
|
1037
|
-
children?: React
|
|
1037
|
+
children?: React.ReactElement<THREE$1.Object3D>;
|
|
1038
1038
|
camera?: THREE$1.Camera;
|
|
1039
1039
|
onChange?: (e?: THREE$1.Event) => void;
|
|
1040
1040
|
onMouseDown?: (e?: THREE$1.Event) => void;
|
|
@@ -1051,7 +1051,7 @@ type HelperType = Object3D & {
|
|
|
1051
1051
|
};
|
|
1052
1052
|
type HelperConstructor = new (...args: any[]) => any;
|
|
1053
1053
|
type HelperArgs<T> = T extends [infer _, ...infer R] ? R : never;
|
|
1054
|
-
declare function useHelper<T extends HelperConstructor>(object3D: React
|
|
1054
|
+
declare function useHelper<T extends HelperConstructor>(object3D: React.RefObject<Object3D> | Falsey, helperConstructor: T, ...args: HelperArgs<ConstructorParameters<T>>): React.RefObject<HelperType | null>;
|
|
1055
1055
|
type HelperProps<T extends HelperConstructor> = {
|
|
1056
1056
|
type: T;
|
|
1057
1057
|
args?: HelperArgs<ConstructorParameters<T>>;
|
|
@@ -1059,7 +1059,7 @@ type HelperProps<T extends HelperConstructor> = {
|
|
|
1059
1059
|
declare const Helper: <T extends HelperConstructor>({
|
|
1060
1060
|
type: helperConstructor,
|
|
1061
1061
|
args
|
|
1062
|
-
}: HelperProps<T>) => React
|
|
1062
|
+
}: HelperProps<T>) => React.JSX.Element;
|
|
1063
1063
|
//#endregion
|
|
1064
1064
|
//#region src/core/Helpers/PointMaterial/PointMaterial.d.ts
|
|
1065
1065
|
declare class PointMaterialImpl extends THREE$1.PointsMaterial {
|
|
@@ -1083,17 +1083,17 @@ declare module '@react-three/fiber' {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
}
|
|
1085
1085
|
type Api$1 = {
|
|
1086
|
-
getParent: () => React
|
|
1087
|
-
subscribe: <T>(ref: React
|
|
1086
|
+
getParent: () => React.RefObject<InstancedMesh$1>;
|
|
1087
|
+
subscribe: <T>(ref: React.RefObject<T>) => void;
|
|
1088
1088
|
};
|
|
1089
1089
|
type InstancesProps = Omit<ThreeElements['instancedMesh'], 'ref' | 'args'> & {
|
|
1090
|
-
context?: React
|
|
1090
|
+
context?: React.Context<Api$1>;
|
|
1091
1091
|
range?: number;
|
|
1092
1092
|
limit?: number;
|
|
1093
1093
|
frames?: number;
|
|
1094
1094
|
};
|
|
1095
1095
|
type InstanceProps = Omit<ThreeElements['positionMesh'], 'ref'> & {
|
|
1096
|
-
context?: React
|
|
1096
|
+
context?: React.Context<Api$1>;
|
|
1097
1097
|
};
|
|
1098
1098
|
type InstancedAttributeProps = Omit<ThreeElements['instancedBufferAttribute'], 'ref' | 'args'> & {
|
|
1099
1099
|
name: string;
|
|
@@ -1107,25 +1107,25 @@ type InstancedMesh$1 = Omit<THREE$1.InstancedMesh, 'instanceMatrix' | 'instanceC
|
|
|
1107
1107
|
};
|
|
1108
1108
|
declare class PositionMesh extends THREE$1.Group {
|
|
1109
1109
|
color: THREE$1.Color;
|
|
1110
|
-
instance: React
|
|
1111
|
-
instanceKey: React
|
|
1110
|
+
instance: React.RefObject<THREE$1.InstancedMesh | undefined>;
|
|
1111
|
+
instanceKey: React.RefObject<PositionMesh | undefined>;
|
|
1112
1112
|
constructor();
|
|
1113
1113
|
get geometry(): THREE$1.BufferGeometry<THREE$1.NormalBufferAttributes, THREE$1.BufferGeometryEventMap> | undefined;
|
|
1114
1114
|
raycast(raycaster: THREE$1.Raycaster, intersects: THREE$1.Intersection[]): void;
|
|
1115
1115
|
}
|
|
1116
|
-
declare const Instance: React
|
|
1117
|
-
context?: React
|
|
1118
|
-
} & React
|
|
1116
|
+
declare const Instance: React.ForwardRefExoticComponent<Omit<FIBER.Mutable<FIBER.Overwrite<Partial<FIBER.Overwrite<PositionMesh, FIBER.MathProps<PositionMesh> & FIBER.ReactProps<PositionMesh> & Partial<FIBER.EventHandlers>>>, Omit<FIBER.InstanceProps<PositionMesh, typeof PositionMesh>, "object">>>, "ref"> & {
|
|
1117
|
+
context?: React.Context<Api$1>;
|
|
1118
|
+
} & React.RefAttributes<unknown>>;
|
|
1119
1119
|
declare const Instances: ForwardRefComponent<InstancesProps, THREE$1.InstancedMesh>;
|
|
1120
1120
|
interface MergedProps extends Omit<InstancesProps, 'children'> {
|
|
1121
1121
|
meshes: THREE$1.Mesh[] | Record<string, THREE$1.Object3D>;
|
|
1122
|
-
children: (...instances: [React
|
|
1122
|
+
children: (...instances: [React.FC<InstanceProps> & Record<string, React.FC<InstanceProps>>, ...React.FC<InstanceProps>[]]) => React.ReactNode;
|
|
1123
1123
|
}
|
|
1124
1124
|
declare const Merged: ForwardRefComponent<MergedProps, THREE$1.Group>;
|
|
1125
|
-
declare function createInstances<T = InstanceProps>(): readonly [React
|
|
1126
|
-
context?: React
|
|
1127
|
-
}> & React
|
|
1128
|
-
declare const InstancedAttribute: React
|
|
1125
|
+
declare function createInstances<T = InstanceProps>(): readonly [React.ForwardRefExoticComponent<Omit<InstancesProps, "ref"> & React.RefAttributes<THREE$1.InstancedMesh<THREE$1.BufferGeometry<THREE$1.NormalBufferAttributes, THREE$1.BufferGeometryEventMap>, THREE$1.Material | THREE$1.Material[], THREE$1.InstancedMeshEventMap>>>, React.ForwardRefExoticComponent<React.PropsWithoutRef<T & Omit<FIBER.Mutable<FIBER.Overwrite<Partial<FIBER.Overwrite<PositionMesh, FIBER.MathProps<PositionMesh> & FIBER.ReactProps<PositionMesh> & Partial<FIBER.EventHandlers>>>, Omit<FIBER.InstanceProps<PositionMesh, typeof PositionMesh>, "object">>>, "ref"> & {
|
|
1126
|
+
context?: React.Context<Api$1>;
|
|
1127
|
+
}> & React.RefAttributes<PositionMesh & T>>];
|
|
1128
|
+
declare const InstancedAttribute: React.ForwardRefExoticComponent<Omit<InstancedAttributeProps, "ref"> & React.RefAttributes<THREE$1.InstancedBufferAttribute>>;
|
|
1129
1129
|
//#endregion
|
|
1130
1130
|
//#region src/core/Loaders/useSpriteLoader/useSpriteLoader.d.ts
|
|
1131
1131
|
type Size = {
|
|
@@ -1188,7 +1188,7 @@ type AnimationEventData = {
|
|
|
1188
1188
|
currentFrame: number;
|
|
1189
1189
|
};
|
|
1190
1190
|
type CommonProps<T, U, V> = Pick<T & U & V, keyof T & keyof U & keyof V>;
|
|
1191
|
-
type CommonMeshProps = CommonProps<React
|
|
1191
|
+
type CommonMeshProps = CommonProps<React.ComponentProps<'mesh'>, React.ComponentProps<typeof Instance>, React.ComponentProps<typeof Instances>>;
|
|
1192
1192
|
type SpriteAnimatorProps = {
|
|
1193
1193
|
startFrame?: number;
|
|
1194
1194
|
endFrame?: number;
|
|
@@ -1228,35 +1228,35 @@ type SpriteAnimatorState = {
|
|
|
1228
1228
|
offset?: number;
|
|
1229
1229
|
imageUrl?: string;
|
|
1230
1230
|
hasEnded: boolean;
|
|
1231
|
-
ref: React
|
|
1231
|
+
ref: React.Ref<THREE$1.Group>;
|
|
1232
1232
|
};
|
|
1233
1233
|
declare function useSpriteAnimator(): SpriteAnimatorState | null;
|
|
1234
|
-
declare const SpriteAnimator: React
|
|
1234
|
+
declare const SpriteAnimator: React.ForwardRefExoticComponent<Omit<SpriteAnimatorProps, "ref"> & React.RefAttributes<THREE$1.Group<THREE$1.Object3DEventMap>>>;
|
|
1235
1235
|
//#endregion
|
|
1236
1236
|
//#region src/core/Helpers/useAnimations/useAnimations.d.ts
|
|
1237
1237
|
type Api<T extends AnimationClip> = {
|
|
1238
|
-
ref: React
|
|
1238
|
+
ref: React.RefObject<Object3D | undefined | null>;
|
|
1239
1239
|
clips: AnimationClip[];
|
|
1240
1240
|
mixer: AnimationMixer;
|
|
1241
1241
|
names: T['name'][];
|
|
1242
1242
|
actions: { [key in T['name']]: AnimationAction | null };
|
|
1243
1243
|
};
|
|
1244
|
-
declare function useAnimations<T extends AnimationClip>(clips: T[], root?: React
|
|
1244
|
+
declare function useAnimations<T extends AnimationClip>(clips: T[], root?: React.RefObject<Object3D | undefined | null> | Object3D): Api<T>;
|
|
1245
1245
|
//#endregion
|
|
1246
1246
|
//#region src/core/Helpers/useContextBridge/useContextBridge.d.ts
|
|
1247
|
-
declare function useContextBridge(...contexts: Array<React
|
|
1247
|
+
declare function useContextBridge(...contexts: Array<React.Context<any>>): ({
|
|
1248
1248
|
children
|
|
1249
1249
|
}: {
|
|
1250
|
-
children: React
|
|
1251
|
-
}) => React
|
|
1250
|
+
children: React.ReactNode;
|
|
1251
|
+
}) => React.JSX.Element;
|
|
1252
1252
|
//#endregion
|
|
1253
1253
|
//#region src/core/Helpers/Clone/Clone.d.ts
|
|
1254
1254
|
type CloneProps = Omit<ThreeElements['group'], 'ref' | 'children'> & {
|
|
1255
1255
|
object: THREE$1.Object3D | THREE$1.Object3D[];
|
|
1256
|
-
children?: React
|
|
1256
|
+
children?: React.ReactNode;
|
|
1257
1257
|
deep?: boolean | 'materialsOnly' | 'geometriesOnly';
|
|
1258
1258
|
keys?: string[];
|
|
1259
|
-
inject?: ThreeElements['mesh'] | React
|
|
1259
|
+
inject?: ThreeElements['mesh'] | React.ReactNode | ((object: THREE$1.Object3D) => React.ReactNode);
|
|
1260
1260
|
castShadow?: boolean;
|
|
1261
1261
|
receiveShadow?: boolean;
|
|
1262
1262
|
isChild?: boolean;
|
|
@@ -1272,7 +1272,7 @@ declare const ComputedAttribute: ({
|
|
|
1272
1272
|
compute,
|
|
1273
1273
|
name,
|
|
1274
1274
|
...props
|
|
1275
|
-
}: ComputedAttributeProps) => React
|
|
1275
|
+
}: ComputedAttributeProps) => React.JSX.Element;
|
|
1276
1276
|
//#endregion
|
|
1277
1277
|
//#region src/core/Helpers/Example/Example.d.ts
|
|
1278
1278
|
type ExampleProps = {
|
|
@@ -1280,12 +1280,12 @@ type ExampleProps = {
|
|
|
1280
1280
|
color?: Color;
|
|
1281
1281
|
debug?: boolean;
|
|
1282
1282
|
bevelSize?: number;
|
|
1283
|
-
} & React
|
|
1283
|
+
} & React.ComponentProps<'group'>;
|
|
1284
1284
|
type ExampleApi = {
|
|
1285
1285
|
incr: (x?: number) => void;
|
|
1286
1286
|
decr: (x?: number) => void;
|
|
1287
1287
|
};
|
|
1288
|
-
declare const Example: React
|
|
1288
|
+
declare const Example: React.ForwardRefExoticComponent<Omit<ExampleProps, "ref"> & React.RefAttributes<ExampleApi>>;
|
|
1289
1289
|
//#endregion
|
|
1290
1290
|
//#region src/core/Helpers/Sampler/Sampler.d.ts
|
|
1291
1291
|
type SamplePayload = {
|
|
@@ -1299,8 +1299,8 @@ type TransformPayload = SamplePayload & {
|
|
|
1299
1299
|
sampledMesh: Mesh$1;
|
|
1300
1300
|
};
|
|
1301
1301
|
type SamplerProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
1302
|
-
mesh?: React
|
|
1303
|
-
instances?: React
|
|
1302
|
+
mesh?: React.RefObject<Mesh$1>;
|
|
1303
|
+
instances?: React.RefObject<InstancedMesh>;
|
|
1304
1304
|
weight?: string;
|
|
1305
1305
|
transform?: TransformFn;
|
|
1306
1306
|
count?: number;
|
|
@@ -1310,7 +1310,7 @@ interface useSurfaceSamplerProps {
|
|
|
1310
1310
|
weight?: string;
|
|
1311
1311
|
count?: number;
|
|
1312
1312
|
}
|
|
1313
|
-
declare function useSurfaceSampler(mesh: React
|
|
1313
|
+
declare function useSurfaceSampler(mesh: React.RefObject<Mesh$1>, count?: number, transform?: TransformFn, weight?: string, instanceMesh?: React.RefObject<InstancedMesh> | null): InstancedBufferAttribute;
|
|
1314
1314
|
declare function Sampler({
|
|
1315
1315
|
children,
|
|
1316
1316
|
weight,
|
|
@@ -1319,7 +1319,7 @@ declare function Sampler({
|
|
|
1319
1319
|
mesh,
|
|
1320
1320
|
count,
|
|
1321
1321
|
...props
|
|
1322
|
-
}: SamplerProps): React
|
|
1322
|
+
}: SamplerProps): React.JSX.Element;
|
|
1323
1323
|
//#endregion
|
|
1324
1324
|
//#region src/core/Helpers/Svg/Svg.d.ts
|
|
1325
1325
|
interface SvgProps extends Omit<ThreeElements['object3D'], 'ref'> {
|
|
@@ -1347,7 +1347,7 @@ interface CubeTextureOptions {
|
|
|
1347
1347
|
path: string;
|
|
1348
1348
|
}
|
|
1349
1349
|
interface CubeTextureProps extends CubeTextureOptions {
|
|
1350
|
-
children?: (texture: CubeTexture$1) => React
|
|
1350
|
+
children?: (texture: CubeTexture$1) => React.ReactNode;
|
|
1351
1351
|
files: string[];
|
|
1352
1352
|
}
|
|
1353
1353
|
declare function useCubeTexture(files: string[], {
|
|
@@ -1362,7 +1362,7 @@ declare function CubeTexture({
|
|
|
1362
1362
|
children,
|
|
1363
1363
|
files,
|
|
1364
1364
|
...options
|
|
1365
|
-
}: CubeTextureProps): React
|
|
1365
|
+
}: CubeTextureProps): React.JSX.Element;
|
|
1366
1366
|
//#endregion
|
|
1367
1367
|
//#region src/core/Loaders/Loader/Loader.d.ts
|
|
1368
1368
|
interface LoaderOptions {
|
|
@@ -1380,7 +1380,7 @@ declare function Loader({
|
|
|
1380
1380
|
dataStyles,
|
|
1381
1381
|
dataInterpolation,
|
|
1382
1382
|
initialState
|
|
1383
|
-
}: Partial<LoaderOptions>): React
|
|
1383
|
+
}: Partial<LoaderOptions>): React.JSX.Element | null;
|
|
1384
1384
|
//#endregion
|
|
1385
1385
|
//#region src/core/Loaders/Preload/Preload.d.ts
|
|
1386
1386
|
type PreloadProps = {
|
|
@@ -1415,25 +1415,25 @@ declare function useVideoTexture(srcOrSrcObject: HTMLVideoElement['src' | 'srcOb
|
|
|
1415
1415
|
type UseVideoTextureParams = Parameters<typeof useVideoTexture>;
|
|
1416
1416
|
type VideoTexture = ReturnType<typeof useVideoTexture>;
|
|
1417
1417
|
type VideoTextureProps = {
|
|
1418
|
-
children?: (texture: VideoTexture) => React
|
|
1418
|
+
children?: (texture: VideoTexture) => React.ReactNode;
|
|
1419
1419
|
src: UseVideoTextureParams[0];
|
|
1420
1420
|
} & UseVideoTextureParams[1];
|
|
1421
|
-
declare const VideoTexture: React
|
|
1422
|
-
children?: (texture: VideoTexture) => React
|
|
1421
|
+
declare const VideoTexture: React.ForwardRefExoticComponent<{
|
|
1422
|
+
children?: (texture: VideoTexture) => React.ReactNode;
|
|
1423
1423
|
src: UseVideoTextureParams[0];
|
|
1424
1424
|
} & {
|
|
1425
1425
|
unsuspend?: keyof HTMLVideoElementEventMap;
|
|
1426
1426
|
start?: boolean;
|
|
1427
1427
|
hls?: Parameters<typeof getHls>[0];
|
|
1428
1428
|
onVideoFrame?: VideoFrameRequestCallback;
|
|
1429
|
-
} & Partial<Omit<HTMLVideoElement, "children" | "src" | "srcObject">> & React
|
|
1429
|
+
} & Partial<Omit<HTMLVideoElement, "children" | "src" | "srcObject">> & React.RefAttributes<THREE$1.VideoTexture<HTMLVideoElement>>>;
|
|
1430
1430
|
//#endregion
|
|
1431
1431
|
//#region src/core/Textures/ScreenVideoTexture/ScreenVideoTexture.d.ts
|
|
1432
1432
|
type ScreenVideoTextureProps = Omit<VideoTextureProps, 'src'> & {
|
|
1433
1433
|
options?: DisplayMediaStreamOptions;
|
|
1434
1434
|
};
|
|
1435
|
-
declare const ScreenVideoTexture: React
|
|
1436
|
-
children?: (texture: THREE$1.VideoTexture<HTMLVideoElement>) => React
|
|
1435
|
+
declare const ScreenVideoTexture: React.ForwardRefExoticComponent<Omit<{
|
|
1436
|
+
children?: (texture: THREE$1.VideoTexture<HTMLVideoElement>) => React.ReactNode;
|
|
1437
1437
|
src: string | MediaProvider | null;
|
|
1438
1438
|
} & {
|
|
1439
1439
|
unsuspend?: keyof HTMLVideoElementEventMap;
|
|
@@ -1442,7 +1442,7 @@ declare const ScreenVideoTexture: React$1.ForwardRefExoticComponent<Omit<{
|
|
|
1442
1442
|
onVideoFrame?: VideoFrameRequestCallback;
|
|
1443
1443
|
} & Partial<Omit<HTMLVideoElement, "children" | "src" | "srcObject">>, "src"> & {
|
|
1444
1444
|
options?: DisplayMediaStreamOptions;
|
|
1445
|
-
} & React
|
|
1445
|
+
} & React.RefAttributes<THREE$1.VideoTexture<HTMLVideoElement>>>;
|
|
1446
1446
|
//#endregion
|
|
1447
1447
|
//#region src/core/Textures/TrailTexture/TrailTexture.d.ts
|
|
1448
1448
|
type TrailConfig = {
|
|
@@ -1458,12 +1458,12 @@ type TrailConfig = {
|
|
|
1458
1458
|
};
|
|
1459
1459
|
declare function useTrailTexture(config?: Partial<TrailConfig>): [Texture$2, (ThreeEvent: any) => void];
|
|
1460
1460
|
type TrailTextureProps = {
|
|
1461
|
-
children?: (texture: ReturnType<typeof useTrailTexture>) => React
|
|
1461
|
+
children?: (texture: ReturnType<typeof useTrailTexture>) => React.ReactNode;
|
|
1462
1462
|
} & TrailConfig;
|
|
1463
1463
|
declare const TrailTexture: ({
|
|
1464
1464
|
children,
|
|
1465
1465
|
...config
|
|
1466
|
-
}: TrailTextureProps) => React
|
|
1466
|
+
}: TrailTextureProps) => React.JSX.Element;
|
|
1467
1467
|
//#endregion
|
|
1468
1468
|
//#region src/core/Loaders/useFBX/useFBX.d.ts
|
|
1469
1469
|
declare function useFBX(path: string): Group;
|
|
@@ -1476,7 +1476,7 @@ declare function Fbx({
|
|
|
1476
1476
|
...props
|
|
1477
1477
|
}: {
|
|
1478
1478
|
path: Parameters<typeof useFBX>[0];
|
|
1479
|
-
} & Omit<React
|
|
1479
|
+
} & Omit<React.ComponentProps<typeof Clone>, 'object'>): React.JSX.Element;
|
|
1480
1480
|
//#endregion
|
|
1481
1481
|
//#region src/core/Loaders/useGLTF/useGLTF.d.ts
|
|
1482
1482
|
type Path = string | string[];
|
|
@@ -1495,7 +1495,7 @@ type GltfProps = Omit<CloneProps, 'object'> & {
|
|
|
1495
1495
|
useMeshOpt?: UseMeshopt;
|
|
1496
1496
|
extendLoader?: ExtendLoader;
|
|
1497
1497
|
};
|
|
1498
|
-
declare const Gltf: React
|
|
1498
|
+
declare const Gltf: React.ForwardRefExoticComponent<Omit<GltfProps, "ref"> & React.RefAttributes<THREE.Group<THREE.Object3DEventMap>>>;
|
|
1499
1499
|
//#endregion
|
|
1500
1500
|
//#region src/core/Loaders/useKTX2/useKTX2.d.ts
|
|
1501
1501
|
declare function useKTX2<Url extends string[] | string | Record<string, string>>(input: Url, basisPath?: string): Url extends any[] ? Texture$2[] : Url extends object ? { [key in keyof Url]: Texture$2 } : Texture$2;
|
|
@@ -1508,10 +1508,10 @@ declare const Ktx2: ({
|
|
|
1508
1508
|
input,
|
|
1509
1509
|
basisPath
|
|
1510
1510
|
}: {
|
|
1511
|
-
children?: (texture: ReturnType<typeof useKTX2>) => React
|
|
1511
|
+
children?: (texture: ReturnType<typeof useKTX2>) => React.ReactNode;
|
|
1512
1512
|
input: Parameters<typeof useKTX2>[0];
|
|
1513
1513
|
basisPath?: Parameters<typeof useKTX2>[1];
|
|
1514
|
-
}) => React
|
|
1514
|
+
}) => React.JSX.Element;
|
|
1515
1515
|
//#endregion
|
|
1516
1516
|
//#region src/core/Loaders/useProgress/useProgress.d.ts
|
|
1517
1517
|
type Data = {
|
|
@@ -1526,8 +1526,8 @@ declare const useProgress: zustand0.UseBoundStore<zustand0.StoreApi<Data>>;
|
|
|
1526
1526
|
declare function Progress({
|
|
1527
1527
|
children
|
|
1528
1528
|
}: {
|
|
1529
|
-
children?: (result: Data) => React
|
|
1530
|
-
}): React
|
|
1529
|
+
children?: (result: Data) => React.ReactNode;
|
|
1530
|
+
}): React.JSX.Element;
|
|
1531
1531
|
//#endregion
|
|
1532
1532
|
//#region src/core/Loaders/useTexture/useTexture.d.ts
|
|
1533
1533
|
type MappedTextureType<T extends string | string[] | Record<string, string>> = T extends string[] ? Texture$2[] : T extends Record<string, string> ? { [K in keyof T]: Texture$2 } : Texture$2;
|
|
@@ -1542,17 +1542,17 @@ declare const Texture: ({
|
|
|
1542
1542
|
input,
|
|
1543
1543
|
onLoad
|
|
1544
1544
|
}: {
|
|
1545
|
-
children?: (texture: ReturnType<typeof useTexture>) => React
|
|
1545
|
+
children?: (texture: ReturnType<typeof useTexture>) => React.ReactNode;
|
|
1546
1546
|
input: Parameters<typeof useTexture>[0];
|
|
1547
1547
|
onLoad?: Parameters<typeof useTexture>[1];
|
|
1548
|
-
}) => React
|
|
1548
|
+
}) => React.JSX.Element;
|
|
1549
1549
|
//#endregion
|
|
1550
1550
|
//#region src/core/Textures/WebcamVideoTexture/WebcamVideoTexture.d.ts
|
|
1551
1551
|
type WebcamVideoTextureProps = Omit<VideoTextureProps, 'src'> & {
|
|
1552
1552
|
constraints?: MediaStreamConstraints;
|
|
1553
1553
|
};
|
|
1554
|
-
declare const WebcamVideoTexture: React
|
|
1555
|
-
children?: (texture: THREE$1.VideoTexture<HTMLVideoElement>) => React
|
|
1554
|
+
declare const WebcamVideoTexture: React.ForwardRefExoticComponent<Omit<{
|
|
1555
|
+
children?: (texture: THREE$1.VideoTexture<HTMLVideoElement>) => React.ReactNode;
|
|
1556
1556
|
src: string | MediaProvider | null;
|
|
1557
1557
|
} & {
|
|
1558
1558
|
unsuspend?: keyof HTMLVideoElementEventMap;
|
|
@@ -1561,7 +1561,7 @@ declare const WebcamVideoTexture: React$1.ForwardRefExoticComponent<Omit<{
|
|
|
1561
1561
|
onVideoFrame?: VideoFrameRequestCallback;
|
|
1562
1562
|
} & Partial<Omit<HTMLVideoElement, "children" | "src" | "srcObject">>, "src"> & {
|
|
1563
1563
|
constraints?: MediaStreamConstraints;
|
|
1564
|
-
} & React
|
|
1564
|
+
} & React.RefAttributes<THREE$1.VideoTexture<HTMLVideoElement>>>;
|
|
1565
1565
|
//#endregion
|
|
1566
1566
|
//#region src/core/Performance/AdaptiveDpr/AdaptiveDpr.d.ts
|
|
1567
1567
|
declare function AdaptiveDpr({
|
|
@@ -1576,12 +1576,12 @@ declare function AdaptiveEvents(): null;
|
|
|
1576
1576
|
//#region src/core/Performance/DetectGPU/DetectGPU.d.ts
|
|
1577
1577
|
declare const useDetectGPU: (props?: GetGPUTier) => detect_gpu0.TierResult;
|
|
1578
1578
|
type DetectGPUProps = {
|
|
1579
|
-
children?: (result: ReturnType<typeof useDetectGPU>) => React
|
|
1579
|
+
children?: (result: ReturnType<typeof useDetectGPU>) => React.ReactNode;
|
|
1580
1580
|
} & Parameters<typeof useDetectGPU>[0];
|
|
1581
1581
|
declare function DetectGPU({
|
|
1582
1582
|
children,
|
|
1583
1583
|
...options
|
|
1584
|
-
}: DetectGPUProps): React
|
|
1584
|
+
}: DetectGPUProps): React.JSX.Element;
|
|
1585
1585
|
//#endregion
|
|
1586
1586
|
//#region src/core/Performance/meshBounds/meshBounds.d.ts
|
|
1587
1587
|
declare function meshBounds(raycaster: Raycaster, intersects: Intersection[]): void;
|
|
@@ -1603,7 +1603,7 @@ type PerformanceMonitorApi = {
|
|
|
1603
1603
|
flipped: number;
|
|
1604
1604
|
fallback: boolean;
|
|
1605
1605
|
subscriptions: Map<Symbol, Partial<PerformanceMonitorHookApi>>;
|
|
1606
|
-
subscribe: (ref: React
|
|
1606
|
+
subscribe: (ref: React.RefObject<Partial<PerformanceMonitorHookApi>>) => () => void;
|
|
1607
1607
|
};
|
|
1608
1608
|
type PerformanceMonitorProps = {
|
|
1609
1609
|
ms?: number;
|
|
@@ -1617,7 +1617,7 @@ type PerformanceMonitorProps = {
|
|
|
1617
1617
|
onDecline?: (api: PerformanceMonitorApi) => void;
|
|
1618
1618
|
onChange?: (api: PerformanceMonitorApi) => void;
|
|
1619
1619
|
onFallback?: (api: PerformanceMonitorApi) => void;
|
|
1620
|
-
children?: React
|
|
1620
|
+
children?: React.ReactNode;
|
|
1621
1621
|
};
|
|
1622
1622
|
declare function PerformanceMonitor({
|
|
1623
1623
|
iterations,
|
|
@@ -1632,7 +1632,7 @@ declare function PerformanceMonitor({
|
|
|
1632
1632
|
onChange,
|
|
1633
1633
|
onFallback,
|
|
1634
1634
|
children
|
|
1635
|
-
}: PerformanceMonitorProps): React
|
|
1635
|
+
}: PerformanceMonitorProps): React.JSX.Element;
|
|
1636
1636
|
declare function usePerformanceMonitor({
|
|
1637
1637
|
onIncline,
|
|
1638
1638
|
onDecline,
|
|
@@ -1644,7 +1644,7 @@ declare function usePerformanceMonitor({
|
|
|
1644
1644
|
type StatsProps = {
|
|
1645
1645
|
showPanel?: number;
|
|
1646
1646
|
className?: string;
|
|
1647
|
-
parent?: React
|
|
1647
|
+
parent?: React.RefObject<HTMLElement>;
|
|
1648
1648
|
};
|
|
1649
1649
|
declare function Stats({
|
|
1650
1650
|
showPanel,
|
|
@@ -1659,8 +1659,8 @@ type StatsGlProps = Partial<StatsOptions> & {
|
|
|
1659
1659
|
clearStatsGlStyle?: boolean;
|
|
1660
1660
|
showPanel?: number;
|
|
1661
1661
|
className?: string;
|
|
1662
|
-
parent?: React
|
|
1663
|
-
ref?: React
|
|
1662
|
+
parent?: React.RefObject<HTMLElement>;
|
|
1663
|
+
ref?: React.RefObject<HTMLElement>;
|
|
1664
1664
|
};
|
|
1665
1665
|
declare const StatsGl: ForwardRefComponent<StatsGlProps, HTMLDivElement>;
|
|
1666
1666
|
//#endregion
|
|
@@ -1672,24 +1672,24 @@ declare function useFBO(width?: number | FBOSettings, height?: number, settings?
|
|
|
1672
1672
|
type UseFBOParams = Parameters<typeof useFBO>;
|
|
1673
1673
|
type Fbo = ReturnType<typeof useFBO>;
|
|
1674
1674
|
type FboProps = {
|
|
1675
|
-
children?: (target: Fbo) => React
|
|
1675
|
+
children?: (target: Fbo) => React.ReactNode;
|
|
1676
1676
|
width?: UseFBOParams[0];
|
|
1677
1677
|
height?: UseFBOParams[1];
|
|
1678
1678
|
} & FBOSettings;
|
|
1679
|
-
declare const Fbo: React
|
|
1680
|
-
children?: (target: Fbo) => React
|
|
1679
|
+
declare const Fbo: React.ForwardRefExoticComponent<{
|
|
1680
|
+
children?: (target: Fbo) => React.ReactNode;
|
|
1681
1681
|
width?: UseFBOParams[0];
|
|
1682
1682
|
height?: UseFBOParams[1];
|
|
1683
1683
|
} & {
|
|
1684
1684
|
depth?: boolean;
|
|
1685
|
-
} & THREE$1.RenderTargetOptions & React
|
|
1685
|
+
} & THREE$1.RenderTargetOptions & React.RefAttributes<THREE$1.WebGLRenderTarget<THREE$1.Texture<unknown>>>>;
|
|
1686
1686
|
//#endregion
|
|
1687
1687
|
//#region src/core/Portal/Fisheye/Fisheye.d.ts
|
|
1688
1688
|
type FisheyeProps = ThreeElements['mesh'] & {
|
|
1689
1689
|
zoom?: number;
|
|
1690
1690
|
segments?: number;
|
|
1691
1691
|
resolution?: number;
|
|
1692
|
-
children: React
|
|
1692
|
+
children: React.ReactNode;
|
|
1693
1693
|
renderPriority?: number;
|
|
1694
1694
|
};
|
|
1695
1695
|
declare function Fisheye({
|
|
@@ -1699,17 +1699,17 @@ declare function Fisheye({
|
|
|
1699
1699
|
children,
|
|
1700
1700
|
resolution,
|
|
1701
1701
|
...props
|
|
1702
|
-
}: FisheyeProps): React
|
|
1702
|
+
}: FisheyeProps): React.JSX.Element;
|
|
1703
1703
|
//#endregion
|
|
1704
1704
|
//#region src/core/Portal/Hud/Hud.d.ts
|
|
1705
1705
|
type HudProps = {
|
|
1706
|
-
children: React
|
|
1706
|
+
children: React.ReactNode;
|
|
1707
1707
|
renderPriority?: number;
|
|
1708
1708
|
};
|
|
1709
1709
|
declare function Hud({
|
|
1710
1710
|
children,
|
|
1711
1711
|
renderPriority
|
|
1712
|
-
}: HudProps): React
|
|
1712
|
+
}: HudProps): React.JSX.Element;
|
|
1713
1713
|
//#endregion
|
|
1714
1714
|
//#region src/core/Portal/Mask/Mask.d.ts
|
|
1715
1715
|
type MaskProps = Omit<ThreeElements['mesh'], 'ref' | 'id'> & {
|
|
@@ -1738,7 +1738,7 @@ type RenderCubeTextureProps = Omit<ThreeElements['texture'], 'ref' | 'args' | 'r
|
|
|
1738
1738
|
compute?: ComputeFunction;
|
|
1739
1739
|
flip?: boolean;
|
|
1740
1740
|
resolution?: number;
|
|
1741
|
-
children: React
|
|
1741
|
+
children: React.ReactNode;
|
|
1742
1742
|
near?: number;
|
|
1743
1743
|
far?: number;
|
|
1744
1744
|
position?: ReactThreeFiber.Vector3;
|
|
@@ -1756,7 +1756,7 @@ type RenderCubeTextureApi = {
|
|
|
1756
1756
|
declare const RenderCubeTexture: ForwardRefComponent<RenderCubeTextureProps, RenderCubeTextureApi>;
|
|
1757
1757
|
//#endregion
|
|
1758
1758
|
//#region src/core/Portal/useCustomRaycast/useCustomRaycast.d.ts
|
|
1759
|
-
declare function useCustomRaycast(camera: Camera | React
|
|
1759
|
+
declare function useCustomRaycast(camera: Camera | React.RefObject<Camera>, props?: Partial<Raycaster>): (_: Raycaster, intersects: Intersection[]) => void;
|
|
1760
1760
|
//#endregion
|
|
1761
1761
|
//#region src/core/Portal/View/View.d.ts
|
|
1762
1762
|
type CanvasSize = {
|
|
@@ -1769,26 +1769,26 @@ type ContainerProps = {
|
|
|
1769
1769
|
visible: boolean;
|
|
1770
1770
|
scene: THREE$1.Scene;
|
|
1771
1771
|
index: number;
|
|
1772
|
-
children?: React
|
|
1772
|
+
children?: React.ReactNode;
|
|
1773
1773
|
frames: number;
|
|
1774
|
-
rect: React
|
|
1775
|
-
track?: React
|
|
1774
|
+
rect: React.RefObject<DOMRect>;
|
|
1775
|
+
track?: React.RefObject<HTMLElement>;
|
|
1776
1776
|
canvasSize: CanvasSize;
|
|
1777
1777
|
};
|
|
1778
1778
|
type ViewProps = {
|
|
1779
1779
|
as?: string;
|
|
1780
1780
|
id?: string;
|
|
1781
1781
|
className?: string;
|
|
1782
|
-
style?: React
|
|
1782
|
+
style?: React.CSSProperties;
|
|
1783
1783
|
visible?: boolean;
|
|
1784
1784
|
index?: number;
|
|
1785
1785
|
frames?: number;
|
|
1786
|
-
children?: React
|
|
1787
|
-
track?: React
|
|
1786
|
+
children?: React.ReactNode;
|
|
1787
|
+
track?: React.RefObject<HTMLElement>;
|
|
1788
1788
|
};
|
|
1789
1789
|
type ViewportProps = {
|
|
1790
|
-
Port: () => React
|
|
1791
|
-
} & React
|
|
1790
|
+
Port: () => React.JSX.Element;
|
|
1791
|
+
} & React.ForwardRefExoticComponent<ViewProps & React.RefAttributes<HTMLElement | THREE$1.Group>>;
|
|
1792
1792
|
declare const View: ViewportProps;
|
|
1793
1793
|
//#endregion
|
|
1794
1794
|
//#region src/core/Staging/Backdrop/Backdrop.d.ts
|
|
@@ -1796,7 +1796,7 @@ type BackdropProps = ThreeElements['group'] & {
|
|
|
1796
1796
|
floor?: number;
|
|
1797
1797
|
segments?: number;
|
|
1798
1798
|
receiveShadow?: boolean;
|
|
1799
|
-
children?: React
|
|
1799
|
+
children?: React.ReactNode;
|
|
1800
1800
|
};
|
|
1801
1801
|
declare function Backdrop({
|
|
1802
1802
|
children,
|
|
@@ -1810,7 +1810,7 @@ declare function Backdrop({
|
|
|
1810
1810
|
floor?: number | undefined;
|
|
1811
1811
|
segments?: number | undefined;
|
|
1812
1812
|
receiveShadow: any;
|
|
1813
|
-
}): React
|
|
1813
|
+
}): React.JSX.Element;
|
|
1814
1814
|
//#endregion
|
|
1815
1815
|
//#region src/core/Staging/BBAnchor/BBAnchor.d.ts
|
|
1816
1816
|
type BBAnchorProps = ThreeElements['group'] & {
|
|
@@ -1819,7 +1819,7 @@ type BBAnchorProps = ThreeElements['group'] & {
|
|
|
1819
1819
|
declare const BBAnchor: ({
|
|
1820
1820
|
anchor,
|
|
1821
1821
|
...props
|
|
1822
|
-
}: BBAnchorProps) => React
|
|
1822
|
+
}: BBAnchorProps) => React.JSX.Element;
|
|
1823
1823
|
//#endregion
|
|
1824
1824
|
//#region src/core/Staging/Billboard/Billboard.d.ts
|
|
1825
1825
|
type BillboardProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
@@ -1877,7 +1877,7 @@ declare function Bounds({
|
|
|
1877
1877
|
clip,
|
|
1878
1878
|
interpolateFunc,
|
|
1879
1879
|
onFit
|
|
1880
|
-
}: BoundsProps): React
|
|
1880
|
+
}: BoundsProps): React.JSX.Element;
|
|
1881
1881
|
declare function useBounds(): BoundsApi;
|
|
1882
1882
|
//#endregion
|
|
1883
1883
|
//#region src/core/Staging/Center/Center.d.ts
|
|
@@ -1951,7 +1951,7 @@ type EnvironmentLoaderClearOptions = Pick<EnvironmentLoaderProps, 'files' | 'pre
|
|
|
1951
1951
|
//#endregion
|
|
1952
1952
|
//#region src/core/Staging/Environment/Environment.d.ts
|
|
1953
1953
|
type EnvironmentProps = {
|
|
1954
|
-
children?: React
|
|
1954
|
+
children?: React.ReactNode;
|
|
1955
1955
|
frames?: number;
|
|
1956
1956
|
near?: number;
|
|
1957
1957
|
far?: number;
|
|
@@ -1965,7 +1965,7 @@ type EnvironmentProps = {
|
|
|
1965
1965
|
environmentRotation?: Euler;
|
|
1966
1966
|
map?: Texture$2;
|
|
1967
1967
|
preset?: PresetsType;
|
|
1968
|
-
scene?: Scene$1 | React
|
|
1968
|
+
scene?: Scene$1 | React.RefObject<Scene$1>;
|
|
1969
1969
|
ground?: boolean | {
|
|
1970
1970
|
radius?: number;
|
|
1971
1971
|
height?: number;
|
|
@@ -2008,13 +2008,13 @@ declare function EnvironmentPortal({
|
|
|
2008
2008
|
path,
|
|
2009
2009
|
preset,
|
|
2010
2010
|
extensions
|
|
2011
|
-
}: EnvironmentProps): React
|
|
2011
|
+
}: EnvironmentProps): React.JSX.Element;
|
|
2012
2012
|
declare module '@react-three/fiber' {
|
|
2013
2013
|
interface ThreeElements {
|
|
2014
2014
|
groundProjectedEnvImpl: ThreeElement<typeof GroundedSkybox>;
|
|
2015
2015
|
}
|
|
2016
2016
|
}
|
|
2017
|
-
declare function Environment(props: EnvironmentProps): React
|
|
2017
|
+
declare function Environment(props: EnvironmentProps): React.JSX.Element;
|
|
2018
2018
|
//#endregion
|
|
2019
2019
|
//#region src/core/Staging/Float/Float.d.ts
|
|
2020
2020
|
type FloatProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
@@ -2022,7 +2022,7 @@ type FloatProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
|
2022
2022
|
speed?: number;
|
|
2023
2023
|
rotationIntensity?: number;
|
|
2024
2024
|
floatIntensity?: number;
|
|
2025
|
-
children?: React
|
|
2025
|
+
children?: React.ReactNode;
|
|
2026
2026
|
floatingRange?: [number?, number?];
|
|
2027
2027
|
autoInvalidate?: boolean;
|
|
2028
2028
|
};
|
|
@@ -2050,7 +2050,7 @@ type ResizeProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
|
2050
2050
|
box3?: THREE$1.Box3;
|
|
2051
2051
|
precise?: boolean;
|
|
2052
2052
|
};
|
|
2053
|
-
declare const Resize: React
|
|
2053
|
+
declare const Resize: React.ForwardRefExoticComponent<Omit<ResizeProps, "ref"> & React.RefAttributes<THREE$1.Group<THREE$1.Object3DEventMap>>>;
|
|
2054
2054
|
//#endregion
|
|
2055
2055
|
//#region src/core/Staging/ScreenSizer/ScreenSizer.d.ts
|
|
2056
2056
|
type ScreenSizerProps = Omit<ThreeElements['object3D'], 'ref'> & {
|
|
@@ -2111,7 +2111,7 @@ declare function Stage({
|
|
|
2111
2111
|
environment,
|
|
2112
2112
|
preset,
|
|
2113
2113
|
...props
|
|
2114
|
-
}: StageProps): React
|
|
2114
|
+
}: StageProps): React.JSX.Element;
|
|
2115
2115
|
//#endregion
|
|
2116
2116
|
//#region src/core/Staging/MatcapTexture/MatcapTexture.d.ts
|
|
2117
2117
|
declare function useMatcapTexture(id?: number | string, format?: number, onLoad?: (texture: Texture$2 | Texture$2[]) => void): [Texture$2, string, number];
|
|
@@ -2121,11 +2121,11 @@ declare const MatcapTexture: ({
|
|
|
2121
2121
|
format,
|
|
2122
2122
|
onLoad
|
|
2123
2123
|
}: {
|
|
2124
|
-
children?: (texture: ReturnType<typeof useMatcapTexture>) => React
|
|
2124
|
+
children?: (texture: ReturnType<typeof useMatcapTexture>) => React.ReactNode;
|
|
2125
2125
|
id?: Parameters<typeof useMatcapTexture>[0];
|
|
2126
2126
|
format?: Parameters<typeof useMatcapTexture>[1];
|
|
2127
2127
|
onLoad?: Parameters<typeof useMatcapTexture>[2];
|
|
2128
|
-
}) => React
|
|
2128
|
+
}) => React.JSX.Element;
|
|
2129
2129
|
//#endregion
|
|
2130
2130
|
//#region src/core/Textures/NormalTexture/NormalTexture.d.ts
|
|
2131
2131
|
type Settings = {
|
|
@@ -2140,10 +2140,10 @@ declare const NormalTexture: ({
|
|
|
2140
2140
|
onLoad,
|
|
2141
2141
|
...settings
|
|
2142
2142
|
}: {
|
|
2143
|
-
children?: (texture: ReturnType<typeof useNormalTexture>) => React
|
|
2143
|
+
children?: (texture: ReturnType<typeof useNormalTexture>) => React.ReactNode;
|
|
2144
2144
|
id?: Parameters<typeof useNormalTexture>[0];
|
|
2145
2145
|
onLoad?: Parameters<typeof useNormalTexture>[2];
|
|
2146
|
-
} & Settings) => React
|
|
2146
|
+
} & Settings) => React.JSX.Element;
|
|
2147
2147
|
//#endregion
|
|
2148
2148
|
//#region src/core/UI/CycleRaycast/CycleRaycast.d.ts
|
|
2149
2149
|
type CycleRaycastProps = {
|
|
@@ -2151,7 +2151,7 @@ type CycleRaycastProps = {
|
|
|
2151
2151
|
preventDefault?: boolean;
|
|
2152
2152
|
scroll?: boolean;
|
|
2153
2153
|
keyCode?: number;
|
|
2154
|
-
portal?: React
|
|
2154
|
+
portal?: React.RefObject<HTMLElement>;
|
|
2155
2155
|
};
|
|
2156
2156
|
declare function CycleRaycast({
|
|
2157
2157
|
onChanged,
|
|
@@ -2168,12 +2168,12 @@ declare function defaultCalculatePosition(el: Object3D, camera: Camera, size: {
|
|
|
2168
2168
|
}): number[];
|
|
2169
2169
|
type CalculatePosition = typeof defaultCalculatePosition;
|
|
2170
2170
|
type PointerEventsProperties = 'auto' | 'none' | 'visiblePainted' | 'visibleFill' | 'visibleStroke' | 'visible' | 'painted' | 'fill' | 'stroke' | 'all' | 'inherit';
|
|
2171
|
-
interface HtmlProps extends Omit<Assign<React
|
|
2171
|
+
interface HtmlProps extends Omit<Assign<React.HTMLAttributes<HTMLDivElement>, ThreeElements['group']>, 'ref'> {
|
|
2172
2172
|
prepend?: boolean;
|
|
2173
2173
|
center?: boolean;
|
|
2174
2174
|
fullscreen?: boolean;
|
|
2175
2175
|
eps?: number;
|
|
2176
|
-
portal?: React
|
|
2176
|
+
portal?: React.RefObject<HTMLElement>;
|
|
2177
2177
|
distanceFactor?: number;
|
|
2178
2178
|
sprite?: boolean;
|
|
2179
2179
|
transform?: boolean;
|
|
@@ -2182,10 +2182,10 @@ interface HtmlProps extends Omit<Assign<React$1.HTMLAttributes<HTMLDivElement>,
|
|
|
2182
2182
|
as?: string;
|
|
2183
2183
|
wrapperClass?: string;
|
|
2184
2184
|
pointerEvents?: PointerEventsProperties;
|
|
2185
|
-
occlude?: React
|
|
2185
|
+
occlude?: React.RefObject<Object3D>[] | boolean | 'raycast' | 'blending';
|
|
2186
2186
|
onOcclude?: (hidden: boolean) => void;
|
|
2187
|
-
material?: React
|
|
2188
|
-
geometry?: React
|
|
2187
|
+
material?: React.ReactNode;
|
|
2188
|
+
geometry?: React.ReactNode;
|
|
2189
2189
|
castShadow?: boolean;
|
|
2190
2190
|
receiveShadow?: boolean;
|
|
2191
2191
|
}
|
|
@@ -2198,7 +2198,7 @@ declare function useAspect(width: number, height: number, factor?: number): [num
|
|
|
2198
2198
|
declare function useCursor(hovered: boolean, onPointerOver?: string, onPointerOut?: string, container?: HTMLElement): void;
|
|
2199
2199
|
//#endregion
|
|
2200
2200
|
//#region src/core/UI/useIntersect/useIntersect.d.ts
|
|
2201
|
-
declare function useIntersect<T extends Object3D>(onChange: (visible: boolean) => void): React
|
|
2201
|
+
declare function useIntersect<T extends Object3D>(onChange: (visible: boolean) => void): React.RefObject<T>;
|
|
2202
2202
|
//#endregion
|
|
2203
2203
|
//#region src/core/UI/ScreenSpace/ScreenSpace.d.ts
|
|
2204
2204
|
type ScreenSpaceProps = Omit<ThreeElements['group'], 'ref'> & {
|
|
@@ -2226,7 +2226,7 @@ declare function Select({
|
|
|
2226
2226
|
backgroundColor,
|
|
2227
2227
|
filter: customFilter,
|
|
2228
2228
|
...props
|
|
2229
|
-
}: SelectProps): React
|
|
2229
|
+
}: SelectProps): React.JSX.Element;
|
|
2230
2230
|
declare function useSelect(): THREE$1.Object3D[];
|
|
2231
2231
|
//#endregion
|
|
2232
2232
|
export { AdaptiveDpr, AdaptiveEvents, ArcballControls, ArcballControlsProps, Args, BBAnchor, BBAnchorProps, Backdrop, BackdropProps, Billboard, BillboardProps, Bounds, BoundsApi, BoundsProps, Box, CalculatePosition, CameraShake, CameraShakeProps, Capsule, CatmullRomLine, CatmullRomLineProps, Center, CenterProps, Circle, Clone, CloneProps, Cloud, CloudInstance, CloudProps, Clouds, CloudsProps, ComputedAttribute, ComputedAttributeProps, Cone, ContainerProps, CubeCamera, CubeCameraOptions, CubeCameraProps, CubeTexture, CubeTextureProps, CubicBezierLine, CubicBezierLineProps, CurveModifier, CurveModifierProps, CurveModifierRef, CycleRaycast, CycleRaycastProps, Cylinder, Decal, DecalProps, Detailed, DetailedProps, DetectGPU, DetectGPUProps, DeviceOrientationControls, DeviceOrientationControlsProps, Dodecahedron, DragControls, DragControlsProps, Edges, EdgesProps, Environment, EnvironmentCube, EnvironmentLoaderProps, EnvironmentMap, EnvironmentPortal, EnvironmentProps, Example, ExampleApi, ExampleProps, Extrude, Fbo, FboProps, Fbx, FirstPersonControls, FirstPersonControlsProps, Fisheye, FisheyeProps, Float, FloatProps, FlyControls, FlyControlsProps, FontData, FrameData, GizmoHelper, GizmoHelperProps, GizmoViewcube, GizmoViewport, Gltf, GltfProps, Glyph, Helper, HelperProps, Html, HtmlProps, Hud, HudProps, Icosahedron, Instance, InstanceProps, InstancedAttribute, InstancedAttributeProps, Instances, InstancesProps, IsObject, KeyboardControls, KeyboardControlsEntry, KeyboardControlsProps, Ktx2, Lathe, LightProps, Lightformer, Loader, LoaderOptions, MapControls, MapControlsProps, Mask, MaskProps, MatcapTexture, Merged, MergedProps, MetaData, MotionPathControls, MotionPathProps, MotionPathRef, NormalTexture, Octahedron, OnCenterCallbackProps, OrbitControls, OrbitControlsChangeEvent, OrbitControlsProps, OrthographicCamera, OrthographicCameraProps, PerformanceMonitor, PerformanceMonitorApi, PerformanceMonitorProps, PerspectiveCamera, PerspectiveCameraProps, PivotControls, PivotControlsProps, Plane, Point, PointMaterial, PointMaterialImpl, PointMaterialProps, PointerLockControls, PointerLockControlsProps, Points, PointsBuffer, PointsBuffersProps, PointsInstancesProps, Polyhedron, PositionMesh, PositionPoint, PositionalAudio, PositionalAudioProps, Preload, PreloadProps, PresentationControlProps, PresentationControls, PresetsType, Progress, QuadraticBezierLine, QuadraticBezierLineProps, QuadraticBezierLineRef, RenderCubeTexture, RenderCubeTextureApi, RenderCubeTextureProps, RenderTexture, type RenderTextureProps, Resize, ResizeProps, Ring, RoundedBox, RoundedBoxGeometry, RoundedBoxGeometryProps, RoundedBoxProps, Sampler, SamplerProps, ScreenQuad, ScreenQuadProps, ScreenSizer, ScreenSizerProps, ScreenSpace, ScreenSpaceProps, ScreenVideoTexture, ScreenVideoTextureProps, Scroll, ScrollControls, ScrollControlsProps, ScrollControlsState, ScrollProps, Select, SelectProps, Shadow, ShadowProps, ShadowType, ShakeController, Shape, ShapeProps, Size, SizeProps, Sky, SkyProps, Sphere, SpriteAnimator, SpriteAnimatorProps, SpriteData, Stage, StageProps, Stats, StatsGl, StatsGlProps, StatsProps, Svg, SvgProps, Tetrahedron, Text3D, Text3DProps, Texture, Torus, TorusKnot, TrackballControls, TrackballControlsProps, TrailTexture, TrailTextureProps, TransformControls, TransformControlsProps, TransformFn, Tube, VideoTexture, VideoTextureProps, View, ViewProps, ViewportProps, WebcamVideoTexture, WebcamVideoTextureProps, Wireframe, calcPosFromAngles, checkIfFrameIsEmpty, createInstances, getFirstFrame, meshBounds, presetsObj, useAnimations, useAspect, useBounds, useContextBridge, useCubeCamera, useCubeTexture, useCursor, useCustomRaycast, useDepthBuffer, useDetectGPU, useEnvironment, useFBO, useFBX, useFont, useGLTF, useGizmoContext, useHelper, useIntersect, useKTX2, useKeyboardControls, useMask, useMatcapTexture, useMotion, useNormalTexture, usePerformanceMonitor, useProgress, useScroll, useSelect, useSpriteAnimator, useSpriteLoader, useSurfaceSampler, useSurfaceSamplerProps, useTexture, useTrailTexture, useVideoTexture };
|