@remotion/motion-blur 3.3.84 → 3.3.87

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/motion-blur",
3
- "version": "3.3.84",
3
+ "version": "3.3.87",
4
4
  "description": "Motion blur effect for Remotion",
5
5
  "main": "dist/cjs/index.js",
6
6
  "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": "3.3.84"
19
+ "remotion": "3.3.87"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "react": ">=16.8.0",
@@ -40,7 +40,7 @@
40
40
  "prettier-plugin-organize-imports": "^2.3.4",
41
41
  "react": "18.0.0",
42
42
  "react-dom": "18.0.0",
43
- "remotion": "3.3.84",
43
+ "remotion": "3.3.87",
44
44
  "rollup": "^2.70.1",
45
45
  "typescript": "^4.7.0"
46
46
  },
@@ -1,5 +0,0 @@
1
- export declare const getNumberOfSamples: ({ shutterAngle, samples, currentFrame, }: {
2
- shutterAngle: number;
3
- samples: number;
4
- currentFrame: number;
5
- }) => number;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getNumberOfSamples = void 0;
4
- const getNumberOfSamples = ({ shutterAngle, samples, currentFrame, }) => {
5
- const shutterFraction = shutterAngle / 360;
6
- const maxOffset = shutterFraction * samples;
7
- const maxTimeReverse = currentFrame - maxOffset;
8
- const factor = Math.min(1, Math.max(0, maxTimeReverse / maxOffset + 1));
9
- const actualSamples = Math.max(1, Math.round(Math.min(factor * samples, samples)));
10
- return actualSamples;
11
- };
12
- exports.getNumberOfSamples = getNumberOfSamples;