@remotion/player 4.0.324 → 4.0.326
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.
|
@@ -43,10 +43,10 @@ const useElementSize = (ref, options) => {
|
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
45
|
const probableCssParentScale = contentRect.width === 0 ? 1 : newSize[0].width / contentRect.width;
|
|
46
|
-
const width = options.shouldApplyCssTransforms
|
|
46
|
+
const width = options.shouldApplyCssTransforms || probableCssParentScale === 0
|
|
47
47
|
? newSize[0].width
|
|
48
48
|
: newSize[0].width * (1 / probableCssParentScale);
|
|
49
|
-
const height = options.shouldApplyCssTransforms
|
|
49
|
+
const height = options.shouldApplyCssTransforms || probableCssParentScale === 0
|
|
50
50
|
? newSize[0].height
|
|
51
51
|
: newSize[0].height * (1 / probableCssParentScale);
|
|
52
52
|
setSize((prevState) => {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1066,8 +1066,8 @@ var useElementSize = (ref, options) => {
|
|
|
1066
1066
|
return;
|
|
1067
1067
|
}
|
|
1068
1068
|
const probableCssParentScale = contentRect.width === 0 ? 1 : newSize[0].width / contentRect.width;
|
|
1069
|
-
const width = options.shouldApplyCssTransforms
|
|
1070
|
-
const height = options.shouldApplyCssTransforms ? newSize[0].height : newSize[0].height * (1 / probableCssParentScale);
|
|
1069
|
+
const width = options.shouldApplyCssTransforms || probableCssParentScale === 0 ? newSize[0].width : newSize[0].width * (1 / probableCssParentScale);
|
|
1070
|
+
const height = options.shouldApplyCssTransforms || probableCssParentScale === 0 ? newSize[0].height : newSize[0].height * (1 / probableCssParentScale);
|
|
1071
1071
|
setSize((prevState) => {
|
|
1072
1072
|
const isSame = prevState && prevState.width === width && prevState.height === height && prevState.left === newSize[0].x && prevState.top === newSize[0].y && prevState.windowSize.height === window.innerHeight && prevState.windowSize.width === window.innerWidth;
|
|
1073
1073
|
if (isSame) {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/player"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/player",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.326",
|
|
7
7
|
"description": "React component for embedding a Remotion preview into your app",
|
|
8
8
|
"main": "dist/cjs/index.js",
|
|
9
9
|
"types": "dist/cjs/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"remotion": "4.0.
|
|
31
|
+
"remotion": "4.0.326"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": ">=16.8.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"webpack": "5.96.1",
|
|
44
44
|
"zod": "3.22.3",
|
|
45
45
|
"eslint": "9.19.0",
|
|
46
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
46
|
+
"@remotion/eslint-config-internal": "4.0.326"
|
|
47
47
|
},
|
|
48
48
|
"keywords": [
|
|
49
49
|
"remotion",
|