@remotion/vercel 4.0.517 → 4.0.519
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/esm/index.mjs +22 -8
- package/package.json +4 -4
package/dist/esm/index.mjs
CHANGED
|
@@ -366,9 +366,6 @@ function springCalculation({
|
|
|
366
366
|
const frameClamped = Math.max(0, frame);
|
|
367
367
|
const unevenRest = frameClamped % 1;
|
|
368
368
|
for (let f = 0;f <= Math.floor(frameClamped); f++) {
|
|
369
|
-
if (f === Math.floor(frameClamped)) {
|
|
370
|
-
f += unevenRest;
|
|
371
|
-
}
|
|
372
369
|
const time = f / fps * 1000;
|
|
373
370
|
animation = advance({
|
|
374
371
|
animation,
|
|
@@ -379,6 +376,16 @@ function springCalculation({
|
|
|
379
376
|
}
|
|
380
377
|
});
|
|
381
378
|
}
|
|
379
|
+
if (unevenRest > 0) {
|
|
380
|
+
animation = advance({
|
|
381
|
+
animation,
|
|
382
|
+
now: frameClamped / fps * 1000,
|
|
383
|
+
config: {
|
|
384
|
+
...defaultSpringConfig,
|
|
385
|
+
...config
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
}
|
|
382
389
|
calculationCache[cacheKey] = animation;
|
|
383
390
|
return animation;
|
|
384
391
|
}
|
|
@@ -1088,7 +1095,7 @@ var interpolateString = ({
|
|
|
1088
1095
|
if (parsed.dimensions !== 1) {
|
|
1089
1096
|
throw new TypeError("Cannot interpolate a multi-angle rotate value with an axis rotation");
|
|
1090
1097
|
}
|
|
1091
|
-
const adjacentAxisRotation = parsed.values[0] === 0 ? index === segmentIndex ? initiallyParsedOutputRange[index + 1] : index === segmentIndex + 1 ? initiallyParsedOutputRange[index - 1] : undefined : undefined;
|
|
1098
|
+
const adjacentAxisRotation = parsed.values[0] === 0 ? index === 0 ? initiallyParsedOutputRange.find((candidate) => candidate.axisRotation) : index === initiallyParsedOutputRange.length - 1 ? [...initiallyParsedOutputRange].reverse().find((candidate) => candidate.axisRotation) : index === segmentIndex ? initiallyParsedOutputRange[index + 1] : index === segmentIndex + 1 ? initiallyParsedOutputRange[index - 1] : undefined : undefined;
|
|
1092
1099
|
const axis = adjacentAxisRotation?.axisRotation ? adjacentAxisRotation.values : [0, 0, 1];
|
|
1093
1100
|
return {
|
|
1094
1101
|
kind: "rotate",
|
|
@@ -2733,9 +2740,6 @@ function springCalculation({
|
|
|
2733
2740
|
const frameClamped = Math.max(0, frame);
|
|
2734
2741
|
const unevenRest = frameClamped % 1;
|
|
2735
2742
|
for (let f = 0;f <= Math.floor(frameClamped); f++) {
|
|
2736
|
-
if (f === Math.floor(frameClamped)) {
|
|
2737
|
-
f += unevenRest;
|
|
2738
|
-
}
|
|
2739
2743
|
const time = f / fps * 1000;
|
|
2740
2744
|
animation = advance({
|
|
2741
2745
|
animation,
|
|
@@ -2746,6 +2750,16 @@ function springCalculation({
|
|
|
2746
2750
|
}
|
|
2747
2751
|
});
|
|
2748
2752
|
}
|
|
2753
|
+
if (unevenRest > 0) {
|
|
2754
|
+
animation = advance({
|
|
2755
|
+
animation,
|
|
2756
|
+
now: frameClamped / fps * 1000,
|
|
2757
|
+
config: {
|
|
2758
|
+
...defaultSpringConfig,
|
|
2759
|
+
...config
|
|
2760
|
+
}
|
|
2761
|
+
});
|
|
2762
|
+
}
|
|
2749
2763
|
calculationCache[cacheKey] = animation;
|
|
2750
2764
|
return animation;
|
|
2751
2765
|
}
|
|
@@ -3455,7 +3469,7 @@ var interpolateString = ({
|
|
|
3455
3469
|
if (parsed.dimensions !== 1) {
|
|
3456
3470
|
throw new TypeError("Cannot interpolate a multi-angle rotate value with an axis rotation");
|
|
3457
3471
|
}
|
|
3458
|
-
const adjacentAxisRotation = parsed.values[0] === 0 ? index === segmentIndex ? initiallyParsedOutputRange[index + 1] : index === segmentIndex + 1 ? initiallyParsedOutputRange[index - 1] : undefined : undefined;
|
|
3472
|
+
const adjacentAxisRotation = parsed.values[0] === 0 ? index === 0 ? initiallyParsedOutputRange.find((candidate) => candidate.axisRotation) : index === initiallyParsedOutputRange.length - 1 ? [...initiallyParsedOutputRange].reverse().find((candidate) => candidate.axisRotation) : index === segmentIndex ? initiallyParsedOutputRange[index + 1] : index === segmentIndex + 1 ? initiallyParsedOutputRange[index - 1] : undefined : undefined;
|
|
3459
3473
|
const axis = adjacentAxisRotation?.axisRotation ? adjacentAxisRotation.values : [0, 0, 1];
|
|
3460
3474
|
return {
|
|
3461
3475
|
kind: "rotate",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/vercel",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.519",
|
|
4
4
|
"description": "Render Remotion videos on Vercel Sandbox",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@remotion/renderer": "4.0.
|
|
27
|
-
"remotion": "4.0.
|
|
26
|
+
"@remotion/renderer": "4.0.519",
|
|
27
|
+
"remotion": "4.0.519"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@vercel/sandbox": ">=1.0.0"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"./package.json": "./package.json"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
41
|
+
"@remotion/eslint-config-internal": "4.0.519",
|
|
42
42
|
"@vercel/blob": "2.3.0",
|
|
43
43
|
"@vercel/sandbox": "1.6.0",
|
|
44
44
|
"eslint": "9.19.0",
|