@react-three/drei 8.10.5 → 8.10.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 CHANGED
@@ -1456,7 +1456,7 @@ A very fast, but often good-enough bounds-only raycast for meshes. You can use t
1456
1456
 
1457
1457
  #### AdaptiveDpr
1458
1458
 
1459
- Drop this component into your scene and it will cut the pixel-ratio on [regress](#) according to the canvases perrformance min/max settings. This allows you to temporarily reduce visuals for more performance, for instance when the camera moves (look into drei's controls `regress` flag). Optionally you can set the canvas to a pixelated filter, which would be even faster.
1459
+ Drop this component into your scene and it will cut the pixel-ratio on regress according to the canvas's performance min/max settings. This allows you to temporarily reduce visual quality in exchange for more performance, for instance when the camera moves (look into drei's controls regress flag). Optionally, you can set the canvas to a pixelated filter, which would be even faster.
1460
1460
 
1461
1461
  ```jsx
1462
1462
  <AdaptiveDpr pixelated />
@@ -1489,7 +1489,7 @@ useBVH(mesh)
1489
1489
 
1490
1490
  [![](https://img.shields.io/badge/-storybook-%23ff69b4)](https://drei.pmnd.rs/?path=/story/staging-center--default-story)
1491
1491
 
1492
- Calculates a boundary box and centers its children accordingly. `alignTop` makes adjusts it so that it's sits flush on y=0.
1492
+ Calculates a boundary box and centers its children accordingly. `alignTop` adjusts it so that it sits flush on y=0.
1493
1493
 
1494
1494
  ```jsx
1495
1495
  <Center alignTop>
@@ -4,5 +4,7 @@ import { Falsey } from 'utility-types';
4
4
  declare type Helper = Object3D & {
5
5
  update: () => void;
6
6
  };
7
- export declare function useHelper<T>(object3D: React.MutableRefObject<Object3D | undefined> | Falsey | undefined, helperConstructor: T, ...args: any[]): React.MutableRefObject<Helper | undefined>;
7
+ declare type Constructor = new (...args: any[]) => any;
8
+ declare type Rest<T> = T extends [infer _, ...infer R] ? R : never;
9
+ export declare function useHelper<T extends Constructor>(object3D: React.MutableRefObject<Object3D | undefined> | Falsey | undefined, helperConstructor: T, ...args: Rest<ConstructorParameters<T>>): React.MutableRefObject<Helper | undefined>;
8
10
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-three/drei",
3
- "version": "8.10.5",
3
+ "version": "8.10.6",
4
4
  "private": false,
5
5
  "description": "useful add-ons for react-three-fiber",
6
6
  "keywords": [