@remotion/animation-utils 4.0.166 → 4.0.168
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
CHANGED
|
@@ -299,6 +299,9 @@ var interpolateStyles = (input, inputRange, outputStylesRange, options) => {
|
|
|
299
299
|
checkInputRange(inputRange);
|
|
300
300
|
checkStylesRange(outputStylesRange);
|
|
301
301
|
let startIndex = inputRange.findIndex((step) => input < step) - 1;
|
|
302
|
+
if (startIndex === -1) {
|
|
303
|
+
startIndex = 0;
|
|
304
|
+
}
|
|
302
305
|
if (startIndex === -2) {
|
|
303
306
|
startIndex = inputRange.length - 2;
|
|
304
307
|
}
|
|
@@ -166,6 +166,9 @@ const interpolateStyles = (input, inputRange, outputStylesRange, options) => {
|
|
|
166
166
|
checkInputRange(inputRange);
|
|
167
167
|
checkStylesRange(outputStylesRange);
|
|
168
168
|
let startIndex = inputRange.findIndex((step) => input < step) - 1;
|
|
169
|
+
if (startIndex === -1) {
|
|
170
|
+
startIndex = 0;
|
|
171
|
+
}
|
|
169
172
|
if (startIndex === -2) {
|
|
170
173
|
startIndex = inputRange.length - 2;
|
|
171
174
|
}
|
package/package.json
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
"name": "Chetan Karwa",
|
|
5
5
|
"email": "cbkarwa@gmail.com"
|
|
6
6
|
},
|
|
7
|
-
"version": "4.0.
|
|
7
|
+
"version": "4.0.168",
|
|
8
8
|
"description": "A set of animation utilities for Remotion",
|
|
9
9
|
"main": "./dist/index.js",
|
|
10
10
|
"module": "./dist/index.mjs",
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"remotion": "4.0.
|
|
13
|
+
"remotion": "4.0.168"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"dist",
|