@remotion/player 3.2.15 → 3.2.20
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/PlayerUI.js +2 -14
- package/dist/calculate-scale.d.ts +1 -1
- package/dist/calculate-scale.js +1 -1
- package/dist/error-boundary.d.ts +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +1 -0
- package/dist/test/validate-in-out-frames.test.d.ts +0 -0
- package/dist/test/validate-in-out-frames.test.js +0 -0
- package/dist/utils/validate-in-out-frame.d.ts +0 -0
- package/dist/utils/validate-in-out-frame.js +0 -0
- package/dist/utils/validate-initial-frame.d.ts +0 -0
- package/dist/utils/validate-initial-frame.js +0 -0
- package/package.json +3 -3
package/dist/PlayerUI.js
CHANGED
|
@@ -237,13 +237,7 @@ const PlayerUI = ({ controls, style, loop, autoPlay, allowFullscreen, inputProps
|
|
|
237
237
|
canvasSize,
|
|
238
238
|
compositionHeight: config.height,
|
|
239
239
|
compositionWidth: config.width,
|
|
240
|
-
previewSize:
|
|
241
|
-
size: 'auto',
|
|
242
|
-
translation: {
|
|
243
|
-
x: 0,
|
|
244
|
-
y: 0,
|
|
245
|
-
},
|
|
246
|
-
},
|
|
240
|
+
previewSize: 'auto',
|
|
247
241
|
});
|
|
248
242
|
}, [canvasSize, config]);
|
|
249
243
|
const outer = (0, react_1.useMemo)(() => {
|
|
@@ -270,13 +264,7 @@ const PlayerUI = ({ controls, style, loop, autoPlay, allowFullscreen, inputProps
|
|
|
270
264
|
canvasSize,
|
|
271
265
|
compositionHeight: config.height,
|
|
272
266
|
compositionWidth: config.width,
|
|
273
|
-
previewSize:
|
|
274
|
-
size: 'auto',
|
|
275
|
-
translation: {
|
|
276
|
-
x: 0,
|
|
277
|
-
y: 0,
|
|
278
|
-
},
|
|
279
|
-
},
|
|
267
|
+
previewSize: 'auto',
|
|
280
268
|
});
|
|
281
269
|
return {
|
|
282
270
|
position: 'absolute',
|
|
@@ -7,7 +7,7 @@ export declare const calculateScale: ({ canvasSize, compositionHeight, compositi
|
|
|
7
7
|
canvasSize: Size;
|
|
8
8
|
}) => number;
|
|
9
9
|
export declare const calculateCanvasTransformation: ({ previewSize, compositionWidth, compositionHeight, canvasSize, }: {
|
|
10
|
-
previewSize: PreviewSize;
|
|
10
|
+
previewSize: PreviewSize['size'];
|
|
11
11
|
compositionWidth: number;
|
|
12
12
|
compositionHeight: number;
|
|
13
13
|
canvasSize: Size;
|
package/dist/calculate-scale.js
CHANGED
|
@@ -13,7 +13,7 @@ const calculateCanvasTransformation = ({ previewSize, compositionWidth, composit
|
|
|
13
13
|
canvasSize,
|
|
14
14
|
compositionHeight,
|
|
15
15
|
compositionWidth,
|
|
16
|
-
previewSize
|
|
16
|
+
previewSize,
|
|
17
17
|
});
|
|
18
18
|
const correction = 0 - (1 - scale) / 2;
|
|
19
19
|
const xCorrection = correction * compositionWidth;
|
package/dist/error-boundary.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export declare class ErrorBoundary extends React.Component<{
|
|
|
15
15
|
hasError: Error;
|
|
16
16
|
};
|
|
17
17
|
componentDidCatch(error: Error): void;
|
|
18
|
-
render(): string | number | boolean |
|
|
18
|
+
render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
|
|
19
19
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export declare const PlayerInternals: {
|
|
|
36
36
|
shouldApplyCssTransforms: boolean;
|
|
37
37
|
}) => import("./utils/use-element-size").Size | null;
|
|
38
38
|
calculateCanvasTransformation: ({ previewSize, compositionWidth, compositionHeight, canvasSize, }: {
|
|
39
|
-
previewSize:
|
|
39
|
+
previewSize: number | "auto";
|
|
40
40
|
compositionWidth: number;
|
|
41
41
|
compositionHeight: number;
|
|
42
42
|
canvasSize: import("./utils/use-element-size").Size;
|
|
@@ -49,4 +49,10 @@ export declare const PlayerInternals: {
|
|
|
49
49
|
};
|
|
50
50
|
useHoverState: (ref: import("react").RefObject<HTMLDivElement>) => boolean;
|
|
51
51
|
updateAllElementsSizes: () => void;
|
|
52
|
+
calculateScale: ({ canvasSize, compositionHeight, compositionWidth, previewSize, }: {
|
|
53
|
+
previewSize: number | "auto";
|
|
54
|
+
compositionWidth: number;
|
|
55
|
+
compositionHeight: number;
|
|
56
|
+
canvasSize: import("./utils/use-element-size").Size;
|
|
57
|
+
}) => number;
|
|
52
58
|
};
|
package/dist/index.js
CHANGED
|
@@ -19,4 +19,5 @@ exports.PlayerInternals = {
|
|
|
19
19
|
calculateCanvasTransformation: calculate_scale_1.calculateCanvasTransformation,
|
|
20
20
|
useHoverState: use_hover_state_1.useHoverState,
|
|
21
21
|
updateAllElementsSizes: use_element_size_1.updateAllElementsSizes,
|
|
22
|
+
calculateScale: calculate_scale_1.calculateScale,
|
|
22
23
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/player",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.20",
|
|
4
4
|
"description": "Remotion Player",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"remotion": "3.2.
|
|
31
|
+
"remotion": "3.2.20"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": ">=16.8.0",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "640f36c0c2d9fb1b7768925bf9d64840cbc31bc6"
|
|
67
67
|
}
|