@remotion/vercel 4.0.512 → 4.0.514
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 +18 -24
- package/package.json +4 -4
package/dist/esm/index.mjs
CHANGED
|
@@ -1076,7 +1076,9 @@ var interpolateString = ({
|
|
|
1076
1076
|
}) => {
|
|
1077
1077
|
const initiallyParsedOutputRange = outputRange.map(parseStringInterpolationValue);
|
|
1078
1078
|
const hasAxisRotation = initiallyParsedOutputRange.some((parsed) => parsed.axisRotation);
|
|
1079
|
-
const
|
|
1079
|
+
const posterizedInput = options?.posterize === undefined ? input : Math.floor(input / options.posterize) * options.posterize;
|
|
1080
|
+
const segmentIndex = inputRange.length === 1 ? 0 : findRange(posterizedInput, inputRange);
|
|
1081
|
+
const parsedOutputRange = hasAxisRotation ? initiallyParsedOutputRange.map((parsed, index) => {
|
|
1080
1082
|
if (parsed.kind !== "rotate") {
|
|
1081
1083
|
return parsed;
|
|
1082
1084
|
}
|
|
@@ -1086,9 +1088,11 @@ var interpolateString = ({
|
|
|
1086
1088
|
if (parsed.dimensions !== 1) {
|
|
1087
1089
|
throw new TypeError("Cannot interpolate a multi-angle rotate value with an axis rotation");
|
|
1088
1090
|
}
|
|
1091
|
+
const adjacentAxisRotation = parsed.values[0] === 0 ? index === segmentIndex ? initiallyParsedOutputRange[index + 1] : index === segmentIndex + 1 ? initiallyParsedOutputRange[index - 1] : undefined : undefined;
|
|
1092
|
+
const axis = adjacentAxisRotation?.axisRotation ? adjacentAxisRotation.values : [0, 0, 1];
|
|
1089
1093
|
return {
|
|
1090
1094
|
kind: "rotate",
|
|
1091
|
-
values: [0,
|
|
1095
|
+
values: [axis[0], axis[1], axis[2], parsed.values[0]],
|
|
1092
1096
|
units: [null, null, null, parsed.units[0]],
|
|
1093
1097
|
dimensions: 4,
|
|
1094
1098
|
axisRotation: true
|
|
@@ -1344,16 +1348,6 @@ function interpolate(input, inputRange, outputRange, options) {
|
|
|
1344
1348
|
checkInfiniteRange("outputRange", outputRange);
|
|
1345
1349
|
return interpolateNumber({ input, inputRange, outputRange, options });
|
|
1346
1350
|
}
|
|
1347
|
-
function truthy(value) {
|
|
1348
|
-
return Boolean(value);
|
|
1349
|
-
}
|
|
1350
|
-
if (typeof window !== "undefined") {
|
|
1351
|
-
window.remotion_renderReady = false;
|
|
1352
|
-
if (!window.remotion_delayRenderTimeouts) {
|
|
1353
|
-
window.remotion_delayRenderTimeouts = {};
|
|
1354
|
-
}
|
|
1355
|
-
window.remotion_delayRenderHandles = [];
|
|
1356
|
-
}
|
|
1357
1351
|
var DELAY_RENDER_CALLSTACK_TOKEN = "The delayRender was called:";
|
|
1358
1352
|
var DELAY_RENDER_RETRIES_LEFT = "Retries left: ";
|
|
1359
1353
|
var DELAY_RENDER_RETRY_TOKEN = "- Rendering the frame will be retried.";
|
|
@@ -2232,6 +2226,9 @@ var serializeScaleValue = ([x, y, z]) => {
|
|
|
2232
2226
|
}
|
|
2233
2227
|
return \`\${normalizedX} \${normalizedY} \${normalizedZ}\`;
|
|
2234
2228
|
};
|
|
2229
|
+
function truthy(value) {
|
|
2230
|
+
return Boolean(value);
|
|
2231
|
+
}
|
|
2235
2232
|
var ENABLE_V5_BREAKING_CHANGES = false;
|
|
2236
2233
|
var validCodecs = [
|
|
2237
2234
|
"h264",
|
|
@@ -3434,7 +3431,9 @@ var interpolateString = ({
|
|
|
3434
3431
|
}) => {
|
|
3435
3432
|
const initiallyParsedOutputRange = outputRange.map(parseStringInterpolationValue);
|
|
3436
3433
|
const hasAxisRotation = initiallyParsedOutputRange.some((parsed) => parsed.axisRotation);
|
|
3437
|
-
const
|
|
3434
|
+
const posterizedInput = options?.posterize === undefined ? input : Math.floor(input / options.posterize) * options.posterize;
|
|
3435
|
+
const segmentIndex = inputRange.length === 1 ? 0 : findRange(posterizedInput, inputRange);
|
|
3436
|
+
const parsedOutputRange = hasAxisRotation ? initiallyParsedOutputRange.map((parsed, index) => {
|
|
3438
3437
|
if (parsed.kind !== "rotate") {
|
|
3439
3438
|
return parsed;
|
|
3440
3439
|
}
|
|
@@ -3444,9 +3443,11 @@ var interpolateString = ({
|
|
|
3444
3443
|
if (parsed.dimensions !== 1) {
|
|
3445
3444
|
throw new TypeError("Cannot interpolate a multi-angle rotate value with an axis rotation");
|
|
3446
3445
|
}
|
|
3446
|
+
const adjacentAxisRotation = parsed.values[0] === 0 ? index === segmentIndex ? initiallyParsedOutputRange[index + 1] : index === segmentIndex + 1 ? initiallyParsedOutputRange[index - 1] : undefined : undefined;
|
|
3447
|
+
const axis = adjacentAxisRotation?.axisRotation ? adjacentAxisRotation.values : [0, 0, 1];
|
|
3447
3448
|
return {
|
|
3448
3449
|
kind: "rotate",
|
|
3449
|
-
values: [0,
|
|
3450
|
+
values: [axis[0], axis[1], axis[2], parsed.values[0]],
|
|
3450
3451
|
units: [null, null, null, parsed.units[0]],
|
|
3451
3452
|
dimensions: 4,
|
|
3452
3453
|
axisRotation: true
|
|
@@ -3702,16 +3703,6 @@ function interpolate(input, inputRange, outputRange, options) {
|
|
|
3702
3703
|
checkInfiniteRange("outputRange", outputRange);
|
|
3703
3704
|
return interpolateNumber({ input, inputRange, outputRange, options });
|
|
3704
3705
|
}
|
|
3705
|
-
function truthy(value) {
|
|
3706
|
-
return Boolean(value);
|
|
3707
|
-
}
|
|
3708
|
-
if (typeof window !== "undefined") {
|
|
3709
|
-
window.remotion_renderReady = false;
|
|
3710
|
-
if (!window.remotion_delayRenderTimeouts) {
|
|
3711
|
-
window.remotion_delayRenderTimeouts = {};
|
|
3712
|
-
}
|
|
3713
|
-
window.remotion_delayRenderHandles = [];
|
|
3714
|
-
}
|
|
3715
3706
|
var DELAY_RENDER_CALLSTACK_TOKEN = "The delayRender was called:";
|
|
3716
3707
|
var DELAY_RENDER_RETRIES_LEFT = "Retries left: ";
|
|
3717
3708
|
var DELAY_RENDER_RETRY_TOKEN = "- Rendering the frame will be retried.";
|
|
@@ -4590,6 +4581,9 @@ var serializeScaleValue = ([x, y, z]) => {
|
|
|
4590
4581
|
}
|
|
4591
4582
|
return \`\${normalizedX} \${normalizedY} \${normalizedZ}\`;
|
|
4592
4583
|
};
|
|
4584
|
+
function truthy(value) {
|
|
4585
|
+
return Boolean(value);
|
|
4586
|
+
}
|
|
4593
4587
|
var ENABLE_V5_BREAKING_CHANGES = false;
|
|
4594
4588
|
var validCodecs = [
|
|
4595
4589
|
"h264",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/vercel",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.514",
|
|
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.514",
|
|
27
|
+
"remotion": "4.0.514"
|
|
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.514",
|
|
42
42
|
"@vercel/blob": "2.3.0",
|
|
43
43
|
"@vercel/sandbox": "1.6.0",
|
|
44
44
|
"eslint": "9.19.0",
|