@remotion/timeline-utils 4.0.520 → 4.0.522
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 +2 -3
- package/dist/render-frame-strip.js +2 -3
- package/package.json +3 -3
package/dist/esm/index.mjs
CHANGED
|
@@ -846,9 +846,8 @@ var drawSlot = ({
|
|
|
846
846
|
const relativeTimestamp = timestamp - fromSeconds * WEBCODECS_TIMESCALE;
|
|
847
847
|
const frameIndex = relativeTimestamp / durationOfOneFrame;
|
|
848
848
|
const thumbnailWidth = frame.displayWidth / devicePixelRatio;
|
|
849
|
-
const left =
|
|
850
|
-
|
|
851
|
-
ctx.drawImage(frame, left, 0, right - left, frame.displayHeight / devicePixelRatio);
|
|
849
|
+
const left = frameIndex * thumbnailWidth;
|
|
850
|
+
ctx.drawImage(frame, left, 0, thumbnailWidth, frame.displayHeight / devicePixelRatio);
|
|
852
851
|
filledSlots.set(timestamp, frame.timestamp);
|
|
853
852
|
};
|
|
854
853
|
var fillWithCachedFrames = ({
|
|
@@ -60,9 +60,8 @@ const drawSlot = ({ frame, ctx, filledSlots, visualizationWidth, timestamp, segm
|
|
|
60
60
|
const relativeTimestamp = timestamp - fromSeconds * exports.WEBCODECS_TIMESCALE;
|
|
61
61
|
const frameIndex = relativeTimestamp / durationOfOneFrame;
|
|
62
62
|
const thumbnailWidth = frame.displayWidth / devicePixelRatio;
|
|
63
|
-
const left =
|
|
64
|
-
|
|
65
|
-
ctx.drawImage(frame, left, 0, right - left, frame.displayHeight / devicePixelRatio);
|
|
63
|
+
const left = frameIndex * thumbnailWidth;
|
|
64
|
+
ctx.drawImage(frame, left, 0, thumbnailWidth, frame.displayHeight / devicePixelRatio);
|
|
66
65
|
filledSlots.set(timestamp, frame.timestamp);
|
|
67
66
|
};
|
|
68
67
|
exports.drawSlot = drawSlot;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/timeline-utils"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/timeline-utils",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.522",
|
|
7
7
|
"description": "Internal utilities for rendering Remotion timelines",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"scripts": {
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"mediabunny": "1.55.5",
|
|
25
|
-
"remotion": "4.0.
|
|
25
|
+
"remotion": "4.0.522"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@mediabunny/server": "1.55.5",
|
|
29
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
29
|
+
"@remotion/eslint-config-internal": "4.0.522",
|
|
30
30
|
"eslint": "9.19.0",
|
|
31
31
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
32
32
|
},
|