@remotion/motion-blur 4.0.0-alpha.217 → 4.0.0-alpha11
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/cjs/CameraMotionBlur.js +1 -1
- package/dist/esm/index.mjs +1 -1
- package/package.json +60 -60
- package/tsconfig-esm.json +0 -1
- package/dist/esm/MotionBlur.d.ts +0 -9
|
@@ -51,7 +51,7 @@ const CameraMotionBlur = ({ children, shutterAngle = 180, samples = 10, }) => {
|
|
|
51
51
|
return ((0, jsx_runtime_1.jsx)(remotion_1.AbsoluteFill, { style: {
|
|
52
52
|
mixBlendMode: 'plus-lighter',
|
|
53
53
|
filter: `opacity(${1 / actualSamples})`,
|
|
54
|
-
}, children: (0, jsx_runtime_1.jsx)(remotion_1.Freeze, { frame: currentFrame - sampleFrameOffset, children: children }) }, `frame-${i.toString()}`));
|
|
54
|
+
}, children: (0, jsx_runtime_1.jsx)(remotion_1.Freeze, { frame: currentFrame - sampleFrameOffset + 1, children: children }) }, `frame-${i.toString()}`));
|
|
55
55
|
}) }));
|
|
56
56
|
};
|
|
57
57
|
exports.CameraMotionBlur = CameraMotionBlur;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -49,7 +49,7 @@ const CameraMotionBlur = ({ children, shutterAngle = 180, samples = 10, }) => {
|
|
|
49
49
|
return (jsx(AbsoluteFill, { style: {
|
|
50
50
|
mixBlendMode: 'plus-lighter',
|
|
51
51
|
filter: `opacity(${1 / actualSamples})`,
|
|
52
|
-
}, children: jsx(Freeze, { frame: currentFrame - sampleFrameOffset, children: children }) }, `frame-${i.toString()}`));
|
|
52
|
+
}, children: jsx(Freeze, { frame: currentFrame - sampleFrameOffset + 1, children: children }) }, `frame-${i.toString()}`));
|
|
53
53
|
}) }));
|
|
54
54
|
};
|
|
55
55
|
|
package/package.json
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
2
|
+
"name": "@remotion/motion-blur",
|
|
3
|
+
"version": "4.0.0-alpha11",
|
|
4
|
+
"description": "Motion blur effect for Remotion",
|
|
5
|
+
"main": "dist/cjs/index.js",
|
|
6
|
+
"types": "dist/cjs/index.d.ts",
|
|
7
|
+
"module": "dist/esm/index.mjs",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"author": "Matt McGillivray, Ilija Boshkov <ilija@codechem.com>, Jonny Burger <jonny@remotion.dev>",
|
|
10
|
+
"contributors": [],
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"repository": {
|
|
13
|
+
"url": "https://github.com/remotion-dev/remotion"
|
|
14
|
+
},
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"remotion": "4.0.0-alpha11"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"react": ">=16.8.0",
|
|
23
|
+
"react-dom": ">=16.8.0"
|
|
24
|
+
},
|
|
25
|
+
"exports": {
|
|
26
|
+
"./package.json": "./package.json",
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./dist/cjs/index.d.ts",
|
|
29
|
+
"module": "./dist/esm/index.mjs",
|
|
30
|
+
"import": "./dist/esm/index.mjs",
|
|
31
|
+
"require": "./dist/cjs/index.js"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@jonny/eslint-config": "3.0.266",
|
|
36
|
+
"@rollup/plugin-typescript": "^8.2.0",
|
|
37
|
+
"@types/react": "18.0.26",
|
|
38
|
+
"eslint": "8.25.0",
|
|
39
|
+
"prettier": "^2.7.1",
|
|
40
|
+
"prettier-plugin-organize-imports": "^2.3.4",
|
|
41
|
+
"react": "18.0.0",
|
|
42
|
+
"react-dom": "18.0.0",
|
|
43
|
+
"rollup": "^2.70.1",
|
|
44
|
+
"typescript": "^4.7.0",
|
|
45
|
+
"remotion": "4.0.0-alpha11"
|
|
46
|
+
},
|
|
47
|
+
"keywords": [
|
|
48
|
+
"remotion",
|
|
49
|
+
"motion",
|
|
50
|
+
"blur"
|
|
51
|
+
],
|
|
52
|
+
"publishConfig": {
|
|
53
|
+
"access": "public"
|
|
54
|
+
},
|
|
55
|
+
"scripts": {
|
|
56
|
+
"formatting": "prettier src --check",
|
|
57
|
+
"lint": "eslint src --ext ts,tsx",
|
|
58
|
+
"watch": "tsc -w",
|
|
59
|
+
"build": "rollup --config rollup.config.js && tsc -d"
|
|
60
|
+
}
|
|
61
|
+
}
|
package/tsconfig-esm.json
CHANGED
package/dist/esm/MotionBlur.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { TrailProps } from './Trail';
|
|
3
|
-
export declare type MotionBlurProps = Omit<TrailProps, 'trailOpacity'> & {
|
|
4
|
-
blurOpacity: number;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated The component has been renamed "Trail" instead: https://remotion.dev/docs/motion-blur/trail
|
|
8
|
-
*/
|
|
9
|
-
export declare const MotionBlur: React.FC<MotionBlurProps>;
|