@remotion/three 4.0.235 → 4.0.236
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Texture } from 'three';
|
|
1
2
|
export type UseOffthreadVideoTextureOptions = {
|
|
2
3
|
src: string;
|
|
3
4
|
playbackRate?: number;
|
|
@@ -9,11 +10,11 @@ export declare const useInnerVideoTexture: ({ playbackRate, src, transparent, to
|
|
|
9
10
|
src: string;
|
|
10
11
|
transparent: boolean;
|
|
11
12
|
toneMapped: boolean;
|
|
12
|
-
}) =>
|
|
13
|
+
}) => Texture | null;
|
|
13
14
|
/**
|
|
14
15
|
* @description Allows you to use a video in React Three Fiber that is synchronized with Remotion's `useCurrentFrame()` using the `<OffthreadVideo>`.
|
|
15
16
|
* @see [Documentation](https://remotion.dev/docs/use-offthread-video-texture)
|
|
16
17
|
* @param {UseOffthreadVideoTextureOptions} options Configuration options including the video source (`src`), playback rate (`playbackRate`), transparency (`transparent`), and tone mapping (`toneMapped`).
|
|
17
18
|
* @returns {THREE.Texture | null} A THREE.Texture if available, otherwise null. To be used as a texture in 3D objects in React Three Fiber.
|
|
18
19
|
*/
|
|
19
|
-
export declare function useOffthreadVideoTexture({ src, playbackRate, transparent, toneMapped, }: UseOffthreadVideoTextureOptions):
|
|
20
|
+
export declare function useOffthreadVideoTexture({ src, playbackRate, transparent, toneMapped, }: UseOffthreadVideoTextureOptions): Texture | null;
|
|
@@ -6,4 +6,4 @@ export type UseVideoTextureOptions = React.ComponentProps<typeof Video>;
|
|
|
6
6
|
* @description Allows you to use a video in React Three Fiber that is synchronized with Remotion's useCurrentFrame().
|
|
7
7
|
* @see [Documentation](https://www.remotion.dev/docs/use-video-texture)
|
|
8
8
|
*/
|
|
9
|
-
export declare const useVideoTexture: (videoRef: React.RefObject<HTMLVideoElement>) => VideoTexture | null;
|
|
9
|
+
export declare const useVideoTexture: (videoRef: React.RefObject<HTMLVideoElement | null>) => VideoTexture | null;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/three"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/three",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.236",
|
|
7
7
|
"description": "Include React Three Fiber components in a Remotion video",
|
|
8
8
|
"main": "dist/cjs/index.js",
|
|
9
9
|
"types": "dist/cjs/index.d.ts",
|
|
@@ -16,26 +16,26 @@
|
|
|
16
16
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"remotion": "4.0.
|
|
19
|
+
"remotion": "4.0.236"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"@react-three/fiber": ">=8.0.0",
|
|
23
23
|
"react": ">=16.8.0",
|
|
24
24
|
"react-dom": ">=16.8.0",
|
|
25
25
|
"three": ">=0.137.0",
|
|
26
|
-
"remotion": "4.0.
|
|
26
|
+
"remotion": "4.0.236"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@react-three/fiber": "
|
|
30
|
-
"@types/react-reconciler": "
|
|
31
|
-
"@types/three": "0.
|
|
29
|
+
"@react-three/fiber": "9.0.0-rc.1",
|
|
30
|
+
"@types/react-reconciler": "0.28.8",
|
|
31
|
+
"@types/three": "0.170.0",
|
|
32
32
|
"@types/web": "0.0.166",
|
|
33
|
-
"react": "
|
|
34
|
-
"react-dom": "
|
|
35
|
-
"three": "0.
|
|
33
|
+
"react": "19.0.0",
|
|
34
|
+
"react-dom": "19.0.0",
|
|
35
|
+
"three": "0.171.0",
|
|
36
36
|
"eslint": "9.14.0",
|
|
37
|
-
"remotion": "4.0.
|
|
38
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
37
|
+
"remotion": "4.0.236",
|
|
38
|
+
"@remotion/eslint-config-internal": "4.0.236"
|
|
39
39
|
},
|
|
40
40
|
"keywords": [
|
|
41
41
|
"remotion",
|