@react-three/drei 9.80.7 → 9.80.9
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/AccumulativeShadows.cjs.js +1 -1
- package/core/AccumulativeShadows.d.ts +3 -38
- package/core/AccumulativeShadows.js +7 -7
- package/core/ArcballControls.d.ts +2 -2
- package/core/Billboard.d.ts +2 -2
- package/core/CameraControls.d.ts +2 -2
- package/core/CameraShake.d.ts +2 -2
- package/core/CatmullRomLine.d.ts +9 -7
- package/core/Caustics.d.ts +16 -31
- package/core/Center.d.ts +2 -20
- package/core/Clone.d.ts +2 -1
- package/core/ContactShadows.d.ts +2 -2
- package/core/CubicBezierLine.d.ts +6 -4
- package/core/CurveModifier.d.ts +2 -1
- package/core/Decal.d.ts +2 -1
- package/core/Detailed.d.ts +6 -21
- package/core/DeviceOrientationControls.d.ts +2 -2
- package/core/Edges.d.ts +7 -23
- package/core/Effects.d.ts +15 -14
- package/core/FirstPersonControls.d.ts +2 -2
- package/core/Float.d.ts +2 -1
- package/core/FlyControls.d.ts +2 -2
- package/core/Gltf.d.ts +5 -3
- package/core/Grid.d.ts +2 -4
- package/core/Image.d.ts +2 -26
- package/core/Instances.d.ts +3 -2
- package/core/Lightformer.d.ts +2 -29
- package/core/Line.d.ts +2 -2
- package/core/MapControls.d.ts +2 -2
- package/core/MarchingCubes.d.ts +17 -71
- package/core/Mask.d.ts +7 -5
- package/core/MeshDiscardMaterial.d.ts +2 -2
- package/core/MeshDistortMaterial.d.ts +23 -10
- package/core/MeshReflectorMaterial.d.ts +2 -2
- package/core/MeshTransmissionMaterial.d.ts +11 -10
- package/core/MeshWobbleMaterial.d.ts +20 -10
- package/core/OrbitControls.d.ts +2 -2
- package/core/OrthographicCamera.d.ts +11 -7
- package/core/PerspectiveCamera.d.ts +11 -7
- package/core/PointMaterial.d.ts +2 -2
- package/core/PointerLockControls.d.ts +2 -2
- package/core/Points.d.ts +4 -21
- package/core/PositionalAudio.d.ts +7 -23
- package/core/QuadraticBezierLine.d.ts +9 -7
- package/core/Reflector.d.ts +2 -1
- package/core/RenderTexture.d.ts +15 -12
- package/core/RoundedBox.d.ts +2 -3
- package/core/ScreenQuad.d.ts +2 -2
- package/core/ScreenSpace.d.ts +2 -2
- package/core/Segments.d.ts +3 -2
- package/core/Shadow.d.ts +10 -26
- package/core/Sky.d.ts +3 -2
- package/core/Sparkles.d.ts +3 -21
- package/core/SpotLight.d.ts +2 -1
- package/core/Stars.d.ts +3 -3
- package/core/Svg.d.ts +2 -2
- package/core/Text.d.ts +33 -48
- package/core/Text3D.d.ts +11 -26
- package/core/TrackballControls.d.ts +2 -2
- package/core/Trail.d.ts +7 -7
- package/core/TransformControls.d.ts +2 -1
- package/core/shapes.d.ts +20 -58
- package/core/useBVH.d.ts +2 -22
- package/helpers/ts-utils.d.ts +2 -0
- package/index.cjs.js +1 -1
- package/package.json +1 -1
- package/react-three-drei-0.0.0-semantic-release.tgz +0 -0
- package/web/Html.d.ts +2 -1
- package/web/ScrollControls.d.ts +3 -1
- package/web/pivotControls/index.d.ts +2 -1
package/package.json
CHANGED
|
Binary file
|
package/web/Html.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { Group, Object3D, Camera } from 'three';
|
|
3
3
|
import { Assign } from 'utility-types';
|
|
4
4
|
import { ReactThreeFiber } from '@react-three/fiber';
|
|
5
|
+
import { ForwardRefComponent } from '../helpers/ts-utils';
|
|
5
6
|
declare function defaultCalculatePosition(el: Object3D, camera: Camera, size: {
|
|
6
7
|
width: number;
|
|
7
8
|
height: number;
|
|
@@ -29,5 +30,5 @@ export interface HtmlProps extends Omit<Assign<React.HTMLAttributes<HTMLDivEleme
|
|
|
29
30
|
castShadow?: boolean;
|
|
30
31
|
receiveShadow?: boolean;
|
|
31
32
|
}
|
|
32
|
-
export declare const Html:
|
|
33
|
+
export declare const Html: ForwardRefComponent<HtmlProps, HTMLDivElement>;
|
|
33
34
|
export {};
|
package/web/ScrollControls.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
1
2
|
import * as React from 'react';
|
|
3
|
+
import { ForwardRefComponent } from '../helpers/ts-utils';
|
|
2
4
|
export declare type ScrollControlsProps = {
|
|
3
5
|
eps?: number;
|
|
4
6
|
horizontal?: boolean;
|
|
@@ -31,5 +33,5 @@ declare type ScrollProps = {
|
|
|
31
33
|
html?: boolean;
|
|
32
34
|
children?: React.ReactNode;
|
|
33
35
|
};
|
|
34
|
-
export declare const Scroll:
|
|
36
|
+
export declare const Scroll: ForwardRefComponent<ScrollProps, THREE.Group & HTMLDivElement>;
|
|
35
37
|
export {};
|
|
@@ -2,6 +2,7 @@ import * as THREE from 'three';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { Size } from '@react-three/fiber';
|
|
4
4
|
import { OnDragStartProps } from './context';
|
|
5
|
+
import { ForwardRefComponent } from '../../helpers/ts-utils';
|
|
5
6
|
export declare const calculateScaleFactor: (point3: THREE.Vector3, radiusPx: number, camera: THREE.Camera, size: Size) => number;
|
|
6
7
|
declare type PivotControlsProps = {
|
|
7
8
|
scale?: number;
|
|
@@ -33,5 +34,5 @@ declare type PivotControlsProps = {
|
|
|
33
34
|
};
|
|
34
35
|
children?: React.ReactNode;
|
|
35
36
|
};
|
|
36
|
-
export declare const PivotControls:
|
|
37
|
+
export declare const PivotControls: ForwardRefComponent<PivotControlsProps, THREE.Group>;
|
|
37
38
|
export {};
|