@remotion/gif 3.3.53 → 3.3.55
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/dist/Gif.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { RemotionGifProps } from './props';
|
|
2
|
+
/**
|
|
3
|
+
* @description Displays a GIF that synchronizes with Remotions useCurrentFrame().
|
|
4
|
+
* @see [Documentation](https://www.remotion.dev/docs/gif/gif)
|
|
5
|
+
*/
|
|
3
6
|
export declare const Gif: (props: RemotionGifProps) => JSX.Element;
|
package/dist/Gif.js
CHANGED
|
@@ -5,6 +5,10 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const remotion_1 = require("remotion");
|
|
6
6
|
const GifForDevelopment_1 = require("./GifForDevelopment");
|
|
7
7
|
const GifForRendering_1 = require("./GifForRendering");
|
|
8
|
+
/**
|
|
9
|
+
* @description Displays a GIF that synchronizes with Remotions useCurrentFrame().
|
|
10
|
+
* @see [Documentation](https://www.remotion.dev/docs/gif/gif)
|
|
11
|
+
*/
|
|
8
12
|
const Gif = (props) => {
|
|
9
13
|
const env = remotion_1.Internals.useRemotionEnvironment();
|
|
10
14
|
if (env === 'rendering') {
|
|
@@ -7,6 +7,10 @@ const react_tools_1 = require("./react-tools");
|
|
|
7
7
|
const calcDuration = (parsed) => {
|
|
8
8
|
return (parsed.delays.reduce((sum, delay) => sum + delay, 0) / 1000);
|
|
9
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* @description Gets the duration in seconds of a GIF
|
|
12
|
+
* @see [Documentation](https://www.remotion.dev/docs/gif/get-gif-duration-in-seconds)
|
|
13
|
+
*/
|
|
10
14
|
const getGifDurationInSeconds = async (src) => {
|
|
11
15
|
var _a;
|
|
12
16
|
const resolvedSrc = new URL(src, window.location.origin).href;
|
package/dist/gifuct/index.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { Frame, ParsedFrameWithoutPatch, ParsedGif } from './types';
|
|
2
2
|
export declare const parseGIF: (arrayBuffer: ArrayBuffer) => any;
|
|
3
|
-
export declare const decompressFrame: (frame: Frame, gct: [
|
|
3
|
+
export declare const decompressFrame: (frame: Frame, gct: [
|
|
4
|
+
number,
|
|
5
|
+
number,
|
|
6
|
+
number
|
|
7
|
+
][]) => ParsedFrameWithoutPatch | undefined;
|
|
4
8
|
export declare const decompressFrames: (parsedGif: ParsedGif) => (ParsedFrameWithoutPatch | undefined)[];
|
package/dist/preload-gif.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Returns an object with two entries: waitUntilDone() that returns a Promise which can be awaited and free() which will cancel preloading or free up the memory if the GIF is not being used anymore.
|
|
3
|
+
* @see [Documentation](https://www.remotion.dev/docs/gif/preload-gif)
|
|
4
|
+
*/
|
|
1
5
|
export declare const preloadGif: (src: string) => {
|
|
2
6
|
waitUntilDone: () => Promise<void>;
|
|
3
7
|
free: () => void;
|
package/dist/preload-gif.js
CHANGED
|
@@ -4,6 +4,10 @@ exports.preloadGif = void 0;
|
|
|
4
4
|
const gif_cache_1 = require("./gif-cache");
|
|
5
5
|
const react_tools_1 = require("./react-tools");
|
|
6
6
|
const resolve_gif_source_1 = require("./resolve-gif-source");
|
|
7
|
+
/**
|
|
8
|
+
* @description Returns an object with two entries: waitUntilDone() that returns a Promise which can be awaited and free() which will cancel preloading or free up the memory if the GIF is not being used anymore.
|
|
9
|
+
* @see [Documentation](https://www.remotion.dev/docs/gif/preload-gif)
|
|
10
|
+
*/
|
|
7
11
|
const preloadGif = (src) => {
|
|
8
12
|
const resolvedSrc = (0, resolve_gif_source_1.resolveGifSource)(src);
|
|
9
13
|
if (gif_cache_1.volatileGifCache.has(resolvedSrc)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/gif",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.55",
|
|
4
4
|
"description": "Gif component for remotion",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"repository": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"js-binary-schema-parser": "^2.0.3",
|
|
25
25
|
"lru_map": "0.4.1",
|
|
26
|
-
"remotion": "3.3.
|
|
26
|
+
"remotion": "3.3.55"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@jonny/eslint-config": "3.0.266",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "4cecccc293e9c906c693f55fac65df8f1cfd2338"
|
|
57
57
|
}
|