@remotion/motion-blur 4.0.208 → 4.0.209
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 +6 -7
- package/package.json +3 -3
package/dist/esm/index.mjs
CHANGED
|
@@ -40,17 +40,17 @@ var CameraMotionBlur = ({
|
|
|
40
40
|
samples,
|
|
41
41
|
shutterFraction
|
|
42
42
|
});
|
|
43
|
-
return jsx(AbsoluteFill, {
|
|
43
|
+
return /* @__PURE__ */ jsx(AbsoluteFill, {
|
|
44
44
|
style: { isolation: "isolate" },
|
|
45
45
|
children: new Array(actualSamples).fill(true).map((_, i) => {
|
|
46
46
|
const sample = i + 1;
|
|
47
47
|
const sampleFrameOffset = shutterFraction * (sample / actualSamples);
|
|
48
|
-
return jsx(AbsoluteFill, {
|
|
48
|
+
return /* @__PURE__ */ jsx(AbsoluteFill, {
|
|
49
49
|
style: {
|
|
50
50
|
mixBlendMode: "plus-lighter",
|
|
51
51
|
filter: `opacity(${1 / actualSamples})`
|
|
52
52
|
},
|
|
53
|
-
children: jsx(Freeze, {
|
|
53
|
+
children: /* @__PURE__ */ jsx(Freeze, {
|
|
54
54
|
frame: currentFrame - sampleFrameOffset + 1,
|
|
55
55
|
children
|
|
56
56
|
})
|
|
@@ -58,7 +58,6 @@ var CameraMotionBlur = ({
|
|
|
58
58
|
})
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
|
-
|
|
62
61
|
// src/Trail.tsx
|
|
63
62
|
import {AbsoluteFill as AbsoluteFill2, Freeze as Freeze2, useCurrentFrame as useCurrentFrame2} from "remotion";
|
|
64
63
|
import {
|
|
@@ -87,14 +86,14 @@ var Trail = ({
|
|
|
87
86
|
if (typeof lagInFrames !== "number" || Number.isNaN(lagInFrames) || !Number.isFinite(lagInFrames)) {
|
|
88
87
|
throw new TypeError(`"lagInFrames" must be a number, but got ${JSON.stringify(lagInFrames)}`);
|
|
89
88
|
}
|
|
90
|
-
return jsxs(AbsoluteFill2, {
|
|
89
|
+
return /* @__PURE__ */ jsxs(AbsoluteFill2, {
|
|
91
90
|
children: [
|
|
92
91
|
new Array(layers).fill(true).map((_, i) => {
|
|
93
|
-
return jsx2(AbsoluteFill2, {
|
|
92
|
+
return /* @__PURE__ */ jsx2(AbsoluteFill2, {
|
|
94
93
|
style: {
|
|
95
94
|
opacity: trailOpacity - (layers - i) / layers * trailOpacity
|
|
96
95
|
},
|
|
97
|
-
children: jsx2(Freeze2, {
|
|
96
|
+
children: /* @__PURE__ */ jsx2(Freeze2, {
|
|
98
97
|
frame: frame - lagInFrames * (layers - i),
|
|
99
98
|
children
|
|
100
99
|
})
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/motion-blur"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/motion-blur",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.209",
|
|
7
7
|
"description": "Motion blur effect for Remotion",
|
|
8
8
|
"main": "dist/cjs/index.js",
|
|
9
9
|
"types": "dist/cjs/index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"remotion": "4.0.
|
|
19
|
+
"remotion": "4.0.209"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"react": ">=16.8.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"react": "18.3.1",
|
|
36
36
|
"react-dom": "18.3.1",
|
|
37
|
-
"remotion": "4.0.
|
|
37
|
+
"remotion": "4.0.209"
|
|
38
38
|
},
|
|
39
39
|
"keywords": [
|
|
40
40
|
"remotion",
|