@remotion/serverless-client 4.0.472 → 4.0.474
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 +44 -3
- package/package.json +5 -5
package/dist/esm/index.mjs
CHANGED
|
@@ -250,6 +250,40 @@ var interpolateString = ({
|
|
|
250
250
|
dimensions
|
|
251
251
|
});
|
|
252
252
|
};
|
|
253
|
+
var validateTupleOutputRange = (outputRange) => {
|
|
254
|
+
const dimensions = outputRange[0]?.length;
|
|
255
|
+
if (dimensions === undefined) {
|
|
256
|
+
throw new Error("outputRange must have at least 1 element");
|
|
257
|
+
}
|
|
258
|
+
if (dimensions === 0) {
|
|
259
|
+
throw new TypeError("outputRange tuples must contain at least 1 number");
|
|
260
|
+
}
|
|
261
|
+
for (const output of outputRange) {
|
|
262
|
+
if (output.length !== dimensions) {
|
|
263
|
+
throw new TypeError(`outputRange tuples must all have the same length, but got ${dimensions} and ${output.length}`);
|
|
264
|
+
}
|
|
265
|
+
for (const value of output) {
|
|
266
|
+
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
267
|
+
throw new TypeError(`outputRange tuples must contain only finite numbers, but got [${output.join(",")}]`);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
return dimensions;
|
|
272
|
+
};
|
|
273
|
+
var interpolateTuple = ({
|
|
274
|
+
input,
|
|
275
|
+
inputRange,
|
|
276
|
+
outputRange,
|
|
277
|
+
options
|
|
278
|
+
}) => {
|
|
279
|
+
const dimensions = validateTupleOutputRange(outputRange);
|
|
280
|
+
return new Array(dimensions).fill(true).map((_, axis) => interpolateNumber({
|
|
281
|
+
input,
|
|
282
|
+
inputRange,
|
|
283
|
+
outputRange: outputRange.map((output) => output[axis]),
|
|
284
|
+
options
|
|
285
|
+
}));
|
|
286
|
+
};
|
|
253
287
|
function checkValidInputRange(arr) {
|
|
254
288
|
for (let i = 1;i < arr.length; ++i) {
|
|
255
289
|
if (!(arr[i] > arr[i - 1])) {
|
|
@@ -325,8 +359,11 @@ function interpolate(input, inputRange, outputRange, options) {
|
|
|
325
359
|
}
|
|
326
360
|
return interpolateString({ input, inputRange, outputRange, options });
|
|
327
361
|
}
|
|
362
|
+
if (outputRange.every((output) => Array.isArray(output))) {
|
|
363
|
+
return interpolateTuple({ input, inputRange, outputRange, options });
|
|
364
|
+
}
|
|
328
365
|
if (!outputRange.every((output) => typeof output === "number")) {
|
|
329
|
-
throw new TypeError("outputRange must contain only numbers, or supported scale, translate, and rotate strings");
|
|
366
|
+
throw new TypeError("outputRange must contain only numbers, numeric tuples, or supported scale, translate, and rotate strings");
|
|
330
367
|
}
|
|
331
368
|
checkInfiniteRange("outputRange", outputRange);
|
|
332
369
|
return interpolateNumber({ input, inputRange, outputRange, options });
|
|
@@ -960,7 +997,6 @@ var sequenceVisualStyleSchema = {
|
|
|
960
997
|
},
|
|
961
998
|
"style.scale": {
|
|
962
999
|
type: "scale",
|
|
963
|
-
min: 0.05,
|
|
964
1000
|
max: 100,
|
|
965
1001
|
step: 0.01,
|
|
966
1002
|
default: 1,
|
|
@@ -1041,6 +1077,11 @@ var sequenceSchema = {
|
|
|
1041
1077
|
}
|
|
1042
1078
|
}
|
|
1043
1079
|
};
|
|
1080
|
+
var sequenceSchemaWithoutFrom = {
|
|
1081
|
+
hidden: hiddenField,
|
|
1082
|
+
durationInFrames: durationInFramesField,
|
|
1083
|
+
layout: sequenceSchema.layout
|
|
1084
|
+
};
|
|
1044
1085
|
var sequenceSchemaDefaultLayoutNone = {
|
|
1045
1086
|
...sequenceSchema,
|
|
1046
1087
|
layout: {
|
|
@@ -1403,7 +1444,7 @@ var validateFramesPerFunction = ({
|
|
|
1403
1444
|
import * as tty from "tty";
|
|
1404
1445
|
|
|
1405
1446
|
// ../core/dist/esm/version.mjs
|
|
1406
|
-
var VERSION = "4.0.
|
|
1447
|
+
var VERSION = "4.0.474";
|
|
1407
1448
|
|
|
1408
1449
|
// ../renderer/dist/esm/error-handling.mjs
|
|
1409
1450
|
var isColorSupported = () => {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/serverless-client"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/serverless-client",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.474",
|
|
7
7
|
"main": "dist",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"lint": "eslint src",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"remotion": "4.0.
|
|
27
|
-
"@remotion/streaming": "4.0.
|
|
28
|
-
"@remotion/renderer": "4.0.
|
|
29
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
26
|
+
"remotion": "4.0.474",
|
|
27
|
+
"@remotion/streaming": "4.0.474",
|
|
28
|
+
"@remotion/renderer": "4.0.474",
|
|
29
|
+
"@remotion/eslint-config-internal": "4.0.474",
|
|
30
30
|
"eslint": "9.19.0",
|
|
31
31
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
32
32
|
},
|