@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.
Files changed (70) hide show
  1. package/core/AccumulativeShadows.cjs.js +1 -1
  2. package/core/AccumulativeShadows.d.ts +3 -38
  3. package/core/AccumulativeShadows.js +7 -7
  4. package/core/ArcballControls.d.ts +2 -2
  5. package/core/Billboard.d.ts +2 -2
  6. package/core/CameraControls.d.ts +2 -2
  7. package/core/CameraShake.d.ts +2 -2
  8. package/core/CatmullRomLine.d.ts +9 -7
  9. package/core/Caustics.d.ts +16 -31
  10. package/core/Center.d.ts +2 -20
  11. package/core/Clone.d.ts +2 -1
  12. package/core/ContactShadows.d.ts +2 -2
  13. package/core/CubicBezierLine.d.ts +6 -4
  14. package/core/CurveModifier.d.ts +2 -1
  15. package/core/Decal.d.ts +2 -1
  16. package/core/Detailed.d.ts +6 -21
  17. package/core/DeviceOrientationControls.d.ts +2 -2
  18. package/core/Edges.d.ts +7 -23
  19. package/core/Effects.d.ts +15 -14
  20. package/core/FirstPersonControls.d.ts +2 -2
  21. package/core/Float.d.ts +2 -1
  22. package/core/FlyControls.d.ts +2 -2
  23. package/core/Gltf.d.ts +5 -3
  24. package/core/Grid.d.ts +2 -4
  25. package/core/Image.d.ts +2 -26
  26. package/core/Instances.d.ts +3 -2
  27. package/core/Lightformer.d.ts +2 -29
  28. package/core/Line.d.ts +2 -2
  29. package/core/MapControls.d.ts +2 -2
  30. package/core/MarchingCubes.d.ts +17 -71
  31. package/core/Mask.d.ts +7 -5
  32. package/core/MeshDiscardMaterial.d.ts +2 -2
  33. package/core/MeshDistortMaterial.d.ts +23 -10
  34. package/core/MeshReflectorMaterial.d.ts +2 -2
  35. package/core/MeshTransmissionMaterial.d.ts +11 -10
  36. package/core/MeshWobbleMaterial.d.ts +20 -10
  37. package/core/OrbitControls.d.ts +2 -2
  38. package/core/OrthographicCamera.d.ts +11 -7
  39. package/core/PerspectiveCamera.d.ts +11 -7
  40. package/core/PointMaterial.d.ts +2 -2
  41. package/core/PointerLockControls.d.ts +2 -2
  42. package/core/Points.d.ts +4 -21
  43. package/core/PositionalAudio.d.ts +7 -23
  44. package/core/QuadraticBezierLine.d.ts +9 -7
  45. package/core/Reflector.d.ts +2 -1
  46. package/core/RenderTexture.d.ts +15 -12
  47. package/core/RoundedBox.d.ts +2 -3
  48. package/core/ScreenQuad.d.ts +2 -2
  49. package/core/ScreenSpace.d.ts +2 -2
  50. package/core/Segments.d.ts +3 -2
  51. package/core/Shadow.d.ts +10 -26
  52. package/core/Sky.d.ts +3 -2
  53. package/core/Sparkles.d.ts +3 -21
  54. package/core/SpotLight.d.ts +2 -1
  55. package/core/Stars.d.ts +3 -3
  56. package/core/Svg.d.ts +2 -2
  57. package/core/Text.d.ts +33 -48
  58. package/core/Text3D.d.ts +11 -26
  59. package/core/TrackballControls.d.ts +2 -2
  60. package/core/Trail.d.ts +7 -7
  61. package/core/TransformControls.d.ts +2 -1
  62. package/core/shapes.d.ts +20 -58
  63. package/core/useBVH.d.ts +2 -22
  64. package/helpers/ts-utils.d.ts +2 -0
  65. package/index.cjs.js +1 -1
  66. package/package.json +1 -1
  67. package/react-three-drei-0.0.0-semantic-release.tgz +0 -0
  68. package/web/Html.d.ts +2 -1
  69. package/web/ScrollControls.d.ts +3 -1
  70. package/web/pivotControls/index.d.ts +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-three/drei",
3
- "version": "9.80.7",
3
+ "version": "9.80.9",
4
4
  "private": false,
5
5
  "description": "useful add-ons for react-three-fiber",
6
6
  "keywords": [
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: React.ForwardRefExoticComponent<HtmlProps & React.RefAttributes<HTMLDivElement>>;
33
+ export declare const Html: ForwardRefComponent<HtmlProps, HTMLDivElement>;
33
34
  export {};
@@ -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: React.ForwardRefExoticComponent<ScrollProps & React.RefAttributes<unknown>>;
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: React.ForwardRefExoticComponent<PivotControlsProps & React.RefAttributes<THREE.Group>>;
37
+ export declare const PivotControls: ForwardRefComponent<PivotControlsProps, THREE.Group>;
37
38
  export {};