@react-three/drei 10.4.3 → 10.5.0
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/Fbo.d.ts +3 -4
- package/package.json +2 -2
package/core/Fbo.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as THREE from 'three';
|
|
3
|
-
type
|
|
4
|
-
type WebGLRenderTargetOptions = NonNullable<WebGLRenderTargetCtorParams[2]>;
|
|
3
|
+
import { type RenderTargetOptions } from 'three';
|
|
5
4
|
type FBOSettings = {
|
|
6
5
|
depth?: boolean;
|
|
7
|
-
} &
|
|
6
|
+
} & RenderTargetOptions;
|
|
8
7
|
export declare function useFBO(width?: number | FBOSettings, height?: number, settings?: FBOSettings): THREE.WebGLRenderTarget<THREE.Texture>;
|
|
9
8
|
type UseFBOParams = Parameters<typeof useFBO>;
|
|
10
9
|
type Fbo = ReturnType<typeof useFBO>;
|
|
@@ -19,5 +18,5 @@ export declare const Fbo: React.ForwardRefExoticComponent<{
|
|
|
19
18
|
height?: UseFBOParams[1];
|
|
20
19
|
} & {
|
|
21
20
|
depth?: boolean;
|
|
22
|
-
} & THREE.
|
|
21
|
+
} & THREE.RenderTargetOptions & React.RefAttributes<THREE.WebGLRenderTarget<THREE.Texture>>>;
|
|
23
22
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-three/drei",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "useful add-ons for react-three-fiber",
|
|
6
6
|
"keywords": [
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@mediapipe/tasks-vision": "0.10.17",
|
|
35
35
|
"@monogrid/gainmap-js": "^3.0.6",
|
|
36
36
|
"@use-gesture/react": "^10.3.1",
|
|
37
|
-
"camera-controls": "^
|
|
37
|
+
"camera-controls": "^3.0.0",
|
|
38
38
|
"cross-env": "^7.0.3",
|
|
39
39
|
"detect-gpu": "^5.0.56",
|
|
40
40
|
"glsl-noise": "^0.0.0",
|